1 2004-12-07 Randolph Chung <tausq@debian.org>
3 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
4 register for both 32- and 64-bit targets.
6 2004-12-07 Randolph Chung <tausq@debian.org>
8 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
9 are unwinding through a dummy frame.
11 2004-12-07 Randolph Chung <tausq@debian.org>
13 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
14 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
15 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
16 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
19 2004-12-07 Randolph Chung <tausq@debian.org>
21 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
22 unwinding from a frame with pc == 0.
23 (hppa_stub_frame_this_id): Likewise.
24 (hppa_stub_frame_prev_register): Only provide real values if the frame
27 2004-12-07 Randolph Chung <tausq@debian.org>
29 * solib-som.c: New file.
30 * solib-som.h: New file.
31 * solib-pa64.c: New file.
32 * solib-pa64.h: New file.
34 2004-12-07 Mark Kettenis <kettenis@gnu.org>
36 * Makefile.in (inf-ttrace.o): Fix typo.
38 2004-12-07 Jim Blandy <jimb@redhat.com>
40 * remote.c (remote_threads_info, remote_current_thread): Use
41 strtoul to parse thread ID numbers.
43 2004-12-07 Mark Kettenis <kettenis@gnu.org>
45 * inf-ttrace.c: Include "gdbthread.h".
46 (inf_ttrace_num_lwps): New variable.
47 (inf_ttrace_num_lwps_in_syscall): Renamed from
48 inf_ttrace_num_threads_in_syscall.
49 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
50 TTEVT_LWP_TERMINATE events.
51 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
53 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
54 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
55 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
57 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
58 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
59 TTEVT_LWP_TERMINATE events.
60 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
61 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
62 * Makefile.in (inf-ttrace.o): Update dependencies.
64 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
66 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
67 Make global. Remove HP-UX specific code. Use
68 frame_unwind_register_unsigned instead of
69 frame_unwind_register_signed.
70 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
71 Remove HP-UX specific code.
72 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
73 (hppa_frame_prev_register_helper): Set "flags" register to zero
74 for all unwound frames.
75 (hppa_gdbarch_init): Adjust.
76 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
77 (hppa_hpux_read_pc, hppa_hpux_write_pc)
78 (hppa_hpux_unwind_pc): New functions.
79 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
81 2004-12-07 Andreas Schwab <schwab@suse.de>
83 * main.c (long_options): Add entry for "-l".
84 (print_gdb_help): Add line for -l option.
87 2004-12-05 Randolph Chung <tausq@debian.org>
89 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
90 DEPRECATED_REGISTER_BYTE.
92 2004-12-05 Randolph Chung <tausq@debian.org>
94 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
97 2004-12-05 Mark Kettenis <kettenis@gnu.org>
99 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
100 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
102 * hppa-hpux-tdep.c: Update copyright notice and year.
104 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
106 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
107 (get_field, put_field): Assert that the format is one we can handle.
108 Simplify logic accordingly.
109 (floatformat_normalize_byteorder): New function.
110 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
111 to normalize and select modified byte order. Pass modified byte order
113 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
115 (convert_doublest_to_floatformat): Select an appropriate intermediate
116 byte order if necessary. Always convert to the final format before
119 2004-12-04 Daniel Jacobowitz <dan@debian.org>
122 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
123 Suggested by Joshua Neuheisel.
125 2004-12-03 Randolph Chung <tausq@debian.org>
127 * gdbarch.sh (instruction_nullified): Delete.
128 * gdbarch.c: Regenerate.
129 * gdbarch.h: Regenerate.
130 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
132 (hppa_unwind_pc): Likewise.
133 (hppa_instruction_nullified): Delete.
134 (hppa_gdbarch_init): Don't set instruction_nullified method.
135 * infrun.c (infwait_states): Remove infwait_nullified_state.
136 (handle_inferior_event): Remove handling of infwait_nullified_state.
137 Remove handling of nullified instructions.
139 2004-12-03 Mark Kettenis <kettenis@gnu.org>
141 * inf-ttrace.c: Include <sys/mman.h>.
142 (struct inf_ttrace_page): New.
143 (struct inf_ttrace_page_dict): New.
144 (inf_ttrace_num_threads_in_syscall)
145 (inf_ttrace_reenable_page_protections): New variables.
146 (inf_ttrace_enable_syscall_events)
147 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
148 (inf_ttrace_add_page, inf_ttrace_insert_page)
149 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
150 (inf_ttrace_enable_page_protections)
151 (inf_ttrace_disable_page_protections)
152 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
153 (inf_ttrace_can_use_hw_breakpoint)
154 (inf_ttrace_region_size_ok_for_hw_watchpoint)
155 (inf_ttrace_stopped_by_watchpoint): New functions.
156 (inf_ttrace_him): Remove unsused varaible `tts'.
157 (inf_ttrace_create_inferior): Add assertionts.
158 (inf_ttrace_mourn_inferior): Clear page dictionary.
159 (inf_ttrace_attach): Set initial event mask.
160 (inf_ttrace_detach): Reset number of threads in system call.
161 (inf_ttrace_wait): Deal with system call events.
162 (inf_ttrace_target): Initialize "hardware" watchpoint-related
163 parts of the target vector.
164 (_initialize_inf_ttrace): New prototype and function.
166 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
167 type of `gp' variable.
169 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
171 * README: Remove config.if from directory listing.
173 2004-12-01 Joel Brobecker <brobecker@gnat.com>
175 * alpha-tdep.c (alpha_register_name): Add comment.
176 (alpha_cannot_fetch_register): Exclude registers numbers which
177 are no longer used from the list of registers that can be fetched.
178 (alpha_cannot_store_register): Exclude registers numbers which
179 are no longer used from the list of registers that can be stored.
180 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
181 core_reg_mapping array.
183 2004-12-01 Joel Brobecker <brobecker@gnat.com>
185 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
186 the register value from the correct frame.
188 2004-11-30 Randolph Chung <tausq@debian.org>
190 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
191 (hppa_linux_in_dyncall): Check that we are inside the range of
192 $$dyncall, not necessarily at the first insn.
193 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
194 even if the pc does not point to the first insn of the trampoline.
196 2004-11-30 Randolph Chung <tausq@debian.org>
198 * breakpoint.c (break_at_finish_command): Delete.
199 (break_at_finish_command_1): Delete.
200 (break_at_finish_at_depth_command): Delete.
201 (break_at_finish_at_depth_command_1): Delete.
202 (tbreak_at_finish_command): Delete.
203 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
206 2004-11-30 Andrew Cagney <cagney@gnu.org>
208 * config/nm-gnu.h: Delete file.
209 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
211 * config/nm-sysv4.h: Delete file.
212 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
213 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
214 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
215 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
216 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
218 2004-11-29 Andrew Cagney <cagney@gnu.org>
220 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
221 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
222 as can-commit architecture developers.
224 2004-11-29 Mark Kettenis <kettenis@gnu.org>
226 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
227 (sparc32_skip_prologue): Skip instructions that store arguments in
228 registers into their corresponding stack slots.
230 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
232 * config/m68k/obsd.mh (NAT_FILE): Likewise.
234 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
235 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
236 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
237 sparc32nbsd_elf_init_abi. Remove duplicate code.
239 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
240 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
241 * config/sparc/nm-nbsd.h: Remove file.
242 * config/sparc/nm-nbsdaout.h: Remove file.
244 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
245 (sparc_xfer_partial): New function.
246 (sparc_target): Save value of to_xfer_partial from ptrace vector.
249 * fork-child.c (fork_inferior): Fork instead of vfork if
250 PRE_TRACE_FUN is non-null.
252 2004-11-24 Fred Fish <fnf@specifixinc.com>
254 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
255 compiler generated function calls made as part of a prologue.
257 2004-11-23 Mark Kettenis <kettenis@gnu.org>
259 * inf-ttrace.c: New file.
260 * inf-ttrace.h: New file.
261 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
262 Include "inf-ttrace.h".
263 (ss_mpsfu_high): Define to ss_tlsp if necessary.
264 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
265 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
267 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
268 instead of inf_ptrace_target.
269 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
270 * Makefile.in (inf_ttrace_h): New variable.
271 (hppa-hpux-nat.o): Update dependency.
272 (inf-ttrace.o): New dependency.
273 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
275 2004-11-23 Randolph Chung <tausq@debian.org>
277 * arch-utils.c (generic_instruction_nullified): New.
278 * arch-utils.h (generic_instruction_nullified): New.
279 * gdbarch.sh (instruction_nullified): New method.
280 * gdbarch.c: Regenerate.
281 * gdbarch.h: Regenerate.
282 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
283 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
285 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
286 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
287 static. Rewrite to work directly off the passed regcache.
288 (hppa_gdbarch_init): Set instruction_nullified method.
290 2004-11-23 Joel Brobecker <brobecker@gnat.com>
292 * sparc-tdep.c (sparc_is_unimp_insn): New function.
293 (sparc32_frame_cache): For functions where there is no debugging
294 information to help us determine whether it's a struct-return
295 function or not, fallback on checking whether the instruction
296 at the return address is an "unimp" instruction or not.
298 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
300 * MAINTAINERS: Add myself to write after approval section.
302 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
303 hpux-thread.c to suppress children from running.
304 (hppa_hpux_child_can_run): New function.
305 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
306 * hpux-thread.c: Include string.h and hppa-tdep.h.
307 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
308 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
309 (hpux_thread_store_registers): Replace deprecated_registers with
310 calls to regcache_raw_read.
311 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
313 2004-11-21 Mark Kettenis <kettenis@gnu.org>
315 * sparc64fbsd-nat.c: Update copyright year.
316 (_initialize_sparc64fbsd_nat): Construct and add target vector.
317 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
320 2004-11-21 Daniel Jacobowitz <dan@debian.org>
322 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
324 2004-11-21 Daniel Jacobowitz <dan@debian.org>
326 * linux-nat.c (my_waitpid): New function.
327 (linux_test_for_tracefork): Make more robust and verbose. Take
328 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
329 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
330 argument. Update calls to linux_test_for_tracefork.
331 (linux_enable_event_reporting, child_follow_fork)
332 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
333 (child_insert_exec_catchpoint): Update calls to
334 linux_supports_tracefork and linux_supports_tracevforkdone.
336 2004-11-21 Daniel Jacobowitz <dan@debian.org>
338 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
339 (value_subscripted_rvalue): Likewise.
340 * valops.c (search_struct_field, value_slice): Likewise.
342 2004-11-21 Mark Kettenis <kettenis@gnu.org>
344 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
345 Reorder includes a bit. Fix comment.
346 * Makefile.in (inf-ptrace.o): Update dependencies.
348 2004-11-21 Andreas Schwab <schwab@suse.de>
350 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
351 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
352 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
353 to glibc_skip_solib_resolver.
354 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
356 * Makefile.in (m68klinux-tdep.o): Update dependencies.
358 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
360 * infttrace.h (ttrace_write_reg_64): Add prototype.
361 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
363 (store_inferior_registers): Correct formatting. Replace uses of
364 deprecated_registers with calls to regcache_raw_read,
365 regcache_raw_write_part and regcache_raw_read_part.
367 2004-11-21 Mark Kettenis <kettenis@gnu.org>
369 * config/pa/hppahpux.mh: Remove file.
370 * config/pa/hpux1020.mh: Remove file.
372 2004-11-20 Andreas Schwab <schwab@suse.de>
374 * configure.host: Set host floatformat for m68k.
376 2004-11-20 Eli Zaretskii <eliz@gnu.org>
378 * config/djgpp/fnchange.lst: Resolve file-name clash between
379 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
381 2004-11-20 Mark Kettenis <kettenis@gnu.org>
383 * hppa-hpux-nat.c: New file.
384 * config/pa/hpux.mh (NATDEPFILES): New file.
385 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
386 (hppa-hpux-nat.o): New dependency.
387 * configure.host: Remove hppa*-*-hpux10.20.
388 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
390 * inf-ptrace.c: Fix coding style.
392 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
393 * infptrace.c (call_ptrace): Simply call ptrace with four
396 * dbxread.c (process_one_symbol): Fix a few coding standard
397 issues. Improve code formatting.
399 * dbxread.c: Include "gdb_string.h".
400 (record_minimal_symbol, read_ofile_symtab): Replace
401 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
402 * Makefile.in (dbxread.o): Update dependencies.
404 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
405 of bytes read for aligned LEB128 encodings.
407 2004-11-19 Mark Kettenis <kettenis@gnu.org>
409 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
410 parse_and_eval_address to u_long before converting it to a pointer
412 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
413 ps_strings from int to u_long.
414 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
415 u_long instead of CORE_ADDR.
417 2004-11-18 Mark Kettenis <kettenis@gnu.org>
419 * dbxread.c (process_one_symbol): Do not adjust address of first
420 N_SLINE stab for a function for code generated by non-GCC
423 2004-11-18 Kevin Buettner <kevinb@redhat.com>
425 * solib-null.c: New file.
427 2004-11-17 Andrew Cagney <cagney@gnu.org>
429 * MAINTAINERS: Drop MIPS and remote.
431 2004-11-15 Andrew Cagney <cagney@gnu.org>
433 * findvar.c (value_of_register): Set the frame ID.
434 * value.c (value_primitive_field): Copy the frame ID.
435 * valops.c (value_assign): Simplify lval_register case, there's
438 2004-11-14 Daniel Jacobowitz <dan@debian.org>
440 * Makefile.in (mips-linux-tdep.o): Update dependencies.
441 * mips-linux-tdep.c: Include "regcache.h".
442 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
444 2004-11-14 Daniel Jacobowitz <dan@debian.org>
446 * Makefile.in (linux-thread-db.o): Fix typo in last change.
448 2004-11-14 Daniel Jacobowitz <dan@debian.org>
450 * linux-thread-db.c: New file, renamed from thread-db.c.
451 * thread-db.c: Remove.
452 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
453 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
454 to linux-thread-db.o.
455 * config/arm/linux.mh (NATDEPFILES): Likewise.
456 * config/i386/linux.mh (NATDEPFILES): Likewise.
457 * config/i386/linux64.mh (NATDEPFILES): Likewise.
458 * config/ia64/linux.mh (NATDEPFILES): Likewise.
459 * config/m32r/linux.mh (NATDEPFILES): Likewise.
460 * config/m68k/linux.mh (NATDEPFILES): Likewise.
461 * config/mips/linux.mh (NATDEPFILES): Likewise.
462 * config/pa/linux.mh (NATDEPFILES): Likewise.
463 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
464 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
465 * config/s390/s390.mh (NATDEPFILES): Likewise.
466 * config/sparc/linux.mh (NATDEPFILES): Likewise.
467 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
469 2004-11-13 Andrew Cagney <cagney@gnu.org>
471 * config/i386/i386lynx.mh: Delete file.
472 * config/i386/i386lynx.mt: Delete file.
473 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
474 * i386ly-tdep.c: Delete.
476 * config/tm-lynx.h: Delete, inline contents ...
477 * config/rs6000/tm-rs6000ly.h: ... here.
479 * config/tm-sysv4.h: Delete file, inlining contents.
480 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
481 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
482 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
484 * regcache.h (deprecated_register_valid): Delete.
485 (deprecated_registers): Delete.
486 * regcache.c (deprecated_register_valid): Delete.
487 (deprecated_registers): Delete.
488 (deprecated_read_register_byte, _initialize_regcache)
489 (deprecated_write_register_bytes, build_regcache): Update.
490 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
492 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
493 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
495 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
496 v850-*-* under removed.
497 * configure.host: Delete ns32k-*-netbsd*.
498 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
499 ns32k-*-netbsd*, and v850*-*-*.
500 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
502 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
503 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
504 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
505 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
506 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
507 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
508 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
509 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
510 * v850-tdep.c: Delete.
512 2004-11-13 Joel Brobecker <brobecker@gnat.com>
514 * irix5-nat.c (fetch_core_registers): Replace use of
515 deprecated_registers by equivalent code.
517 2004-11-13 Joel Brobecker <brobecker@gnat.com>
519 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
520 with equivalent code.
521 (fill_fpregset): Likewise.
523 2004-11-13 Andrew Cagney <cagney@gnu.org>
525 * MAINTAINERS: Do not list "Deleted" architectures.
527 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
528 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
530 * NEWS: Mention that vxworks was deleted.
531 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
532 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
533 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
534 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
535 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
536 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
537 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
538 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
539 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
540 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
541 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
542 * remote-vxmips.c, remote-vx.c: Delete.
543 * remote-vx68.c: Delete.
544 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
545 * config/m68k/os68k.mt, ada-lang.h: Ditto.
546 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
547 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
549 2004-11-13 Eli Zaretskii <eliz@gnu.org>
551 * config/i386/xm-go32.h: Don't include fopen-bin.h.
552 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
554 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
555 branch that doesn't define CRLF_SOURCE_FILES; always use
557 (print_source_lines_base, forward_search_command)
558 (reverse_search_command): Enable the code that accepts DOS-style
559 CRLF line endings on all platforms (this removes the need for
562 * defs.h: Fix wording of the comment before FOPEN_RB.
563 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
565 * config/djgpp/fnchange.lst: Group renames for opcode directory
568 * config/djgpp/djconfig.sh: Replace file names that don't exist
569 anymore with existing files, for checking the unpacked
572 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
573 Export pre-cooked values in configure-* targets that begin with
574 "@test -f stage_last".
576 2004-11-12 Andrew Cagney <cagney@gnu.org>
578 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
579 * value.h (struct value): Update comment.
580 * valops.c (value_assign): Fold lval_reg_fame_relative into
582 * findvar.c (value_from_register, locate_var_value): Ditto.
584 2004-11-12 Randolph Chung <tausq@debian.org>
586 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
587 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
588 (write_exp_msymbol): Remove conditional check for symbols starting
589 with $. Update comments.
591 2004-11-12 Randolph Chung <tausq@debian.org>
593 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
594 so_lib_thread_start_addr.
595 * pa64solib.h (so_list): Forward declare.
596 (pa64_solib_thread_start_addr): Prototype.
597 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
598 (no_shared_libraries): Remove.
599 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
600 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
601 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
602 the elf solib handler to find the start address.
604 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
605 files to the target makefile.
606 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
607 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
608 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
610 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
611 files for symbol reading and shared library handling here.
612 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
613 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
614 without bringing in 64-bit support.
616 2004-11-12 Andrew Cagney <cagney@gnu.org>
618 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
619 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
620 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
621 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
622 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
623 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
624 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
626 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
627 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
628 (VALUE_REGNUM): Define.
629 (struct value): Delete location.regnum, rename "regno" to
631 * value.c, valops.c, valarith.c, findvar.c: Update.
633 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
634 (VALUE_BITPOS): Delete.
635 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
636 * value.c (value_type, value_offset, value_bitpos)
637 (value_bitsize): New functions. Update references.
638 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
639 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
640 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
641 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
642 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
643 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
644 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
645 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
646 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
648 2004-11-12 Andrew Cagney <cagney@gnu.org>
650 * cris-tdep.c (cris_register_offset): Delete, never called.
651 (cris_spec_reg_applicable): Delete cris_ver_sim.
652 * MAINTAINERS: List d10v as OBSOLETE.
653 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
654 FOPEN_WB et.al., defined by "fopen-bin.h".
656 2004-11-12 Randolph Chung <tausq@debian.org>
658 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
659 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
660 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
661 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
663 2004-11-12 Mark Kettenis <kettenis@jive.nl>
665 * tui/tui-io.c: Don't include "terminal.h".
666 * Makefile.in (tui-io.o): Update dependencies.
668 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
670 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
671 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
672 set_gdbarch_regset_from_core_section for core file support.
673 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
676 2004-11-11 Randolph Chung <tausq@debian.org>
678 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
679 stop_after_branch parameter and use it to determine if we should look
680 at the delay slot of the first branch insn to find prologue insns.
681 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
682 (hppa_frame_cache): Likewise.
684 2004-11-11 Randolph Chung <tausq@debian.org>
686 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
687 register so that it can be unwound from anywhere in the prologue.
689 2004-11-10 msnyder <msnyder@redhat.com>
691 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
692 must invalidate lr_reg (so we don't try to save it again).
693 Ditto for cr_offset and cr_reg.
695 2004-11-05 Jon Beniston <jon@beniston.com>
697 Committed by Andrew Cagney.
698 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
699 when an unexpected packet is received, as the target stubs
700 continually retransmit the same packet until ACKed.
702 2004-11-10 Randolph Chung <tausq@debian.org>
704 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
707 2004-11-10 Randolph Chung <tausq@debian.org>
709 * blockframe.c (inside_entry_func): Move to .....
710 * frame.c (inside_entry_func): ... here, and make static.
711 (backtrace_past_entry): New flag.
712 (get_prev_frame): Stop backtrace at the entry function if enabled
713 by flag. Update comments.
714 (_initialize_frame): Add command to set backtrace_past_entry flag.
715 * defs.h (inside_entry_func): Remove prototype.
717 2004-11-10 Mark Kettenis <kettenis@gnu.org>
719 * dwarf2read.c: Fix formatting.
721 2004-11-10 Andrew Cagney <cagney@gnu.org>
723 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
724 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
725 macros with function declarations.
726 * value.c (coerce_ref, coerce_array, coerce_number)
727 (coerce_enum): New functions.
728 (value_as_long, value_as_address): Update.
729 * ada-lang.c (ada_coerce_ref, ada_value_binop)
730 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
731 * jv-lang.c (evaluate_subexp_java): Update.
732 * valarith.c (value_less, value_neg, value_complement)
733 (value_binop, value_add, value_subscript, value_x_binop)
734 (value_logical_not, value_sub): Update.
735 * valops.c (check_field, value_struct_elt, value_ind)
736 (value_find_oload_method_list, value_cast, value_assign): Update.
737 * eval.c (evaluate_subexp_standard): Update.
739 2004-11-10 Mark Kettenis <kettenis@gnu.org>
741 * mips-tdep.c (mips32_relative_offset): Change return type to
742 LONGEST, change argument type to ULONGEST. Fix sign-extension.
744 2004-11-10 Randolph Chung <tausq@debian.org>
746 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
747 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
748 (hppa_fetch_pointer_argument): Likewise.
749 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
750 deprecated_read_memory_nobpt.
751 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
752 add_set_cmd sequence with add_setshow_boolean_cmd.
754 2004-11-09 Andrew Cagney <cagney@gnu.org>
756 GDB 6.3 released from GDB 6.3 branch.
758 2004-11-09 Andrew Cagney <cagney@gnu.org>
760 * values.c: Rename to ...
761 * value.c: ..., new file.
762 * Makefile.in: Update.
764 2004-11-09 Daniel Jacobowitz <dan@debian.org>
766 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
769 2004-11-09 Andrew Cagney <cagney@gnu.org>
773 * value.h (struct value): Delete field bfd_section.
774 (VALUE_BFD_SECTION): Delete macro.
775 (COERCE_REF): Update.
776 (value_at, value_at_lazy): Delete asection parameter.
777 * printcmd.c (print_formatted, x_command): Update.
778 (do_examine): Delete asection parameter.
779 (next_section): Delete variable.
780 * valops.c (value_cast, value_at, value_at_lazy)
781 (value_coerce_function, value_addr, value_ind, value_string)
782 (find_rt_vbase_offset, value_full_object): Update.
783 * hpacc-abi.c (hpacc_virtual_fn_field)
784 (hpacc_value_rtti_type): Update.
785 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
786 (gnuv3_baseclass_offset): Update.
787 * f-valprint.c (f_val_print): Update.
788 * c-valprint.c (c_val_print): Update.
789 * p-valprint.c (pascal_val_print): Update.
790 * jv-valprint.c (java_value_print): Update.
791 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
792 * ada-lang.c (ada_value_primitive_packed_val)
793 (ada_evaluate_subexp): Update.
794 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
795 * expprint.c (print_subexp_standard): Update.
796 * infcall.c (call_function_by_hand): Update.
797 * valarith.c (value_add): Update.
798 * eval.c (evaluate_subexp_standard): Update.
799 * values.c (allocate_value, value_copy, value_static_field): Update.
800 * findvar.c (read_var_value, locate_var_value): Update.
802 2004-11-09 Andrew Cagney <cagney@gnu.org>
804 * i386-linux-tdep.c: Include "dwarf2-frame.h".
805 * Makefile.in: Update all dependencies.
807 2004-11-08 Andrew Cagney <cagney@gnu.org>
809 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
810 (sentinel_frame_unwinder): Add the prev_pc method.
811 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
812 available. Do not handle the sentinel-frame case.
813 * frame-unwind.h (frame_prev_register_ftype): Define.
814 (struct frame_unwind): Add prev_pc;
816 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
818 * configure.in: Check for ncurses/term.h.
819 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
820 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
821 * tui/tui.c: Don't include term.h.
822 * configure, config.in: Rebuilt.
824 2004-11-08 Mark Kettenis <kettenis@gnu.org>
826 * m68kbsd-nat.c: Include "inf-ptrace.h".
827 (_initialize_m68kbsd_nat): Fix pasto.
828 * Makefile.in (m68kbsd-nat.o): Update dependencies.
830 2004-11-08 Randolph Chung <tausq@debian.org>
832 * infrun.c (debug_infrun): New variable.
833 (resume, proceed, wait_for_inferior): Annotate with debug messages.
834 (handle_inferior_event, keep_going): Likewise.
835 (_initialize_infrun): Register "set debug infrun" command.
837 2004-11-08 Andreas Schwab <schwab@suse.de>
839 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
840 PTRACE_EVENT_VFORKDONE.
841 (child_follow_fork): Adjust.
843 2004-11-08 Andrew Cagney <cagney@gnu.org>
845 * README: Refer to 6.3, not 6.2, update directory listing droppng
846 references to intl/ and mmalloc/.
847 * PROBLEMS: Refer to 6.3 not 6.2.
849 * PROBLEMS: Delete no-longer applicable problems.
851 2004-11-07 Andrew Cagney <cagney@redhat.com>
852 Daniel Jacobowitz <dan@debian.org>
853 Roland McGrath <roland@redhat.com>
855 * Makefile.in (symfile-mem.o): Update dependencies.
856 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
857 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
858 * inf-ptrace.c (inf_ptrace_attach): Call
859 observer_notify_inferior_created.
860 * inftarg.c (child_attach): Likewise.
861 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
862 (symbol_file_add_from_memory): Take NAME argument. Use it for
863 the new BFD's filename.
864 (add_symbol_file_from_memory_command): Update call to
865 symbol_file_add_from_memory.
866 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
867 (symbol_file_add_from_memory_wrapper): New.
868 (_initialize_symfile_mem): Register add_vsyscall_page as an
869 inferior_created observer.
871 2004-11-07 Mark Kettenis <kettenis@gnu.org>
873 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
874 fetch_inferior_registers. Make static.
875 (m68kbsd_store_inferior_registers): Rename from
876 store_inferior_registers. Make static.
877 (_initialize_m68kbsd_nat): Construct and add target vector.
878 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
879 inftarg.o. Add inf-ptrace.o.
880 (NAT_FILE): Set to tm-solib.h.
881 (LOADLIBES): New variable.
882 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
883 inftarg.o. Add inf-ptrace.o.
884 (NAT_FILE): Delete variable.
885 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
886 inftarg.o. Add inf-ptrace.o.
887 (NAT_FILE): Set to tm-solib.h.
888 * config/m68k/nm-nbsdaout.h: Remove file.
890 2004-11-07 Daniel Jacobowitz <dan@debian.org>
892 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
893 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
894 (dwarf2_signal_frame_unwind): New.
895 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
896 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
898 2004-11-07 Mark Kettenis <kettenis@gnu.org>
900 * Makefile.in (mips64obsd-tdep.o): Fix typo.
902 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
903 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
904 to only include the structure members we actually need.
905 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
906 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
907 only include the structure members we actually need.
908 (mipsnbsd_init_abi): Update.
910 * mips64obsd-nat.c: Include "mips-tdep.h".
911 (MIPS64OBSD_NUM_REGS): Remove define.
912 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
913 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
914 floating-point registers correctly.
915 * Makefile.in (mips64obsd-nat.o): Update dependencies.
917 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
919 (mips64obsd_sigframe_init): New function.
920 (mips64obsd_sigframe): New variable.
921 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
923 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
925 2004-11-06 Joel Brobecker <brobecker@gnat.com>
927 * alpha-mdebug-tdep.c: #include mdebugread.h.
928 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
929 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
931 2004-11-05 Andrew Cagney <cagney@gnu.org>
933 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
934 CFI and the init_reg method leave the register unspecified.
935 Include the register name in the "Incomplete CFI data" complaint.
936 Supress leading zeros in the address.
938 2004-11-05 Mark Kettenis <kettenis@gnu.org>
940 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
941 skipping a personality routine in a CIE augmentation.
943 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
945 * defs.h (fatal, vfatal): New function prototypes.
946 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
948 (backtrace_command): Change to call backtrace_command_stub via
949 catch_errors instead of calling backtrace_command_1 directly.
950 (backtrace_full_command): Ditto.
951 * utils.c (error_stream_1): New static function.
952 (verror): Change to call error_stream_1 instead of error_stream.
953 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
954 (vfatal, fatal): New functions.
956 2004-11-05 Andrew Cagney <cagney@gnu.org>
958 * stack.c (parse_frame_specification_1): Clear selected_frame_p
959 when not using selected frame.
961 2004-11-05 Mark Kettenis <kettenis@jive.nl>
963 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
964 personality routine in a CIE augmentation.
966 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
968 * stack.c (set_current_sal_from_frame): New function.
969 (print_args_stub): Use it.
970 (print_frame_info): Don't set sal here.
972 2004-11-04 Mark Kettenis <kettenis@gnu.org>
974 * dwarf2-frame.c (read_encoded_value): Change type of third
975 argument to `unsigned char *'. Add support for LEB128 encodings.
977 2004-11-04 Jim Blandy <jimb@redhat.com>
979 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
980 prevent cross-objfile references.
981 (make_cv_type): Doc fix. Don't create cross-objfile references,
983 (replace_type): Add assertion to prevent cross-objfile references.
984 (check_typedef): Never resolve a stub type by copying over a type
987 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
989 * Makefile.in (m32r-tdep.o): Update dependencies.
990 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
991 ABI-specific overrides.
993 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
995 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
996 unnecessary parallel execution bit.
997 (m32r_memory_remove_breakpoint): Ditto.
998 (m32r_breakpoint_from_pc): Update.
1000 2004-11-03 Randolph Chung <tausq@debian.org>
1002 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1003 frame_func_unwind to locate the unwind entry.
1004 (hppa_frame_this_id): Likewise.
1006 2004-11-03 Andrew Cagney <cagney@gnu.org>
1008 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1009 packet, obsolete configurations, end-of-life deprecated_registers.
1011 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1013 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1014 encodings as well as unsigned encodings.
1016 2004-11-02 Andrew Cagney <cagney@gnu.org>
1018 * value.h (COERCE_VARYING_ARRAY): Delete.
1019 * valops.c (value_cast, value_slice): Delete use.
1020 * valarith.c (value_subscript, value_concat): Delete use.
1022 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1024 * NEWS: GDB understands GNAT Ada.
1026 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1028 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1029 (amd64-sol2-tdep.o): Add dependencies.
1030 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1031 config/i386/sol2-64.mt: New files.
1032 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1033 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1034 (supply_gregset): Correct order of arguments to
1035 amd64_supply_native_gregset.
1036 (fill_gregset): Correct order of arguments to
1037 amd64_collect_native_gregset.
1038 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1039 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1040 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1041 for definition of NEW_PROC_API.
1042 * configure: Regenerate.
1044 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1046 * MAINTAINERS (Write After Approval): Add myself.
1048 2004-11-01 Andrew Cagney <cagney@gnu.org>
1050 * configure.tgt: Mark d10v-*-* as obsolete.
1051 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1053 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1055 * values.c (modify_field): Correct handling of bit-fields that
1056 don't fit in 32 bits. Use unsigned operations throughout and
1057 simplify the code a bit. Document preconditions.
1059 2004-10-31 Andrew Cagney <cagney@gnu.org>
1061 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1062 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1063 (in_plt_section): Delete.
1065 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1066 (mips_gdbarch_init): Do not set same.
1068 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1069 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1071 * gdbarch.sh (in_solib_call_trampoline): Delete.
1072 * gdbarch.h, gdbarch.c: Re-generate.
1074 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1075 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1076 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1077 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1078 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1080 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1082 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1083 (mipsnbsd_fetch_inferior_registers): Rename from
1084 fetch_inferior_registers. Make static.
1085 (mipsnbsd_store_inferior_registers): Rename from
1086 store_inferior_registers. Make static.
1087 (_initialize_mipsnbsd_nat): New function and prototype.
1088 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1089 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1090 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1093 2004-10-31 Andrew Cagney <cagney@gnu.org>
1095 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1096 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1097 delete corresponding unused function.
1098 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1099 in_solib_call_trampoline.
1100 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1101 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1102 * config/mips/tm-nbsd.h: Ditto.
1103 * config/arm/tm-linux.h: Ditto.
1104 * config/mips/tm-linux.h: Ditto.
1106 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1107 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1108 in_solib_call_trampoline, delete corresponding unused function.
1109 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1110 (vaxnbsd_aout_init_abi): Ditto.
1111 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1112 (sparc32nbsd_aout_init_abi): Ditto.
1113 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1114 (ppc_linux_init_abi): Ditto.
1115 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1116 (ns32knbsd_init_abi_aout): Ditto.
1117 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1118 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1119 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1120 (m68kbsd_aout_init_abi): Ditto.
1121 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1122 (i386_cygwin_init_abi): Ditto.
1123 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1124 (i386bsd_init_abi): Ditto.
1126 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1127 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1128 isn't used by this architecture.
1129 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1130 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1131 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1132 * s390-tdep.c (s390_gdbarch_init): Ditto.
1133 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1134 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1135 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1136 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1137 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1138 * amd64-tdep.c (amd64_init_abi): Ditto.
1140 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1141 in_solib_call_trampoline to its default value of
1142 generic_in_solib_call_trampoline.
1143 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1144 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1145 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1146 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1147 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1148 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1150 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1152 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1154 * config/mips/tm-mips.h: Delete file.
1155 * remote-mips.c: Delete tm-mips.h from comment.
1156 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1157 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1158 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1159 * config/mips/tm-linux.h: Don't include tm-mips.h.
1160 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1161 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1162 * config/mips/tm-wince.h: Don't include.
1164 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1165 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1166 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1167 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1169 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1170 * mdebugread.c (ecoff_relocate_efi): Delete function.
1171 * objfiles.c (objfile_relocate): Delete #ifdef
1172 MDEBUG_EFI_SYMBOL_NAME code.
1174 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1175 Andrew Cagney <cagney@gnu.org>
1177 * gdbarch.sh (single_step_through_delay): Add.
1178 * gdbarch.h, gdbarch.c: Re-generate.
1179 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1180 (mips_step_skips_delay): Delete.
1181 * mips-tdep.c (mips_single_step_through_delay): Replace
1182 mips_step_skips_delay.
1183 (mips_gdbarch_init): Set single_step_through_delay.
1184 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1186 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1188 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1189 from TRAMP_FRAME frame type.
1191 2004-10-31 Andrew Cagney <cagney@gnu.org>
1193 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1195 * mips-tdep.c (mips_ignore_helper): Delete.
1196 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1197 * infrun.c (handle_inferior_event): Delete #ifdef
1198 DEPRECATED_IGNORE_HELPER_CALL code.
1200 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1202 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1204 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1205 (fill_fpregset): Do not compile for 64-bit systems.
1206 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1207 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1208 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1210 2004-10-30 Andrew Cagney <cagney@gnu.org>
1212 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1213 (struct mdebug_extra_func_info): Define.
1214 * config/alpha/tm-alpha.h: Delete same.
1215 * config/mips/tm-mips.h: Delete same.
1216 * mdebugread.c: Delete same.
1217 * Makefile.in: Update dependencies.
1218 * mips-mdebug-tdep.c: Include "mdebugread.h".
1220 * objfiles.c: Include "mdebugread.h".
1221 * mdebugread.c: Include "mdebugread.h".
1222 (ecoff_relocate_cfi): Delete.
1223 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1224 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1225 * mdebugread.h (ecoff_relocate_efi): New file.
1226 * Makefile.in: Update dependencies.
1228 * mips-tdep.c (struct frame_extra_info): Delete.
1229 (temp_proc_desc): Delete.
1231 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1232 MIPS_EFI_SYMBOL_NAME.
1233 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1234 (struct mdebug_extra_func_info): Replace struct
1235 alpha_extra_func_info and alpha_extra_func_info_t.
1236 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1237 MIPS_EFI_SYMBOL_NAME.
1238 (struct mdebug_extra_func_info): Replace struct
1239 alpha_extra_func_info and alpha_extra_func_info_t.
1240 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1241 * mdebugread.c, alpha-mdebug-tdep.c:
1243 Suggested by Mark Kettenis.
1244 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1245 fields frame_adjust and high_addr.
1246 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1247 (non_heuristic_proc_desc): Delete references.
1249 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1250 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1251 * mips-tdep.c: Update.
1253 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1254 (MIPS_LAST_EMBED_REGNUM): Add.
1255 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1256 (LAST_EMBED_REGNUM): Delete.
1257 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1259 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1260 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1261 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1262 * mips-linux-nat.c: Update.
1264 * mips-tdep.h: Add comments on registers.
1265 (MIPS_UNUSED_REGNUM): Define.
1266 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1267 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1268 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1269 * mips-linux-nat.c, remote-mips.c: Update.
1271 * config/mips/tm-mips.h (t_insn): Delete.
1272 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1273 Replace t_insn with ULONGEST.
1275 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1277 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1278 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1279 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1280 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1281 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1282 (mipsnbsd_core_osabi_sniffer): New function.
1283 (mipsnbsd_init_abi): Set regset_from_core_section.
1284 (_initialize_mipsnbsd_tdep): Remove calls to
1285 deprecated_add_core_fns.
1286 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1287 (mipsnbsd_regset_from_core_section): New functions.
1288 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1289 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1291 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1292 Remove optimization for DEPRECATED_FP_REGNUM.
1294 2004-10-30 Andrew Cagney <cagney@gnu.org>
1296 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1297 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1298 (alpha_setup_arbitrary_frame): Delete.
1299 * mips-tdep.c (setup_arbitrary_frame): Delete.
1300 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1301 (setup_arbitrary_frame): Delete.
1302 * stack.c (parse_frame_specification_1): When specified, call
1303 create_new_frame with two parameters. Delete #ifdef
1304 SETUP_ARBITRARY_FRAME.
1306 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1307 (MIPS_INSTLEN): Delete.
1308 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1309 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1310 * remote-mips.c, mips-tdep.c: Update.
1312 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1313 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1314 * mips-tdep.c (mips_mdebug_frame_cache)
1315 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1316 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1317 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1318 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1319 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1320 (mips_gdbarch_init): Do not append mdebug sniffers.
1321 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1322 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1323 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1324 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1325 * Makefile.in: Update dependencies.
1327 * mips-tdep.h (mips_abi_regsize): Declare.
1328 * mips-tdep.c (mips_abi_regsize): Make non-static.
1330 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1331 (make_mips16_addr): Delete.
1333 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1335 * i386-sol2-nat.c: New file.
1336 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1338 (i386-sol2-nat.o): Update dependencies.
1339 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1342 2004-10-30 Andrew Cagney <cagney@gnu.org>
1344 Total breakage identified by Joel Brobecker.
1345 * mips-tdep.c (after_prologue): Delete.
1346 (mips_skip_prologue): Use skip_prologue_using_sal.
1347 (heuristic_proc_desc): Delete, unused.
1349 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1351 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1352 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1353 Cleanup coding style.
1355 2004-10-30 Andrew Cagney <cagney@gnu.org>
1357 * mips-tdep.h (mips_pc_is_mips16): Declare.
1358 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1359 non-static. Update calls.
1361 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1362 * command.h (add_setshow_enum_cmd): Declare.
1363 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1365 * mips-tdep.c (_initialize_mips_tdep): Use
1366 add_setshow_zinteger_cmd.
1368 * mips-tdep.c (mips_eabi_extract_return_value)
1369 (mips_o64_extract_return_value, mips_o64_store_return_value)
1370 (return_value_location, mips_eabi_reg_struct_has_addr)
1371 (mips_eabi_use_struct_convention)
1372 (mips_eabi_store_return_value): Delete.
1373 (mips_eabi_store_return_value): New function.
1374 (mips_eabi_return_value): New function.
1375 (mips_gdbarch_init): For O64 and EABI, delete
1376 extract_return_value, store_return_value, use_struct_convention
1377 and reg_struct_has_addr, add return_value.
1379 * mips-tdep.c (read_signed_register): Use
1380 regcache_cooked_read_signed.
1382 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1384 * mipsread.c: Cleanup coding style.
1385 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1386 (mipscoff_symfile_finish): Remove prototypes.
1388 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1390 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1391 (mips_mdebug_frame_cache, mips16_scan_prologue)
1392 (mips32_scan_prologue, mips_stub_frame_cache)
1393 (heuristic_proc_start, heuristic_proc_desc)
1394 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1395 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1396 (mips_o32_return_value, mips_o64_push_dummy_call)
1397 (mips_step_skips_delay, mips_skip_trampoline_code)
1398 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1399 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1400 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1401 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1402 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1403 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1404 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1405 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1406 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1407 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1409 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1410 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1412 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1414 * mipsnbsd-nat.c: Include "mips-tdep.h".
1415 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1416 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1418 2004-10-29 Andrew Cagney <cagney@gnu.org>
1420 * stack.c (parse_frame_specification_1): New function based on
1421 parse_frame_specification. Add message and selected_frame_p
1422 paramters. Truely always return non-NULL.
1423 (parse_frame_specification): Call parse_frame_specification_1.
1424 (frame_info): Update. Eliminate target_has_stack check.
1425 (select_frame_command): Update.
1427 2004-10-29 Andrew Cagney <cagney@gnu.org>
1429 * frame.h (get_selected_frame): Add message parameter.
1430 * frame.c (get_selected_frame): Add and use message parameter.
1431 * stack.c (current_frame_command, return_command, locals_info)
1432 (catch_info, args_info, up_silently_base, down_silently_base): Use
1433 get_selected_frame with an explicit message.
1434 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1435 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1436 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1437 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1438 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1439 * breakpoint.c: Update.
1441 2004-10-29 Andrew Cagney <cagney@gnu.org>
1443 * trad-frame.c (trad_frame_get_prev_register): Use
1444 frame_unwind_register instead of frame_register_unwind, do not
1445 recurse the register's location.
1446 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1447 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1448 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1449 * sh-tdep.c (sh_frame_prev_register): Ditto.
1450 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1451 * i386-tdep.c (i386_frame_prev_register): Ditto.
1452 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1453 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1455 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1457 * proc-events.c: Fix several coding-style issues. Consistently
1458 use #ifdef instead of #if defined().
1459 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1461 (_initialize_proc_events): New prototype.
1463 * proc-why.c: Fix several coding-style issues.
1464 (proc_prettyfprint_why): Use ARRAY_SIZE.
1466 2004-10-27 Jim Blandy <jimb@redhat.com>
1468 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1469 manner independent of the host byte order.
1471 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1473 * mips-tdep.c (id_delayed): Remove prototype.
1475 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1477 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1478 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1479 to enum with register numbers.
1480 (enum mips_insn_size): New enum.
1482 2004-10-26 Andrew Cagney <cagney@gnu.org>
1484 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1485 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1486 (mips_gdbarch_init): Update.
1487 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1489 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1490 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1491 IN_SOLIB_RETURN_TRAMPOLINE.
1492 * mips-tdep.c (mips_dump_tdep): Do not print
1493 IN_SOLIB_RETURN_TRAMPOLINE.
1494 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1495 (mips_gdbarch_init): Update.
1497 * mips-tdep.h (mips_software_single_step): Move to here ...
1498 * config/mips/tm-mips.h: ... from here.
1499 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1500 (SOFTWARE_SINGLE_STEP): Delete.
1501 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1503 2004-10-25 Andrew Cagney <cagney@gnu.org>
1505 * NEWS: Add Changes since GDB 6.3 section.
1507 2004-10-23 Andreas Schwab <schwab@suse.de>
1509 * ada-lang.c (grow_vect): Return the new array instead of
1510 expecting pointer to pointer to avoid violation of aliasing rules.
1511 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1513 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1515 * s390-tdep.c (enum pv_boolean): Remove.
1516 (pv_is_array_ref): Remove.
1517 (s390_on_stack): Remove.
1518 (S390_NUM_SPILL_SLOTS): Remove.
1519 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1520 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1521 (s390_store): Track all stores of orginal incoming registers to the
1522 stack constant offsets relative to the CFA, instead of only tracking
1523 stores into specific spill slots.
1524 (s390_load): Likewise.
1525 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1526 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1527 defined as call-saved by the ABI.
1528 (s390_push_dummy_call): Use bottom of dummy call argument save area
1529 as return value, not the top. Do not store to the called function's
1531 (s390_unwind_dummy_id): Adapt accordingly.
1533 2004-10-23 Andrew Cagney <cagney@gnu.org>
1535 * objfiles.h (struct objfile): Rename obj_private to
1536 deprecated_obj_private, sym_private to deprecated_sym_private, and
1537 sym_stab_info to deprecated_sym_stab_info.
1538 * gdb-stabs.h: Update.
1539 * elfread.c: Update.
1540 * dbxread.c: Update.
1541 * coffread.c: Update.
1542 * xcoffread.c: Update.
1543 * symfile.c: Update.
1544 * somread.c: Update.
1545 * nlmread.c: Update.
1546 * mdebugread.c: Update.
1548 * coffread.c: Update.
1550 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1552 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1553 * configure.host: Add mips64*-*-openbsd*.
1554 * configure.tgt: Add mips64*-*-openbsd*.
1555 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1557 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1558 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1560 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1562 * symtab.c (symbol_search_name): Minor reformatting.
1564 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1566 * symtab.h: Fix typo in comment.
1568 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1570 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1571 (dwarf_decode_line_header): Likewise.
1573 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1575 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1577 2004-10-19 Andrew Cagney <cagney@gnu.org>
1579 GDB 6.3 branch created.
1580 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1582 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1584 * dwarf2read.c (set_cu_language): Set language to Ada for
1585 DW_LANG_Ada83 and DW_LANG_Ada95.
1587 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1589 From Andreas Schwab <schwab@suse.de>:
1590 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1591 for xmalloc and xrealloc.
1593 2004-10-15 Andrew Cagney <cagney@gnu.org>
1595 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1596 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1597 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1598 Update dependencies.
1600 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1602 * ada-lang.c (ada_lookup_symbol): Correct comment.
1603 (ada_evaluate_subexp): Change error message for
1604 OP_FUNCALL case so as not to indicate an internal error.
1606 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1608 Committed by Paul Hilfinger.
1609 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1610 type sizes in XVE/XVU types, and emit a warning when that happens,
1611 instead of rounding up the size of the resulting type.
1612 Some minor reformatting.
1613 (ada_is_aligner_type): Do not consider a type as an aligner type
1614 if there is a corresponding XVS type as well.
1615 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1616 have several levels of pointer indirection to the array.
1618 2004-10-15 Jerome Guitton <guitton@gnat.com>
1620 Committed by Paul Hilfinger.
1621 * ada-lang.c (check_size): New function.
1622 (coerce_unspec_val_to_type): call check_size to make sure
1623 that the object size is reasonable.
1624 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1625 Implements the case when we get a reference when we evaluate
1626 the expression of one of the bounds of the slice.
1627 (ada_value_struct_elt): when a packed array field is
1628 a reference, use ada_coerce_ref to dereference it; use
1629 ada_value_ind only if it is a pointer.
1631 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1633 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1634 a bit to avoid the necessity of an advance declaration. Remove
1636 (set_reg_offset): Move implemenation up.
1637 (mips16_get_imm): Likewise.
1638 (mips16_scan_prologue): Likewise.
1639 (reset_saved_regs): Likewise.
1640 (mips32_scan_prologue): Likewise.
1642 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1644 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1645 Remove sp as a parameter, compute it internally instead. Move
1646 prologue scanning limit from heuristic_proc_desc to here.
1647 (mips16_scan_prologue): Likewise.
1648 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1649 by call to mips16_scan_prologue.
1650 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1651 by call to mips32_scan_prologue.
1652 (heuristic_proc_desc): Remove code that's no longer necessary.
1653 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1654 (mips_skip_prologue): Update calls to mips16_scan_prologue
1655 and mips32_scan_prologue.
1657 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1659 * mips-tdep.c (mips16_scan_prologue): Merge code from
1660 mips16_skip_prologue. Now return the address of the first
1661 instruction past the function prologue.
1662 (mips16_skip_prologue): Remove, no longer necessary.
1663 (mips_skip_prologue): Replace call to mips16_skip_prologue
1664 by call to mips16_scan_prologue.
1666 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1668 * mips-tdep.c (mips32_scan_prologue): Merge code from
1669 mips32_skip_prologue. Now return the address of the first
1670 instruction past the function prologue.
1671 (mips32_skip_prologue): Remove. No longer necessary.
1672 (mips16_skip_prologue): Add parameter end_pc instead of
1674 (mips_skip_prologue): Compute the upper limit for the
1675 prologue scanning. Update call to mips16_skip_prologue.
1676 Replace call to mips32_skip_prologue by call to
1677 mips32_scan_prologue.
1679 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1681 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1682 NetBSD system call stubs that store %rp in the ERP slot of the
1685 * source.c: Always define O_BINARY to 0 if not defined already.
1686 (openp): Unconditionally use O_BINARY.
1688 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1689 * event-top.c (gdb_readline2): Likewise.
1691 2004-10-14 Orjan Friberg <orjanf@axis.com>
1693 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1694 deprecated_add_core_fns which was removed by mistake.
1696 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1698 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1699 references to deprecated_registers[] with equivalent code.
1701 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1703 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1704 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1705 instead of explicit test and print statement.
1707 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1709 * sparc-nat.c: Include "inf-ptrace.h".
1710 (sparc_target): New function.
1711 * sparc-nat.h: Update copyright year.
1712 (sparc_target): New prototype.
1713 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1714 (_initialize_sparcnbsd_nat): Construct and add target vector.
1715 * sparc64nbsd-nat.c: Include "target.h".
1716 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1717 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1718 Update dependencies.
1719 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1720 inftarg.o, add inf-ptrace.o.
1721 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1722 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1723 (NAT_FILE): Set to nm-bsd.h.
1724 (LOADLIBES): New variable.
1725 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1726 infarg.o, add inf-ptrace.o.
1727 * config/sparc/nm-nbsdaout.h: Remove file.
1728 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1729 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1730 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1732 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1733 "fopen-same.h". Update comment.
1735 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1737 * i386gnu-nat.c: Include "gdb_string.h".
1738 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1739 registers when the floating-point state isn't initialized.
1740 * Makefile.in (i386gnu-nat.o): Update dependencies.
1742 2004-10-11 David Anderson <davea@sgi.com>
1744 * regcache.c (regcache_raw_read): Comment was missing "to".
1745 Extraneous ' removed.
1746 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1747 comment now describes use.
1749 2004-10-11 Orjan Friberg <orjanf@axis.com>
1751 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1752 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1753 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1754 (cris_sigtramp_frame_sniffer): New functions.
1755 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1756 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1757 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1758 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1759 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1761 (cris_version_update): Remove, replace with ...
1762 (set_cris_version): New function.
1763 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1764 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1765 (_initialize_cris_tdep): Remove CRIS mode command.
1766 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1767 cris-fpless-backtrace command.
1768 (cris_scan_prologue): Fix prologue scanning limit.
1769 (cris_register_type): Update to reflect actual registers.
1770 (cris_register_bytes_ok) Remove.
1771 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1772 Remove set_gdbarch_deprecated_register_size,
1773 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1775 2004-10-10 Andrew Cagney <cagney@gnu.org>
1777 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1780 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1782 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1784 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1786 * mips-tdep.c (mips16_scan_prologue): Renames
1787 mips16_heuristic_proc_desc. Update comment.
1788 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1789 (heuristic_proc_desc): Update calls to the 2 functions above.
1791 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1793 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1794 Update comments. Also immediately return empty cache when the start
1795 address of our function could not be found.
1796 (mips_insn32_frame_cache): Likewise.
1798 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1800 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1801 (mips_insn16_frame_cache): Pass frame cache in call to
1802 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1803 Remove code that became redundant as a consequence.
1804 (mips32_heuristic_proc_desc): No longer compute a fake
1805 procedure descriptor. Compute the full frame cache instead.
1806 Some minor comment reformatting.
1808 2004-10-10 Jim Blandy <jimb@redhat.com>
1810 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1811 reader, tracing bytecode stuff): Remove self.
1813 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1815 * sparc64-linux-tdep.c: Update copyright year. Don't include
1817 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1818 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1819 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1821 * sparc-linux-tdep.c: Update copyright year.
1822 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1823 to struct frame_info *. Use safe_frame_unwind_memory instead of
1824 deprecated_read_memory_nobpt.
1825 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1826 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1827 changed signature of sparc_linux_sigtramp_start.
1828 (sparc32_linux_pc_in_sigtramp): Remove function.
1829 (sparc32_linux_sigtramp_p): New function.
1830 (sparc32_linux_sigtramp_frame_sniffer): Use
1831 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1833 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1835 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1837 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1838 (decode_packed_array_type, value_subscript_packed)
1839 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1840 argument in call to lim_warning.
1842 * configure.in: Really disable the TUI if an enhanced curses
1843 library isn't found.
1844 * configure: Regenerate.
1846 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1848 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1849 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1850 * config/i386/nm-nbsdaout.h: Remove file.
1851 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1852 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1853 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1854 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1855 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1856 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1857 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1858 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1859 (ldd, ld_un, ld_2): Remove defines.
1860 * config/i386/nm-obsd.h: Likewise.
1862 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1864 * ada-lex.l: Remove useless rule whose right-context clause
1865 causes unreferenced static function warning for yyrealloc.
1866 (ada_flex_use): Remove the artificial reference to yyrealloc.
1868 2004-10-08 Andrew Cagney <cagney@gnu.org>
1870 * target.h (struct target_ops): Rename to_xfer_memory to
1871 deprecated_xfer_memory.
1873 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1875 * win32-nat.c: Update.
1876 * v850ice.c: Update.
1877 * uw-thread.c: Update.
1878 * thread-db.c: Update.
1879 * sol-thread.c: Update.
1881 * remote-vx.c: Update.
1882 * remote-st.c: Update.
1883 * remote-sim.c: Update.
1884 * remote-sds.c: Update.
1885 * remote-rdp.c: Update.
1886 * remote-rdi.c: Update.
1887 * remote-mips.c: Update.
1888 * remote-m32r-sdi.c: Update.
1889 * remote-e7000.c: Update.
1891 * ppc-bdm.c: Update.
1892 * nto-procfs.c: Update.
1893 * monitor.c: Update.
1894 * linux-nat.c: Update.
1895 * inftarg.c: Update.
1896 * hpux-thread.c: Update.
1897 * go32-nat.c: Update.
1898 * gnu-nat.c: Update.
1900 * corelow.c: Update.
1901 * bsd-kvm.c: Update.
1902 * aix-thread.c: Update.
1904 2004-10-08 Andrew Cagney <cagney@gnu.org>
1906 * target.c (debug_target): Move to near start of file.
1907 (target_stopped_data_address_p): Re-org logic, add casts.
1909 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1911 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1912 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1913 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1914 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1917 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1919 * target.h (to_stopped_data_address): Change prototype to
1920 take a CORE_ADDR pointer and return an int.
1921 * target.c (update_current_target): Change to_stopped_data_address
1922 to match new prototype.
1923 (debug_to_stopped_data_address): Change appropriately.
1924 * breakpoint.c (bpstat_stop_status): Change call to
1925 target_stopped_data_address to use new prototype.
1926 * frv-tdep.c (frv_have_stopped_data_address): New function.
1927 (frv_stopped_data_address): Change to new prototype and
1929 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1930 prototype and functionality.
1931 (ia64_stopped_by_watchpoint): New function.
1932 * i386-nat.c (i386_stopped_data_address): Change to new
1933 prototype and functionality.
1934 (i386_stopped_by_watchpoint): New function.
1935 * remote.c (remote_stopped_data_address): Change to new prototype
1937 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1938 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1939 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1940 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1941 new i386_stopped_by_watchpoint function.
1942 (i386_stopped_by_watchpoint): New prototype.
1943 (i386_stoppped_data_address): Change to new prototype.
1944 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1945 new ia64_stopped_by_watchpoint function.
1946 (ia64_stopped_by_watchpoint): New prototype.
1947 (ia64_stopped_data_address): Ditto.
1949 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1951 * ada-typeprint.c (ada_print_type): Use int_string for printing
1952 modulus of modular type.
1953 * ada-lang.h (ada_modulus): Change return type to unsigned.
1954 * ada-lang.c (ada_language_arch_info): Correct type of
1956 (ada_modulus): Return unsigned result.
1957 (ada_lookup_symbol): Remove user disambiguation and modify comment
1960 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1962 Committed by Paul Hilfinger.
1963 * ada-lang.c (decode_packed_array): On big-endian targets,
1964 left-justify the value if it comes with a modular type.
1966 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1968 Committed by Paul Hilfinger.
1969 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1970 (is_name_suffix): Add support for "___JM" suffixes.
1971 (ada_check_typedef): Renames ada_completed_type.
1972 Update all users of CHECK_TYPEDEF, check_typedef, and
1973 ada_complete_type to call ada_check_typedef.
1974 * ada-typeprint.c: Likewise.
1975 * ada-valprint.c: Likewise.
1977 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1979 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1981 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1983 * MAINTAINERS: Update e-mail address.
1985 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1987 From Maciej W. Rozycki <macro@mips.com>:
1988 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1989 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1991 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1993 * m32r-tdep.c (decode_prologue): Support functions written
1994 in assembler language. Recognize trap instructions as the
1996 (m32r_frame_unwind_cache): Ditto.
1997 (m32r_skip_prologue): Extend search limit. Quit analyzing
1998 prologue if pc's location is not readable.
2000 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2002 * Makefile.in (.l.c): Do conversions of names of alloc and free
2003 functions that are done for .y.c files, plus special one
2004 for yy_flex_realloc. Also, correct missing-file tests here.
2005 * ada-lex.l (malloc, free): Remove macros.
2006 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2008 (ada_flex_use): Dummy definition to remove warnings about unused
2010 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2011 to suppress warning.
2013 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2015 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2017 (sh_return_value_fpu): Ditto for CPUs with FPU.
2018 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2019 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2020 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2021 RETURN_VALUE functions.
2023 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2025 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2026 (sh_pseudo_register_write): Ditto.
2028 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2030 * sh-tdep.c (IS_MACL_STS): New define.
2032 (IS_MACL_LDS): Ditto.
2033 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2034 instructions in prologue.
2035 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2036 instructions in epilogue.
2038 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2040 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2041 (sh_sh_register_name): Add eight empty register names.
2042 (sh_sh3_register_name): Ditto.
2043 (sh_sh3e_register_name): Ditto.
2044 (sh_sh2e_register_name): Ditto.
2045 (sh_sh2a_register_name): New function, defining SH2A register set.
2046 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2048 (sh_sh_dsp_register_name): Add eight empty register names.
2049 (sh_sh3_dsp_register_name): Ditto.
2050 (sh_sh4_register_name): Ditto.
2051 (sh_sh4_nofpu_register_name): Ditto.
2052 (sh_sh4al_dsp_register_name): Ditto.
2053 (sh2a_show_regs): New function.
2054 (sh2a_nofpu_show_regs): New function.
2055 (sh_sh2a_register_type): New function.
2056 (do_bank_register_info): New function.
2057 (sh_print_pseudo_register): Call do_bank_register_info.
2058 Call sh_print_pseudo_register for valid "bank" register.
2059 (sh_sh2a_register_sim_regno): New function.
2060 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2061 Increment pseudo register count by one for all sh variants with
2062 pseudo registers to accomodate pseudo bank register.
2063 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2064 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2065 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2066 Increment pseudo register numbers.
2068 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2070 * dwarf2read.c (read_subroutine_type): Call make_function_type
2071 instead of lookup_function_type.
2073 2004-10-05 Jim Blandy <jimb@redhat.com>
2075 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2076 (Previous change missed some uses.)
2078 2004-10-05 Andrew Cagney <cagney@gnu.org>
2080 * target.h (deprecated_child_ops): Rename child_ops.
2081 * wince.c: Update copyright. Rename child_ops.
2082 * win32-nat.c: Rename child_ops.
2083 * target.c: Rename child_ops.
2084 * rs6000-nat.c: Rename child_ops.
2085 * linux-nat.c: Rename child_ops.
2086 * infttrace.c: Rename child_ops.
2087 * inftarg.c: Rename child_ops.
2088 * infptrace.c: Rename child_ops.
2089 * hppah-nat.c: Update copyright. Rename child_ops.
2090 * hpux-thread.c: Update copyright. Rename child_ops.
2092 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2094 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2096 2004-10-05 Andrew Cagney <cagney@gnu.org>
2098 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2100 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2102 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2103 (die_ref_table): Remove.
2104 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2105 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2106 the usage of this type.
2107 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2108 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2109 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2110 (dwarf2_create_include_psymtab): Update comment.
2111 (find_partial_die): Remove third argument. Remove unreachable call
2113 (dwarf2_find_containing_comp_unit): Update comments. Change one
2114 assertion to an error. Remove an unreachable error.
2115 (dwarf2_find_comp_unit): Update comments.
2116 (type_at_offset): Remove dead code.
2117 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2118 (store_in_ref_table): Add CU argument.
2119 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2120 inter-compilation-unit references.
2121 (load_full_comp_unit, process_full_comp_unit): New functions, based
2122 on psymtab_to_symtab_1.
2123 (psymtab_to_symtab_1): Use them.
2124 (dwarf2_add_dependence): New function.
2125 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2126 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2127 (partial_die_parent_scope, guess_structure_name): Update for changes
2128 to find_partial_die.
2129 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2130 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2131 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2132 (read_die_and_children): Update call to store_in_ref_table.
2133 (do_free_die_list_cleanup): Remove.
2134 (fixup_partial_die): Update for changes to find_partial_die.
2135 (read_full_die): Handle queueing absolute references.
2136 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2137 (dwarf2_attr, die_specification, die_type)
2138 (die_containing_type, dwarf2_extension): Update calls to
2140 (dump_die): Update DW_FORM_ref* handling.
2141 (dwarf2_get_ref_die_offset): Likewise.
2142 (free_one_comp_unit): Release the dies list.
2143 (dwarf2_mark_helper): New function.
2144 (dwarf2_mark): Use it.
2146 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2148 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2149 when writing to memory.
2151 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2153 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2154 (m32r_extract_struct_value_address): Delete function.
2155 (m32r_return_value): New function.
2156 (m32r_gdbarch_init): Instead of store_return_value,
2157 extract_return_value, deprecated_extract_struct_value_address
2158 and deprecated_use_struct_convention, set return_value.
2160 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2162 * dwarf2read.c (read_subrange_type): Add comment for variable
2165 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2167 * Makefile.in (.l.c): Modify rule for compatibility with recent
2168 versions of flex, and remove most command-line options.
2169 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2172 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2174 Turn on initial Ada support (mainly expression evaluation).
2176 * Makefile.in (SFILES): Remove ada-tasks.c.
2177 (HFILES_NO_SRCDIR): Add ada-lang.h.
2178 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2179 (YYOBJ): Add ada-exp.o.
2180 (rule .l.c): Generalize to not mention ada.
2181 * symtab.c: Include ada-lang.h.
2182 (symbol_natural_name, symbol_demangled_name)
2183 (symbol_search_name): Add Ada case.
2185 2004-10-01 Andrew Cagney <cagney@gnu.org>
2187 * Makefile.in (COMMON_OBS): Add inf-child.o.
2188 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2189 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2190 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2191 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2192 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2193 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2194 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2195 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2196 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2197 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2198 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2199 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2200 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2202 * target.c (xfer_using_stratum): Change return type to LONGEST.
2203 On each iteration offset, readbuf and writebuf.
2204 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2205 partial_length, and read/modify/write predicate, update comments.
2206 Pass buffer.word to ptrace write.
2208 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2210 * symfile.c (init_filename_language_table): Add extensions for
2212 * defs.h (enum language): Add language_ada.
2213 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2214 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2215 (add_symbols_from_enclosing_procs): Make a no-op for now.
2216 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2217 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2218 (find_line_in_linetable, find_next_line_in_linetable)
2219 (read_all_symtabs, is_plausible_func_for_line)
2220 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2221 (is_runtime_sym_defined, check_size): Remove declaration.
2222 (function_name_from_pc, ada_translate_error_message)
2223 (ada_lookup_minimal_symbol): Remove definition.
2224 (ada_add_block_symbols): Remove useless label.
2225 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2226 useless declaration.
2227 (ada_is_exception_sym): Likewise.
2229 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2231 Add m32r-linux support.
2232 * configure.tgt: Add m32r*-*-linux*.
2233 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2234 and m32r-linux-tdep.c.
2235 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2236 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2237 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2239 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2240 config/m32r/linux.mh, config/m32r/linux.mt,
2241 config/m32r/nm-linux.h: New files.
2243 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2245 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2246 (mips32_fetch_instruction): Remove, unused.
2248 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2250 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2251 conditions that will always be true.
2253 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2255 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2256 (vaxbsd_fetch_inferior_registers): Rename from
2257 fetch_inferior_registers. Make static.
2258 (vaxbsd_store_inferior_registers): Rename from
2259 store_inferior_registers. Make static.
2260 (_initialize_vaxbsd_nat): Construct and add target vector.
2261 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2262 inftarg.o. Add inf-child.o and inf-ptrace.o.
2263 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2264 inftarg.o. Add inf-child.o and inf-ptrace.o.
2266 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2267 inftarg.o. Add inf-child.o and inf-ptrace.o.
2269 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2271 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2272 (m88kbsd_fetch_inferior_registers): Rename from
2273 fetch_inferior_registers. Make static.
2274 (m88kbsd_store_inferior_registers): Rename from
2275 store_inferior_registers. Make static.
2276 (_initialize_m88kbsd_nat): New prototype and function.
2277 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2278 inftarg.o. Add inf-child.o and inf-ptrace.o.
2280 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2282 2004-09-30 Andrew Cagney <cagney@gnu.org>
2284 * target.c (target_xfer_partial): New function.
2285 (target_read_memory_partial, target_write_memory_partial)
2286 (default_xfer_partial, target_read_partial, target_write_partial)
2287 (xfer_using_stratum): Use.
2288 (debug_to_xfer_partial): Delete function.
2289 (setup_target_debug): Do not override to_xfer_partial.
2291 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2293 * fork-child.c: Update copyright year. Fix coding style.
2295 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2297 * defs.h (msavestring, mstrsave): Remove prototypes.
2298 * utils.c (msavestring, mstrsave): Remove functions.
2299 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2300 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2302 * source.c (find_and_open_source): Use xstrdup instead of
2305 2004-09-30 Andrew Cagney <cagney@gnu.org>
2307 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2308 (inf_ptrace_xfer_memory): Delete.
2309 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2310 (target_read_memory, target_write_memory): Use xfer_using_stratum
2311 when target_xfer_partial_p.
2312 (debug_target): Move to start of file.
2313 (target_read_memory_partial, target_write_memory_partial): Use
2314 to_xfer_partial when target_xfer_partial_p.
2316 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2317 inf_ptrace_xfer_memory with equivalent code.
2318 * inftarg.c (child_xfer_partial): When performing a write, pass
2319 writebuf to child_xfer_memory.
2321 * target.c (target_read_string): Use target_read_memory instead of
2324 2004-09-29 Andrew Cagney <cagney@gnu.org>
2326 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2327 the address of status.
2329 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2330 (kill_inferior): Inline ptrace_wait call.
2331 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2332 * inftarg.c (child_wait): Inline ptrace_wait call.
2334 * target.h (struct target_ops): Delete field to_post_wait.
2335 (target_post_wait): Delete macro.
2336 (child_post_wait): Delete declaration.
2337 * target.c (update_current_target, update_current_target)
2338 (debug_to_post_wait, setup_target_debug): Delete functions and
2340 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2341 * inftarg.c (child_post_wait): Delete.
2342 (init_child_ops): Do not set to_post_wait.
2343 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2344 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2345 * inf-child.c (inf_child_post_wait): Delete.
2346 (inf_child_target): Do not set to_post_wait.
2347 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2348 (inf_ptrace_target): Do not set to_post_wait.
2350 * wince.c (child_ops): Delete.
2351 * win32-nat.c (child_ops): Delete.
2353 * inftarg.c (inftarg_set_find_memory_regions)
2354 (inftarg_set_make_corefile_notes): Delete functions.
2355 (_initialize_linux_nat): Inline calls.
2357 * target.h (child_ops): Declare.
2358 * inftarg.c (child_ops): Move from here ...
2359 * target.c (child_ops): ... to here.
2360 * wince.c (child_ops): Delete extern declaration.
2361 * win32-nat.c (child_ops): Delete extern declaration.
2362 * linux-nat.c (child_ops): Delete extern declaration.
2363 * hpux-thread.c (child_ops): Delete extern declaration.
2365 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2367 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2369 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2371 * configure.in: Only set host_makefile_frag when building a native
2373 * configure: Regenerate.
2375 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2378 2004-09-28 Andrew Cagney <cagney@gnu.org>
2380 Problem identified by Paul Hilfinger.
2381 * Makefile.in (ada_lex_c): Define.
2382 (ada-lex.o): Delete rule.
2384 * linux-proc.c: Delete file.
2385 * Makefile.in: Update.
2386 * config/sparc/linux64.mh (NATDEPFILES):
2387 * config/sparc/linux.mh (NATDEPFILES): Update.
2388 * config/s390/s390.mh (NATDEPFILES): Update.
2389 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2390 * config/powerpc/linux.mh (NATDEPFILES): Update.
2391 * config/pa/linux.mh (NATDEPFILES): Update.
2392 * config/mips/linux.mh (NATDEPFILES): Update.
2393 * config/m68k/linux.mh (NATDEPFILES): Update.
2394 * config/ia64/linux.mh (NATDEPFILES): Update.
2395 * config/i386/linux64.mh (NATDEPFILES): Update.
2396 * config/i386/linux.mh (NATDEPFILES): Update.
2397 * config/arm/linux.mh (NATDEPFILES): Update.
2398 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2399 * linux-nat.c: Update copyright. Include <sys/param.h>,
2400 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2401 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2402 (O_LARGEFILE): Possibly define.
2403 (_initialize_linux_nat, linux_proc_pending_signals)
2404 (add_line_to_sigset, linux_proc_xfer_memory)
2405 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2406 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2407 (struct linux_corefile_thread_data)
2408 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2409 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2411 2004-09-16 Andrew Cagney <cagney@gnu.org>
2413 * lin-lwp.c: Delete file.
2414 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2415 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2416 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2417 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2418 (linux_nat_attach, detach_callback, linux_nat_detach)
2419 (resume_callback, resume_clear_callback, linux_nat_resume)
2420 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2421 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2422 (status_callback, running_callback, count_events_callback)
2423 (select_singlestep_lwp_callback, select_event_lwp_callback)
2424 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2425 (child_wait, stop_and_resume_callback, linux_nat_wait)
2426 (kill_callback, kill_wait_callback, linux_nat_kill)
2427 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2428 (linux_nat_xfer_memory, linux_nat_thread_alive)
2429 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2430 (_initialize_linux_nat): New functions.
2431 * Makefile.in: Update all dependencies.
2432 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2433 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2434 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2435 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2436 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2437 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2438 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2439 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2440 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2441 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2442 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2443 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2444 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2446 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2448 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2449 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2451 * configure.in: Don't comment out NATDEPFILES in the generated
2452 Makefile if NAT_FILE is unset.
2453 * configure: Regenerate.
2455 2004-09-27 Andrew Cagney <cagney@gnu.org>
2457 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2458 (insert_step_resume_breakpoint): Delete.
2459 (insert_step_resume_breakpoint_at_frame): New function.
2460 (insert_step_resume_breakpoint_at_sal): New function.
2461 (handle_inferior_event, step_into_function)
2462 (insert_step_resume_breakpoint): Simplify by using same.
2464 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2466 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2468 * fbsd-proc.c: Remove file.
2469 * Makefile.in (fbsd-proc.o): Remove dependency.
2471 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2474 * config/i386/nm-fbsd64.h: Remove file.
2475 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2477 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2479 * amd64-nat.h: Update copyright year.
2480 (amd64bsd_target): New prototype.
2481 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2482 (amd64bsd_target): New function.
2483 (amd64bsd_fetch_inferior_registers): Rename from
2484 fetch_inferior_registers. Make static.
2485 (amd64bsd_store_inferior_registers): Rename from
2486 store_inferior_registers. Make static.
2487 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2488 (_initialize_amd64fbsd_nat): Construct and add target vector.
2489 * amd64nbsd-nat.o: Include "target.h".
2490 (_initialize_amd64nbsd_nat): Construct and add target vector.
2491 * amd64obsd-nat.c: Include "target.h".
2492 (_initialize_amd64obsd_nat): Construct and add target vector.
2493 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2494 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2495 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2497 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2498 Remove infptrace.o and inftarg.o. Add inf-child.o and
2500 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2501 (amd64obsd-nat.o): Update dependencies.
2503 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2505 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2506 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2507 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2508 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2509 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2511 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2513 (inf_ptrace_detach): Inline detach call.
2515 * configure.in: Check for waddstr instead of mvwaddstr when
2516 searching for curses library. Check for wborder.
2517 * configure, config.in: Regenerate.
2518 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2521 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2523 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2525 Committed by Andrew Cagney.
2526 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2527 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2529 (fetch_register_using_p): Implement 'p' packet. Based on code by
2531 (remote_fetch_registers): Call fetch_register_using_p.
2532 (init_all_packet_configs, show_remote_cmd)
2533 (_initialize_remote): Add p-packet.
2535 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2537 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2538 instead of call_ptrace. Call wait directly instead of
2540 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2541 (inf_ptrace_wait): Inline ptrace_wait call.
2543 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2545 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2546 rolled back instead.
2548 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2550 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2551 the new argument order.
2553 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2555 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2556 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2557 (struct gdbarch_tdep): Remove.
2558 (struct xstormy16_frame_cache): New frame cache structure.
2559 (xstormy16_register_byte, xstormy16_register_raw_size)
2560 (xstormy16_reg_virtual_type, xstormy16_register_type)
2561 (xstormy16_push_arguments, xstormy16_push_return_address)
2562 (xstormy16_pop_frame, xstormy16_store_struct_return)
2563 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2564 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2565 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2566 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2567 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2568 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2569 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2570 (xstormy16_extract_return_value, xstormy16_store_return_value):
2571 Regcachify. Drop useless struct convention handling.
2572 (xstormy16_register_type, xstormy16_return_value)
2573 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2574 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2575 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2576 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2577 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2578 (xstormy16_unwind_dummy_id) : New functions.
2579 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2580 of xstormy16_scan_prologue.
2581 (xstormy16_frame_unwind): New frame_unwind structure.
2582 (xstormy16_frame_base): New frame_base structure.
2583 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2584 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2586 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2588 * language.c (language_gdbarch_post_init): Fix off-by one error.
2590 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2592 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2593 (struct dwarf2_offset_and_type): New.
2594 (set_die_type, reset_die_and_siblings_types, get_die_type)
2595 (offset_and_type_hash, offset_and_type_eq): New functions.
2596 (read_structure_type, read_enumeration_type, read_array_type)
2597 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2598 (read_tag_reference_type, read_tag_const_type)
2599 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2600 (read_typedef, read_base_type, read_subrange_type): Use
2603 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2605 * Makefile.in (dwarf2read.o): Update dependencies.
2606 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2607 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2609 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2610 mark, and has_form_ref_addr.
2611 (struct dwarf2_per_cu_data): New.
2612 (dwarf2_max_cache_age): New.
2613 (dwarf2_build_psymtabs_hard): Free cached compilation units
2614 after loading. Create and manage the list of compilation units.
2615 Remove unnecessary NULL initialization. Fix indentation.
2616 (psymtab_to_symtab_1): Initialize all of CU.
2617 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2618 (find_partial_die): Use dwarf2_find_containing_comp_unit
2620 (free_stack_comp_unit): Update comments. Clear the per-cu
2621 pointer. Handle aging.
2622 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2623 (age_cached_comp_units, free_one_cached_comp_unit)
2624 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2625 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2626 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2627 (show_dwarf2_cmd): New.
2628 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2629 and "maint show dwarf2 max-cache-age".
2630 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2632 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2635 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2637 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2638 and dwarf2_cu struct pointer as arguments. Change function to use
2639 obstack if provided and use dwarf2_cu to determine language-specific
2641 (partial_die_parent_scope): Change comment to include java. Use
2642 new version of typename_concat instead of obconcat.
2643 (partial_die_full_name): Use typename_concat.
2644 (read_namespace): Ditto.
2645 (read_enumeration_type): Use typename_concat instead of obconcat.
2646 (new_symbol): Ditto.
2647 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2648 (guess_structure_name): Ditto.
2649 (read_subroutine_type): Ditto.
2650 (read_structure_type): Ditto.
2651 (is_vtable_name): Add Java support.
2652 (determine_class_name): Switch to new typename_concat call.
2653 (determine_prefix): Switch to new typename_concat call.
2654 * jv-exp.y (FuncStart): New pattern.
2655 (MethodInvocation): Add support for simple function calls. Change
2656 warning message for other forms of inferior call currently not
2658 * valarith.c (value_subscript): Treat an array with upper-bound
2659 of -1 as unknown size.
2661 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2663 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2664 (lookup_partial_symtab): Use symtab_to_fullname.
2666 2004-09-19 Jim Blandy <jimb@redhat.com>
2668 * minsyms.c (lookup_minimal_symbol): Doc fix.
2670 2004-09-20 Andrew Cagney <cagney@gnu.org>
2672 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2674 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2675 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2677 * infptrace.c: Update.
2679 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2681 * symtab.c (output_source_filename): Mark first argument as const.
2682 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2683 for "info sources" output.
2685 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2687 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2688 <machine/vmparam.h>.
2689 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2690 (register_u_addr): Remove prototype.
2692 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2694 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2695 (i386bsd_fetch_inferior_registers): Rename from
2696 fetch_inferior_registers. Make static.
2697 (i386bsd_store_inferior_registers): Rename from
2698 store_inferior_registers. Make static.
2699 (i386bsd_target): New function.
2700 * i386bsd-nat.h: New file.
2701 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2703 (i386fbsd_resume): Rename from child_resume. Make static.
2704 (_initialize_i386fbsd_nat): Construct and add target vector.
2705 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2706 (_initialize_i386nbsd_nat): Construct and add target vector.
2707 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2709 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2710 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2711 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2712 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2713 (LOADLIBES): New variable.
2714 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2715 inf-ptrace.o. Remove inftarg.o.
2716 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2717 inf-ptrace.o. Remove inftarg.o.
2718 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2719 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2720 (LOADLIBES): New variable.
2721 * Makefile.in (i386bsd_nat_h): New variable.
2722 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2725 * sparc64nbsd-tdep.c: Include "objfiles.h".
2726 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2727 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2728 svr4_lp64_fetch_link_map_offsets.
2729 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2731 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2732 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2733 svr4_lp64_fetch_link_map_offsets.
2734 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2737 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2738 * fbsd-nat.h: New file.
2739 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2740 (fbsd_nat_h): New variable.
2741 (fbsd-nat.o): New dependency.
2743 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2744 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2746 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2749 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2751 * ada-exp.y (type_int): New function to add layer of abstraction
2752 around references to expression types.
2754 (type_long_long): Ditto.
2755 (type_float): Ditto.
2756 (type_double): Ditto.
2757 (type_long_double): Ditto.
2759 (type_system_address): Ditto.
2760 (simple_exp): Use type_* functions in place of builtin_*
2763 (write_var_from_name): Ditto.
2764 (write_object_renaming): Ditto.
2765 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2767 (build_ada_types): Remove, replacing with...
2768 (ada_language_arch_info): New function to initialize primitive
2769 type vector in language_arch_info.
2770 (ada_array_length): Remove use of builtin_type_ada_int.
2771 (value_pos_atr): Ditto.
2772 (ada_evaluate_subexp): Ditto.
2773 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2774 builtin_type_ada_long_long, builtin_type_ada_char,
2775 builtin_type_ada_float, builtin_type_ada_double,
2776 builtin_type_ada_long_double, builtin_type_ada_natural,
2777 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2778 (ada_builtin_types): Remove.
2779 (ada_language_defn): Remove entries for la_builtin_type_vector and
2780 string_char_type and use ada_language_arch_info.
2781 (_initialize_ada_language): Do type-vector initialization along
2782 the lines of c-lang.c.
2783 (ada_create_fundamental_type): Break up line.
2784 (ada_dump_symtab): Remove unused function.
2785 (enum ada_primitive_types): Define.
2786 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2787 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2788 builtin_type_ada_float, builtin_type_ada_double,
2789 builtin_type_ada_long_double, builtin_type_ada_natural,
2790 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2791 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2792 (processInt): Ditto.
2793 (processReal): Ditto.
2794 (name_lookup): Ditto.
2795 * ada-typeprint.c (print_range): Use builtin_type_int, not
2796 builtin_type_ada_int.
2798 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2800 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2802 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2803 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2804 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2805 * configure.in: Improve checks for curses library by checking for
2806 mvwaddstr instead of initscr. Drop HP curses in favour of
2807 standard curses on HP-UX.
2808 * configure: Regenerated.
2810 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2812 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2813 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2814 Minor formatting changes.
2815 (empty_array): Slight rewrite for formatting.
2816 (emit_char,parse,ada_language_defn,build_ada_types,
2817 ada_is_exception_sym, _initialize_ada_language): Move
2819 (ada_dump_symtab): Remove unused definition.
2820 (ada_maybe_exception_partial_symbol): Remove unused definition.
2822 2004-09-16 Andrew Cagney <cagney@gnu.org>
2824 * inf-child.c: Include "gdb_string.h".
2825 (inf_child_core_file_to_sym_file): Delete.
2826 (inf_child_target): Set to_fetch_registers and to_store_registers.
2827 * inf-ptrace.c: Include "gdb_string.h".
2828 * Makefile.in: Update all dependencies.
2830 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2833 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2835 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2836 call to heuristic_proc_desc. Remove code that became redundant
2838 (read_next_frame_reg): Remove special case for SP_REGNUM.
2839 (set_reg_offset): Fix small typo.
2840 (reset_saved_regs): New procedure.
2841 (mips32_heuristic_proc_desc): No longer compute a fake
2842 procedure descriptor. Compute the full frame cache instead.
2843 Some minor comment reformatting.
2845 2004-09-14 Andrew Cagney <cagney@gnu.org>
2847 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2850 * thread-db.c (thread_db_new_objfile): Assume that there is a
2853 2004-09-13 Jim Blandy <jimb@redhat.com>
2855 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2856 so that its storage isn't referenced after its lifetime ends.
2858 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2859 and never assigned to. Delete it, and the 'if (use_buffer)'
2860 clauses. Delete 'raw_buffer', since it is now unused.
2862 2004-09-13 Andrew Cagney <cagney@gnu.org>
2864 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2865 * configure: Re-generate.
2866 * nlm/Makefile.in (TAGS): Update.
2867 * Makefile.in (TAGS): Update.
2868 * config/vax/nbsd.mt (TM_FILE): Update.
2869 * config/sparc/vxworks.mt (TM_FILE): Update.
2870 * config/sparc/sol2.mt (TM_FILE): Update.
2871 * config/sparc/sol2-64.mt (TM_FILE): Update.
2872 * config/sparc/obsd64.mt (TM_FILE): Update.
2873 * config/sparc/obsd.mt (TM_FILE): Update.
2874 * config/sparc/nbsd64.mt (TM_FILE): Update.
2875 * config/sparc/nbsd.mt (TM_FILE): Update.
2876 * config/sparc/linux64.mt (TM_FILE): Update.
2877 * config/sparc/linux.mt (TM_FILE): Update.
2878 * config/sparc/fbsd.mt (TM_FILE): Update.
2879 * config/sh/wince.mt (TM_FILE): Update.
2880 * config/sh/nbsd.mt (TM_FILE): Update.
2881 * config/sh/linux.mt (TM_FILE): Update.
2882 * config/sh/embed.mt (TM_FILE): Update.
2883 * config/s390/s390.mt (TM_FILE): Update.
2884 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2885 * config/rs6000/rs6000.mt (TM_FILE): Update.
2886 * config/rs6000/aix4.mt (TM_FILE): Update.
2887 * config/powerpc/vxworks.mt (TM_FILE): Update.
2888 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2889 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2890 * config/powerpc/obsd.mt (TM_FILE): Update.
2891 * config/powerpc/nbsd.mt (TM_FILE): Update.
2892 * config/powerpc/linux.mt (TM_FILE): Update.
2893 * config/powerpc/aix.mt (TM_FILE): Update.
2894 * config/pa/obsd.mt (TM_FILE): Update.
2895 * config/pa/linux.mt (TM_FILE): Update.
2896 * config/pa/hppahpux.mt (TM_FILE): Update.
2897 * config/pa/hppa64.mt (TM_FILE): Update.
2898 * config/pa/hppa.mt (TM_FILE): Update.
2899 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2900 * config/mips/wince.mt (TM_FILE): Update.
2901 * config/mips/vxmips.mt (TM_FILE): Update.
2902 * config/mips/nbsd.mt (TM_FILE): Update.
2903 * config/mips/linux.mt (TM_FILE): Update.
2904 * config/mips/irix6.mt (TM_FILE): Update.
2905 * config/mips/irix5.mt (TM_FILE): Update.
2906 * config/mips/embed.mt (TM_FILE): Update.
2907 * config/m68k/vxworks68.mt (TM_FILE): Update.
2908 * config/m68k/st2000.mt (TM_FILE): Update.
2909 * config/m68k/os68k.mt (TM_FILE): Update.
2910 * config/m68k/obsd.mt (TM_FILE): Update.
2911 * config/m68k/nbsd.mt (TM_FILE): Update.
2912 * config/m68k/monitor.mt (TM_FILE): Update.
2913 * config/m68k/linux.mt (TM_FILE): Update.
2914 * config/m68k/cisco.mt (TM_FILE): Update.
2915 * config/ia64/linux.mt (TM_FILE): Update.
2916 * config/ia64/aix.mt (TM_FILE): Update.
2917 * config/ia64/ia64.mt (TM_FILE): Update.
2918 * config/i386/vxworks.mt (TM_FILE): Update.
2919 * config/i386/obsd64.mt (TM_FILE): Update.
2920 * config/i386/obsd.mt (TM_FILE): Update.
2921 * config/i386/nto.mt (TM_FILE): Update.
2922 * config/i386/nbsd64.mt (TM_FILE): Update.
2923 * config/i386/nbsd.mt (TM_FILE): Update.
2924 * config/i386/linux64.mt (TM_FILE): Update.
2925 * config/i386/linux.mt (TM_FILE): Update.
2926 * config/i386/i386sol2.mt (TM_FILE): Update.
2927 * config/i386/i386lynx.mt (TM_FILE): Update.
2928 * config/i386/fbsd64.mt (TM_FILE): Update.
2929 * config/i386/fbsd.mt (TM_FILE): Update.
2930 * config/i386/cygwin.mt (TM_FILE): Update.
2931 * config/h8300/h8300.mt (TM_FILE): Update.
2932 * config/frv/frv.mt (TM_FILE): Update.
2933 * config/cris/cris.mt (TM_FILE): Update.
2934 * config/arm/wince.mt (TM_FILE): Update.
2935 * config/arm/nbsd.mt (TM_FILE): Update.
2936 * config/arm/linux.mt (TM_FILE): Update.
2937 * config/arm/embed.mt (TM_FILE): Update.
2938 * config/alpha/nbsd.mt (TM_FILE): Update.
2939 * config/alpha/fbsd.mt (TM_FILE): Update.
2940 * config/alpha/alpha.mt (TM_FILE): Update.
2941 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2942 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2944 Eliminate event_loop_p, always has the value 1.
2945 * defs.h (event_loop_p): Delete macro.
2946 * breakpoint.c (until_break_command): Simplify.
2947 * utils.c (prompt_for_continue): Simplify.
2948 * tracepoint.c (read_actions): Simplify.
2949 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2950 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2951 (set_prompt, init_main): Simplify.
2952 (init_signals, disconnect): Delete, unused.
2953 * remote.c (remote_async_resume)
2954 (extended_remote_async_create_inferior): Simplify.
2955 * mi/mi-interp.c (mi_input): Delete, unused.
2956 (mi_interpreter_resume, mi_command_loop): Simplify.
2957 * interps.c (current_interp_command_loop): Simplify.
2958 * infrun.c (proceed): Simplify.
2959 * infcmd.c (run_command, continue_command, step_1, jump_command)
2960 (until_command, advance_command, finish_command)
2961 (interrupt_target_command): Simplify.
2962 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2964 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2965 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2966 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2967 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2968 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2969 * mips-tdep.c (mips_dump_tdep): Do not print same.
2971 2004-09-12 Andrew Cagney <cagney@gnu.org>
2973 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2975 * Makefile.in (valprint.o): Delete explict rule.
2977 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2978 reported by Dave Anderson.
2980 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2982 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2984 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2985 Andrew Cagney <cagney@gnu.org>
2987 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2988 (mi_cmd_data_list_register_values)
2989 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2990 the register number computation.
2992 2004-09-12 Andrew Cagney <cagney@gnu.org>
2994 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2995 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2996 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2997 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2999 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3000 inf-ptrace.o and inf-child.o.
3001 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3002 * Makefile.in: Update dependencies.
3004 2004-09-11 Andrew Cagney <cagney@gnu.org>
3006 * language.c (hex_string, hex_string_custom): Move from here ...
3007 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3008 (CELLSIZE): Increase to 50.
3009 * language.h (hex_string, hex_string_custom): Move from here ...
3010 * defs.h: ... to here.
3011 * Makefile.in: Update all dependencies.
3013 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3015 * language.c (local_hex_format_custom): Remove.
3016 (local_hex_string): Rename to hex_string, use C format, and move to
3018 (local_hex_string_custom): Rename to hex_string_custom and change
3019 interface. Now uses C format. Move to utils.c
3020 (local_octal_format_custom): Remove.
3021 (local_decimal_format_custom): Remove.
3022 (unknown_language_defn): Remove language-specific number
3024 (auto_language_defn): Ditto.
3025 (local_language_defn): Ditto.
3026 * language.h (struct language_format_info): Delete declaration.
3027 (struct language_defn): Remove language_format_info fields
3028 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3029 (local_binary_format): Remove macro.
3030 (local_binary_format_prefix): Remove macro.
3031 (local_binary_format_specifier): Remove macro.
3032 (local_binary_format_suffix): Remove macro.
3033 (local_octal_format): Remove macro.
3034 (local_octal_format_prefix): Remove macro.
3035 (local_octal_format_specifier): Remove macro.
3036 (local_octal_format_suffix): Remove macro.
3037 (local_decimal_format): Remove macro.
3038 (local_decimal_format_prefix): Remove macro.
3039 (local_decimal_format_specifier): Remove macro.
3040 (local_decimal_format_suffix): Remove macro.
3041 (local_hex_format): Remove macro.
3042 (local_hex_format_prefix): Remove macro.
3043 (local_hex_format_specifier): Remove macro.
3044 (local_hex_format_suffix): Remove macro.
3045 (local_decimal_format_custom): Remove.
3046 (local_octal_format_custom): Remove.
3047 (local_hex_format_custom): Remove.
3048 (local_hex_string): Rename to hex_string and move to defs.h.
3049 (local_hex_string_custom): Rename to hex_string_custom, change
3050 interface, and move to defs.h.
3051 * utils.c: (int_string): New function.
3052 (hex_string): New function (from language.c).
3053 (hex_string_custom): New function (from language.c).
3054 (octal2str): New function.
3055 (decimal2str): Add width parameter.
3056 (paddr_u): Use new decimal2str interface.
3058 * defs.h (hex_string): Declare.
3059 (hex_string_custom): Declare.
3060 (int_string): Declare.
3061 * printcmd.c (print_scalar_formatted): Remove localized binary
3063 * valprint.c (print_longest): Use int_string.
3064 (print_floating): Use C hex format.
3065 (print_hex_chars): Ditto.
3066 (print_binary_chars): Remove language-specific formatting.
3067 (print_octal_chars): Use C octal format.
3068 (print_decimal_chars): Delocalize format.
3069 (print_decimal): Remove.
3070 * ada-lang.c (ada_language_defn): Remove language-specific number
3072 * p-lang.c (pascal_language_defn): Ditto.
3073 * c-lang.c (c_language_defn): Ditto.
3074 (cplus_language_defn): Ditto.
3075 (asm_language_defn): Ditto.
3076 (minimal_language_defn): Ditto.
3077 * f-lang.c (f_language_defn): Ditto.
3078 * jv-lang.c (java_language_defn): Ditto.
3079 * m2-lang.c (m2_language_defn): Ditto.
3080 * scm-lang.c (scm_language_defn): Ditto.
3081 * objc-lang.c (objc_language_defn): Ditto.
3082 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3084 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3085 * ui-out.c (ui_out_field_core_addr): Ditto.
3086 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3087 * exec.c (print_section_info): Ditto.
3088 * i387-tdep.c (print_i387_status_word): Ditto.
3089 (print_i387_control_word): Ditto.
3090 (i387_print_float_info): Ditto.
3091 * maint.c (maint_print_section_info): Ditto.
3092 * solib.c (info_sharedlibrary_command): Ditto.
3093 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3094 * symtab.c (print_msymbol_info): Ditto.
3095 * tracepoint.c (tracepoints_info): Ditto.
3096 * solib-frv.c (lm_base): Ditto.
3097 (frv_current_sos): Ditto.
3098 (enable_break2): Ditto.
3099 (enable_break): Ditto.
3100 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3101 (process_one_symbol): Ditto.
3102 * infcmd.c (program_info): Ditto.
3103 * mdebugread.c (parse_partial_symbols): Ditto.
3104 * symfile.c (add_symbol_file_command): Ditto.
3105 * cli/cli-cmds.c (edit_command): Ditto.
3106 (list_command): Ditto.
3107 * infcall.c (call_function_by_hand): Ditto.
3108 * remote-vx.c (vx_run_files_info): Ditto.
3113 * aix-thread.c (pdc_symbol_addrs): Ditto.
3114 (pdc_read_regs): Ditto.
3115 (pdc_write_regs): Ditto.
3116 (pdc_read_data): Ditto.
3117 (pdc_write_data): Ditto.
3118 * d10v-tdep.c (display_trace): Ditto.
3119 * rs6000-nat.c (find_toc_address): Ditto.
3120 * aix-thread.c: Don't include language.h.
3121 * buildsym.c: Ditto.
3123 * mdebugread.c: Ditto.
3124 * rs6000-nat.c: Ditto.
3125 * buildsym.c (make_blockvector): Use renamed hex_string.
3127 2004-09-10 Jason Molenda (jmolenda@apple.com)
3129 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3130 chars after 'if' or 'while' commands in user-defined commands.
3132 2004-09-08 Jim Blandy <jimb@redhat.com>
3134 Fix bug reported and analyzed by Olivier Crete:
3135 * symfile.c (copy_section_addr_info): New function.
3136 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3137 original set of address arguments, instead of handwritten code
3138 that uses one length to allocate and a different length to
3139 initialize. Use make_cleanup_free_section_addr_info.
3140 * symfile.h (copy_section_addr_info): New declaration.
3141 * utils.c: #include "symfile.h".
3142 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3144 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3145 * Makefile.in (utils.o): Update dependencies.
3147 2004-09-08 Andrew Cagney <cagney@gnu.org>
3149 * thread-db.c (keep_thread_db): Delete.
3150 (thread_db_new_objfile, thread_db_create_inferior)
3151 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3153 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3155 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3156 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3157 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3158 (i386_frameless_signal_p): Remove prototype.
3159 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3160 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3162 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3163 instead of FP0_REGNUM.
3164 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3165 of FP0_REGNUM and FPC_REGNUM.
3167 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3168 (sunos_solib_create_inferior_hook): Don't call
3169 sunos_relocate_main_executable.
3171 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3172 solib_svr4_fetch_link_map_offsets to
3173 svr4_ilp32_fetch_link_map_offsets.
3174 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3175 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3176 svr4_ilp32_fetch_link_map_offsets.
3177 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3179 2004-09-07 Jim Blandy <jimb@redhat.com>
3181 * frame.h (frame_register): Doc fix.
3183 2004-09-07 Andrew Cagney <cagney@gnu.org>
3185 * vx-share/wait.h: Delete #ifdef USG.
3186 * utils.c (request_quit): Ditto.
3187 * tui/tui.c (tui_reset): Ditto.
3189 * remote-sds.c: Ditto.
3190 * remote-rdi.c: Ditto.
3191 * mdebugread.c: Ditto.
3192 * m68klinux-nat.c: Ditto.
3193 * infttrace.c: Ditto.
3194 * infptrace.c: Ditto.
3195 * i386v-nat.c: Ditto.
3198 * core-aout.c: Ditto.
3200 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3202 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3203 heuristic_proc_desc.
3204 (mips_insn32_frame_cache): Likewise.
3206 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3208 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3209 left behind by error.
3211 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3213 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3214 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3216 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3218 * config/rs6000/xm-aix4.h: Remove this file.
3219 * config/rs6000/aix4.mh (XM_FILE): Delete.
3221 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3223 * config/rs6000/xm-rs6000.h: Remove this file.
3224 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3226 2004-09-03 Andrew Cagney <cagney@gnu.org>
3228 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3229 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3232 * mips-tdep.c (temp_saved_regs): Delete.
3233 (set_reg_offset): Replace saved_regs parameter with this_cache.
3234 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3235 (mips32_heuristic_proc_desc): Add this_cache parameter.
3236 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3237 (after_prologue): Pass a NULL this_cache.
3239 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3240 non-kernel trap prologues.
3242 * mips-tdep.c (find_proc_desc): Delete function.
3243 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3245 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3246 mips_insn32_frame_cache.
3248 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3249 Simplify as NEXT_FRAME is NULL.
3250 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3252 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3254 (mips_skip_prologue): Update.
3256 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3257 "cur_frame" parameter.
3258 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3259 (mips_insn32_frame_cache, find_proc_desc): Update
3261 * config/vax/nm-obsd.h: Delete file.
3262 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3263 * config/vax/nm-nbsd.h: Delete file.
3264 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3265 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3266 * config/sh/nm-nbsd.h: Delete file.
3267 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3268 * config/rs6000/nm-rs6000ly.h: Delete file.
3269 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3270 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3271 * config/powerpc/nm-obsd.h: Delete file.
3272 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3273 * config/powerpc/nm-nbsd.h: Delete file.
3274 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3275 * config/pa/nm-obsd.h: Delete file.
3276 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3277 * config/mips/nm-nbsd.h: Delete file.
3278 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3279 * config/m88k/nm-obsd.h: Delete file.
3280 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3281 * config/m68k/nm-nbsd.h: Delete file.
3282 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3283 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3284 * config/i386/nm-nbsd.h: Delete file.
3285 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3286 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3287 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3288 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3289 * config/i386/nm-i386lynx.h: Delete file.
3290 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3291 * config/arm/nm-nbsd.h: Delete file.
3292 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3293 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3295 * config/i386/tm-fbsd.h: Delete file.
3296 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3297 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3299 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3300 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3301 * config/rs6000/aix4.mt (TM_FILE): Set to
3302 config/rs6000/tm-rs6000.h.
3303 * config/powerpc/tm-ppc-aix.h: Delete file.
3304 * config/powerpc/aix.mt (TM_FILE): Set to
3305 config/rs6000/tm-rs6000.h.
3306 * config/m68k/tm-linux.h: Delete file.
3307 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3308 * config/i386/tm-linux64.h: Delete file.
3309 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3310 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3312 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3313 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3314 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3315 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3316 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3317 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3318 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3319 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3320 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3322 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3325 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3327 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3328 Minor reformatting. Some code factoring.
3330 2004-09-02 Andrew Cagney <cagney@gnu.org>
3332 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3333 * config/vax/tm-nbsd.h: Delete file.
3334 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3335 * config/sparc/tm-vxworks.h: Delete file.
3336 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3337 * config/sparc/tm-nbsd.h: Delete file.
3338 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3339 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3340 * config/sparc/tm-linux.h: Delete file.
3341 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3342 * config/s390/tm-linux.h: Delete file.
3343 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3344 * config/pa/tm-bsd.h: Delete file.
3345 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3346 * config/m68k/tm-obsd.h: Delete file.
3347 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3348 * config/m68k/tm-nbsd.h: Delete file.
3349 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3350 * config/i386/tm-vxworks.h: Delete file.
3351 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3352 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3353 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3354 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3355 * config/i386/tm-nbsd.h: Delete file.
3356 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3357 * config/i386/tm-i386lynx.h: Delete file.
3358 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3359 * config/cris/tm-cris.h: Delete file.
3361 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3362 * configure: Re-generate.
3363 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3364 * config/arm/tm-nbsd.h: Delete file.
3366 * config/powerpc/tm-ppcle-sim.h: Delete.
3367 * config/powerpc/tm-ppcle-eabi.h: Delete.
3368 * config/powerpc/tm-nbsd.h: Delete.
3369 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3370 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3373 * config/i386/nto.mh (NAT_FILE): Delete.
3374 * config/i386/nm-nto.h: Delete.
3376 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3377 * config/m68k/tm-os68k.h: Ditto.
3378 * config/m68k/tm-monitor.h: Ditto.
3379 * config/m68k/tm-cisco.h: Ditto.
3380 * config/m68k/st2000.mt (TM_FILE): Delete.
3381 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3382 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3383 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3384 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3386 * config/m68k/tm-st2000.h: Delete.
3387 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3388 * config/sparc/fbsd.mt (TM_FILE): Delete.
3389 * config/sparc/tm-fbsd.h: Delete.
3391 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3392 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3393 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3395 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3396 GDB_TM_FILE and GDB_XM_FILE.
3397 * gdbarch.c: Re-generate.
3398 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3399 quotes in macro definition.
3400 * configure.in: Re-generate.
3402 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3403 validating architecture methods.
3404 * gdbarch.c: Re-generate.
3406 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3407 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3408 GDB_MULTI_ARCH_PARTIAL.
3409 * gdbarch.h: Re-generate.
3411 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3412 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3413 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3414 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3415 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3416 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3417 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3418 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3419 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3420 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3421 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3422 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3424 2004-09-01 Andrew Cagney <cagney@gnu.org>
3426 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3427 and main_func_highpc.
3428 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3429 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3430 * nlmread.c (nlm_symfile_read): Update.
3432 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3434 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3435 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3436 (find_proc_desc): Remove dead code.
3438 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3440 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3442 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3444 * observer.sh: Add struct so_list declaration.
3445 * Makefile.in: Add dependencies on observer.h for solib.c and
3447 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3449 (_initialize_breakpoint): Register
3450 disable_breakpoints_in_unloaded_shlib as an observer of the
3451 "solib unloaded" observation event.
3452 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3453 call decode_line_1 so unfound breakpoint errors are silent.
3454 * solib.c (update_solib_list): When a solib is discovered to have
3455 been unloaded by the program, notify all observers of the
3456 "solib unloaded" observation event.
3458 2004-09-01 Andrew Cagney <cagney@gnu.org>
3460 * frame.c: Include "objfiles.h".
3461 (inside_main_func): New function.
3462 (get_prev_frame): Use new inside_main_func.
3463 * Makefile.in (frame.o): Update dependencies.
3464 * defs.h (inside_main_func): Delete declaration.
3465 * blockframe.c (inside_main_func): Delete function.
3467 2004-08-31 Jim Blandy <jimb@redhat.com>
3469 * dwarf2read.c (is_vtable_name): New function, based on logic from
3470 read_structure_type, but passing the correct length to strncmp,
3471 and using 'sizeof' instead of 'strlen'.
3472 (read_structure_type): Call it.
3474 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3476 * config/powerpc/aix.mh: Add comment.
3478 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3480 * MAINTAINERS: Add self to Write-After-Approval.
3482 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3484 * MAINTAINERS: Add self to Write-After-Approval.
3486 2004-08-30 Andrew Cagney <cagney@gnu.org>
3488 Fix PR breakpoints/1757.
3489 * infrun.c (struct execution_control_state): Replace
3490 remove_breakpoints_on_following_step with
3491 step_after_step_resume_breakpoint.
3492 (init_execution_control_state): Update.
3493 (handle_inferior_event): For signals, when stepping off a
3494 breakpoint, set step_after_step_resume_breakpoint. When
3495 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3496 (keep_going): Delete code handling
3497 remove_breakpoints_on_following_step.
3499 2004-08-29 David Lecomber <david@streamline-computing.com>
3502 * language.h (enum array_ordering): New enum.
3503 * language.h (struct language_defn): New la_array_ordering
3505 * language.c (unknown_language_defn, auto_language_defn)
3506 (local_language_defn): Ditto.
3507 * ada-lang.c (ada_language_defn): Ditto.
3508 * c-lang.c (c_language_defn, cplus_language_defn)
3509 (asm_language_defn, minimal_language_defn): Ditto.
3510 * f-lang.c (f_language_defn): Ditto.
3511 * jv-lang.c (java_language_defn): Ditto.
3512 * m2-lang.c (f_language_defn): Ditto.
3513 * objc-lang.c (objc_language_defn): Ditto.
3514 * p-lang.c (pascal_language_defn): Ditto.
3515 * scm-lang.c (scm_language_defn): Ditto.
3516 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3517 oriented large to small in type structure.
3518 * dwarf2read.c (read_array_order): New function.
3519 (read_array_type): Use read_array_order to check row/column
3522 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3524 * target.c (target_resize_to_sections): Check
3525 current_target.to_sections for an old value when updating.
3527 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3529 * procfs.c (dbx_link_bpt_addr): New static global variable.
3530 (dbx_link_shadow_contents): New static global variable.
3531 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3532 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3534 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3535 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3537 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3538 after the inferior has been forked.
3539 (remove_dbx_link_breakpoint): New function.
3540 (dbx_link_addr): New function.
3541 (insert_dbx_link_bpt_in_file): New function.
3542 (insert_dbx_link_bpt_in_region): New function.
3543 (insert_dbx_link_breakpoint): New function.
3544 (proc_trace_syscalls_1): New function, extracted from
3545 proc_trace_syscalls.
3546 (proc_trace_syscalls): Replace extract code by call to
3547 proc_trace_syscalls_1.
3548 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3551 2004-08-25 Jim Blandy <jimb@redhat.com>
3553 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3555 2004-08-25 Andrew Cagney <cagney@gnu.org>
3557 * infrun.c (struct execution_control_state): Delete field
3558 "stepping_through_sigtramp".
3559 (init_execution_control_state): Do not set same.
3560 (context_switch): Do not pass same to save_infrun_state and
3562 * gdbthread.h (struct thread_info): Delete field
3563 stepping_through_sigtramp.
3564 (save_infrun_state, load_infrun_state): Delete parameter
3565 stepping_through_sigtramp.
3566 * thread.c (load_infrun_state, save_infrun_state): Update.
3568 * infrun.c: Re-indent. Move expression operators to the beginning
3569 of the line. Remove long disabled #if 0 code.
3571 2004-08-24 Andrew Cagney <cagney@gnu.org>
3573 * doublest.h (floatformat_ieee_quad): Rename
3574 floatformat_ia64_quad.
3575 * doublest.c (floatformat_ieee_quad): Rename
3576 floatformat_ia64_quad.
3577 (_initialize_doublest): Update.
3579 2004-08-24 Jim Blandy <jimb@redhat.com>
3581 * dwarf2expr.h (struct dwarf_expr_context): New members
3582 'num_pieces' and 'pieces', for returning the result of an
3583 expression that uses DW_OP_piece.
3584 (struct dwarf_expr_piece): New struct type.
3585 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3587 (free_dwarf_expr_context): Free pieces, if any.
3588 (add_piece): New function.
3589 (execute_stack_op): Implement DW_OP_piece.
3590 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3591 expression is a list of pieces, print an error message.
3592 (dwarf2_loc_desc_needs_frame): If the expression yields
3593 pieces, and any piece is in a register, then we need a frame.
3595 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3596 the stack until we've decided what sort of result the evaluation
3597 has produced. Use separate variables, with more specific names.
3599 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3601 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3602 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3603 (arm_netbsd_init_abi_common): Register them.
3605 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3607 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3609 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3610 safe_frame_unwind_memory instead of target_read_memory.
3612 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3614 (fetch_register, store_register): Remove prototypes.
3615 (child_resume): Reorganize code and comments such that it is
3616 grouped a bit more logically.
3617 (attach): Explicitly compare errno against 0.
3618 (detach): Likewise. Use perror_with_name instead of
3620 * Makefile.in (infptrace.o): Update dependencies.
3622 * ia64-linux-nat.c: Update copyright year.
3623 (fetch_debug_register, store_debug_register)
3624 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3626 * config/ia64/nm-linux.h: Update copyright year.
3627 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3629 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3630 from CORE_ADDR to struct frame_info *. Use
3631 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3632 (amd64_linux_sigtramp_p): Adjust for changed signature of
3633 and64_linux_sigtramp_start
3635 * gdb_ptrace.h: GNU/Linux.
3637 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3640 * infptrace.c: Include "gdb_assert.h".
3641 (PTRACE_XFER_TYPE): Remove define.
3642 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3643 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3645 (fetch_inferior_registers, store_inferior_registers): Remove
3646 redundant culry braces. Tweak comment. s/regno/regnum.
3647 * Makefile.in (infptrace.o): Update dependencies.
3649 * configure.in: Change test for return type of ptrace to default
3650 to `long' instead of `int'.
3651 * configure: Regenerate.
3653 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3655 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3657 * configure.in: Check for ttrace function.
3658 * configure, config.in: Regenerate.
3660 * gdb_ptrace.h: New file.
3661 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3663 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3664 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3665 (attach): Don't define PT_ATTACH.
3666 (detach): Don't define PT_DETACH.
3667 * Makefile.in (gdb_ptrace_h): New variable.
3668 (infptrace.o): Update dependencies.
3670 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3672 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3673 instead of `int' if not already defined.
3674 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3676 * infptrace.c (call_ptrace): Revert change that replaced
3677 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3679 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3681 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3684 * linux-nat.c (kill_inferior): Add missing third and fourth
3685 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3687 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3690 * proc-why.c (proc_prettyfprint_why): Fix format string.
3692 * solib-osf.c (osf_current_sos): Remove unsused label.
3694 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3696 * configure, config.in: Regenerate.
3697 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3698 <ncurses/ncurses.h>.
3700 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3701 * config/nm-nbsd.h: Update copyright year.
3702 (PTRACE_ARG3_TYPE): Remove define.
3704 * sparc-nat.c (fetch_inferior_registers)
3705 (store_inferior_registers, sparc_xfer_wcookie):
3706 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3708 * alphabsd-nat.c (fetch_inferior_registers):
3709 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3711 * amd64bsd-nat.c (fetch_inferior_registers)
3712 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3714 * armnbsd-nat.c: Update copyright year.
3715 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3716 (store_register, store_regs, store_fp_register, store_fp_regs):
3717 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3718 * hppabsd-nat.c (fetch_inferior_registers)
3719 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3721 * i386bsd-nat.c (fetch_inferior_registers)
3722 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3723 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3724 * m68kbsd-nat.c (fetch_inferior_registers)
3725 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3727 * m88kbsd-nat.c (fetch_inferior_registers)
3728 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3730 * mipsnbsd-nat.c: Update copyright year.
3731 (fetch_inferior_registers, store_inferior_registers):
3732 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3733 * ns32knbsd-nat.c: Update copyright year.
3734 (fetch_inferior_registers, store_inferior_registers):
3735 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3736 * ppcnbsd-nat.c (fetch_inferior_registers):
3737 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3739 * ppcobsd-nat.c (fetch_inferior_registers):
3740 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3742 * shnbsd-nat.c: Update copyright year.
3743 (fetch_inferior_registers, store_inferior_registers):
3744 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3745 * vaxbsd-nat.c (fetch_inferior_registers)
3746 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3749 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3751 * infptrace.c (call_ptrace, child_resume, attach, detach)
3752 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3753 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3754 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3757 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3759 * defs.h: Remove out-of-date comment.
3760 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3761 [!GETENV_PROVIDED] (getenv): Remove prototype.
3763 * standalone.c: Remove file.
3764 * Makefile.in (standalone.o): Remove dependency.
3766 * i386-linux-nat.c (dummy_sse_values): Remove function and
3768 (i386_linux_dr_get): Fix typo in comment.
3769 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3771 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3773 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3775 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3778 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3780 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3781 parenthesis in definition.
3782 * configure: Regenerated.
3784 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3786 * PROBLEMS: Mention build/1411.
3788 2004-08-09 Robert Millan <robertmh@gnu.org>
3790 Committed by Nathanael Nerode.
3791 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3792 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3794 2004-08-12 Andrew Cagney <cagney@gnu.org>
3796 * NEWS: Mention fixes in GDB 6.2.1.
3797 * PROBLEMS: Remove mention of mips-irix.
3799 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3801 * config/powerpc/xm-aix.h: Delete.
3802 * config/powerpc/aix.mh (MH_FILE): Remove.
3803 * config/powerpc/aix432.mh (MH_FILE): Remove.
3805 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3807 * config/powerpc/aix.mh: Remove obsolete comment.
3808 * config/powerpc/aix432.mh: Likewise.
3810 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3812 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3814 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3816 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3817 this file is now empty.
3818 * config/xm-aix4.h: Remove, this file is no longer included
3821 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3823 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3824 that file is now empty.
3825 (termdef): Remove prototype, function no longer used.
3827 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3829 * doc/gdbint.texinfo (Host Definition): Remove documentation
3830 for USE_O_NOCTTY, no longer used.
3831 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3832 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3834 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3836 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3837 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3838 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3840 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3842 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3843 instead of FIVE_ARG_PTRACE.
3845 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3846 (new_tty): Use O_NOCTTY unconditionally.
3848 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3850 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3851 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3854 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3856 * xcoff_symfile_finish: Replace last call to xmfree by call
3859 2004-08-10 Andrew Cagney <cagney@gnu.org>
3861 * main.c (captured_main): Delete call to init_malloc.
3862 * defs.h (init_malloc): Delete declaration.
3863 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3864 (init_malloc): Delete functions.
3866 * defs.h (xmfree): Delete.
3867 * utils.c (xmfree): Delete function.
3868 (xfree): Inline calls to xmfree and mfree.
3869 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3870 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3871 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3872 * somread.c (som_symfile_finish): Ditto.
3873 * objfiles.c (allocate_objfile, free_objfile):
3874 * nlmread.c (nlm_symfile_finish): Ditto.
3875 * hpread.c (hpread_symfile_finish): Ditto.
3876 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3877 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3878 * coffread.c (coff_symfile_finish): Ditto.
3880 * defs.h (xmcalloc): Delete declaration.
3881 * utils.c (xmcalloc): Delete.
3882 (xcalloc): Inline calls to xmcalloc and mcalloc.
3883 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3885 * symtab.c (create_demangled_names_hash): Ditto.
3887 * defs.h (xmrealloc): Delete.
3888 * utils.c (xmrealloc): Delete.
3889 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3890 * symmisc.c (extend_psymbol_list): Use xrealloc.
3891 * source.c (find_source_lines): Ditto.
3892 * hpread.c (hpread_lookup_type): Ditto.
3893 * dbxread.c (add_bincl_to_list): Ditto.
3895 * utils.c (xmmalloc): Delete.
3896 (xmalloc): Inline xmmalloc and mmalloc calls.
3897 (msavestring): Use xmalloc.
3898 * defs.h (xmmalloc): Delete declaration.
3899 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3901 * symmisc.c (extend_psymbol_list): Ditto.
3902 * symfile.c (init_psymbol_list): Ditto.
3903 * source.c (find_source_lines): Ditto.
3904 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3905 * elfread.c (elf_symtab_read): Ditto.
3906 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3907 * coffread.c (coff_symfile_init): Ditto.
3909 2004-08-10 David Carlton <carlton@bactrian.org>
3911 * MAINTAINERS: Remove David Carlton from c++ testsuite
3914 2004-08-10 Jerome Guitton <guitton@gnat.com>
3916 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3917 print a line feed before the prompt.
3919 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3921 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3923 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3925 General cleanup of the AIX xm include file:
3926 * config/xm-aix4.h (fd_set): Remove undefine.
3927 Remove include of <sys/select.h>.
3928 (HAVE_TERMIO): Remove define.
3930 (NULL): Remove redefine.
3931 (alloca): Remove #pragma.
3932 (vfork): Remove define.
3934 (SIGWINCH_HANDLER): Remove.
3935 (SIGWINCH_HANDLER_BODY): Remove.
3937 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3939 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3940 GDB_OSABI_OPENBSD_ELF.
3942 2004-08-07 Robert Millan <robertmh@gnu.org>
3944 * bsd-kvm.c: Check for nlist.h before including it.
3946 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3948 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3949 sigcontext' offset consistency checks for ancient BSD.
3951 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3953 * configure.in: Check for <sys/types.h>. Check return and
3954 argument types of ptrace.
3955 * configure, config.in: Regenerate.
3957 2004-08-09 Jim Blandy <jimb@redhat.com>
3959 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3960 rs6000_register_sim_regno): Doc fixes.
3962 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3964 * mips-tdep.c: Include "floatformat.h".
3965 (n32n64_floatformat_always_valid): New function.
3966 (floatformat_n32n64_long_double_big): New constant.
3967 (mips_gdbarch_init): Set size and format of long double
3968 for N32 and N64 ABIs.
3969 * Makefile.in (mips-tdep.o): Update dependencies.
3971 2004-08-08 Andrew Cagney <cagney@gnu.org>
3973 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3974 print. Improve script's error messages.
3975 * gdbarch.h: Re-generate.
3977 * gdbarch.sh (pformat): New function.
3978 (float_format, double_format, long_double_format): List with bit
3979 members. Use pformat when printing.
3980 * gdbarch.c, gdbarch.h: Re-generate.
3982 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3984 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3985 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3986 (ppcnbsd_supply_pcb): New function.
3987 (_initialize_ppcnbsd_nat): New prototype and function.
3988 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3989 (LOADLIBES): New variable.
3990 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3992 2004-08-08 Andrew Cagney <cagney@gnu.org>
3994 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3995 (builtin_type_ieee_double, builtin_type_ia64_quad)
3996 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3997 BE/LE floating-point types.
3998 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3999 (builtin_type_ieee_double, builtin_type_ia64_quad)
4000 (builtin_type_ia64_spill): Declare.
4001 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4002 (floatformat_ieee_double, floatformat_arm_ext)
4003 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4004 of LE/BE floatformats.
4005 * doublest.h: (struct floatformat, floatformat_ieee_single)
4006 (floatformat_ieee_double, floatformat_arm_ext)
4007 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4009 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4011 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4013 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4014 instead of regcache_raw_supply when storing the registers.
4016 * i386gnu-nat.c: Update copyright year.
4017 (gnu_store_registers): Don't use deprecated_registers and
4018 deprecated_registers_valid. Use regcache_valid_p and
4019 regcache_raw_supply instead.
4021 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4024 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4025 variables. Incapitalized "process".
4027 * configure.in: Add cursesX to the list of possible curses libs.
4028 Add cursesX.h to the list of possible curses headers.
4029 * configure, config.in: Regenerate.
4031 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4033 * configure.in: Test for struct lwp in <sys/lwp.h>.
4034 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4035 the offset of l_addr in struct lwp.
4037 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4039 * bsd-kvm.c: Include "gdbcore.h"
4040 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4042 2004-08-07 Andrew Cagney <cagney@gnu.org>
4044 * gdbtypes.c (build_flt, build_complex): New functions.
4045 (gdbtypes_post_init): Use.
4047 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4049 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4050 through to builtin_type_uint128.
4052 * c-exp.y: Use builtin_type function to obtain builtin types.
4054 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4056 * gdbtypes.c (gdbtypes_post_init): Update.
4057 (build_gdbtypes): Move initialization of builtin_type_int0
4058 through to builtin_type_uint128 from here ...
4059 (_initialize_gdbtypes): ... to here.
4060 * d10v-tdep.c (d10v_register_type): Update.
4062 * doublest.c: Update copyright.
4063 (floatformat_from_length): Call error when floatformat is NULL.
4064 (extract_floating_by_length): Remove NULL fmt check.
4065 (store_floating_by_length): Ditto.
4067 2004-08-07 Andrew Cagney <cagney@gnu.org>
4069 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4070 that the register is valid.
4072 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4074 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4075 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4076 struct frame_info *. Use safe_frame_unwind_memory instead of
4077 deprecated_read_memory_nobpt.
4078 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4079 changed signature of i386_linux_sigtramp_start and
4080 i386_linux_rt_sigtramp_start.
4082 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4083 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4084 instead of deprecated_read_memory_nobpt.
4085 (i386nbsd_sigtramp_p): Adjust for changed signature of
4086 i386nbsd_sigtramp_offset.
4088 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4089 safe_frame_unwind_memory instead of target_read_memory.
4091 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4093 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4094 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4095 (_initialize_kernel_u_addr): Remove prototype and function.
4096 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4098 * xcoffread.c: Likewise.
4100 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4102 * vax-nat.c: New file.
4103 * vaxbsd-nat.c: Tweak comment.
4104 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4106 (vax-nat.o): New dependency.
4107 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4108 (vax-*-ultrix2*): Remove.
4109 * config/vax/vax.mh: New file.
4110 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4111 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4112 (vax_register_u_addr): New prototype.
4113 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4114 * config/vax/vaxult2.mh: Remove file.
4115 * config/vax/vaxult.mh: Remove file.
4116 * config/vax/vaxbsd.mh: Remove file.
4117 * config/vax/vax.mt (TM_FILE): Remove.
4118 * config/vax/tm-vaxbsd.h: Remove file.
4120 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4122 * aix-thread.c (get_signaled_thread): New function.
4123 (iter_trap): Delete, no longer used.
4124 (iter_tid): New function.
4125 (pd_update): Find the thread that received the SIGTRAP signal
4126 by first locating the kernel thread, and then finding its
4129 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4131 * lin-lwp.c (child_wait): Continue inferior after processing
4132 PTRACE_EVENT_CLONE event.
4134 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4136 * MAINTAINERS: Add self to Write-After-Approval.
4138 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4140 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4141 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4143 2004-08-05 Andrew Cagney <cagney@gnu.org>
4145 * config/xm-sysv4.h: Delete file.
4146 * config/mips/xm-irix5.h: Delete file.
4147 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4148 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4149 * config/ia64/xm-aix.h: Delete file.
4150 * config/ia64/aix.mh (XM_FILE): Delete.
4151 * config/pa/xm-hppah.h: Delete file.
4152 * config/pa/hpux11w.mh (XM_FILE): Delete.
4153 * config/pa/hpux11.mh (XM_FILE): Delete.
4154 * config/pa/hpux1020.mh (XM_FILE): Delete.
4155 * config/pa/hppahpux.mh (XM_FILE): Delete.
4157 * config/alpha/xm-alphalinux.h: Delete file.
4158 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4159 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4160 * config/alpha/xm-alphaosf.h: Delete file.
4161 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4162 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4163 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4164 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4166 * config/i386/xm-i386v.h: Delete file.
4167 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4168 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4169 * config/i386/xm-i386sco.h: Delete file.
4170 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4171 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4172 * config/i386/xm-i386v4.h: Delete file.
4173 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4174 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4175 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4176 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4178 * config/vax/xm-vax.h: Delete file.
4179 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4180 * config/vax/xm-vaxult2.h: Delete file.
4181 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4182 * config/vax/vaxult2.mh (XM_FILE): Delete.
4183 * config/vax/xm-vaxult.h: Delete file.
4184 * config/vax/vaxult.mh (XM_FILE): Delete.
4185 * config/vax/xm-vaxbsd.h: Delete file.
4186 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4188 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4189 * gdbarch.h, gdbarch.c: Re-generate.
4190 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4191 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4192 * frame.h: Delete deprecated_read_fp from comments.
4193 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4194 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4196 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4198 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4199 trampoline in OpenBSD 3.5-current.
4201 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4204 * Makefile.in: Remove embedded page breaks.
4206 2004-08-04 Jim Blandy <jimb@redhat.com>
4208 * regcache.c (regcache_raw_read): Assert that, after calling
4209 target_fetch_registers, the register we're reading is cached.
4211 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4212 a call to 'internal_error', with a more helpful error message.
4213 * rs6000-tdep.c (e500_pseudo_register_read,
4214 e500_pseudo_register_write, rs6000_store_return_value): Same.
4216 2004-08-04 Andrew Cagney <cagney@gnu.org>
4218 * Makefile.in: Update dependencies.
4220 2004-08-04 Jim Blandy <jimb@redhat.com>
4222 Change the layout of the PowerPC E500 raw register cache to allow
4223 the lower 32-bit halves of the GPRS to be their own raw registers,
4224 not pseudoregisters.
4225 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4226 add ppc_ev0_upper_regnum flag.
4227 * rs6000-tdep.c: #include "reggroups.h".
4228 (spe_register_p): Recognize the ev upper half registers as SPE
4230 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4232 (e500_move_ev_register): New function.
4233 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4234 vector registers are the pseudo-registers now, formed by splicing
4235 together the gprs and the upper-half registers.
4236 (e500_register_reggroup_p): New function.
4238 (P8, A4): New macro.
4239 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4240 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4242 (registers_e500): Rearrange register set so that the raw register
4243 set contains 32-bit GPRs and upper-half registers, and the SPE
4244 vector registers become pseudo-registers.
4245 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4246 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4247 register numbers are now the same for the E500 as they are for
4248 other PowerPC variants. Register e500_register_reggroup_p as the
4249 register group function for the E500.
4250 * Makefile.in (rs6000-tdep.o): Update dependencies.
4252 Adapt PPC E500 native support to the new raw regcache layout.
4253 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4254 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4255 (fetch_spe_register, store_spe_register): Handle fetching/storing
4256 all the SPE registers at once, if regno == -1. These now take
4257 over the job of fetch_spe_registers and store_spe_registers.
4258 (fetch_spe_registers, store_spe_registers): Deleted.
4259 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4260 unconditionally; they're always raw. Fetch/store SPE upper half
4261 registers, if present, instead of ev registers.
4262 (fetch_register, store_register): Remove sanity checks: gprs are
4263 never pseudo-registers now, so we never need to even mention any
4264 registers that are ever pseudoregisters.
4266 Use a fixed register numbering when communicating with the PowerPC
4268 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4269 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4270 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4272 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4273 init_sim_regno_table.
4274 * Makefile.in (gdb_sim_ppc_h): New variable.
4275 (rs6000-tdep.o): Update dependencies.
4277 2004-08-02 Andrew Cagney <cagney@gnu.org>
4279 * cris-tdep.c (cris_register_size): Restore function, still used
4282 * gdbarch.sh (deprecated_target_read_fp)
4283 (deprecated_frame_locals_address, deprecated_frame_args_address)
4284 (deprecated_frame_chain_valid, deprecated_frame_chain)
4285 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4286 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4287 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4288 * gdbarch.h, gdbarch.c: Re-generate.
4289 * regcache.c (deprecated_read_fp): Do not call
4290 DEPRECATED_TARGET_READ_FP_P.
4291 * infcmd.c (default_print_registers_info): Do not call
4292 DEPRECATED_DO_REGISTERS_INFO.
4293 * frame-base.c (default_frame_locals_address): Do not call
4294 DEPRECATED_FRAME_LOCALS_ADDRESS.
4295 (default_frame_args_address): Do not call
4296 DEPRECATED_FRAME_ARGS_ADDRESS.
4298 * gdbarch.sh (deprecated_register_raw_size)
4299 (deprecated_register_virtual_size:int): Delete.
4300 * gdbarch.h, gdbarch.c: Re-generate.
4301 * cris-tdep.c (cris_register_size): Delete.
4302 (cris_gdbarch_init): Update.
4303 * alpha-tdep.c (alpha_register_raw_size)
4304 (alpha_register_virtual_size): Delete.
4305 (alpha_gdbarch_init): Update.
4307 * gdbarch.sh (deprecated_register_virtual_type)
4308 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4309 (deprecated_dummy_write_sp): Delete.
4310 * gdbarch.h, gdbarch.c: Re-generate.
4312 * gdbarch.sh (deprecated_register_bytes): Delete.
4313 * gdbarch.h, gdbarch.c: Re-generate.
4314 * regcache.c (deprecated_register_bytes): New function.
4315 * regcache.h (deprecated_register_bytes): Declare.
4316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4317 * v850-tdep.c (v850_gdbarch_init): Update.
4318 * sh64-tdep.c (sh64_gdbarch_init): Update.
4319 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4320 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4321 * mcore-tdep.c (mcore_gdbarch_init): Update.
4322 * cris-tdep.c (cris_gdbarch_init): Update.
4323 * arm-tdep.c (arm_gdbarch_init): Update.
4324 * remote.c (init_remote_state): Update.
4325 * remote-vx.c (vx_prepare_to_store): Update.
4326 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4327 * irix5-nat.c (fetch_core_registers): Update.
4328 * cris-tdep.c (cris_register_bytes_ok): Update.
4329 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4331 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4332 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4333 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4334 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4335 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4336 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4337 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4338 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4339 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4340 with mips_insn16 and mips_insn32.
4342 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4343 * rs6000-tdep.c (rs6000_push_dummy_call)
4344 (rs6000_extract_return_value): Use register_size.
4345 * xstormy16-tdep.c (xstormy16_get_saved_register)
4346 (xstormy16_extract_return_value): Ditto.
4347 * valops.c (value_assign): Ditto.
4348 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4349 * v850-tdep.c (v850_extract_return_value): Ditto.
4350 * tracepoint.c (collect_symbol): Ditto.
4351 * target.c (debug_print_register): Ditto.
4352 * stack.c (frame_info): Ditto.
4353 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4354 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4355 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4356 (store_register_using_P): Ditto.
4357 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4358 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4359 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4360 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4361 * regcache.c (deprecated_read_register_bytes)
4362 (deprecated_write_register_bytes, read_register)
4363 (write_register): Ditto.
4364 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4365 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4366 * monitor.c (monitor_supply_register, monitor_fetch_register)
4367 (monitor_store_register): Ditto.
4368 * mn10300-tdep.c (mn10300_pop_frame_regular)
4369 (mn10300_print_register): Ditto.
4370 * mipsv4-nat.c (fill_fpregset): Ditto.
4371 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4372 (mips64_fill_fpregset): Ditto.
4373 * mi/mi-main.c (register_changed_p, get_register)
4374 (mi_cmd_data_write_register_values): Ditto.
4375 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4376 * irix5-nat.c (fill_gregset, fetch_core_registers):
4377 * infrun.c (write_inferior_status_register): Ditto.
4378 * infptrace.c (fetch_register, store_register): Ditto.
4379 * infcmd.c (default_print_registers_info): Ditto.
4380 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4381 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4382 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4383 * hpux-thread.c (hpux_thread_fetch_registers)
4384 (hpux_thread_store_registers): Ditto.
4385 * hppah-nat.c (store_inferior_registers, fetch_register):
4386 * findvar.c (value_from_register): Ditto.
4387 * dve3900-rom.c (fetch_bitmapped_register):
4388 * cris-tdep.c (cris_gdbarch_init): Ditto.
4389 * alpha-tdep.h: Ditto.
4390 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4392 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4393 DEPRECATED_REGISTER_RAW_SIZE from comments.
4394 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4395 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4396 DEPRECATED_REGISTER_RAW_SIZE.
4397 * findvar.c (value_of_register): Simplify by assuming that the
4398 registers raw and virtual sizes are identical.
4399 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4401 * arch-utils.c (generic_register_size): Simplify by assuming
4404 * regcache.c (legacy_read_register_gen, real_register)
4405 (legacy_write_register_gen): Delete, not used.
4407 * regcache.c (struct regcache_descr): Delete legacy_p.
4408 (init_legacy_regcache_descr): Delete function.
4409 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4410 Do not use deprecated register functions.
4411 (regcache_raw_read, deprecated_write_register_gen):
4412 (deprecated_read_register_gen, regcache_raw_write): Delete code
4413 predicated on legacy_p.
4414 (register_size): Delete check against register raw size.
4416 * cris-tdep.c (cris_register_type): Replace
4417 cris_register_virtual_type.
4418 (cris_gdbarch_init): Update, set register_type.
4420 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4421 * gdbarch.h, gdbarch.c: Re-generate.
4422 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4423 (arm_gdbarch_init) Do not set frameless function invocation.
4424 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4425 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4426 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4427 (frv_gdbarch_init): Do not set frameless function invocation.
4428 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4429 * sh-tdep.c (sh_gdbarch_init): Ditto.
4430 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4431 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4432 * avr-tdep.c (avr_gdbarch_init): Ditto.
4434 * blockframe.c (legacy_frame_chain_valid): Delete function.
4436 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4437 and pc. Update comments.
4438 (pc_in_dummy_frame): Delete function.
4439 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4441 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4442 call_hi, top and pc, use the id.
4443 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4445 * dummy-frame.c: Include "gdb_string.h".
4446 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4447 (generic_save_dummy_frame_tos): Delete.
4448 (dummy_frame_push): New function, replaces above.
4449 * dummy-frame.h: Update copyright.
4450 (dummy_frame_push): Declare.
4451 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4452 (generic_save_call_dummy_addr): Delete declarations.
4453 * infcall.c: Include "dummy-frame.h".
4454 (call_function_by_hand): Add locals caller_regcache,
4455 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4456 with call to frame_save_as_regcache plus cleanup. Delete calls to
4457 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4458 Move clear_proceed_status to just before the resume, add call to
4459 dummy_frame_push (discard cleanup).
4460 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4461 (dummy-frame.o): Add $(gdb_string_h).
4463 2004-08-01 Andrew Cagney <cagney@gnu.org>
4465 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4466 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4467 * dummy-frame.c (find_dummy_frame): Delete.
4468 (struct dummy_frame_cache, dummy_frame_sniffer)
4469 (dummy_frame_prev_register, dummy_frame_this_id)
4470 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4471 frame unwinder using a dummy_frame_cache.
4473 2004-08-01 Andrew Cagney <cagney@gnu.org>
4475 * frame.h (frame_save_as_regcache): Declare.
4476 * frame.c (frame_save_as_regcache): New function.
4477 (do_frame_read_register): Replace do_frame_unwind_register.
4478 (frame_pop): Use frame_save_as_regcache.
4479 * dummy-frame.c (generic_push_dummy_frame): Use
4480 frame_save_as_regcache.
4482 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4484 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4485 file as included until we record the first line in the linetable.
4487 2004-08-01 Andrew Cagney <cagney@gnu.org>
4489 * frame.h (deprecated_pop_dummy_frame)
4490 (deprecated_read_register_dummy)
4491 (deprecated_generic_find_dummy_frame): Delete.
4492 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4493 (deprecated_read_register_dummy)
4494 (deprecated_find_dummy_frame_regcache)
4495 (discard_innermost_dummy)
4496 (deprecated_pop_dummy_frame): Delete.
4497 (dummy_frame_this_id): Simplify.
4498 (struct dummy_frame): Delete "fp" and "sp".
4499 (find_dummy_frame): Simplify.
4500 (generic_push_dummy_frame): Do not set "fp" or "sp".
4501 (fprint_dummy_frames): Do not print "fp" and "sp"
4503 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4505 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4506 (struct i386_insn): New structure.
4507 (i386_match_insn): New function.
4508 (i386_frame_setup_skip_insns): New variable.
4509 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4510 array i386_frame_setup_insns of instructions that should be
4511 skipped inside the frame setup sequence.
4513 2004-08-01 Andrew Cagney <cagney@gnu.org>
4515 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4516 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4517 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4518 * stack.c (frame_info): Delete references to
4519 DEPRECATED_FRAME_INIT_SAVED_REGS and
4520 deprecated_get_frame_saved_regs.
4521 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4522 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4523 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4524 (frame_unwind_register_signed)
4525 (frame_unwind_register_unsigned)
4526 (frame_unwind_unsigned_register): Use register_size.
4527 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4528 (deprecated_frame_xmalloc_with_cleanup)
4529 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4530 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4532 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4533 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4534 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4535 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4537 * infcall.c (call_function_by_hand): Do not use
4538 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4539 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4540 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4541 DEPRECATED_STACK_ALIGN.
4543 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4545 Committed by Andrew Cagney.
4546 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4548 2004-08-01 Andrew Cagney <cagney@gnu.org>
4550 * mips-tdep.c (mips16_frame_cache)
4551 (mips16_frame_this_id, mips16_frame_prev_register)
4552 (mips16_frame_unwind, mips16_frame_sniffer)
4553 (mips16_frame_base_address, mips16_frame_base)
4554 (mips16_frame_base_sniffer, mips32_frame_cache)
4555 (mips32_frame_this_id, mips32_frame_prev_register)
4556 (mips32_frame_unwind, mips32_frame_sniffer)
4557 (mips32_frame_base_address, mips32_frame_base)
4558 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4559 separate heuristic mips16 and mips32 unwinders.
4560 (mips_stub_frame_cache, mips_stub_frame_this_id)
4561 (mips_stub_frame_prev_register)
4562 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4563 (mips_stub_frame_base_address, mips_stub_frame_base)
4564 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4565 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4566 match true mdebug frames.
4567 (non_heuristic_proc_desc): Add forward declaration.
4569 2004-08-01 Andrew Cagney <cagney@gnu.org>
4571 * config/mips/tm-irix6.h: Delete file.
4572 * config/mips/tm-irix5.h: Delete file.
4573 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4574 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4576 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4577 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4578 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4579 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4580 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4581 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4582 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4583 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4584 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4585 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4586 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4587 (TARGET_SIGNAL_RAW_VALUES): Delete.
4588 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4590 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4591 (TARGET_HW_WATCH_LIMIT): Delete.
4592 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4593 * minimon.h: Delete file.
4595 * trad-frame.c (trad_frame_get_this_base)
4596 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4598 * trad-frame.h (trad_frame_set_this_base)
4599 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4601 2004-07-31 Andrew Cagney <cagney@gnu.org>
4603 * trad-frame.c (trad_frame_get_prev_register): Rename
4604 trad_frame_get_prev_register.
4605 * vax-tdep.c (vax_frame_prev_register): Update.
4606 * trad-frame.h: Update.
4607 * trad-frame.c (trad_frame_get_register): Update.
4608 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4609 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4611 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4612 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4614 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4616 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4618 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4620 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4622 * s390-tdep.c (s390_frame_prev_register)
4623 (s390_stub_frame_prev_register)
4624 (s390_sigtramp_frame_prev_register): Update.
4625 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4626 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4627 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4628 * m88k-tdep.c (m88k_frame_prev_register)
4629 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4630 * m32r-tdep.c (m32r_frame_prev_register): Update.
4631 * hppa-tdep.c (hppa_frame_prev_register_helper)
4632 * frv-tdep.c (frv_frame_prev_register): Update.
4633 * d10v-tdep.c (d10v_frame_prev_register): Update.
4634 * cris-tdep.c (cris_frame_prev_register): Update.
4635 * avr-tdep.c (avr_frame_prev_register): Update.
4636 * arm-tdep.c (arm_prologue_prev_register)
4637 (arm_sigtramp_prev_register): Update.
4639 2004-07-31 Andrew Cagney <cagney@gnu.org>
4641 * frame.h (legacy_saved_regs_unwind)
4642 (legacy_frame_chain_valid, legacy_frame_p)
4643 (enum frame_type): Delete UNKNOWN_FRAME.
4644 * dummy-frame.c (dummy_frame_this_id): Simplify.
4645 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4646 * frame.c (struct frame_info): Delete the field "type".
4647 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4648 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4649 (legacy_saved_regs_unwind, legacy_frame_p)
4650 (frame_type_from_pc): Delete.
4651 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4652 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4654 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4656 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4659 * mips-nat.c: Remove file.
4660 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4661 (mips-nat.o): Remove dependency.
4663 * infptrace.c: Update copyright year.
4664 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4665 explicitly setting the buffer to all zeroes.
4667 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4668 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4670 2004-07-30 Andrew Cagney <cagney@gnu.org>
4672 * GDB 6.2 released from gdb_6_2-branch.
4674 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4676 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4678 * exec.c (exec_file_attach):
4679 * nto-tdep.c (nto_find_and_open_solib):
4680 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4681 * solib.c (solib_open):
4682 * somsolib.c (som_solib_sizeof_symbol_table):
4683 * source.c (is_regular_file, openp, open_source_file):
4684 * symfile.c (symfile_bfd_open):
4685 * wince.c (upload_to_device): Differentiate between the search for
4686 binary and source files.
4688 2004-07-30 Andrew Cagney <cagney@gnu.org>
4690 * complaints.c (_initialize_complaints): Pass NULL to
4691 add_setshow_zinteger_cmd for help_doc.
4692 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4694 2004-07-30 Andrew Cagney <cagney@gnu.org>
4697 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4698 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4699 $(PACKAGE).pot and update-po.
4700 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4701 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4702 (update-po): New rules.
4703 (localedir): Define using autoconf.
4704 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4705 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4706 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4707 * configure.in: Generate CATALOGS and LINGUAS from contents of
4708 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4709 * configure: Re-generate.
4710 * po/gdbtext: New file
4712 2004-07-30 Jerome Guitton <guitton@gnat.com>
4714 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4717 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4719 * dwarf2read.c (read_file_scope): Set producer if attribute
4721 (struct dwarf2_cu): Added new member producer.
4723 2004-07-30 Jerome Guitton <guitton@gnat.com>
4725 * inflow.c (kill_command): release file handles in BFD.
4726 * exec.c (exec_file_attach): Ditto.
4727 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4729 2004-07-29 Andrew Cagney <cagney@gnu.org>
4731 * PROBLEMS (mips-irix): Note that it is broken.
4733 2004-07-29 Andrew Cagney <cagney@gnu.org>
4735 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4736 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4738 * config/xm-nbsd.h: Delete file.
4739 * config/arm/xm-nbsd.h: Delete file.
4740 * config/i386/xm-nbsd.h: Delete file.
4741 * config/ns32k/xm-nbsd.h: Delete file.
4742 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4743 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4744 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4745 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4746 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4748 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4749 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4750 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4751 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4752 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4753 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4755 * config/powerpc/xm-linux.h: Delete empty file.
4756 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4757 * config/powerpc/linux.mh (XM_FILE): Delete.
4758 * config/m68k/xm-linux.h: Delete empty file.
4759 * config/m68k/linux.mh (XM_FILE): Delete.
4760 * config/ia64/xm-linux.h: Delete empty file.
4761 * config/ia64/linux.mh (XM_FILE): Delete.
4762 * config/arm/xm-linux.h: Delete empty file.
4763 * config/arm/linux.mh (XM_FILE): Delete.
4765 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4766 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4767 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4768 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4769 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4770 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4771 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4772 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4774 * config/m68k/xm-m68k.h: Delete file.
4775 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4777 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4778 * config/pa/xm-linux.h: Delete empty file.
4779 * config/pa/linux.mh (XM_FILE): Delete.
4780 * config/i386/xm-i386.h: Delete empty file.
4781 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4783 * config/i386/obsdaout.mh (XM_FILE): Delete.
4784 * config/i386/obsd64.mh (XM_FILE): Delete.
4785 * config/i386/fbsd64.mh (XM_FILE): Delete.
4786 * config/i386/nto.mh (XM_FILE): Delete.
4787 * config/i386/obsd.mh (XM_FILE): Delete.
4788 * config/i386/linux64.mh (XM_FILE): Delete.
4789 * config/i386/linux.mh (XM_FILE): Delete.
4790 * config/i386/i386sol2.mh (XM_FILE): Delete.
4791 * config/i386/i386gnu.mh (XM_FILE): Delete.
4792 * config/i386/fbsd.mh (XM_FILE): Delete.
4793 * config/i386/nbsd64.mh (XM_FILE): Delete.
4795 2004-07-29 Andrew Cagney <cagney@gnu.org>
4797 * config/pa/xm-linux.h: Do not include "floatformat.h".
4798 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4799 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4800 * config/i386/xm-i386.h: Do not include "floatformat.h".
4801 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4802 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4803 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4804 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4805 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4806 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4807 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4808 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4809 * configure, config.in: Regenerate.
4810 * configure.host (gdb_host_float_format, gdb_host_double_format)
4811 (gdb_host_long_double_format): Set according to the host.
4813 2004-07-29 Andrew Cagney <cagney@gnu.org>
4815 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4817 2004-07-28 Andrew Cagney <cagney@gnu.org>
4819 * PROBLEMS: Mention threads/1650.
4820 * NEWS: Mention the NPTL fix.
4822 2004-07-28 Andrew Cagney <cagney@gnu.org>
4824 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4825 (add_setshow_cmd_full): Make static.
4826 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4827 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4828 * cli/cli-decode.c (add_setshow_filename_cmd)
4829 (add_setshow_string_cmd): New functions.
4830 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4831 * mips-tdep.c (_initialize_mips_tdep): Update.
4832 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4833 * cli/cli-logging.c (_initialize_cli_logging): Update.
4834 * complaints.c (_initialize_complaints): Update.
4835 * remote.c (_initialize_remote): Update.
4837 2004-07-28 Andrew Cagney <cagney@gnu.org>
4839 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4840 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4841 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4842 print parameters. Make string parameters constant.
4843 * command.h: Update. Update copyright.
4844 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4845 * observer.c (_initialize_observer): Ditto.
4846 * frame.c (_initialize_frame): Ditto.
4847 * complaints.c (_initialize_complaints): Ditto.
4848 * maint.c (_initialize_maint_cmds): Ditto.
4849 * target.c (initialize_targets): Ditto.
4850 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4851 * infcall.c (_initialize_infcall): Ditto.
4852 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4853 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4854 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4855 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4856 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4858 2004-07-28 Andrew Cagney <cagney@gnu.org>
4860 * gdbtypes.c (lookup_primitive_typename): Delete function.
4861 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4862 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4863 * gdbtypes.c (lookup_typename): Ditto.
4864 * f-exp.y (yylex): Ditto.
4865 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4867 * scm-lang.c (c_builtin_types): Delete extern declaration.
4868 (scm_language_defn): Replace
4869 string_char_type and primitive_type_vector with
4870 la_language_arch_info.
4871 * jv-lang.c (java_language_defn): Replace
4872 string_char_type and primitive_type_vector with
4873 la_language_arch_info.
4874 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4875 c_builtin_types in comment.
4876 * c-lang.h (struct language_arch_info): Declare opaque.
4877 (c_language_arch_info): Declare.
4878 (c_builtin_types): Delete declaration.
4879 * c-lang.c (c_language_arch_info): Set string_char_type to
4880 builtin_char, not builtin_true_char. Make global.
4881 (c_builtin_types): Delete array.
4882 (asm_language_defn, minimal_language_defn): Replace
4883 string_char_type and primitive_type_vector with
4884 la_language_arch_info.
4886 2004-07-28 Andrew Cagney <cagney@gnu.org>
4888 * gdbtypes.h (struct builtin_type): Rename true_char to
4890 * gdbtypes.c (gdbtypes_post_init): Update.
4891 * c-lang.c (arch_info): New function.
4892 (enum c_primitive_types): New enum.
4893 (c_language_defn): Instead of string_char_type and
4894 primitive_type_vector set la_language_arch_info.
4896 2004-07-28 Andrew Cagney <cagney@gnu.org>
4898 * language.h (struct language_arch_info): Fix typo
4899 s/primative/primitive/.
4900 * gdbtypes.c (lookup_primitive_typename): Ditto.
4901 * language.c (language_lookup_primitive_type_by_name)
4902 (unknown_language_arch_info): Ditto.
4904 2004-07-27 Andrew Cagney <cagney@gnu.org>
4906 * defs.h (enum language): Add nr_languages.
4907 * language.h (struct language_arch_info): Define.
4908 (struct language_defn): Add la_language_arch_info.
4909 (language_lookup_primative_type_by_name): Declare.
4910 (language_string_char_type): Declare.
4911 * language.c (_initialize_language, language_gdbarch_post_init)
4912 (struct language_gdbarch, language_gdbarch_data): Implement
4913 per-architecture language information.
4914 (unknown_language_arch_info, language_string_char_type)
4915 (language_lookup_primative_type_by_name): New functions.
4916 (unknown_language_defn, auto_language_defn)
4917 (local_language_defn): Set la_language_arch_info to
4918 unknown_language_arch_info.
4919 (unknown_builtin_types): Delete.
4920 * gdbtypes.c (lookup_primitive_typename): Use
4921 language_lookup_primative_type_by_name.
4922 (create_string_type): Use language_string_char_type.
4923 * values.c (value_from_string): Use language_string_char_type.
4924 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4925 * p-lang.c (pascal_language_defn): Ditto.
4926 * m2-lang.c (m2_language_defn): Ditto.
4927 * jv-lang.c (java_language_defn): Ditto.
4928 * objc-lang.c (objc_language_defn): Ditto.
4929 * f-lang.c (f_language_defn): Ditto.
4930 * c-lang.c (c_language_defn, cplus_language_defn)
4931 (asm_language_defn, minimal_language_defn): Ditto.
4933 2004-07-27 Andrew Cagney <cagney@gnu.org>
4935 * gdbtypes.h (struct builtin_type): Declare.
4936 (builtin_type): Declare.
4937 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4938 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4939 (gdbtypes_post_init): New function.
4940 (builtin_type): New function.
4942 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4944 * remote-m32r-sdi.c: Fix breakpoint bug.
4945 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4946 recv_char_data, recv_long_data): New functions to replace communication
4949 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4951 Document PR threads/1650.
4952 * PROBLEMS (Threads): Document problem with many threads
4954 2004-07-26 Andrew Cagney <cagney@gnu.org>
4956 * gdb-mi.el: Move from here ...
4957 * mi/gdb-mi.el: ... to here.
4959 2004-07-26 Andrew Cagney <cagney@gnu.org>
4961 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4962 * main.c (captured_main): When in batch mode always detach.
4964 2004-07-26 Andrew Cagney <cagney@gnu.org>
4966 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4967 and h8300 as broken.
4968 * NEWS: END-OF-LIFE frame compatibility module.
4969 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4972 2004-07-26 Andrew Cagney <cagney@gnu.org>
4974 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4975 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4976 * wince.c (_initialize_wince): Update.
4977 * win32-nat.c (_initialize_win32_nat): Update.
4978 * varobj.c (_initialize_varobj): Update.
4979 * valops.c (_initialize_valops): Update.
4980 * utils.c (initialize_utils, initialize_utils): Update.
4981 * tui/tui-win.c (_initialize_tui_win): Update.
4982 * top.c (init_main): Update.
4983 * symfile.c (_initialize_symfile): Update.
4984 * source.c (_initialize_source): Update.
4985 * somsolib.c (_initialize_som_solib): Update.
4986 * solib.c (_initialize_solib): Update.
4987 * solib-frv.c (_initialize_frv_solib): Update.
4988 * serial.c (_initialize_serial): Update.
4989 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4990 * remote.c (_initialize_remote, _initialize_remote): Update.
4991 * remote-vx.c (_initialize_vx): Update.
4992 * remote-utils.c (_initialize_sr_support): Update.
4993 * remote-sds.c (_initialize_remote_sds): Update.
4994 * remote-mips.c (_initialize_remote_mips): Update.
4995 * remote-e7000.c (_initialize_remote_e7000): Update.
4996 * proc-api.c (_initialize_proc_api): Update.
4997 * printcmd.c: Update.
4998 * parse.c (_initialize_parse): Update.
4999 * pa64solib.c (_initialize_pa64_solib): Update.
5000 * p-valprint.c (_initialize_pascal_valprint): Update.
5001 * monitor.c (_initialize_remote_monitors): Update.
5002 * mips-tdep.c (_initialize_mips_tdep): Update.
5003 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5004 * maint.c (_initialize_maint_cmds): Update.
5005 * lin-lwp.c (_initialize_lin_lwp): Update.
5006 * language.c (_initialize_language): Update.
5007 * kod.c (_initialize_kod): Update.
5008 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5009 * i386-tdep.c (_initialize_i386_tdep): Update.
5010 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5011 * gdbarch.sh: Update.
5012 * gdbarch.c: Re-generate.
5013 * gdb-events.sh: Update.
5014 * gdb-events.c: Re-generate.
5015 * frame.c (_initialize_frame): Update.
5017 * demangle.c (_initialize_demangler): Update.
5018 * dcache.c (_initialize_dcache): Update.
5019 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5020 * cp-valprint.c (_initialize_cp_valprint): Update.
5021 * corefile.c (_initialize_core): Update.
5022 * command.h: Update.
5023 * cli/cli-decode.h: Update.
5024 * cli/cli-cmds.c (init_cli_cmds): Update.
5025 * charset.c (_initialize_charset): Update.
5026 * breakpoint.c (_initialize_breakpoint): Update.
5027 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5028 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5029 * aix-thread.c (_initialize_aix_thread): Update.
5031 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5033 Partial fix for PR backtrace/1718.
5034 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5035 that GCC migrates into the prolugue. Don't handle any
5036 instructions that clobber %ebx.
5038 2004-07-23 Andrew Cagney <cagney@gnu.org>
5040 Use regcache_raw_collect instead of regcache_collect.
5041 * regcache.h (regcache_collect): Delete declaration.
5042 * regcache.c (regcache_colect): Delete function.
5043 * win32-nat.c (do_child_store_inferior_registers): Update.
5044 * sol-thread.c (sol_thread_store_registers): Update.
5045 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5046 * rs6000-nat.c (store_register): Update.
5047 * remote.c (store_register_using_P, remote_store_registers): Update.
5048 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5049 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5050 (fill_vrregset, store_spe_registers, fill_gregset)
5051 (fill_gregset): Update.
5052 * nto-procfs.c (procfs_store_registers): Update.
5053 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5054 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5055 * m68klinux-nat.c (store_register, fill_gregset): Update.
5056 * m68k-tdep.c (fill_gregset): Update.
5057 * infptrace.c (store_register): Update.
5058 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5059 * i386-linux-nat.c (store_register, fill_gregset): Update.
5060 * hppa-linux-nat.c (fill_gregset): Update.
5061 * go32-nat.c (store_register): Update.
5062 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5063 (store_fp_regs): Update.
5064 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5065 (store_nwfpe_extended, store_fpregister, store_fpregs)
5066 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5067 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5068 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5069 (store_regs_user_thread, store_regs_kernel_thread): Update.
5071 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5073 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5074 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5076 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5077 member of `struct comp_unit'.
5079 2004-07-23 Andrew Cagney <cagney@gnu.org>
5081 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5082 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5084 2004-07-23 Martin Hunt <hunt@redhat.com>
5085 Kevin Buettner <kevinb@redhat.com>
5087 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5088 alignment was being added to the offset instead of multiplied.
5090 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5092 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5093 changed signal trampoline in OpenBSD 3.5-current.
5095 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5096 <machine/pcb.h> and "bsd-kvm.h".
5097 (sparc64nbsd_supply_pcb): New function.
5098 (_initialize_sparc64nbsd_nat): Renamed from
5099 _initialize_sparcnbsd_nat. Enable libkvm interface.
5100 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5101 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5102 (LOADLIBES): New variable.
5104 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5106 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5108 2004-07-21 Andrew Cagney <cagney@gnu.org>
5110 Use regcache_raw_supply instead of supply_register.
5111 * regcache.h (supply_register): Delete declaration.
5112 * regcache.c (supply_register): Delete function.
5113 * wince.c (do_child_fetch_inferior_registers): Update.
5114 * win32-nat.c (do_child_fetch_inferior_registers)
5115 (fetch_elf_core_registers): Update.
5116 * v850ice.c (v850ice_fetch_registers): Update.
5117 * thread-db.c (thread_db_store_registers): Update.
5118 * sol-thread.c (sol_thread_store_registers): Update.
5119 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5120 * rs6000-nat.c (fetch_register): Update.
5121 * rom68k-rom.c (rom68k_supply_one_register): Update.
5122 * remote.c (remote_wait, remote_async_wait): Update.
5123 * remote-st.c (get_hex_regs): Update.
5124 * remote-sim.c (gdbsim_fetch_register): Update.
5125 * remote-sds.c (sds_fetch_registers): Update.
5126 * remote-rdp.c (remote_rdp_fetch_register): Update.
5127 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5128 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5129 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5130 * remote-hms.c (init_hms_cmds): Update.
5131 * remote-est.c (init_est_cmds): Update.
5132 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5133 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5134 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5135 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5136 (fetch_register, supply_vrregset, supply_vrregset)
5137 (fetch_spe_registers): Update.
5138 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5139 * monitor.c (monitor_supply_register): Update.
5140 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5141 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5142 (mipsnbsd_supply_fpreg): Update.
5143 * mips-nat.c (fetch_inferior_registers)
5144 (fetch_core_registers): Update.
5145 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5146 (supply_fpregset, mips64_supply_gregset)
5147 (mips64_supply_fpregset): Update.
5148 * m68klinux-nat.c (fetch_register, supply_gregset)
5149 (supply_fpregset): Update.
5150 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5151 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5152 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5153 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5154 * infptrace.c (fetch_register): Update.
5155 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5156 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5157 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5158 (gnu_fetch_registers, gnu_store_registers): Update.
5159 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5160 * i386-linux-nat.c (fetch_register, supply_gregset)
5161 (dummy_sse_values): Update.
5162 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5163 * hppah-nat.c (fetch_register): Update.
5164 * hppa-linux-nat.c (fetch_register, supply_gregset)
5165 (supply_fpregset): Update.
5166 * go32-nat.c (fetch_register): Update.
5167 * dve3900-rom.c (fetch_bitmapped_register)
5168 (_initialize_r3900_rom): Update.
5169 * cris-tdep.c (supply_gregset): Update.
5170 * abug-rom.c (init_abug_cmds): Update.
5171 * core-aout.c (fetch_core_registers): Update.
5172 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5173 (fetch_register, fetch_fp_register): Update.
5174 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5175 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5176 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5177 * alphanbsd-tdep.c (fetch_core_registers): Update.
5178 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5179 * alpha-nat.c (fetch_osf_core_registers)
5180 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5181 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5182 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5184 2004-07-21 Andrew Cagney <cagney@gnu.org>
5186 * PROBLEMS: Mention breakpoints/1702.
5187 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5188 that is known to work.
5190 2004-07-21 Andrew Cagney <cagney@gnu.org>
5192 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5193 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5194 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5195 (handle_inferior_event): Wrap call to deprecated
5196 IGNORE_HELPER_CALL in #ifdef.
5197 * config/mips/tm-nbsd.h: Update.
5199 2004-07-20 Jim Blandy <jimb@redhat.com>
5201 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5202 bfd_mach_ppc has no segment registers.
5204 Include PowerPC SPR numbers for special-purpose registers.
5205 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5206 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5207 new member in initializer.
5208 (S, S4, SN4, S64): New macros for defining special-purpose
5210 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5211 registers_403, registers_403GC, registers_505, registers_860,
5212 registers_601, registers_602, registers_603, registers_604,
5213 registers_750, registers_e500): Use them.
5215 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5216 replace references with expression used to initialize variable.
5218 2004-07-20 Andrew Cagney <cagney@gnu.org>
5220 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5222 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5223 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5224 (s390_sigtramp_frame_sniffer): Update.
5225 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5226 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5227 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5228 (mips32_fetch_instruction): Update.
5229 * mcore-tdep.c (get_insn): Update.
5230 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5231 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5232 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5233 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5234 (i386_linux_rt_sigtramp_start): Update.
5235 * i386-linux-nat.c (child_resume): Update.
5236 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5237 * hppa-linux-tdep.c (insns_match_pattern): Update.
5238 * gdbcore.h: Update.
5239 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5240 * frame.c (safe_frame_unwind_memory): Update.
5241 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5242 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5243 * alpha-tdep.c (alpha_read_insn): Update.
5245 2004-07-20 Andrew Cagney <cagney@gnu.org>
5247 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5248 containing both bytes and mask. Add "frame_type".
5249 * tramp-frame.c (tramp_frame_start): Update.
5250 (tramp_frame_prepend_unwinder): Update.
5251 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5252 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5253 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5254 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5256 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5258 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5259 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5260 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5261 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5263 2004-07-17 Andrew Cagney <cagney@gnu.org>
5265 * NEWS, PROBLEMS: Update for 6.2.
5267 * README: Update to 6.2.
5269 * utils.c (xvasprintf): Call xstrvprintf.
5271 * parse.c: Update copyright.
5272 (null_post_parser): Eliminate ARGSUSED.
5274 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5275 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5276 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5278 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5279 * ppc-linux-nat.c: Use "Linux kernel".
5280 * hppa-linux-tdep.c: Use GNU/Linux.
5281 * hppa-linux-nat.c: Use GNU/Linux.
5282 * dwarfread.c: Add [sic] to use of Linux.
5284 * hppa-linux-nat.c: Do not include <string.h>.
5285 (supply_fpregset): Remove "register" attribute.
5287 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5289 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5291 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5292 * configure, config.in: Regenerated.
5294 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5296 (vaxbsd_supply_pcb): New function.
5297 (_initialize_vaxbsd_nat): New prototype and function.
5298 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5300 (LOADLIBES): New variable.
5301 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5302 (LOADLIBES): New variable.
5303 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5304 (LOADLIBES): New variable.
5305 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5307 2004-07-16 Andrew Cagney <cagney@gnu.org>
5309 * defs.h (event_loop_p): Replace variable declaration with macro,
5311 * main.c (captured_main): Delete options "-async" and "-noasync".
5312 (event_loop_p): Delete variable.
5313 * NEWS: Mention that "-async" and "-noasync" were removed.
5315 2004-07-16 Andrew Cagney <cagney@gnu.org>
5317 * remote-m32r-sdi.c: Re-indent.
5319 2004-07-16 Jim Blandy <jimb@redhat.com>
5321 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5322 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5323 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5324 missing MPC823 SPRs.
5325 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5326 incorrect. (This was corrected in GDB's register name tables on
5329 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5330 should be "esasrr" ("ESA Save and Restore Register").
5332 2004-07-16 Andrew Cagney <cagney@gnu.org>
5334 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5335 calls, no longer applicable. Update comments and rename parameter
5336 "step_frame" to "return_frame".
5338 2004-07-16 Andrew Cagney <cagney@gnu.org>
5340 * frame.c (fprint_field): New function.
5341 (fprint_frame_id): Use fprint_field.
5343 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5345 * ada-lang.c (ada_language_defn): Remove commented out code.
5347 2004-07-15 Jim Blandy <jimb@redhat.com>
5349 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5350 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5352 2004-07-14 Jim Blandy <jimb@redhat.com>
5354 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5356 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5358 * ppc-tdep.h (ppc_num_srs): New enum constant.
5360 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5361 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5362 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5363 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5364 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5365 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5366 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5367 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5368 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5369 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5370 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5371 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5372 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5373 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5374 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5375 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5376 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5377 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5378 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5379 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5380 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5381 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5382 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5383 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5384 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5385 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5386 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5387 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5388 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5389 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5390 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5391 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5392 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5393 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5394 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5395 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5396 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5397 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5398 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5399 special-purpose register numbers.
5401 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5402 manual mentions 'md_twb', but many mention 'm_twb', and at that
5403 point in the register list.)
5405 2004-07-14 Andrew Cagney <cagney@gnu.org>
5407 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5408 instead of "internal-error".
5410 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5412 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5413 that was inserted inside a comment.
5415 2004-07-10 Randolph Chung <tausq@debian.org>
5417 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5419 (hppa_hpux_push_dummy_code): New function.
5420 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5421 Set find_global_pointer method.
5423 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5425 * NEWS: Mention BSD libkvm interface.
5427 2004-07-10 Michael Snyder <msnyder@redhat.com>
5429 * symfile.c (generic_load): Comment typo.
5430 * stack.c (get_selected_block): Ditto.
5431 * regcache.c (regcache_cooked_read): Ditto.
5432 * monitor.c (monitor_debug): Ditto.
5433 * mips-tdep.c (mips_read_pc): Ditto.
5434 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5435 * gdb_mbuild.sh: Ditto.
5436 * gdbarch.sh: Ditto.
5439 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5441 * ada-tasks.c: Remove file.
5443 Remove ARI problems:
5445 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5448 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5450 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5451 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5452 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5453 (UMIN_OF_SIZE): Remove.
5454 (max_of_type): New function to replace orphan macro in gdbtypes.h
5455 (min_of_type): Ditto.
5456 (discrete_type_high_bound): Use max_of_type.
5457 (discrete_type_low_bound): Use min_of_type.
5458 (possible_user_operator_p): Move operator to beginning of line.
5459 (ada_is_variant_part): Ditto.
5460 (ensure_lval): Rewrite to avoid deprecated operations.
5461 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5462 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5463 (ada_enum_name): Remove assignments in 'if' statements.
5464 (build_ada_types): Add gdbarch parameter.
5465 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5466 with gdbarch_data_register_post_init.
5467 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5470 * ada-valprint.c (inspect_it): Remove declaration.
5471 (repeat_count_threshold): Remove declaration.
5472 (ada_print_floating): Remove assignments in 'if' statements.
5473 (print_str): Move operator to beginning of line.
5475 2004-07-08 Jim Blandy <jimb@redhat.com>
5477 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5479 2004-07-08 Bob Rossi <bob@brasko.net>
5481 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5483 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5485 * language.h (struct_language_defn): Add new function pointer:
5486 la_class_name_from_physname. Also add new prototype for
5487 language_class_name_from_physname.
5488 * language.c (language_class_name_from_physname): New function.
5489 (unk_lang_class_name): Ditto.
5490 (unknown_language_defn, auto_language_defn): Change
5491 to add unk_lang_class_name function pointer for
5492 la_class_name_from_physname.
5493 (local_language_defn): Ditto.
5494 * dwarf2read.c (guess_structure_name): Change to call
5495 language_class_name_from_physname.
5496 (determine_class_name): Ditto.
5497 * cp-support.c (class_name_from_physname): Renamed.
5498 (cp_class_name_from_physname): New name of function.
5499 * cp-support.h: Ditto.
5500 * c-lang.c (c_language_defn): Change to add NULL
5501 for class_name_from_physname function pointer.
5502 (cplus_language_defn): Change to add cp_class_name_from_physname.
5503 * jv-lang.c (java_class_name_physname): New function.
5504 (java_find_last_component): New static routine.
5505 (java_language_defn): Add java_class_name_from_physname pointer.
5506 * ada-lang.c (ada_language_defn): Change to add NULL
5507 for class_name_from_physname function pointer.
5508 * f-lang.c (f_language_defn): Ditto.
5509 * m2-lang.c (m2_language_defn): Ditto.
5510 * objc-lang.c (objc_language_defn): Ditto.
5511 * p-lang.c (pascal_language_defn): Ditto.
5512 * scm-lang.c (scm_language_defn): Ditto.
5514 2004-07-06 Andrew Cagney <cagney@gnu.org>
5516 Patch from Bart Robinson.
5517 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5518 (O_LARGEFILE): Define to 0, if not defined.
5520 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5522 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5523 <machine/pcb.h> and "bsd-kvm.h".
5524 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5525 (m68kbsd_supply_pcb): New function.
5526 (_initialize_m68kbsd_nat): New prototype and function.
5527 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5528 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5529 (LOADLIBES): New variable.
5530 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5531 (LOADLIBES): New variable.
5533 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5535 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5537 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5539 (bsd_kvm_cmdlist): New variable.
5540 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5541 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5542 command and "kvm proc" command.
5543 * Makefile.in (bsd-kvm.o): Update dependencies.
5545 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5547 * osabi.c: Update copyright year.
5548 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5549 notes if EI_OSABI is set to ELFOSABI_HPUX.
5551 2004-07-01 Michael Snyder <msnyder@redhat.com>
5553 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5554 that seems to have gotten whacked out of line.
5556 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5558 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5561 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5563 * ada-lang.c (decode_packed_array): Minor change to comment.
5564 (ada_value_slice_ptr): New function.
5565 (ada_value_slice): New function.
5566 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5567 test. Don't know why it is there.
5568 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5569 to avoid dereferencing huge arrays from which one is slicing.
5570 (empty_array): Correct to return an array rather than
5572 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5573 on empty arrays (let'em use 'FIRST instead).
5575 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5577 Address complaints from gdb_ari.sh:
5579 * ada-exp.y: Include gdb_string.h rather than string.h.
5580 (convert_char_literal): Reformat declaration.
5581 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5582 * ada-lex.l: Change use of free to xfree (the macro would do so
5583 anyway, but this is harmless).
5584 Include gdb_string.h rather than string.h.
5585 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5587 * ada-lang.c (parse): Remove K&Rism in parameter list.
5588 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5590 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5592 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5595 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5597 * alphabsd-nat.c: Update copyright year.
5598 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5600 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5602 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5603 (i386_cygwin_in_solib_call_trampoline): New function.
5604 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5605 and skip_trampoline_code gdbarch methods.
5607 2004-06-29 Jim Blandy <jimb@redhat.com>
5609 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5610 name actually used in the dependency lists.
5612 2004-06-29 Randolph Chung <tausq@debian.org>
5614 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5616 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5618 * win32-nat.c (child_pid_to_exec_file): New function.
5619 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5622 2004-06-28 Andrew Cagney <cagney@gnu.org>
5624 * defs.h (xstrvprintf): Declare.
5625 * utils.c (xstrvprintf): New function.
5626 (internal_vproblem, xstrprintf, xasprintf)
5627 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5628 * serial.c (serial_printf): Ditto.
5629 * complaints.c (vcomplaint): Ditto.
5631 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5633 * infcmd.c (attach_command): Move call to target_terminal_inferior
5634 behind loading symbol table.
5636 2004-06-28 Andrew Cagney <cagney@gnu.org>
5638 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5639 change - add back extern deprecated_ui_loop_hook declaration.
5641 2004-06-28 Andrew Cagney <cagney@gnu.org>
5643 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5645 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5646 (c_value_of_variable): Ditto.
5647 * utils.c (internal_vproblem): Ditto.
5648 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5649 * remote.c (add_packet_config_cmd): Ditto.
5650 * remote-rdp.c (rdp_set_command_line): Ditto.
5651 * regcache.c (regcache_dump): Ditto.
5652 * frv-tdep.c (new_variant, new_variant): Ditto.
5653 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5654 (fbsd_find_memory_regions): Ditto.
5655 * breakpoint.c (create_thread_event_breakpoint)
5656 (create_breakpoints): Ditto.
5657 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5658 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5660 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5662 * ada-lang.c: Re-indent file, with some massaging to help indent
5663 a bit when the result is otherwise really too ugly.
5665 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5667 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5668 code_addr_p and special_addr_p to 'unsigned int'.
5670 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5672 * i386v4-nat.c: Update copyright year and tweak comment.
5673 (regmap): Remove trailing comma.
5674 (supply_gregset): Rename local variable i to regnum. Call
5675 regcache_raw_supply instead of supply_register.
5676 (fill_gregset): Rename argument regno to regnum. Call
5677 regcache_raw_collect instead of regcache_collect.
5679 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5681 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5683 (frame_id_build, frame_id_build_special): Update comments.
5684 (frame_id_build_wild): New prototype.
5685 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5686 struct frame_id fields.
5687 (frame_id_build_wild): New function.
5688 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5690 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5692 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5695 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5697 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5699 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5701 * ada-lang.c: Re-indent file.
5703 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5705 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5706 (no_symtab_msg): Likewise.
5708 2004-06-27 Andreas Schwab <schwab@suse.de>
5710 * source.c: Fix whitespace.
5712 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5714 * configure.in: Include <sys/param.h> for td_pcb test.
5715 * configure: Regenerated.
5717 * i386nbsd-nat.c: New file.
5718 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5719 i386obsd-nat.c and i386obsd-tdep.c.
5720 (i386nbsd-nat.o): New dependency.
5721 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5723 (LOADLIBES): New variable.
5724 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5726 (LOADLIBES): New variable.
5728 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5729 (LOADLIBES): New variable.
5731 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5732 fetching from BSD_KVM_PADDR. Correctly lookup address for
5735 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5737 (amd64fbsd_supply_pcb): New funcion.
5738 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5740 2004-06-27 <david@streamline-computing.com>
5742 Partial fix for PR cli/1056.
5743 * valarith.c: Check for zero in division and remainder
5746 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5748 * i387-tdep.c: Remove excessive whitespace.
5750 2004-06-26 Andrew Cagney <cagney@gnu.org>
5752 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5753 * gdb-events.h, gdb-events.c: Re-generate.
5754 * tui/tui-hooks.c (tui_install_hooks): Update.
5755 (tui_remove_hooks): Update.
5756 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5758 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5760 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5761 (gregset_t, fpregset_t): Remove typedefs.
5762 (REG_OFFSET): Rename argument.
5763 (amd64bsd_r_reg_offset): Rename from reg_offset.
5764 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5766 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5768 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5770 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5772 * vax-tdep.c: Tweak comment.
5774 Add OpenBSD/hppa support.
5775 * NEWS (New native configurations): Mention OpenBSD/hppa.
5776 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5777 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5779 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5780 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5781 * configure.host: Add hppa*-*-openbsd*.
5782 * configure.tgt: Add hppa*-*-openbsd*.
5784 2004-06-25 Andrew Cagney <cagney@gnu.org>
5786 * defs.h (deprecated_ui_loop_hook): Deprecated.
5787 * wince.c (child_wait): Update.
5788 * win32-nat.c (child_wait): Update.
5789 * v850ice.c (v850ice_wait): Update.
5790 * top.c (deprecated_ui_loop_hook): Update.
5792 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5793 (do_unix_readchar): Update.
5794 * ser-tcp.c (net_open): Update.
5795 * remote-sim.c (gdb_os_poll_quit): Update.
5796 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5798 2004-06-24 Andrew Cagney <cagney@gnu.org>
5800 * defs.h (deprecated_pre_add_symbol_hook)
5801 (deprecated_post_add_symbol_hook): Deprecated.
5802 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5803 (symbol_file_add_with_addrs_or_offsets): Update references.
5805 2004-06-24 Andrew Cagney <cagney@gnu.org>
5807 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5808 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5809 * wince.c (ui_loop_hook): Delete extern declaration.
5810 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5811 * v850ice.c (ui_loop_hook): Delete extern declaration..
5812 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5813 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5814 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5815 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5816 ui_loop_hook declaration.
5818 2004-06-24 Andrew Cagney <cagney@gnu.org>
5820 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5821 entry_func_highpc fields.
5822 * objfiles.c (init_entry_point_info): Do not clear
5823 entry_func_lowpc and entry_func_highpc.
5824 (objfile_relocate): Do not relocate entry_func_lowpc and
5826 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5828 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5830 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5831 entry_func_lowpc and entry_func_highpc with call to
5834 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5836 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5837 quad-precision floating point arguments in registers.
5839 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5841 From Michael Mueller <m.mueller99@kay-mueller.de>:
5842 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5845 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5847 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5849 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5850 untriggered watchpoints to a separate if clause. Update function
5851 comment regarding STOPPED_BY_WATCHPOINT argument.
5853 2004-06-22 Jim Blandy <jimb@redhat.com>
5855 * gdbarch.sh: Doc fix.
5857 2004-06-21 Martin Hunt <hunt@redhat.com>
5858 Kevin Buettner <kevinb@redhat.com>
5860 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5861 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5862 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5863 to set_gdbarch_sp_regnum(). Use cooked register number.
5864 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5866 2004-06-21 Andrew Cagney <cagney@gnu.org>
5868 * gdbarch.sh: When the macro field is empty, do not generate a
5869 macro definition. When the macro field is "=", generate the macro
5870 name from the upper-case function name.
5871 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5872 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5873 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5874 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5875 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5876 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5877 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5878 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5879 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5880 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5881 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5882 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5883 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5884 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5885 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5886 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5887 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5888 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5889 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5890 (DEPRECATED_USE_STRUCT_CONVENTION)
5891 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5892 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5893 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5894 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5895 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5896 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5897 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5898 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5899 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5900 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5901 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5902 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5903 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5904 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5905 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5906 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5907 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5908 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5910 2004-06-21 Andrew Cagney <cagney@gnu.org>
5912 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5913 macro name, and the function rather than macro value. Only wrap
5914 macro print statements in #ifdef. Move format logic to where it
5916 * gdbarch.c: Re-generate.
5918 * gdbarch.sh (read): Delete "print_p" and "description", add
5919 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5920 Delete references to print_p.
5921 (TARGET_ARCHITECTURE): Delete print predicate.
5922 * gdbarch.c: Re-generate.
5924 * gdbarch.sh: Check that multi-arch methods do not provide a
5926 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5927 (print_registers_info, print_float_info, print_vector_info)
5928 (adjust_breakpoint_address, remote_translate_xfer_address)
5929 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5930 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5931 name from the multi-arch definition.
5933 2004-06-20 Andrew Cagney <cagney@gnu.org>
5935 * gdbarch.sh: Sort by the function, instead of macro name.
5936 * gdbarch.c: Re-generate.
5938 2004-06-20 Andrew Cagney <cagney@gnu.org>
5940 * gdbarch.sh: Use the function, instead of macro name in
5941 errors and the log file.
5942 (return_value): Remove stray ":" in spec.
5944 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5945 * gdbarch.h, gdbarch.c: Re-generate.
5946 * Makefile.in (arch-utils.o): Update dependencies.
5947 * values.c (using_struct_return): Move code calling
5948 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5949 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5950 to legacy_return_value, simplify.
5951 * infcmd.c (print_return_value): Move code calling
5952 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5953 to legacy_return_value, simplify.
5954 * infcall.c (call_function_by_hand): Move code calling
5955 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5956 * arch-utils.c: Update copyright. Include "gdbcore.h".
5957 (legacy_return_value): New function.
5958 * arch-utils.h: Update copyright.
5959 (legacy_return_value): Declare.
5961 2004-06-20 Andrew Cagney <cagney@gnu.org>
5963 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5964 * gdbarch.h, gdbarch.c: Re-generate.
5965 * values.c (using_struct_return): Update call.
5966 * mcore-tdep.c: Update comment.
5967 * infcall.c (call_function_by_hand): Update comment.
5968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5969 * arch-utils.h (always_use_struct_convention): Update.
5970 * v850-tdep.c (v850_gdbarch_init): Update.
5971 * sh64-tdep.c (sh64_gdbarch_init): Update.
5972 * sh-tdep.c (sh_gdbarch_init): Update.
5973 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5974 * mips-tdep.c (mips_gdbarch_init): Update.
5975 * mcore-tdep.c (mcore_gdbarch_init): Update.
5976 * m32r-tdep.c (m32r_gdbarch_init): Update.
5977 * ia64-tdep.c (ia64_gdbarch_init): Update.
5978 * h8300-tdep.c (h8300_gdbarch_init): Update.
5979 * frv-tdep.c (frv_gdbarch_init): Update.
5980 * cris-tdep.c (cris_gdbarch_init): Update.
5981 * arm-tdep.c (arm_gdbarch_init): Update.
5982 * alpha-tdep.c (alpha_gdbarch_init): Update.
5984 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5986 * PROBLEMS: Add more specific information, and a work-around,
5989 2004-06-18 Andrew Cagney <cagney@gnu.org>
5991 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * ada-lang.c (ada_finish_decode_line_1): Update.
5994 * infrun.c (handle_inferior_event): Update.
5995 * infcall.c (find_function_addr): Update.
5996 * linespec.c (minsym_found): Update.
5997 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5999 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6000 * cli/cli-cmds.c (disassemble_command): Update.
6001 * vax-tdep.c (vax_gdbarch_init): Update.
6003 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6005 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6007 2004-06-17 Andrew Cagney <cagney@gnu.org>
6009 GDB 6.1.1 released from the GDB 6.1 branch.
6010 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6013 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6016 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6017 operation as a uleb128. Found by Michael Coulter.
6019 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6021 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6023 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6024 to ada-lang.h; this is needed to be able to implement the kill command
6027 (task_entry): Ditto.
6029 (ada_build_task_list): Ditto.
6031 * ada-lang.c: Conditionalize routines and data structures related
6032 to breakpoints, exceptions, completion, and symbol caching on
6033 GNAT_GDB, since these are not yet used in the submitted public sources.
6034 (ada_main_name): Editorial: Move definition out of exception-related
6037 2004-06-15 Andrew Cagney <cagney@gnu.org>
6039 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6040 deprecated_pc_in_call_dummy.
6042 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6044 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6045 bfd_get_section_size_before_reloc or _raw_size.
6046 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6047 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6048 (dwarf2_read_section): Likewise.
6049 * elfread.c (elf_locate_sections): Likewise.
6050 * gcore.c (derive_heap_segment): Likewise.
6051 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6052 * remote-e7000.c (e7000_load): Likewise.
6053 * remote-m32r-sdi.c (m32r_load): Likewise.
6054 * remote-mips.c (mips_load_srec): Likewise.
6055 (pmon_load_fast): Likewise.
6056 * remote.c (compare_sections_command): Likewise.
6057 * symfile.c (add_section_size_callback): Likewise.
6058 (load_section_callback): Likewise.
6059 (pc_in_unmapped_range): Likewise.
6060 (pc_in_mapped_range): Likewise.
6061 (sections_overlap): Likewise.
6062 (list_overlays_command): Likewise.
6063 (simple_overlay_update_1): Likewise.
6064 (simple_overlay_update): Likewise.
6065 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6066 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6068 2004-06-14 Randolph Chung <tausq@debian.org>
6070 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6071 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6073 (hppa_hpux_inferior_created): New function.
6074 (hppa_hpux_init_abi): Register observer.
6075 * symfile.c (hp_cxx_exception_support_initialized)
6076 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6077 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6079 2004-06-14 Randolph Chung <tausq@debian.org>
6081 * MAINTAINERS (Write After Approval): Alphabetize my entry
6084 2004-06-14 Andrew Cagney <cagney@gnu.org>
6086 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6087 testsuite maintainer.
6089 2004-06-13 Andrew Cagney <cagney@gnu.org>
6091 * infcmd.c (print_return_value): Fix logic, allow
6092 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6094 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6095 defining any macros.
6096 * gdbarch.h: Re-generate.
6098 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6099 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6100 * gdbarch.h: Re-generate.
6102 * values.c (generic_use_struct_convention): Don't check gcc_p.
6104 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6105 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6106 * gdbarch.h, gdbarch.c: Regenerate.
6107 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6108 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6110 deprecated_max_register_raw_size and
6111 deprecated_max_register_virtual_size.
6112 * v850-tdep.c (v850_gdbarch_init): Ditto.
6113 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6115 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6116 * cris-tdep.c (cris_gdbarch_init): Ditto.
6118 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6119 * gdbarch.h, gdbarch.c: Re-generate.
6120 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6121 (m68hc11_use_struct_convention): Delete function.
6122 (m68hc11_extract_struct_value_address): Delete function.
6123 (m68hc11_return_value): New function.
6124 (m68hc11_gdbarch_init): Instead of store_return_value,
6125 extract_return_value, return_value_on_stack,
6126 deprecated_extract_struct_value_address and use_struct_convention,
6128 * values.c (using_struct_return): Do not call
6129 RETURN_VALUE_ON_STACK.
6130 * arch-utils.h (generic_return_value_on_stack_not): Delete
6132 * arch-utils.c (generic_return_value_on_stack_not): Delete
6135 2004-06-12 Andrew Cagney <cagney@gnu.org>
6137 * values.c (register_value_being_returned): Delete function.
6138 * infcmd.c (legacy_return_value): Delete function.
6139 * infcall.c (call_function_by_hand): Inline
6140 "register_value_being_returned", simplify.
6141 * values.c (using_struct_return): Update comment, refer to
6142 print_return_value instead of register_value_being_returned.
6143 * infcmd.c (print_return_value): Inline calls to
6144 register_value_being_returned and legacy_return_value. Simplify.
6146 2004-06-11 Randolph Chung <tausq@debian.org>
6148 * somread.c (som_symtab_read): Exclude gcc local symbols.
6150 2004-06-11 Randolph Chung <tausq@debian.org>
6152 * infrun.c (handle_inferior_event): Handle the case when a
6153 trampoline ends up in the runtime resolver, and if the trampoline
6154 has no name. Rearrange the code so that all the trampoline
6155 processing happens before other step-out-of-range handling.
6157 2004-06-11 Martin Hunt <hunt@redhat.com>
6159 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6162 2004-06-10 Andrew Cagney <cagney@gnu.org>
6164 * blockframe.c (legacy_inside_entry_func): Delete.
6165 (legacy_frame_chain_valid): Inline call to
6166 legacy_inside_entry_func, simplify.
6168 2004-06-10 Bob Rossi <bob@brasko.net>
6170 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6171 * dwarf2read.c (partial_die_info): Add dirname field.
6172 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6173 (read_partial_die): Save away DW_AT_comp_dir.
6174 * defs.h (symtab_to_filename): Removed.
6175 * source.c (find_and_open_source): Added.
6176 (open_source_file): Just calls find_and_open_source.
6177 (symtab_to_filename): Removed.
6178 (symtab_to_fullname, psymtab_to_fullname): Added.
6179 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6180 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6182 * symtab.h (partial_symtab): Add dirname field.
6183 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6184 (mi_cmd_file_list_exec_source_file): Call new function
6185 symtab_to_fullname to find fullname.
6186 (mi_cmd_file_list_exec_source_files): Added.
6187 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6188 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6190 2004-06-10 Andrew Cagney <cagney@gnu.org>
6192 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6193 to generic_use_struct_convention, the default value.
6195 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6198 * ns32k-tdep.c (ns32k_push_arguments): New function.
6199 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6200 * infcall.c (call_function_by_hand): Call error instead of
6201 legacy_push_arguments.
6202 * value.h (legacy_push_arguments): Delete declaration.
6203 * valops.c (legacy_push_arguments): Delete function.
6204 (value_push): Delete function.
6206 2004-06-10 Brian Ford <ford@vss.fsi.com>
6208 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6209 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6211 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6213 2004-06-10 Andrew Cagney <cagney@gnu.org>
6215 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6216 * gdbarch.h, gdbarch.c: Re-generate.
6217 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6219 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6220 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6221 deprecated_pc_in_call_dummy instead of
6222 DEPRECATED_PC_IN_CALL_DUMMY.
6223 (arm_skip_prologue): Ditto.
6224 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6225 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6226 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6227 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6229 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6230 (sh64_init_extra_frame_info, sh64_get_saved_register)
6231 (sh64_pop_frame): Ditto.
6232 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6233 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6234 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6235 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6236 (h8300_pop_frame): Ditto.
6237 * blockframe.c (legacy_inside_entry_func)
6238 (legacy_frame_chain_valid): Ditto.
6239 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6240 to deprecated_pc_in_call_dummy.
6242 2004-06-09 Andrew Cagney <cagney@gnu.org>
6244 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6245 provide a default value.
6246 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6247 * gdbarch.h, gdbarch.c: Re-generate.
6248 * arch-utils.c (generic_convert_register_p): Rename
6249 legacy_convert_register_p
6250 (legacy_register_to_value, legacy_value_to_register): Delete
6252 * arch-utils.h (generic_convert_register_p): Rename
6253 legacy_convert_register_p.
6254 (legacy_register_to_value, legacy_value_to_register): Delete
6257 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6258 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6259 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6260 * gdbarch.h, gdbarch.c: Re-generate.
6261 * infcmd.c (default_print_registers_info): Simplify.
6262 * findvar.c (value_of_register): Simplify.
6263 * mi/mi-main.c (get_register): Simplify.
6264 * arch-utils.c (legacy_convert_register_p): Always return 0.
6265 (legacy_register_to_value, legacy_value_to_register): Always call
6268 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6269 #ifdef CLEAR_INSN_CACHE code.
6270 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6271 Delete #ifdef CLEAR_DEFERRED_STORES code.
6273 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6275 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6277 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6279 * config/mips/mipsv4.mh: Delete file.
6281 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6283 (hpread_adjust_stack_address): Delete declaration.
6285 2004-06-08 Andrew Cagney <cagney@gnu.org>
6287 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6288 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6289 PTRACE_ATTACH / PTRACE_DETACH available call error.
6290 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6291 * infttrace.c (update_thread_state_after_attach, attach, detach):
6292 Remove #ifdef wrappers.
6293 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6294 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6295 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6296 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6297 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6298 * config/nm-linux.h (ATTACH_DETACH): Delete.
6299 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6300 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6301 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6302 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6303 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6305 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6307 * configure.in: Set $configdir to the right OS specific value.
6308 Use value when setting $tcldir and $tkdir.
6309 * configure: Regenerate.
6311 2004-06-06 Paul Brook <paul@codesourcery.com>
6313 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6316 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6318 * ada-lang.c (lookup_symbol_in_language): New function to allow
6319 re-use of another language's symbol lookup code. (Placed here
6320 temporarily while Ada support is being integrated into the public
6322 (restore_language): New auxiliary function for
6323 lookup_symbol_in_language.
6324 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6325 temporarily while Ada support is being integrated into the public
6328 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6330 * Makefile.in (check//%): New.
6332 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6333 (mn10300_store_return_value): Rewrite.
6334 (mn10300_type_align): New.
6335 (mn10300_use_struct_convention): Rewrite.
6336 (mn10300_return_value): New, using all of the above.
6337 (mn10300_pop_frame_regular): Add saved_regs_size.
6338 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6340 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6341 regs if PC is on movm.
6343 2004-06-07 Jim Blandy <jimb@redhat.com>
6345 Add native Linux support for the PowerPC E500.
6346 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6347 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6348 all architectures except the E500.
6349 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6351 (struct gdb_evrregset_t): New type.
6352 (have_ptrace_getsetevrregs): New variable.
6353 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6354 fetch_spe_registers): New functions.
6355 (fetch_register): Call fetch_spe_register as appropriate.
6356 Assert that we're only passed raw register numbers.
6357 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6358 Don't fetch gprs if they're pseudoregisters.
6359 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6360 store_spe_registers): New functions.
6361 (store_register): Call store_spe_register as appropriate.
6362 Assert that we're only passed raw register numbers.
6363 (store_ppc_registers): Call store_spe_registers as appropriate.
6364 Don't store gprs if they're pseudoregisters.
6366 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6368 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6369 struct if one exists, even if we are dealing with a zombie thread.
6371 2004-06-07 Andrew Cagney <cagney@gnu.org>
6373 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6374 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6375 Rename PC_REQUIRES_RUN_BEFORE_USE.
6376 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6379 2004-06-07 Randolph Chung <tausq@debian.org>
6381 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6382 unwinding after sp has been saved to the stack but before the end
6383 of the prologue, and after the fp has been modified but before it has
6384 been saved to the stack.
6385 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6386 Remove superfluous definitions.
6387 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6389 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6391 Committed by Randolph Chung.
6392 * hppa-linux-nat.c: Include the correct version of the header file
6393 depending on the kernel version.
6395 2004-06-06 Randolph Chung <tausq@debian.org>
6397 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6398 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6400 2004-06-06 Randolph Chung <tausq@debian.org>
6402 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6403 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6404 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6405 * hppa-tdep.c (hppa_symbol_address): New function definition.
6406 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6408 2004-06-06 Randolph Chung <tausq@debian.org>
6410 * hppa-tdep.h (struct value): Forward declaration.
6411 (gdbarch_tdep): Define tdep find_global_pointer method.
6412 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6413 associated with the function we are trying to call, and write it
6415 (hppa32_convert_from_funct_ptr_addr): New function.
6416 (hppa_find_global_pointer): New function.
6417 (hppa_gdbarch_init): Set default find_global_pointer method; set
6418 convert_from_func_ptr_addr method.
6419 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6420 (hppa_linux_init_abi): Set find_global_pointer method.
6421 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6423 2004-06-06 Randolph Chung <tausq@debian.org>
6425 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6426 to struct value *function.
6427 * gdbarch.c: Regenerate.
6428 * gdbarch.h: Likewise.
6429 * infcall.c (call_function_by_hand): Pass entire function value
6432 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6433 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6434 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6435 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6436 * arm-tdep.c (arm_push_dummy_call): Likewise.
6437 * avr-tdep.c (avr_push_dummy_call): Likewise.
6438 * cris-tdep.c (cris_push_dummy_call): Likewise.
6439 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6440 * frv-tdep.c (frv_push_dummy_call): Likewise.
6441 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6442 * hppa-tdep.c (hppa32_push_dummy_call)
6443 (hppa64_push_dummy_call): Likewise.
6444 * i386-tdep.c (i386_push_dummy_call): Likewise.
6445 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6446 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6447 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6448 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6449 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6450 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6451 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6452 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6453 (ppc64_sysv_abi_push_dummy_call): Likewise.
6454 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6455 (ppc64_sysv_abi_push_dummy_call): Likewise.
6456 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6457 * s390-tdep.c (s390_push_dummy_call): Likewise.
6458 * sh-tdep.c (sh_push_dummy_call_fpu)
6459 (sh_push_dummy_call_nofpu): Likewise.
6460 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6461 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6462 * vax-tdep.c (vax_push_dummy_call): Likewise.
6464 2004-06-04 Jim Blandy <jimb@redhat.com>
6466 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6467 gdbarch argument to register_size.
6469 * rs6000-tdep.c (rs6000_store_return_value): Use
6470 regcache_cooked_write_part instead of
6471 deprecated_write_register_bytes.
6472 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6473 not gdbarch_deprecated_store_return_value.
6475 * ppc-linux-nat.c (store_register, fetch_register): Remove
6476 incorrect assertions. Simplify and generalize handling of
6477 transfers whose sizes are not multiples of, or less than, sizeof
6480 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6482 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6483 as a new thread event.
6484 * thread-db.c (thread_get_info_callback): If the thread is a
6485 zombie, return TD_THR_ZOMBIE.
6486 (thread_from_lwp): If thread_get_info_callback returns
6487 TD_THR_ZOMBIE, check if the thread is still on the thread list
6488 and return a -1 ptid if not found.
6489 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6490 change the status to TARGET_WAITKIND_SPURIOUS.
6492 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6494 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6495 double values in little endian mode.
6497 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6499 Committed by Andrew Cagney.
6500 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6501 after last enum constant to avoid error from IBM C
6504 2004-06-02 Jim Blandy <jimb@redhat.com>
6506 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6507 to 'message', and make it local to the lone block that uses it.
6509 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6511 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6513 * ada-exp.y: Update copyright notice.
6516 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6517 SPECIAL_VARIABLE and unify the treatment of these cases.
6519 (write_attribute_call0): Remove.
6520 (write_attribute_call1): Remove.
6521 (write_attribute_calln): Remove.
6522 (save_qualifier): Add missing semicolon.
6524 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6525 temporarily disabled to allow compilation with FSF head version.
6527 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6528 use individual operators (OP_*) for all attributes.
6529 (exp syntax): Use write_int.
6530 Handle STRING literals with OP_STRING.
6531 (variable syntax): Add limit parameter to calls to
6532 write_object_renaming.
6534 (temp_parse_space): New definition to hold entities that need
6535 only live until the next call to ada_parse.
6536 (string_to_operator): Rename fields of ada_opname_table entries.
6538 (write_var_from_sym): Record block.
6539 (write_var_from_name): Minor reformatting.
6540 Make sure saved name is properly encoded in the case of multiple
6541 matches, and set its language to Ada.
6543 Modify to indicate unresolved name as symbol in the UNRESOLVED
6544 namespace, allocated in temp_parse_space.
6545 (write_int): New function.
6547 (write_object_renaming): Add max_depth parameter to limit
6548 chains of object renamings.
6549 Handle case where root of renaming expression is itself a renaming.
6550 Use temp_parse_space for temporary name buffer.
6551 Handle renamings to dereferenced pointers (___XEXA suffices).
6553 (ada_parse, yyerror, string_to_operator,
6554 write_var_from_sym, write_var_from_name, write_attribute_call0,
6555 write_attribute_call1, write_attribute_calln,
6556 write_object_renaming): Protoize.
6558 (_initialize_ada_exp): New function.
6560 * ada-lang.c: Update copyright notice.
6561 General terminology change to conform to GNAT compiler usage:
6562 mangle => encode, demangle => decode
6563 Include gdb_obstack.h.
6572 (ADA_RETAIN_DOTS): Make sure this is defined.
6573 (TRUNCATION_TOWARDS_ZERO): Define.
6574 (struct string_vector): Define.
6575 (unresolved_names): Remove definition.
6576 (xnew_string_vector): New function.
6577 (string_vector_append): New function.
6578 (extract_string): Make static.
6579 (ada_unqualified_name): New function.
6580 (add_angle_brackets): New function.
6581 (function_name_from_pc): New function.
6582 (place_on_stack): Rename to ensure_lval.
6584 (ensure_lval): Renamed from place_on_stack.
6585 Make identity on lvals.
6587 (is_nonfunction): New interface.
6588 Only symbols in LOC_CONST class can be enumerals.
6589 (fill_in_ada_prototype): Remove; now independent of language.
6590 (add_defn_to_vec): Add obstack and symtab arguments.
6591 Use obstack to hold collected definitions.
6592 (num_defns_collected): New function.
6593 (defns_collected): New function.
6594 (ada_resolve_subexp): Rename to resolve_subexp.
6595 (resolve_subexp): Renamed from ada_resolve_subexp.
6596 (ada_op_name): Return non-const result.
6597 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6600 (to_fixed_array_type): Add declaration.
6601 (coerce_unspec_val_to_type): Remove offset parameter.
6602 (find_sal_from_funcs_and_line): New interface.
6603 (find_line_in_linetable): Ditto.
6605 (all_sals_for_line): Rename to ada_sals_for_line and make
6607 Add new parameter. When set, do not ask the user to choose the
6608 instance, but use the first one found instead.
6609 Use given line number in returned sals.
6611 Skip the prologue if funfirstline is set.
6612 Correct for memory leak when 0 lines found.
6614 (value_pos_atr): Use pos_atr.
6615 (pos_atr): New function.
6616 (standard_lookup): Add block parameter.
6618 (makeTimeStart): Remove declaration and uses.
6619 (makeTimeStop): Remove declaration and uses.
6621 (ada_completer_word_break_characters): Allow for VMS.
6622 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6623 (raise_sym_name): New constant.
6624 (raise_unhandled_sym_name): New constant.
6625 (raise_assert_sym_name): New constant.
6626 (process_raise_exception_name): New constant.
6627 (longest_exception_template): New constant.
6628 (warning_limit): New variable to limit warnings during expression
6630 (warnings_issued): New variable to keep track of warnings issued.
6631 (known_runtime_file_name_patterns): New constant.
6632 (known_auxiliary_function_name_patterns): New constant.
6633 (symbol_list_obstack): New variable.
6635 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6636 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6637 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6638 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6639 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6640 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6641 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6642 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6645 (ada_get_field_index): New function.
6646 (lim_warning): New function.
6647 (ada_translate_error_message): New function.
6648 (MAX_OF_SIZE): New function.
6649 (MIN_OF_SIZE): New function.
6650 (UMAX_OF_SIZE): New function.
6651 (UMIN_OF_SIZE): New function.
6652 (discrete_type_high_bound): New function.
6653 (discrete_type_low_bound): New function.
6654 (base_type): New function.
6655 (do_command): Remove.
6657 (ada_update_initial_language): Use language_ada, not language_unknown.
6658 (ada_encode): Renamed from ada_mangle.
6659 Obey ADA_RETAIN_DOTS.
6660 (ada_decode): Renamed from ada_demangle.
6661 Update coding conventions.
6662 (decoded_names_store): New hash table.
6663 (ada_decode_symbol): New function.
6664 (ada_la_decode): New function.
6666 (modify_general_field): Correct computations of offset and bit
6668 (desc_base_type): Handle ref types, too.
6669 (ada_is_direct_array_type): New function.
6671 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6672 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6673 (ada_is_bogus_array_descriptor,ada_type_of_array,
6674 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6675 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6676 ada_is_array_descriptor_type.
6678 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6679 (ada_is_packed_array_type): Handle pointers or
6680 references to packed arrays as well.
6681 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6682 (decode_packed_array_type): Search for the packed array type
6683 symbol in the currently selected block and associated
6685 Use lookup_symbol again.
6687 (decode_packed_array): Handle pointers and references.
6688 Update call to coerce_unspec_val_to_type.
6689 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6690 (ada_value_primitive_packed_val): Improve comment.
6692 (ada_index_type): Substitute int type for "undefined".
6693 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6694 ada_array_langth, ada_is_string_type): Use renamed
6695 ada_is_simple_array_type.
6696 (empty_array): New function.
6698 (ada_resolve): Rename to resolve.
6699 (resolve): Make static.
6700 Call renamed resolve_subexp.
6702 (ada_resolve_subexp): Rename to resolve_subexp.
6703 (resolve_subexp): Update comment.
6704 Decomment disabled code.
6705 Add LOC_COMPUTED* cases.
6706 Modify to use temporary struct symbols (marked as being in
6707 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6708 OP_UNRESOLVED_VALUE.
6709 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6712 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6713 Use new ada_lookup_symbol_list interface.
6714 Use new ada_resolve_function interface.
6715 Remove OP_TYPE case.
6717 (ada_args_match): Idiot proof against null actuals.
6718 Use intermediate variables to clarify.
6719 (ada_resolve_function): Update comment and interface.
6720 (mangled_ordered_before): Rename to encoded_ordered_before and
6722 (sort_choices): Update comment and interface.
6723 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6724 (user_select_syms): New interface.
6725 Use new sort_choices interface.
6726 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6727 (possible_user_operator_p): Idiot-proof against null values.
6728 (ada_simple_renamed_entity): Don't make cleanup; rely on
6729 caller to free result string.
6730 Remove const from return type.
6731 (make_array_descriptor): Rename uses of place_on_stack to
6733 Make sure that arrays are on stack.
6735 (HASH_SIZE): Define.
6736 (struct cache_entry): Define.
6737 (cache_space): Define.
6739 (clear_ada_sym_cache): New function.
6740 (find_entry): New function.
6741 (lookup_cached_symbol): New function.
6742 (defn_vector_size): Define.
6743 (cache_symbol): New function.
6744 (defn_symbols): Remove.
6746 (standard_lookup): Use lookup_symbol_in_language to get effect of
6750 (symbol_completion_match): New function.
6751 (symbol_completion_add): New function.
6752 (ada_make_symbol_completion_list): New function.
6754 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6755 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6756 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6757 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6759 (ada_lookup_simple_minsym): New function.
6760 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6762 (add_symbols_from_enclosing_procs): New interface.
6763 Conditionalize more helpfully.
6764 Don't bother if program isn't running.
6765 Use new interface to get_frame_block.
6766 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6768 (remove_extra_symbols): New interface.
6769 (xget_renaming_scope): New function.
6770 (is_package_name): New function.
6771 (renaming_is_visible): New function.
6772 (remove_out_of_scope_renamings): New function.
6774 (ada_lookup_symbol_list): New interface.
6775 Properly reinitialize the symbol list obstack.
6776 Don't call add_symbols_from_enclosing_procs if we start from a
6777 static or global block.
6778 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6779 add_symbols_from_enclosing_procs.
6780 Add symtab data to cached entries.
6781 Handle symbols prefixed with
6782 "standard__" specially; strip prefix and don't look in local symbols.
6783 Do not include out of scope renaming symbols in list of
6785 Add const to block parameter.
6786 Move check for non-local, non-global symbols earlier.
6787 Remove timing stuff.
6788 (ada_lookup_symbol): New interface.
6789 Find symtab as well.
6790 (ada_lookup_symbol_nonlocal): New function.
6792 (is_name_suffix): Enhance suffix detection to recognize
6793 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6794 (is_dot_digits_suffix): New function.
6795 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6797 (ada_add_block_symbols): New interface. Use obstack to return results
6798 in a vector of struct ada_symbol_infos. Add symtab argument.
6799 Use new interface to add_defn_to_vec.
6800 Remove calls to fill_in_ada_prototype.
6801 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6803 (ada_finish_decode_line_1): Add const qualification to local to fix
6805 Start looking in static block for functions to avoid attempts
6806 to search frame chain for up-level variables.
6807 Adapt to new ada_sals_for_line interface.
6808 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6809 Handle quoting of the function name inside the spec string.
6810 Skip prologue when funfirstline is set and update the
6811 function documentation to that effect.
6813 (debug_print_lines, debug_print_block, debug_print_blocks,
6814 debug_print_symtab): Remove.
6816 (ada_main_name): New function.
6817 (ada_exception_breakpoint_type): New function.
6818 (is_known_support_routine): New function.
6819 (ada_find_printable_frame): Renamed from find_printable_frame and made
6821 Remove level parameter.
6822 Use new interface to select_frame.
6824 (begin_command): Remove.
6825 (ada_adjust_exception_stop): New function.
6826 (ada_print_exception_stop): New function.
6827 (exception_name_from_cond): New function.
6828 (ada_report_exception_break): Replace disabled code with
6829 conditionalization on GNAT_GDB.
6830 Get the exception name from the condition string.
6831 Remove and move functionality into new functions
6832 ada_print_exception_breakpoint_task and
6833 ada_print_exception_breakpoint_nontask.
6834 (error_breakpoint_runtime_sym_not_found): New function.
6835 (is_runtime_sym_defined): New function.
6836 (ada_breakpoint_rewrite): Uncomment suppressed code.
6837 Use symbolic error-message and runtime-symbol names.
6838 Surround runtime symbol names in quotes.
6839 Allow non-specific breakpoints on exceptions and assertions before
6842 (ada_is_tagged_type): Add parameter.
6843 (ada_is_tag_type): New function.
6844 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6845 (ada_variant_discrim_type): Ditto.
6846 (value_tag_from_contents_and_address): New function.
6847 (type_from_tag): New function.
6848 (struct tag_args): New structure used to communicate with
6850 (ada_tag_name_1): New function.
6851 (ada_tag_name): New function.
6853 (ada_scan_number): Update comment.
6854 (find_struct_field): New function.
6855 (ada_search_struct_field): Make static.
6856 (ada_value_struct_elt): New version that returns references when
6857 given pointers or references to structs.
6858 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6859 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6861 (ada_value_ind): Use new ada_to_fixed_value interface.
6862 (ada_coerce_ref): Ditto.
6863 (field_offset): Remove.
6865 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6866 (ada_find_renaming_symbol): New function.
6867 (ada_prefer_type): Prefer named types over unnamed ones.
6868 (variant_field_index): New function.
6869 (contains_variant_part): Removed: subsumed by variant_field_index.
6870 (ada_template_to_fixed_record_type): New function, mostly from
6871 template_to_fixed_record_type.
6872 (template_to_fixed_record_type):
6873 Do not scan the type fields beyond the last one; prevents a
6875 Handle case where variant field is listed BEFORE discriminant it
6877 Fix calculation of record length when bit length is
6878 not evenly divisible by char length.
6879 Move code to ada_template_to_fixed_record_type and call it.
6881 (template_to_static_fixed_type): Revise comment.
6882 Modify to work on ordinary record types as well as templates,
6883 so as to handle fields that use ___XVE or ___XVU encodings.
6884 (to_record_with_fixed_variant_part): Fill out comment.
6885 Initialize C++ stuff in right type.
6886 Allow case where DVAL is null.
6887 Handle case where variant field is not last.
6888 Fix typo concerning record length.
6889 (to_fixed_record_type): Decomment disabled code.
6890 (to_fixed_record_type): Use variant_field_index instead of
6891 contains_variant_part.
6892 (to_fixed_variant_branch_type): Ditto.
6893 (to_fixed_array_type): Decomment disabled code.
6894 (ada_to_fixed_type): Convert tagged types to the specific type.
6895 Deactivate the size-check for array types in order to avoid
6896 some false size alarms.
6897 (to_static_fixed_type): Decomment disabled code.
6898 Modify to call template_to_static_fixed_type
6899 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6900 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6901 Remove valaddr argument, as it is never really used.
6902 (ada_to_fixed_value): Change interface to act on single struct value*
6904 (adjust_pc_past_prologue): New function.
6905 (ada_attribute_name): Modify to take enum exp_opcode argument.
6907 (ada_enum_name): Recognize new homonym-distinguishing convention.
6908 Adjust local variable's type to remove compiler warning.
6909 Fix a small problem in the part that unqualifies the enumeration name.
6910 (ada_value_binop): New function.
6911 (ada_value_equal): New function.
6913 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6914 Don't give error message when not doing normal evaluation
6915 and a tagged type doesn't seem to contain a structure member.
6916 Give error message for packed arrays.
6917 For indexing arrays, handle pointers to packed arrays correctly.
6918 Handle case of 'first and 'last attributes of bare integral type
6919 without encoded subtype info.
6920 Remove some unnecessary casts.
6921 Fix uninitialized value of type in computing 'first, 'last, or 'length
6923 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6924 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6926 Attributes are now exp_opcode values.
6927 Correct treatment of 'modulus.
6928 Better error message for taking 'length of wrong kind of type;
6930 Change EVAL_NORMAL to noside for consistency.
6931 Use ada_value_binop for DIV, MOD, REM.
6932 Make special case out of array of length 0, since an argument
6933 of 0 upsets some platforms' malloc.
6934 Use OP_STRING instead of OP_ARRAY.
6935 For slice, add check that we have an array type before extracting
6936 a slice out of it. Avoids a SEGV.
6937 When evaluating an array slice, if the array type is a reference to
6938 an aligner type, then replace the aligner type by the actual type.
6939 Decomment disabled code.
6940 Remove some dead code.
6941 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6942 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6943 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6944 and UNOP_MBR to UNOP_IN_RANGE.
6945 If an array type has a parallel ___XVE type, then use it.
6946 Turn arrays into pointers for lvalue arrays.
6947 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6948 bounds error and handle 0-length slices.
6950 When selecting fields, apply ada_to_fixed_value (because the fields
6951 might have ___XVU or ___XVE encodings even if not dynamic.)
6952 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6953 (ada_is_system_address_type): New function.
6955 (get_var_value): Use new interface to ada_lookup_symbol_list.
6956 (get_int_var_value): New interface.
6957 (to_fixed_range_type): Allow unknown bound, with warning.
6958 (ada_is_modular_type): Decomment disabled code.
6959 (ADA_OPERATORS): New definition.
6960 (ada_operator_length): New function.
6961 (ada_expr_op_name): New function.
6962 (ada_forward_operator_length): New function.
6963 (ada_dump_subexp_body): New function.
6964 (ada_print_subexp): New function.
6965 (ada_exp_descriptor): New constant.
6966 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6967 (ada_language_defn): Add ada_exp_descriptor entry.
6968 Change ada_parse => parse.
6969 Add post-parser entry.
6970 Use ada-specific non-local symbol lookup.
6971 Don't use C-style arrays.
6972 String lower-bound is 1.
6973 Decomment disabled code.
6974 (parse): New function.
6975 New fields ada_translate_error_message, ada_lookup_symbol,
6976 ada_lookup_minimal_symbol.
6978 * ada-lang.h: Update copyright dates.
6979 Replace the mangle/demangle terminology throughout by the
6980 more appropriate encode/decode one.
6981 Include breakpoint.h.
6982 Forward declare struct partial_symbol, struct block.
6983 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6984 (EXTRACT_ADDRESS): Remove.
6985 (EXTRACT_INT): Remove.
6986 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6987 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6988 (MAX_RENAMING_CHAIN_LENGTH): Define.
6989 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6991 (enum task_states): Remove.
6992 ada_task_states: Remove.
6993 (fat_string): Remove.
6994 (struct entry_call): Remove.
6995 (struct task_fields): Remove.
6996 (struct task_entry): Remove.
6998 (struct ada_symbol_info): Define.
6999 (enum ada_attribute): Remove.
7000 (enum ada_operator): Define.
7002 (ada_get_field_index): Declare.
7003 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7004 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7005 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7006 (ada_lookup_symbol_list): New interface.
7007 (ada_decode_symbol): Declare.
7008 (ada_decode): Declare.
7009 (ada_lookup_symbol): New interface.
7010 (ada_update_initial_language): Declare.
7011 (ada_lookup_simple_minsym): Declare.
7012 (user_select_syms): New interface.
7013 (ada_sals_for_line): Declare.
7014 (ada_is_tagged_type): New interface.
7015 (ada_tag_name): Declare.
7016 (ada_lookup_struct_elt_type): Remove declaration.
7017 (ada_search_struct_field): Remove declaration.
7018 (ada_attribute_name): New interface.
7019 (ada_is_system_address_type): Declare.
7020 (ada_to_fixed_value): Remove declaration.
7021 (ada_template_to_fixed_record_type_1): Declare.
7022 (get_int_var_value): New interface.
7023 (ada_find_any_symbol): Declare.
7024 (ada_find_renaming_symbol): Declare.
7025 (ada_mangle): Rename to ada_encode.
7026 (ada_simple_renamed_entity): Remove const.
7027 (ada_main_name): Declare.
7028 (get_current_task): Rename to ada_get_current_task.
7029 (get_entry_number): Remove declaration.
7030 (ada_report_exception_break): Remove declaration.
7031 (ada_print_exception_breakpoint_nontask): Declare.
7032 (ada_print_exception_breakpoint_task): Declare.
7033 (ada_find_printable_frame): Declare.
7035 * ada-lex.l: Update copyright notices.
7036 Use xmalloc and xfree instead of malloc and free.
7037 Use new interface to name_lookup.
7038 Use new interface to
7039 ada_mangle=>ada_encode.
7040 Redo handling of '$...' variable to parallel current treatment
7042 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7043 digit_to_int, strtoulst, processInt, processReal, processId,
7044 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7047 (processInt): Use cast to remove harmless warning.
7048 (processReal): Modify to get rid of compiler warning on scan formats.
7050 (processId): Replace xmalloc with obstack_alloc for name and remove
7051 call to ada_name_string_cleanup.
7052 Remove obsolete disabled code.
7053 (name_lookup): Ditto.
7055 Use obsavestring on temp_parse_space instead of savestring
7056 on name, and remove call to ada_name_string_cleanup.
7057 Free string returned from ada_simple_renamed_entity.
7058 Use new interface to ada_lookup_symbol_list.
7059 Decomment disabled code.
7060 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7062 When a type name lookup succeeds as a result of
7063 lookup_primitive_typename, check for regular type entry that has not
7065 Limit length of chain of renamed symbols we are willing to follow.
7066 Do not break names beginning with "standard__" into segments.
7067 (block_lookup): Use new interface to ada_lookup_symbol_list.
7069 * ada-typeprint.c: Update copyright notice.
7070 (demangled_type_name): Rename to decoded_type_name.
7071 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7072 (print_range_bound): Correct handling of negative
7073 bounds that make the index type looked unsigned under STABS.
7074 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7075 (print_range_type_named): Use the builtin int type if no type
7076 corresponding to the given type name could be found.
7077 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7078 Add some bullet-proofing.
7079 (print_variant_clauses): Allow for variant branches with ___XVU
7080 encodings that are not dynamic fields.
7081 Use new interface to ada_is_tagged_type.
7082 (print_record_type): Allow for fields with ___XVE encodings that
7083 are not dynamic fields.
7084 Use new interface to ada_is_tagged_type.
7085 (ada_print_type): ada_is_array_descriptor =>
7086 ada_is_array_descriptor_type.
7088 * ada-valprint.c: Update copyright notice.
7089 Include gdb_string.h
7091 (ui_memcpy): New function.
7092 (ada_print_floating): New function.
7093 (ada_print_str): Order arguments correctly.
7094 Correct handling of empty arrays and arrays of 0-length items.
7095 ada_is_array_descriptor => ada_is_array_descriptor_type
7096 Print values of type System.Address in hexadecimal format.
7097 Use ada_print_floating to print floating-point numbers in Ada format.
7098 Print class tag values with type names.
7099 No longer print the address of reference values. Avoids
7100 a potential confusion.
7101 (ada_value_print): Stop printing the object type for reference
7102 values, but preserve that behavior for access types. Avoids
7103 a potential confusion.
7104 Simplify one conditional expression, as the first part is now
7106 ada_is_array_descriptor => ada_is_array_descriptor_type
7107 Add check for arrays for null records, and print them by hand.
7109 2004-06-01 Jim Blandy <jimb@redhat.com>
7111 * ppc-tdep.h: Delete unused 'regoff' member.
7112 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7114 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7117 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7118 (hpread_read_struct_type): Likewise.
7120 2004-06-01 Andrew Cagney <cagney@gnu.org>
7122 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7123 instead of xasprintf.
7124 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7125 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7126 (mi_cmd_data_list_register_names)
7127 (mi_cmd_data_list_changed_registers)
7128 (mi_cmd_data_list_register_values)
7129 (get_register, mi_cmd_data_write_register_values)
7130 (mi_cmd_data_write_register_values)
7131 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7132 (mi_cmd_target_download, mi_cmd_target_select)
7133 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7134 (mi_execute_cli_command, mi_execute_async_cli_command)
7135 (mi_execute_async_cli_command): Ditto.
7136 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7137 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7139 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7140 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7141 error_last_message instead of mi_error_last_message.
7142 * mi/mi-main.c (mi_error_last_message): Delete function.
7144 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7145 "invalid number of columns" error. Delete redundant "out of
7148 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7150 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7151 (gregset_t, fpregset_t): Remove typedefs.
7152 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7153 (REG_OFFSET): Rename argument.
7154 (i386bsd_r_reg_offset): Rename from reg_offset.
7155 (REG_ADDR): Remove macro.
7156 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7158 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7159 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7160 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7161 instead of supply_gregset.
7162 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7163 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7164 instead of fill_gregset.
7165 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7167 * i386bsd-nat.c: Don't include "gregset.h".
7168 (supply_gregset, fill_gregset): Make static.
7169 (supply_fpregset, fill_fpregset): Remove.
7170 * Makefile.in (i386bsd-nat.o): Update dependencies.
7172 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7174 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7175 "gdb_assert.h". Con't include "gregset.h".
7176 (fbsd_make_corefile_notes): Use regset-based core file support
7177 instead off fill_gregset and fill_fpregset.
7178 * Makefile.in (fbsd-proc.o): Update dependencies.
7180 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7182 (m88k_frame_prev_register): Simplify code a bit.
7184 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7185 (amd64_collect_fpregset): New function.
7186 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7188 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7190 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7191 (i386_collect_gregset): New function.
7192 (i386_supply_fpregset): Adjust comment.
7193 (i386_collect_fpregset): New function.
7194 (i386_regset_from_core_section): Use i386_collect_gregset and
7195 i386_collect_fpregset.
7197 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7198 handle VALUEP being null.
7200 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7202 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7204 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7206 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7207 assembler in OpenBSD 3.5-current.
7208 (amd64obsd_sigcontext_addr): Likewise.
7210 2004-05-28 Jim Blandy <jimb@redhat.com>
7212 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7213 register set, so our regcache isn't declared "legacy" and our E500
7214 pseudoregister read and write functions aren't ignored.
7215 (rs6000_register_byte, rs6000_register_raw_size,
7216 rs6000_register_virtual_type, rs6000_register_convertible,
7217 rs6000_register_convert_to_virtual,
7218 rs6000_register_convert_to_raw): Deleted.
7219 (rs6000_register_type, rs6000_convert_register_p,
7220 rs6000_register_to_value, rs6000_value_to_register): New
7222 (rs6000_gdbarch_init): Don't register
7223 gdbarch_deprecated_register_size,
7224 gdbarch_deprecated_register_bytes,
7225 gdbarch_deprecated_register_byte,
7226 gdbarch_deprecated_register_raw_size,
7227 gdbarch_deprecated_register_virtual_type,
7228 gdbarch_deprecated_register_convertible,
7229 gdbarch_deprecated_register_convert_to_virtual, or
7230 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7231 register gdbarch_register_type, gdbarch_convert_register_p,
7232 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7234 2004-05-26 Jim Blandy <jimb@redhat.com>
7236 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7237 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7238 functions, updated to match the register numberings used in GCC.
7239 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7240 rs6000_dwarf2_reg_to_regnum as register number conversions
7241 functions for STABS and Dwarf2.
7243 2004-05-26 Randolph Chung <tausq@debian.org>
7245 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7248 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7250 * NEWS: Document new "start" command.
7252 2004-05-25 Randolph Chung <tausq@debian.org>
7254 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7257 2004-05-25 Randolph Chung <tausq@debian.org>
7259 * hppa-hpux-tdep.c (offsetof): Define.
7260 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7261 (hppa32_hpux_frame_base_before_sigtramp)
7262 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7263 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7264 (hppa64_hpux_frame_base_before_sigtramp)
7265 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7267 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7268 (hppa_hpux_sigtramp_frame_unwind_cache)
7269 (hppa_hpux_sigtramp_frame_this_id)
7270 (hppa_hpux_sigtramp_frame_prev_register)
7271 (hppa_hpux_sigtramp_frame_unwind)
7272 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7273 (hppa_hpux_init_abi): Register sigtramp unwinder.
7274 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7276 2004-05-25 Randolph Chung <tausq@debian.org>
7278 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7279 and multiple stack unwinds.
7280 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7282 2004-05-25 Andrew Cagney <cagney@gnu.org>
7284 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7285 * symfile-mem.h: Delete file.
7286 * symfile-mem.c: Do not include "symfile-mem.h".
7287 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7288 "struct bfd_section". When an error do not bother returning NULL.
7289 (add_symbol_file_from_memory_command): Use "struct bfd" and
7290 "struct bfd_section".
7291 * Makefile.in (symfile_mem_h): Delete.
7292 (symfile-mem.o): Update dependencies.
7294 2004-05-25 Nick Roberts <nickrob@gnu.org>
7296 * gdb-mi.el: New file.
7298 2004-05-25 Andrew Cagney <cagney@gnu.org>
7300 * inftarg.c: Include "observer.h".
7301 (child_attach, child_create_inferior): Notify inferior_created.
7302 * corelow.c: Include "observer.h".
7303 (core_open): Notify inferior_created.
7304 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7306 2004-05-25 Andrew Cagney <cagney@gnu.org>
7308 * target.h (struct target_ops): Add from_tty to
7310 (target_create_inferior, find_default_create_inferior): Update.
7311 * infcmd.c (run_command): Update.
7312 * wince.c (child_create_inferior): Update.
7313 * win32-nat.c (child_create_inferior): Update.
7314 * uw-thread.c (uw_thread_create_inferior): Update.
7315 * thread-db.c (thread_db_create_inferior): Update.
7316 * target.c (debug_to_create_inferior)
7317 (find_default_create_inferior): Update.
7318 (maybe_kill_then_create_inferior): Update.
7319 * sol-thread.c (sol_thread_create_inferior): Update.
7320 * remote.c (extended_remote_async_create_inferior)
7321 (extended_remote_create_inferior): Update.
7322 * remote-vx.c (vx_create_inferior): Update.
7323 * remote-st.c (st2000_create_inferior): Update.
7324 * remote-sim.c (gdbsim_create_inferior): Update.
7325 * remote-sds.c (sds_create_inferior): Update.
7326 * remote-rdp.c (remote_rdp_create_inferior): Update.
7327 * remote-rdi.c (arm_rdi_create_inferior): Update.
7328 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7329 * remote-e7000.c (e7000_create_inferior): Update.
7330 * procfs.c (procfs_create_inferior): Update.
7331 * ocd.c (ocd_create_inferior): Update.
7332 * ocd.h (ocd_create_inferior): Update.
7333 * nto-procfs.c (procfs_create_inferior): Update.
7334 * monitor.c (monitor_create_inferior): Update.
7335 * lin-lwp.c (lin_lwp_create_inferior): Update.
7336 * inftarg.c (child_create_inferior): Update.
7337 * hpux-thread.c (hpux_thread_create_inferior): Update.
7338 * gnu-nat.c (gnu_create_inferior): Update.
7340 2004-05-25 Andrew Cagney <cagney@gnu.com>
7342 * MAINTAINERS: Update e-mail address.
7344 2004-05-24 Randolph Chung <tausq@debian.org>
7346 * thread.c (info_threads_command, thread_apply_all_command)
7347 (thread_apply_command, thread_command, do_captured_thread_select):
7348 Remove HPUXHPPA-specific code.
7350 2004-05-24 Randolph Chung <tausq@debian.org>
7352 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7354 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7357 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7359 * infcmd.c (kill_if_already_running): New function, extracted
7361 (run_command): Replace extracted code by call to
7362 kill_if_already_running().
7363 (start_command): New function.
7364 (_initialize_infcmd): Add "start" command.
7366 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7368 Add OpenBSD/m88k support.
7369 * NEWS (New native configurations): Mention OpenBSD/m88k.
7370 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7371 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7372 * Makefile.in (m88k_tdep_h): New variable.
7373 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7374 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7375 * configure.host: Add m88*-*-openbsd*.
7376 * configure.tgt: Add m88*-*-openbsd*.
7378 2004-05-24 Jim Blandy <jimb@redhat.com>
7380 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7383 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7385 * symtab.c (fixup_section): Search section table when lookup by
7388 2004-05-24 Randolph Chung <tausq@debian.org>
7390 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7393 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7395 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7396 register number in regcache_raw_collect call.
7397 (m68kbsd_collect_fpregset): Likewise.
7398 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7400 * regset.h (struct regset): Add back `regset' member.
7402 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7404 * configure.in: Check for td_pcb in `struct thread'.
7405 * configure, config.in: Regenerated.
7407 * dpx2-nat.c: Remove file.
7408 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7409 (dpx2-nat.o): Remove dependencies.
7411 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7412 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7413 (amd64obsd_supply_pcb): New function.
7414 (_initialize_amd64obsd_nat): Enable libkvm interface.
7415 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7416 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7417 (LOADLIBES): New variable.
7419 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7420 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7421 (sparc32nbsd_supply_pcb): New function.
7422 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7423 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7424 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7425 (LOADLIBES): New variable.
7427 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7429 * bsd-kvm.c, bsd-kvm.h: New files.
7430 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7432 (i386fbsd_supply_pcb): New function.
7433 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7434 (i386fbsd-nat.o): Update dependencies.
7435 (bsd_kvm_h): New variable.
7436 (bsd-kvm.o): New dependency.
7437 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7438 (LOADLIBES): New variable.
7440 * regset.c: Tweak comment.
7441 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7443 * regset.h: Update copyright year.
7444 (struct regset): Remove `descr' member, add `gdbarch' member.
7445 (regset_alloc): Adjust prototype and comment.
7446 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7447 (i386_supply_fpregset): Likewise.
7448 (i386_regset_from_core_section): Update call to regset_alloc.
7449 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7451 (i386obsd_aout_regset_from_core_section): Update call to
7453 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7455 (i386nbsd_aout_regset_from_core_section): Update call to
7457 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7459 (amd64_regset_from_core_section): Update call to regset_alloc.
7460 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7462 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7463 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7464 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7465 (sparc32nbsd_init_abi): Update call to regset_alloc.
7466 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7467 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7468 (sparc64obsd_init_abi): Update call to regset_alloc.
7469 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7470 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7471 (sparc64nbsd_init_abi): Update call to regset_alloc.
7472 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7473 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7474 (sparc64fbsd_init_abi): Update call to regset_alloc.
7476 2004-05-22 Jim Blandy <jimb@redhat.com>
7478 * ppc-tdep.h (spe_register_p): New declaration.
7479 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7481 * rs6000-tdep.c (spe_register_p): New function.
7482 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7484 (rs6000_gdbarch_init): Initialize the new members of the tdep
7487 2004-05-21 Jim Blandy <jimb@redhat.com>
7489 * ppc-linux-nat.c (fetch_register): Move code back to be next
7490 to the comment that describes it. (Moved code, instead of
7491 comment, for symmetry with store_register.)
7493 Allocate regset structures in the gdbarch's obstack, not using
7495 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7496 Add 'arch' argument. Allocate the regset on arch's obstack, not
7498 * regset.h (regset_alloc): Update declaration.
7499 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7501 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7502 * i386-tdep.c (i386_regset_from_core_section): Same.
7503 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7504 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7505 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7506 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7507 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7508 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7510 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7512 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7514 2004-05-21 Jim Blandy <jimb@redhat.com>
7516 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7517 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7519 2004-05-20 Jim Blandy <jimb@redhat.com>
7521 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7523 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7525 * regset.h: Make prototype const-correct.
7526 * regset.c (regset_xmalloc): Make const-correct.
7528 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7530 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7531 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7532 (symbol_search_name): Declare.
7534 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7535 (iter_name_next_hashed): Ditto.
7536 (iter_name_next_linear): Ditto.
7537 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7539 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7540 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7541 (symbol_search_name): New function.
7543 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7545 * minsyms.c (build_minimal_symbol_hash_tables): Change
7546 test for adding to demangled hash table to check for difference
7547 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7549 2004-05-19 Jim Blandy <jimb@redhat.com>
7551 Use a constructor function to create regset structures.
7552 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7553 (struct regset): Use supply_regset_ftype. Add new
7554 'collect_regset' member.
7555 (regset_xmalloc): New declaration.
7556 * regset.c: New file.
7557 * am64-tdep.c (amd64_regset_from_core_section): Use
7558 regset_xmalloc to construct regset structures.
7559 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7560 * i386-tdep.c (i386_regset_from_core_section): Same.
7561 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7562 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7563 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7564 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7565 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7566 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7567 * Makefile.in (COMMON_OBS): Add regset.o.
7568 (regset.o): New rule.
7570 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7572 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7573 and pthread_cond_wait.c.
7575 2004-05-18 Jim Blandy <jimb@redhat.com>
7577 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7578 before the mach-specific switch, and then let the individual cases
7579 override the defaults, rather than leaving them uninitialized
7580 until the switch and then setting them in each case.
7582 2004-05-18 Randolph Chung <tausq@debian.org>
7584 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7585 millicode functions.
7587 2004-05-18 Randolph Chung <tausq@debian.org>
7589 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7590 references to dld_flags_buffer consistent.
7592 2004-05-18 Randolph Chung <tausq@debian.org>
7594 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7595 it for unwinding the stack.
7597 2004-05-18 Randolph Chung <tausq@debian.org>
7599 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7600 Undefine these so we can overide them using gdbarch.
7602 2004-05-18 Randolph Chung <tausq@debian.org>
7604 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7605 handling for 64-bit HPUX (elf).
7607 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7609 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7611 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7612 * ia64-tdep.c (examine_prologue): Likewise.
7613 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7614 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7616 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7618 * vax-tdep.c (vax_return_value): Implement
7619 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7621 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7623 * vax-tdep.c (vax_return_value): Fix typo.
7625 2004-05-17 Andrew Cagney <cagney@redhat.com>
7627 * MAINTAINERS: Mark Salter was also responsible for
7630 * NEWS: Mention signal fixes.
7632 2004-05-17 Randolph Chung <tausq@debian.org>
7634 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7635 check to see if we are unwinding an export stub. Export stubs clobber
7636 the %rp in the call path and stores the original rp in a stack slot.
7638 2004-05-17 Jim Blandy <jimb@redhat.com>
7640 * MAINTAINERS: Update address for J.T. Conklin.
7642 2004-05-17 Randolph Chung <tausq@debian.org>
7644 * hppa-tdep.c: Remove superfluous #include's.
7645 * Makefile.in (hppa-tdep.o): Update dependencies.
7647 2004-05-17 Randolph Chung <tausq@debian.org>
7649 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7650 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7651 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7652 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7653 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7654 Remove static function declarations.
7656 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7658 * alphabsd-nat.c: Update copyright year.
7659 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7661 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7664 * m68k-tdep.c (m68k_svr4_return_value): Implement
7665 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7667 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7669 * sol-thread.c Update copyright year. Fix various coding
7670 standards violations. Tweak a few comments.
7671 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7674 2004-05-15 Randolph Chung <tausq@debian.org>
7676 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7677 as pointer instead of array reference since HPUX compiler does
7678 not accept unsized array arguments.
7679 * somsolib.c (dld_flags_buffer): Use constant array size.
7681 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7683 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7684 offset with decimal offset.
7685 (amd64obsd_sigcontext_addr): Return correct address for entire
7688 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7689 instead of get_frame_base.
7691 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7692 (fill_gregset): Use regcache_raw_collect.
7694 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7697 * config/sparc/tm-nbsd64.h: Remove file.
7698 * config/tm-sunos.h: Remove file.
7700 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7702 * rs6000-tdep.c (store_param_on_stack_p): New function,
7703 an improved version of some code extracted from skip_prologue().
7704 (skip_prologue): Use store_param_on_stack_p() to detect
7705 instructions saving a parameter on the stack. Detect when r0
7706 is used to save a parameter.
7707 Do not mark "li rx, SIMM" instructions as part of the prologue,
7708 unless the following instruction is also part of the prologue.
7710 2004-05-14 Andrew Cagney <cagney@redhat.com>
7712 * infrun.c (handle_inferior_event): Simplify
7713 STEP_OVER_UNDEBUGGABLE.
7715 * infrun.c (handle_step_into_function): Delete function.
7716 (handle_inferior_event): Inline calls to
7717 handle_step_into_function.
7719 2004-05-14 Jerome Guitton <guitton@gnat.com>
7721 * rs6000-nat.c: Fix a comment.
7723 2004-05-12 David Anderson <davea@sgi.com>
7725 Committed by Jim Blandy <jimb@redhat.com>:
7726 * regcache.c (struct regcache_descr): fix comment spelling.
7728 2004-05-13 J. Brobecker <brobecker@gnat.com>
7730 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7731 Fixes a link link failure.
7733 2004-05-13 J. Brobecker <brobecker@gnat.com>
7735 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7736 error that was causing the build to fail.
7738 2004-05-13 J. Brobecker <brobecker@gnat.com>
7740 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7741 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7743 2004-05-13 Andrew Cagney <cagney@redhat.com>
7745 * infrun.c (handle_inferior_event): Check for
7746 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7747 calls. Update comments.
7749 2004-05-13 Jim Blandy <jimb@redhat.com>
7751 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7752 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7753 (store_regs_user_thread, store_regs_kernel_thread): Use
7754 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7755 * ppc-linux-nat.c (fill_gregset): Same.
7756 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7757 (ppc_linux_sigtramp_cache): Same.
7758 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7759 (ppcnbsd_sigtramp_cache_init): Same.
7760 * rs6000-nat.c (fetch_core_registers): Same.
7761 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7762 (rs6000_frame_cache): Same.
7764 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7765 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7766 of assuming that the gprs are numbered starting with zero.
7767 * ppc-linux-nat.c (fill_gregset): Same.
7768 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7769 * ppcnbsd-nat.c (getregs_supplies): Same.
7770 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7771 * rs6000-nat.c (fetch_core_registers): Same.
7772 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7774 2004-05-07 Michael Snyder <msnyder@redhat.com>
7776 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7777 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7779 2004-05-13 Andrew Cagney <cagney@redhat.com>
7781 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7783 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7785 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7786 base_address for shared libraries.
7788 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7790 * MAINTAINERS (write after approval): Add myself.
7792 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7794 * breakpoint.c (bpstat_stop_status): Add new argument
7795 STOPPED_BY_WATCHPOINT. Use it instead of testing
7796 target_stopped_data_address agaist 0 to check whether
7797 or not we stopped due to a hardware watchpoint.
7798 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7799 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7802 2004-05-12 Jim Blandy <jimb@redhat.com>
7804 * configure.in: When checking whether we should use the -bbigtoc
7805 option, don't forget to restore the original value of LDFLAGS.
7806 * configure: Regenerated.
7808 2004-05-12 Andrew Cagney <cagney@redhat.com>
7810 * thread.c (load_infrun_state): Delete step_sp.
7811 * infrun.c (context_switch): Ditto.
7812 * inferior.h (step_sp): Ditto.
7813 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7814 * gdbthread.h (struct thread_info, save_infrun_state)
7815 (restore_infrun_state): Ditto.
7817 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7819 * MAINTAINERS (write after approval): Add myself.
7821 2004-05-12 Andrew Cagney <cagney@redhat.com>
7823 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7824 eliminate reference to step_sp.
7825 (struct execution_control_state, init_execution_control_state)
7826 (handle_inferior_event, keep_going): Delete update_step_sp and
7828 * infcmd.c (step_sp): Note that variable is unused.
7830 2004-05-11 Andrew Cagney <cagney@redhat.com>
7832 * infrun.c (step_over_function): Delete function.
7833 (handle_step_into_function): Use insert_step_resume_breakpoint.
7834 (insert_step_resume_breakpoint): Fix assertion.
7836 2004-05-11 Nick Roberts <nickrob@gnu.org>
7838 * utils.c (defaulted_query): Just use the normal query input type
7839 when printing the annotations.
7841 2004-05-11 Andrew Cagney <cagney@redhat.com>
7843 * infrun.c (handle_inferior_event): Simplify code handling
7844 step-into or return-from a signal trampoline.
7846 2004-05-11 Andrew Cagney <cagney@redhat.com>
7848 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7849 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7851 2004-05-10 Jim Blandy <jimb@redhat.com>
7853 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7854 with a call to internal_error.
7856 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7857 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7858 processor variant lacks those registers.
7859 (ppc_floating_point_unit_p): Change description to make it clear
7860 that this returns info about the ISA, not the ABI.
7861 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7862 return true or false by checking tdep->ppc_fp0_regnum and
7863 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7864 arch/mach switching done in rs6000_gdbarch_init; it's better to
7865 keep that logic there, and just check the results here.
7866 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7867 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7868 floating-point registers.
7869 (ppc_supply_fpregset, ppc_collect_fpregset)
7870 (rs6000_push_dummy_call, rs6000_extract_return_value)
7871 (rs6000_store_return_value): Assert that we have floating-point
7873 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7874 (rs6000_frame_cache): Don't note the locations at which
7875 floating-point registers were saved if we have no fprs.
7876 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7878 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7879 (store_regs_user_thread, store_regs_kernel_thread): Only call
7880 supply_fprs / fill_fprs if we actually have floating-point
7882 (special_register_p): Check ppc_fpscr_regnum before matching
7884 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7885 supply / collect fpscr if we don't have it.
7886 * ppc-bdm.c: #include "gdb_assert.h".
7887 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7888 have floating-point registers, since I can't test this code on
7889 FP-free systems to adapt it.
7890 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7891 fpscr and floating point register numbers if they don't exist.
7892 (fetch_register): Assert that we have floating-point registers
7893 before we reach the code that handles them.
7894 (store_register): Same. And use tdep instead of calling
7896 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7898 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7899 fprs and fpscr if we don't have them.
7900 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7902 * ppcnbsd-nat.c: #include "gdb_assert.h".
7903 (getfpregs_supplies): Assert that we have floating-point registers.
7904 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7905 * ppcobsd-tdep.c: #include "gdb_assert.h".
7906 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7907 have floating-point registers.
7908 * rs6000-nat.c (regmap): Don't match against the fpscr and
7909 floating point register numbers if they don't exist.
7910 (fetch_inferior_registers, store_inferior_registers,
7911 fetch_core_registers): Only fetch / store / supply the
7912 floating-point registers and the fpscr if we have them.
7913 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7914 (ppcobsd-tdep.o): Update dependencies.
7916 2004-05-10 Andrew Cagney <cagney@redhat.com>
7918 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7919 (context_switch): Do not switch through_sigtramp_breakpoint.
7920 * gdbthread.h (save_infrun_state, load_infrun_state)
7921 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7922 and structure member.
7923 * thread.c (load_infrun_state, save_infrun_state): Update.
7925 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7927 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7929 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7931 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7933 * aclocal.m4: Regenerate.
7935 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7937 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7939 2004-05-10 Andrew Cagney <cagney@redhat.com>
7941 * infrun.c (check_sigtramp2): Delete function.
7942 (handle_inferior_event): When single stepping, and taking a
7943 signal, set a breakpoint at the signal return address. Delete
7944 redundant calls to check_sigtramp2.
7945 (insert_step_resume_breakpoint): New function.
7946 (through_sigtramp_breakpoint, handle_inferior_event)
7947 (follow_exec, wait_for_inferior, fetch_inferior_event)
7948 (currently_stepping, keep_going): Delete most uses of
7949 through_sigtramp_breakpoint, not that it should be deleted.
7950 (delete_breakpoint_current_contents): Delete function.
7952 2004-05-10 Randolph Chung <tausq@debian.org>
7954 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7956 * config/pa/tm-linux.h: New file.
7958 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7960 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7961 of prefixes. Don't print the prefix twice in the CLI.
7963 2004-05-10 Jim Blandy <jimb@redhat.com>
7965 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7966 collect all the gprs.
7968 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7969 loop collecting gprs.
7971 2004-05-09 Andrew Cagney <cagney@redhat.com>
7973 * remote-vx.c (net_step): Delete step-range code.
7974 * remote.c (remote_resume, init_all_packet_configs)
7975 (set_remote_protocol_E_packet_cmd)
7976 (show_remote_protocol_E_packet_cmd)
7977 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7978 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7979 (show_remote_protocol_e_packet_cmd): Ditto.
7981 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7983 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7985 * hppa-tdep.h: Update copyright year.
7986 (struct trad_frame_saved_reg): Add opaque declaration.
7988 * amd64-tdep.c (amd64_return_value): Implement
7989 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7991 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7992 (m68k_value_to_register): New functions.
7993 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7996 * defs.h (enum return_value_convention): Add
7997 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7998 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7999 * infcmd.c (legacy_return_value): New function.
8000 (print_return_value): Rwerite to implement
8001 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8002 * values.c (using_struct_return): Check for inequality to
8003 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8004 RETURN_VALUE_STRUCT_CONVENTION.
8005 * i386-tdep.c (i386_return_value): Implement
8006 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8008 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8009 include "symtab.h", "opcode/vax.h" and "inferior.h".
8010 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8011 to read_memory_unsigned_integer.
8012 (vax_gdbarch_init): Reorder.
8013 (_initialize_vax_tdep): Spell out prototype.
8014 * Makefile.in (vax-tdep.o): Update dependencies.
8016 2004-05-08 Andrew Cagney <cagney@redhat.com>
8018 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8019 * target.c (target_detach, target_disconnect): Ditto.
8021 * infcall.c (call_function_by_hand): When no
8022 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8023 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8024 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8025 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8026 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8028 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8029 * gdbarch.h, gdbarch.c: Re-generate.
8030 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8031 deprecated_fix_call_dummy.
8032 * v850-tdep.c (v850_gdbarch_init): Ditto.
8033 * infcall.c (call_function_by_hand): Do not call
8034 DEPRECATED_FIX_CALL_DUMMY.
8036 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8037 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8038 * gdbarch.h, gdbarch.c: Re-generate.
8039 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8040 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8041 deprecated_sizeof_call_dummy_words.
8042 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8043 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8044 * v850-tdep.c (v850_gdbarch_init): Ditto.
8045 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8046 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8047 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8048 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8049 * arch-utils.h (legacy_call_dummy_words)
8050 (legacy_sizeof_call_dummy_words): Delete declarations.
8051 * arch-utils.c (legacy_call_dummy_words)
8052 (legacy_sizeof_call_dummy_words): Delete variables.
8054 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8055 * gdbarch.h, gdbarch.c: Re-generate.
8056 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8057 * infcall.c (call_function_by_hand): Eliminate call to
8058 DEPRECATED_PUSH_DUMMY_FRAME.
8059 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8061 (ns32k_push_dummy_frame): Delete function.
8063 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8064 deprecated_call_dummy_breakpoint_offset or
8065 deprecated_call_dummy_start_offset.
8066 * dummy-frame.c, arm-tdep.c: Update comments.
8067 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8068 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8069 * gdbarch.h, gdbarch.c: Re-generate.
8071 * infcall.c (legacy_push_dummy_code): Delete function.
8072 (push_dummy_code): Delete call.
8074 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8075 * gdbarch.h, gdbarch.c: Re-generate.
8076 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8077 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8078 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8079 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8081 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8082 (struct frame_info): Delete opaque declaration.
8083 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8084 * frame.c (get_frame_type): Delete call.
8086 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8088 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8089 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8091 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8093 * alphanbsd-tdep.c: Include "gdb_string.h".
8094 * armnbsd-tdep.c: Update copyright year.
8095 Include "gdb_string.h".
8096 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8099 * delta68-nat.c: Remove file.
8100 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8101 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8102 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8103 (delta68-nat.o): Remove dependency.
8105 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8107 (m68k_gdbarch_init): Don't set
8108 deprecated_frameless_function_invocation.
8110 2004-05-07 Randolph Chung <tausq@debian.org>
8112 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8113 read_memory_nobpt for code reading when doing frame unwinding.
8114 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8116 2004-05-07 Randolph Chung <tausq@debian.org>
8118 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8119 instead of sp, handle sigaltstack case.
8120 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8121 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8122 signal handler and not that of the caller.
8123 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8124 hppa_linux_sigtramp_find_sigcontext.
8126 2004-05-07 Randolph Chung <tausq@debian.org>
8128 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8130 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8131 * hppa-linux-nat.c (fetch_register, store_register): Define.
8132 (fetch_inferior_registers, store_inferior_registers): Define.
8133 (supply_gregset): Add comment and clean up some unneeded code.
8134 (fill_gregset): Add comment and fix so that it saves registers in
8135 the right place in the gregset.
8136 (fill_fpregset): Fix buffer overrun problem.
8137 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8139 2004-05-07 Randolph Chung <tausq@debian.org>
8141 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8142 do common handling of the pcoqt register.
8143 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8144 to use helper function.
8145 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8146 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8147 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8148 generic fallback unwinder when all else fails.
8149 (hppa_gdbarch_init): Add fallback sniffer.
8150 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8151 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8152 to use helper function.
8154 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8156 * config/djgpp/fnchange.lst: Add translation rules for
8157 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8159 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8161 * frame.c (get_prev_frame_1): Work around GCC bug.
8162 * frame.h: Add comment about GCC bug.
8164 2004-05-07 Andrew Cagney <cagney@redhat.com>
8166 * observer.c: Include "commands.h" and "gdbcmd.h".
8167 (observer_debug, _initialize_observer): Add the
8168 command "set/show debug observer".
8169 * observer.sh: When observer debugging, log notify calls.
8170 * Makefile.in (observer.o): Update dependencies.
8172 2004-05-07 Jason Molenda (jmolenda@apple.com)
8174 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8176 2004-05-07 Jim Blandy <jimb@redhat.com>
8178 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8179 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8180 to recognize gpr regnums, instead of assuming that
8181 tdep->ppc_fp0_regnum marks the end of the general-purpose
8184 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8185 the given architecture has floating-point registers.
8187 2004-05-07 Andrew Cagney <cagney@redhat.com>
8189 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8191 * gdbarch.h, gdbarch.c: Re-generate.
8192 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8193 deprecated_use_generic_dummy_frames.
8195 2004-05-07 Brian Ford <ford@vss.fsi.com>
8197 * NEWS: Mention Cygwin DWARF 2 support.
8199 2004-05-07 Andrew Cagney <cagney@redhat.com>
8201 * objfiles.h (struct entry_info): Delete unused fields
8202 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8203 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8204 * mipsread.c (mipscoff_symfile_read): Update.
8205 * mdebugread.c (parse_partial_symbols): Update.
8206 * dwarfread.c (read_file_scope): Update.
8207 * dwarf2read.c (read_file_scope): Update.
8208 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8209 * coffread.c (complete_symtab): Update.
8211 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8213 * infcall.c (_initialize_infcall): Fix typo.
8215 2004-05-07 Andrew Cagney <cagney@redhat.com>
8217 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8218 * command.h (add_setshow_zinteger_cmd): Declare.
8220 2004-05-06 Randolph Chung <tausq@debian.org>
8222 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8223 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8224 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8225 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8226 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8227 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8228 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8230 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8231 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8232 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8233 (hppa64_hpux_frame_find_saved_regs_in_sig)
8234 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8235 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8236 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8237 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8238 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8239 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8240 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8241 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8242 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8243 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8244 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8245 (hppa32_register_type, hppa_cannot_store_register)
8246 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8247 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8248 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8249 * pa64solib.c (pa64_solib_have_load_event)
8250 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8251 (pa64_solib_unloaded_library_pathname): Likewise.
8252 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8253 (som_solib_library_pathname): Likewise.
8255 2004-05-05 Jim Ingham <jingham@apple.com>
8257 * breakpoint.c (create_breakpoints): Copy the ignore count and
8258 thread id over from the pended breakpoint to the actual
8261 2004-05-05 Andrew Cagney <cagney@redhat.com>
8263 * gdbarch.sh (PARM_BOUNDARY): Delete.
8264 gdbarch.h, gdbarch.c: Re-generate.
8265 * valops.c (PARM_BOUNDARY): Delete macro.
8266 (value_push): Delete PARM_BOUNDARY code.
8267 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8269 2004-05-04 Jim Blandy <jimb@redhat.com>
8271 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8272 Don't assume that the gprs, fprs, and UISA sprs are
8273 contiguous, start at register number zero, and end with fpscr.
8274 Instead, use the numbers from the tdep structure.
8276 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8277 should no longer be used in code specific to the RS6000 and its
8279 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8280 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8281 tdep->ppc_fp0_regnum.
8282 (ppc_supply_fpregset, ppc_collect_fpregset)
8283 (rs6000_push_dummy_call, rs6000_extract_return_value)
8284 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8285 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8287 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8288 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8290 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8291 bdm_ppc_store_registers): Same.
8292 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8293 (store_register, fill_fpregset): Same.
8294 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8295 (ppc_linux_supply_fpregset): Same.
8296 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8297 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8299 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8300 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8301 ppc64_sysv_abi_return_value): Same.
8302 * rs6000-nat.c (regmap, fetch_inferior_registers)
8303 (store_inferior_registers, fetch_core_registers): Same.
8305 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8307 * m68knbsd-nat.c: Remove file.
8308 * m68knbsd-tdep.c: Remove file.
8309 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8311 * configure.host: Add m68k-*-netbsdelf*.
8312 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8313 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8314 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8316 * config/m68k/nbsdelf.mh: New file.
8317 * config/m68k/nbsd.mt: New file.
8318 * config/m68k/nbsdaout.mt: Remove file.
8319 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8320 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8321 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8322 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8323 (use_struct_convention): Remove prototype.
8324 (USE_STRUCT_CONVENTION): Remove define.
8325 * config/m68k/xm-nbsd.h: Remove file.
8327 2004-05-04 Michael Snyder <msnyder@redhat.com>
8329 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8330 reg_struct_return method (as gcc usually does for cross targets).
8332 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8334 Committed by Andrew Cagney.
8335 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8336 alignment padding when accessing ucontext struct members.
8338 2004-05-04 Jim Blandy <jimb@redhat.com>
8340 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8341 'ppc_gplast_regnum' member.
8342 (ppc_num_gprs): New enum constant.
8343 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8344 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8345 * rs6000-nat.c (regmap, fetch_inferior_registers,
8346 store_inferior_registers): Same.
8347 * rs6000-tdep.c (e500_pseudo_register_read)
8348 (e500_pseudo_register_write): Same.
8349 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8351 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8352 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8353 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8354 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8356 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8358 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8359 * rs6000-nat.c (regmap, fetch_inferior_registers)
8360 (store_inferior_registers): Same.
8362 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8365 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8367 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8368 failure detected by recent versions of GCC.
8369 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8370 to be consistent with the usage in dwarf2_create_include_psymtab.
8372 2004-05-03 Michael Snyder <msnyder@redhat.com>
8374 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8375 (heuristic_proc_start): Whitespace cleanup.
8377 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8379 * sun3-nat.c: Remove file.
8380 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8382 (ALLDEPFILES): Remove sun3-nat.c.
8383 (sun3-nat.o): Remove dependencies.
8385 * i386-interix-nat.c, i386-interix-tdep.c,
8386 config/i386/nm-interix.h, config/i386/interix.mh,
8387 config/i386/interix.mt: Remove files.
8388 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8391 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8393 * m68k-tdep.h (struct gdbarch_tdep): Add member
8394 struct_value_regnum.
8395 (m68k_svr4_init_abi): New prototype.
8396 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8397 different calling conventions.
8398 (m68k_extract_return_value): Remove code dealing with single-field
8400 (m68k_store_return_value): Remove code dealing with single-field
8401 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8402 (m68k_extract_struct_value_address): Remove function.
8403 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8404 (m68k_reg_struct_return_p, m68k_return_value)
8405 (m68k_svr4_return_value): New functions.
8406 (m68k_use_struct_convention): Remove function.
8407 (m68k_push_dummy_call): Use new struct_value_regnum member of
8408 `struct gdbarch_tdep' instead of hardcoded register number to
8410 (m68k_svr4_init_abi): New function.
8411 (m68k_gdbarch_init): Don't set extract_return_value,
8412 store_return_values, deprecated_extract_struct_value_address and
8413 use_struct_convention. Set return_value instead. Initialize new
8414 struct_value_regnum member of `struct gdbarch_tdep'.
8415 * m68klinux-tdep.c: Update copyright year.
8416 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8417 (m68k_linux_extract_struct_value_address): Remove function.
8418 (m68k_linux_init_abi): Don't set extract_return_value,
8419 store_return_values, deprecated_extract_struct_value_address and
8420 use_struct_convention. Call m68k_svr4_init_abi but override the
8421 new struct_value_regnum member of `struct gdbarch_tdep'.
8422 * Makefile.in (m68k-tdep.o): Update dependencies.
8424 2004-05-03 J. Brobecker <brobecker@gnat.com>
8426 * dwarf2read.c (line_header): Add new included_p field in
8428 (partial_die_info): New field has_stmt_list. New field line_offset.
8429 (dwarf2_create_include_psymtab): New function.
8430 (dwarf2_build_include_psymtabs): New function.
8431 (add_file_name): Add forward declaration. Initialize new field.
8432 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8433 to be able to determine the list of files included by the
8434 given unit, and build their associated psymtabs.
8435 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8437 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8438 (read_file_scope): Update call to dwarf_decode_lines.
8439 (read_partial_die): Handle DW_AT_stmt_list attributes.
8441 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8444 * configure.in: Revert special case for osf5.*.
8445 * configure: Regenerate.
8447 2004-05-02 Jim Blandy <jimb@redhat.com>
8449 Move the symbol-file-from-memory functions into their own file.
8450 * symfile-mem.c, symfile-mem.h: New files.
8451 * symfile.c (symbol_file_add_from_bfd): New function.
8452 (symbol_file_add): Call symbol_file_add_from_bfd.
8453 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8454 Moved to symfile-mem.c.
8455 (_initialize_symfile): Move definition of
8456 add-symbol-file-from-memory command to symfile-mem.c.
8457 * symfile.h (symbol_file_add_from_bfd): New declaration.
8458 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8459 * config/powerpc/linux.mt (TDEPFILES): Same.
8460 * Makefile.in (SFILES): Add symfile-mem.c.
8461 (symfile_mem_h): New variable.
8462 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8463 (symfile-mem.o): New rule.
8465 2004-05-01 Andrew Cagney <cagney@redhat.com>
8467 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8468 frame_find_by_id instead of frame_relative_level.
8469 (do_enable_breakpoint): Ditto.
8470 * thread.c: Update copyright.
8471 (info_threads_command): Ditto, simplify.
8473 * frame.c (deprecated_generic_get_saved_register): Delete
8474 function, moved to "xstormy16-tdep.c".
8475 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8476 deprecated_generic_get_saved_register from "frame.c".
8477 (xstormy16_frame_saved_register): Call
8478 xstormy16_get_saved_register.
8479 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8481 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8482 * frame.h (deprecated_generic_get_saved_register): Delete.
8484 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8486 * dwarfread.c: Update documentation on the state of dwarf-1.
8488 2004-05-01 Andrew Cagney <cagney@redhat.com>
8490 * stack.c (select_frame_command): Delete call to
8491 frame_relative_level.
8492 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8494 (frame_info): Do not print FRAMELESS.
8495 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8496 (catch_info): Delete #if0 code.
8498 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8499 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8500 of frame_relative_level.
8501 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8503 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8504 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8505 frame_relative_level.
8507 * frame.h (deprecated_set_frame_type): Delete declaration.
8508 * frame.c (deprecated_set_frame_type): Delete function, update
8511 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8512 * gdbarch.h, gdbarch.c: Re-generate.
8513 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8514 (shnbsd_pc_in_sigtramp): Delete.
8515 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8517 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8519 * frame.h: Update comments.
8520 * ppc-linux-tdep.c: Update comments.
8521 * breakpoint.c (bpstat_what): Update comments.
8523 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8524 m68klinux-tdep.o's dependencies, were previously added to
8527 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8528 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8529 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8530 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8531 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8533 * Makefile.in (m68klinux-nat.o): Update dependencies.
8534 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8535 (m68k_linux_sigtramp_frame_cache)
8536 (m68k_linux_sigtramp_frame_this_id)
8537 (m68k_linux_sigtramp_frame_prev_register)
8538 (m68k_linux_sigtramp_frame_unwind)
8539 (m68k_linux_sigtramp_frame_sniffer)
8540 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8541 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8542 names, use trad-frame.h.
8543 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8544 (struct m68k_sigtramp_info): Delete.
8545 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8546 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8547 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8548 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8551 * infrun.c (check_sigtramp2): Delete check for
8552 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8554 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8556 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8558 2004-05-01 Andrew Cagney <cagney@redhat.com>
8560 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8561 (frv_linux_sigtramp_frame_cache)
8562 (frv_linux_sigtramp_frame_this_id)
8563 (frv_linux_sigtramp_frame_prev_register)
8564 (frv_linux_sigtramp_frame_unwind)
8565 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8566 include "linux" in function and variable names, directly call
8567 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8568 the latest trad-frame code.
8569 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8570 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8571 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8572 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8573 * frv-tdep.c (frv_sigtramp_frame_cache)
8574 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8575 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8577 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8578 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8579 (frv_set_sigcontext_reg_addr): Delete function.
8581 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8582 (DEPRECATED_SIGTRAMP_END): Delete.
8583 * gdbarch.h, gdbarch.c: Re-generate.
8584 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8585 * config/vax/tm-vaxbsd.h: Update copyright.
8586 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8587 (DEPRECATED_IN_SIGTRAMP): Define.
8588 * config/m68k/tm-nbsd.h: Update copyright.
8589 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8590 (DEPRECATED_IN_SIGTRAMP): Define.
8592 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8594 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8595 encondings. Fixes PR gdb/1628.
8597 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8598 DW_CFA_restore state without a matching DW_CFA_remember_state
8599 instead of aborting. Fixes PR backtrace/1589.
8601 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8603 * MAINTAINERS: Add self as AIX maintainer.
8604 Update my e-mail address in write-after-approval section.
8606 2004-04-30 Andrew Cagney <cagney@redhat.com>
8608 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8609 (legacy_get_prev_frame): Ditto.
8611 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8612 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8613 * mipsread.c (sigtramp_address): Delete extern variable.
8614 (mipscoff_new_init): Delete reference.
8615 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8616 (fixup_sigtramp): Delete function.
8617 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8618 (fixup_sigtramp): Delete declarations.
8620 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8621 deprecated_pc_in_sigtramp.
8622 (ppcnbsd_pc_in_sigtramp): Delete function.
8624 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8626 * config/m68k/nm-nbsd.h: Tweak comments.
8627 * config/m68k/nm-nbsdaout.h: Likewise.
8629 2004-04-30 Andrew Cagney <cagney@redhat.com>
8631 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8632 legacy_pc_in_sigtramp.
8633 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8635 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8637 Add OpenBSD/m68k support.
8638 * NEWS (New native configurations): Mention OpenBSD/m68k.
8639 * m68kbsd-tdep.c: New file.
8640 * m68kbsd-nat.c: New file.
8641 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8642 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8643 * configure.host: Add m68k-*-openbsd.
8644 * configure.tgt: Add m68k-*-openbsd.
8645 * config/m68k/tm-obsd.h: New file.
8646 * config/m68k/obsd.mt: New file.
8647 * config/m68k/obsd.mh: New file.
8648 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8651 2004-04-30 Andrew Cagney <cagney@redhat.com>
8653 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8654 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8656 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8658 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8659 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8661 2004-04-30 Brian Ford <ford@vss.fsi.com>
8663 Revert 2004-04-16 change.
8664 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8665 (i386_coff_init_abi): Remove.
8666 * i386-tdep.h (i386_coff_init_abi): Remove.
8667 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8669 2004-04-30 Andrew Cagney <cagney@redhat.com>
8671 * blockframe.c (find_pc_partial_function): Delete use of
8672 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8673 DEPRECATED_SIGTRAMP_END.
8675 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8676 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8677 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8678 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8679 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8681 * defs.h (deprecated_inside_entry_file): Delete declaration.
8682 * blockframe.c (deprecated_inside_entry_file): Delete function.
8683 (legacy_frame_chain_valid): Delete call.
8684 * sh64-tdep.c (sh64_frame_chain): Delete call.
8685 * objfiles.h: Update comments.
8686 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8688 * frame.c (get_prev_frame): Delete call, update comments.
8690 2004-04-30 Brian Ford <ford@vss.fsi.com>
8692 * MAINTAINERS (Write After Approval): Add myself.
8694 2004-04-30 Andrew Cagney <cagney@redhat.com>
8696 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8697 * gdbarch.h, gdbarch.c: Re-generate.
8698 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8701 2004-04-30 Andrew Cagney <cagney@redhat.com>
8703 * gdb-events.sh (selected_thread_changed)
8704 (selected_frame_level_changed, target_changed): Delete.
8705 * gdb-events.h, gdb-events.c: Re-generate.
8706 * valops.c (value_assign): Update.
8707 * stack.c (select_frame_command, up_silently_base)
8708 (down_silently_base): Update.
8710 2004-04-29 Andrew Cagney <cagney@redhat.com>
8712 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8713 registers correctly.
8714 (print_gp_register_row, mips32_heuristic_proc_desc)
8715 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8716 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8717 references to mips_isa_regsize.
8719 2004-04-29 Andrew Cagney <cagney@redhat.com>
8721 * mips-tdep.c (struct gdbarch_tdep): Delete
8722 mips_fp_register_double.
8723 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8725 (mips_gdbarch_init): Do not set mips_fp_register_double.
8726 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8728 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8730 Committed by Andrew Cagney.
8731 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8734 2004-04-29 Andrew Cagney <cagney@redhat.com>
8736 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8737 gdbarch, use mips_abi, update callers.
8738 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8739 mips_abi_regsize, update callers.
8740 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8741 mips_default_abi_regsize.
8742 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8743 mips_default_abi_regsize.
8745 2004-04-29 Andrew Cagney <cagney@redhat.com>
8747 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8748 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8749 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8750 mips_default_abi_regsize.
8751 (mips_isa_regsize): Rename mips_regisze.
8752 * mipsnbsd-tdep.c: Update.
8753 * mips-linux-tdep.c: Update.
8754 * irix5-nat.c: Update.
8755 * mips-tdep.h (mips_isa_regsize): Update.
8757 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8758 Delete all disabled code.
8759 * gdb-events.h, gdb-events.c: Re-generate.
8761 2004-04-19 Jerome Guitton <guitton@gnat.com>
8762 Mark Kettenis <kettenis@gnu.org>
8764 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8765 the function begins with a branch instruction.
8767 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8769 * i386-tdep.c: Fix spelling mistakes.
8771 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8772 Andrew Cagney <cagney@redhat.com>
8774 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8776 * acconfig.h: Provide default _KMEMUSER value.
8777 * config.in, configure: Re-generate.
8778 * NEWS: Mention fix.
8780 2004-04-24 Randolph Chung <tausq@debian.org>
8782 * configure.host (hppa*-*-linux*): New target.
8783 * configure.tgt (hppa*-*-linux*): Likewise.
8784 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8785 gdbarch_init_osabi() call earlier so that osabi-specific frame
8786 unwinders can be registered first.
8787 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8789 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8790 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8791 * config/pa/linux.mh: New file.
8792 * config/pa/linux.mt: New file.
8793 * config/pa/nm-linux.h: New file.
8794 * config/pa/xm-linux.h: New file.
8795 * hppa-linux-nat.c: New file.
8796 * hppa-linux-tdep.c: New file.
8798 2004-04-28 Randolph Chung <tausq@debian.org>
8800 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8802 (hppa32_push_dummy_call): Fix small struct and floating point argument
8803 passing, and make sure the stack frame is properly aligned.
8805 2004-04-28 Andrew Cagney <cagney@redhat.com>
8807 * stack.c (print_stack_frame): Fix description.
8809 * NEWS: Mention gdb/gdbserver/configure execute permission
8810 changed. PR server/519.
8812 2004-04-28 Andrew Cagney <cagney@redhat.com>
8814 * stack.c (print_stack_frame_stub): Delete declaration.
8815 (struct print_stack_frame_args, print_stack_frame)
8816 (print_frame_info, print_frame): Replace "source" with print what.
8817 Replace "print" with "print_level". Replace "args" with
8819 * frame.h (show_and_print_stack_frame, print_stack_frame)
8820 (print_frame_info): Update declarations.
8821 * stack.c (select_and_print_frame, frame_command)
8822 (current_frame_command, up_command, down_command): Update calls -
8823 use get_selected_frame, pass "enum print_what" for source, do not
8824 call frame_relative_level.
8825 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8826 * remote-rdp.c (remote_rdp_open): Ditto.
8827 * remote-mips.c (common_open): Ditto.
8828 * remote-e7000.c (e7000_start_remote): Ditto.
8829 * ocd.c (ocd_start_remote): Ditto.
8830 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8831 * infrun.c (normal_stop): Ditto.
8832 * inflow.c (kill_command): Ditto.
8833 * infcmd.c (finish_command): Ditto.
8834 * corelow.c (core_open): Ditto.
8835 * tracepoint.c (finish_tfind_command): Ditto.
8836 * thread.c (info_threads_command, info_threads_command)
8837 (restore_current_thread, do_captured_thread_select): Ditto.
8838 * ada-tasks.c (task_command): Ditto.
8840 2004-04-26 Orjan Friberg <orjanf@axis.com>
8842 * frame.c: Include "observer.h".
8843 (frame_observer_target_changed): New function.
8844 (_initialize_frame): Attach target_changed observer.
8845 * regcache.c: Include "observer.h".
8846 (regcache_observer_target_changed): New function.
8847 (_initialize_regcache): Attach target_changed observer.
8848 * valops.c: Include "observer.h".
8849 (value_assign): Notify target_changed event when modifying register.
8850 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8852 2004-04-26 Orjan Friberg <orjanf@axis.com>
8854 From Paul Koning <pkoning@equallogic.com>:
8855 * breakpoint.c (free_valchain): New function.
8856 (insert_bp_location, delete_breakpoint): Use free_valchain.
8857 (remove_breakpoint): Do not remove the valchain.
8858 (bpstat_stop_status): If not stopped by watchpoint, skip
8859 watchpoints when generating stop status list.
8860 * infrun.c (handle_inferior_event): Make
8861 stepped_after_stopped_by_watchpoint a global variable.
8862 * remote.c (remote_stopped_data_address): Return watch data
8863 address rather than zero if stepped_after_stopped_by_watchpoint is
8866 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8869 * configure.in: Check for curses after termcap.
8870 On osf5.*, do not check for ncurses.
8871 * configure: Regenerate.
8873 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8875 * ppcobsd-nat.c: Include "ppc-tdep.h".
8876 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8878 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8879 Fixes PR tdep/1623 and PR tdep/1624.
8881 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8883 * xmodem.h, xmodem.c: Remove files.
8884 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8886 2004-04-23 Randolph Chung <tausq@debian.org>
8888 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8889 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8890 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8891 for handling stackless frames.
8892 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8894 2004-04-23 Randolph Chung <tausq@debian.org>
8896 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8897 starts at a pc before the frame is created.
8899 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8901 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8903 2004-04-23 Jerome Guitton <guitton@gnat.com>
8905 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8906 use convert_typed_floating to get the appropriate format.
8908 2004-04-22 Randolph Chung <tausq@debian.org>
8910 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8911 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8912 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8913 (hppa_sign_extend): Add prototype.
8914 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8915 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8916 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8917 hppa targets will also use these functions.
8918 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8919 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8920 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8921 (hppa_gdbarch_init): Remove gdbarch setting of
8922 skip_trampoline_code, in_solib_call_trampoline and
8923 in_solib_return_trampoline.
8924 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8925 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8926 hppa_in_solib_call_trampoline.
8927 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8928 Moved from hppa-tdep.c.
8929 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8930 in_solib_call_trampoline and in_solib_return_trampoline.
8932 2004-04-22 Randolph Chung <tausq@debian.org>
8934 * hppa-tdep.c (hppa_debug): New variable.
8935 (find_unwind_entry, hppa_frame_cache): Add debug output.
8936 (_initialize_hppa_tdep): Add command to set debug flag.
8938 2004-04-22 Andrew Cagney <cagney@redhat.com>
8940 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8942 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8943 signal trampoline unwinder.
8944 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8946 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8948 Add OpenBSD/powerpc support.
8949 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8950 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8951 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8952 (ppc_collect_fpregset): New prototypes.
8953 * ppcobsd-nat.c: New file.
8954 * ppcobsd-tdep.c: New file.
8955 * ppcobsd-tdep.h: New file.
8956 * rs6000-tdep.c: Include "regset.h".
8957 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8958 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8960 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8961 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8962 (rs6000-tdep.o): Update dependencies.
8963 * configure.host: Add powerpc-*-openbsd.
8964 * configure.tgt: Add powerpc-*-openbsd.
8965 * config/powerpc/obsd.mh: New file.
8966 * config/powerpc/nm-obsd.h: New file.
8967 * config/powerpc/obsd.mt: New file.
8969 2004-04-22 Andrew Cagney <cagney@redhat.com>
8971 * frame.h (show_frame_info): Delete declaration.
8973 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8974 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8975 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8976 * frv-tdep.c (frv_frame_this_id): Ditto.
8977 * avr-tdep.c (avr_frame_this_id): Ditto.
8979 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8981 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8983 2004-04-22 Jim Blandy <jimb@redhat.com>
8985 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8986 register number zero.
8988 2004-04-21 Michael Snyder <msnyder@redhat.com>
8990 * mips-tdep.c (heuristic_proc_start):
8991 Warning() already prefixes "Warning: ".
8993 2004-04-21 Andrew Cagney <cagney@redhat.com>
8995 * annotate.h (deprecated_annotate_starting_hook)
8996 (deprecated_annotate_stopped_hook)
8997 (deprecated_annotate_exited_hook)
8998 (deprecated_annotate_signal_hook)
8999 (deprecated_annotate_signalled_hook): Deprecate.
9000 * tracepoint.h (deprecated_create_tracepoint_hook)
9001 (deprecated_delete_tracepoint_hook)
9002 (deprecated_modify_tracepoint_hook)
9003 (deprecated_trace_find_hook)
9004 (deprecated_trace_start_stop_hook): Deprecate.
9005 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9006 * remote.h (deprecated_target_resume_hook)
9007 (deprecated_target_wait_loop_hook): Deprecate.
9008 * gdbcore.h (deprecated_exec_file_display_hook)
9009 (deprecated_file_changed_hook): Deprecate.
9010 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9011 * defs.h (deprecated_modify_breakpoint_hook)
9012 (deprecated_command_loop_hook, deprecated_show_load_progress)
9013 (deprecated_print_frame_info_listing_hook)
9014 (deprecated_query_hook, deprecated_warning_hook)
9015 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9016 (deprecated_delete_breakpoint_hook)
9017 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9018 (deprecated_readline_begin_hook, deprecated_readline_hook)
9019 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9020 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9021 (deprecated_context_hook, deprecated_target_wait_hook)
9022 (deprecated_attach_hook, deprecated_detach_hook)
9023 (deprecated_call_command_hook, deprecated_set_hook)
9024 (deprecated_error_hook, deprecated_error_begin_hook)
9025 (deprecated_ui_load_progress_hook): Deprecate.
9026 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9027 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9028 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9029 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9030 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9031 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9032 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9033 * annotate.c, aix-thread.c: Update.
9035 2004-04-21 Andrew Cagney <cagney@redhat.com>
9037 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9038 * vaxnbsd-tdep.c: Include "gdb_string.h".
9040 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9041 (add_symbol_file_from_memory_command): #if 0 function body, call
9044 2004-04-21 Andrew Cagney <cagney@redhat.com>
9046 * gdbcore.h: Update copyright.
9047 (deprecated_add_core_fns): Rename add_core_fns.
9048 * win32-nat.c (_initialize_core_win32): Update.
9049 * sun3-nat.c (_initialize_core_sun3): Update.
9050 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9051 * rs6000-nat.c (_initialize_core_rs6000): Update.
9052 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9053 * nto-tdep.c (_initialize_nto_tdep): Update.
9054 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9055 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9056 * mips-nat.c (_initialize_core_mips): Update.
9057 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9058 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9059 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9060 * lynx-nat.c (_initialize_core_lynx): Update.
9061 * irix5-nat.c (_initialize_core_irix5): Update.
9062 * i386-interix-nat.c (_initialize_core_interix): Update.
9063 * cris-tdep.c (_initialize_cris_tdep): Update.
9064 * corelow.c (deprecated_add_core_fns): Update.
9065 * core-regset.c (_initialize_core_regset): Update.
9066 * core-aout.c (_initialize_core_aout): Update.
9067 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9068 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9069 * alpha-nat.c (_initialize_core_alpha): Update.
9071 2004-04-21 Jim Blandy <jimb@redhat.com>
9073 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9075 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9077 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9079 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9080 (read_attribute_value): Update calls to dwarf_alloc_block.
9081 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9083 (psymtab_to_symtab_1): Likewise. Clean up using
9084 free_stack_comp_unit.
9085 (add_to_cu_func_list): Use the comp_unit_obstack.
9087 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9089 * dwarf2read.c (dwarf2_flag_true_p): New function.
9090 (die_is_declaration): Use the function above. Add some comments.
9092 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9094 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9095 architecture when registering sparcnbsd_core_osabi_sniffer.
9098 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9100 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9103 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9104 * i386-tdep.c: Correct register numbering scheme comments
9106 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9107 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9108 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9109 (i386_gdb_arch_init): Likewise.
9111 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9112 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9115 * m68k-tdep.h: Tweak comments.
9116 * m68k-tdep.c: Tweak comment.
9118 2004-04-17 Randolph Chung <tausq@debian.org>
9120 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9121 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9122 (hppa_hpux_som_init_abi): Set is_elf to 0.
9123 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9124 * hppa-tdep.c (low_text_segment_address): Remove global.
9125 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9126 section offset to calculate segment address.
9127 (internalize_unwinds): Define low_text_segment_address as local and
9128 pass to record_text_segment_lowaddr for ELF targets.
9129 (hppa_gdbarch_init): Zero fill tdep structure.
9130 (hppa_dump_tdep): Print tdep structure.
9131 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9133 2004-04-17 Randolph Chung <tausq@debian.org>
9135 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9136 (hppa_gdbarch_init): Set pseudo_register_read.
9137 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9138 * regcache.c (supply_register): Remove check for
9139 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9141 2004-04-17 Randolph Chung <tausq@debian.org>
9143 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9144 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9145 (hpread_adjust_stack_address): Move to hpread.c.
9146 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9147 obj_private_struct): Move from tm-hppa.h.
9148 * hpread.c (hppa-tdep.h): Include.
9149 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9150 (hpread_read_function_type, hpread_read_doc_function_type)
9151 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9153 * pa64solib.c (hppa-tdep.h): Include.
9154 * somsolib.c (hppa-tdep.h): Include.
9155 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9156 inferior_status): Remove unused forward declarations.
9157 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9158 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9159 obj_private_struct): Move to hppa-tdep.h.
9160 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9162 2004-04-17 Randolph Chung <tausq@debian.org>
9164 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9165 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9166 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9167 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9168 Remove forward declaration and make static.
9169 (hppa_reg_struct_has_addr): Remove.
9171 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9173 * observer.sh: Move comments in sed command to first column.
9175 2004-04-16 Jason Molenda (jmolenda@apple.com)
9177 * frame.c: Minor typeo corrections in comments.
9179 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9181 * observer.c (observer_test_first_notification_function): Update
9183 (observer_test_second_notification_function): Likewise.
9184 (observer_test_third_notification_function): Likewise.
9186 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9188 From Brian Ford <ford@vss.fsi.com>:
9189 * i386-tdep.c (i386_coff_init_abi): New function.
9190 * i386-tdep.h (i386_coff_init_abi): New prototype.
9191 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9192 register number translation functions for DWARF and DWARF 2.
9194 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9196 * dwarf2read.c: Back out my previous change, it was incorrect.
9198 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9200 * dwarf2read.c: Include "hashtab.h".
9201 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9203 (struct partial_die_info): Add comments. Use bitfields to reduce
9204 memory footprint. Add scope, scope_set, has_specification,
9205 spec_offset, die_parent, die_child, and die_sibling.
9206 (peek_die_abbrev): Add prototype.
9207 (partial_read_comp_unit_head): New function, broken out from
9208 dwarf2_build_psymtabs_hard.
9209 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9210 Use partial_read_comp_unit_head. Initialize the CU and
9211 comp_unit_obstack. Update calls to read_partial_die and
9212 scan_partial_symbols. Use free_stack_comp_unit and
9214 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9215 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9216 Update calls to helper functions. Remove NAMESPACE argument.
9218 (partial_die_parent_scope, partial_die_full_name): New functions.
9219 (add_partial_symbol): Remove namespace argument. Update call to
9220 pdi_needs_namespace. Use partial_die_full_name. Handle
9221 DW_TAG_namespace. Check has_namespace_info flag.
9222 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9223 tag. Handle namespaces.
9224 (add_partial_namespace, add_partial_enumeration): Simplify.
9225 (guess_structure_name): New function, derived from
9226 add_partial_structure.
9227 (add_partial_structure): Remove.
9228 (determine_class_name): Update comment.
9229 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9230 (is_type_tag_for_partial, load_partial_dies): New functions.
9231 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9232 Record specifications instead of following them immediately.
9233 (find_partial_die_in_comp_unit, find_partial_die)
9234 (fixup_partial_die, free_stack_comp_unit)
9235 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9236 (partial_die_hash, partial_die_eq): New functions.
9237 * Makefile.in (hashtab_h): Define.
9238 (dwarf2read.o): Update dependencies.
9239 (observer_inc, observer_h): Move to the correct section.
9241 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9243 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9244 (die_is_declaration): Use the function above. Add comment.
9246 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9248 * dwarf2read.c (read_structure_scope): Identify stub types
9249 using die_is_declaration() only.
9251 2004-04-15 Roland McGrath <roland@redhat.com>
9253 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9254 argument instead of NAME.
9255 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9256 in call to symbol_file_add_with_addrs_or_offsets.
9257 (build_addr_info): New function, helper for ...
9258 (symbol_file_add_from_memory): New function.
9259 (add_symbol_file_from_memory_command): New function using that.
9260 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9261 (pre_add_symbol_hook): Add const to argument type.
9262 * symfile.h (symbol_file_add_from_memory): Declare it.
9264 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9266 * NEWS (New native configurations): Mention OpenBSD/vax.
9267 * configure.host: Add vax-*-openbsd*.
9268 * config/vax/obsd.mh: New file.
9269 * config/vax/nm-obsd.h: New file.
9271 * vax-tdep.c: Include "regset.h".
9272 (vax_supply_gregset): New function.
9273 (vax_gregset): New variable.
9274 (vax_regset_from_core_section): New function.
9275 (vax_gdbarch_init): Set regset_from_core_section.
9276 * Makefile.in (vax-tdep.o): Update dependencies.
9278 2004-04-15 Andrew Cagney <cagney@redhat.com>
9280 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9281 (observer_normal_stop_notification_stub)
9282 (observer_attach_normal_stop, observer_detach_normal_stop):
9283 Delete, replaced by #include "observer.inc".
9284 * infrun.c (normal_stop): Pass "stop_bpstat" to
9285 observer_notify_normal_stop.
9286 * Makefile.in (observer_inc): Define.
9287 (observer.o): Update dependencies.
9288 (observer.h, observer.inc): New rules.
9289 * observer.h: Delete file.
9290 * observer.sh: New file.
9292 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9294 * vax-tdep.c (vax_frame_cache): Fix typo.
9296 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9298 * NEWS (New native configurations): Mention NetBSD/vax.
9299 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9300 * config/vax/nbsdelf.mh: New file.
9301 * config/vax/nbsdaout.mh: New file.
9302 * config/vax/nm-nbsd.h: New file.
9303 * config/vax/nm-nbsdaout.h: New file.
9305 * vaxnbsd-tdep.c: New file.
9306 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9307 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9308 * config/vax/nbsd.mt: New file.
9309 * config/vax/tm-nbsd.h: New file.
9311 * Makefile.in (vaxbsd-nat.o): New dependency.
9313 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9314 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9315 struct_addr arguments. Don't push return value address.
9316 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9317 arguments to vax_store_arguments. Store return value address in
9319 (vax_store_struct_return, vax_extract_return_value)
9320 (vax_store_return_value): Remove functions.
9321 (vax_return_value): New function.
9322 (vax_gdbarch_init): Set return value. Don't set
9323 deprecated_store_struct_return, deprecated_extract_struct_return
9324 and deprecated_store_return_value.
9326 2004-04-14 Andreas Schwab <schwab@suse.de>
9328 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9330 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9332 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9334 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9335 (vax_unwind_dummy_id): New functions.
9336 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9337 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9339 (vax_fix_call_dummy): Remove function.
9340 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9341 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9342 call_dummy_location, deprecated_call_dummy_words,
9343 deprecated_sizeof_call_dummy_words,
9344 deprecated_call_dummy_breakpoint_offset,
9345 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9346 and deprecated_dummy_write_sp.
9348 2004-04-13 David Carlton <carlton@kealia.com>
9350 * MAINTAINERS: Move myself to "paper trail" section.
9352 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9354 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9356 (vax_frame_init_saved_regs): Remove function.
9357 (vax_sigtramp_saved_pc): Remove function.
9358 (vax_frame_saved_pc): Remove function.
9359 (vax_frame_args_address): Remove function.
9360 (vax_frame_num_args): Rewrite.
9361 (vax_frame_chain): Remove function.
9362 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9364 (vax_pop_frame): Likewise.
9365 (vax_saved_pc_after_call): Remove function.
9366 (struct vax_frame_cache): New structure.
9367 (vax_frame_cache): New function.
9368 (vax_frame_this_id): New function.
9369 (vax_frame_prev_register): New function.
9370 (vax_frame_unwind): New variable.
9371 (vax_frame_sniffer): New function.
9372 (vax_frame_base_address): New function.
9373 (vax_frame_args_address): New function.
9374 (vax_frame_base): New variable.
9375 (vax_unwind_pc): New function.
9376 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9377 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9378 deprecated_frame_chain, deprecated_frame_saved_pc,
9379 deprecated_frame_args_address and
9380 deprecated_frame_init_saved_regs.
9381 * Makefile.in (vax-tdep.o): Update dependencies.
9383 * vaxbsd-nat.c: New file.
9385 * vax-tdep.h: Update copyright year. Adjust comments.
9386 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9387 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9388 (vax_regnum): New enum. Replacing...
9389 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9390 (VAX_PS_REGNUM): ... these removed macros.
9391 * vax-tdep.c (vax_register_name): Remove prototype.
9392 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9393 (vax_register_byte, vax_register_raw_size,
9394 vax_register_virtual_size, vax_register_virtual_type): Remove
9396 (vax_register_type): New function.
9397 (vax_breakpoint_from_pc): Reorganize.
9398 (vax_gdbarch_init): Set register_type. Don't set
9399 deprecated_register_size, deprecated_register_bytes,
9400 deprecated_register_byte, deprecated_register_raw_size,
9401 deprecated_max_register_raw_size,
9402 deprecated_register_virtual_size,
9403 deprecated_max_register_virtual_size and
9404 deprecated_register_virtual_type. Add comment on stack direction.
9406 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9408 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9409 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9410 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9412 2004-04-10 Randolph Chung <tausq@debian.org>
9414 * MAINTAINERS (write after approval): Add myself.
9416 2004-04-07 Randolph Chung <tausq@debian.org>
9418 * hppa-tdep.c (hppa_inner_than): Remove.
9419 (is_pa_2): Remove unused static variable.
9420 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9422 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9424 * language.h (language_defn): Add new la_post_parser field.
9425 * parser-defs.h (null_post_parser): New declaration (default for
9428 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9429 insert call to that function.
9430 (parse_exp_in_context): New function, including code formerly in
9431 parse_exp_1. Calls language-dependent post-parser after
9433 (parse_expression_in_context): New exported function.
9434 (null_post_parser): New definition.
9435 * expression.h (parse_expression_in_context): Add declaration.
9437 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9438 * c-lang.c (c_language_defn): Ditto.
9439 (cplus_language_defn): Ditto.
9440 (asm_language_defn): Ditto.
9441 (minimal_language_defn): Ditto.
9442 * f-lang.c (f_language_defn): Ditto.
9443 * jv-lang.c (java_language_defn): Ditto.
9444 * language.c (unknown_language_defn): Ditto.
9445 (auto_language_defn): Ditto.
9446 (local_language_defn): Ditto.
9447 * m2-lang.c (m2_language_defn): Ditto.
9448 * scm-lang.c (scm_language_defn): Ditto.
9449 * obj-lang.c (objc_language_defn): Ditto.
9451 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9453 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9454 (amd64nbsd_mcontext_addr): New function.
9455 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9456 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9457 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9459 * corelow.c (core_xfer_partial): Fix coding standards violation.
9460 Add support for TARGET_OBJECT_WCOOKIE.
9462 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9463 deprecated_pc_in_sigtramp.
9464 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9465 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9466 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9467 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9468 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9469 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9470 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9472 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9473 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9476 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9477 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9478 (amd64_collect_fxsave): Likewise.
9480 * i386-sol2-tdep.c: Include "gdb_string.h".
9481 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9483 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9485 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9487 * i386-sol2-tdep.c: Include "solib-svr4.h".
9488 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9489 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9490 * config/i386/tm-i386sol2.h: Include :solib.h".
9491 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9492 solib-svr4.o and solib-legacy.o.
9493 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9496 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9498 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9499 whether a register is supplied by PTRACE_GETFPREGS.
9500 (store_inferior_registers): Likewise.
9501 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9502 whether a register is supplied by PT_GETFPREGS.
9503 (store_inferior_registers): Likewise.
9505 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9506 * config/i386/linux64.mt (TDEPFILES): Likewise.
9508 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9510 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9511 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9512 the program counter is in the range specified by `struct
9514 * amd64-linux-tdep.c: Include "symtab.h".
9515 (amd64_linux_pc_in_sigtramp): Remove function.
9516 (amd64_linux_sigtramp_p): New function.
9517 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9518 deprecated_pc_in_sigtramp.
9519 * amd64nbsd-tdep.c: Include "symtab.h".
9520 (amd64nbsd_sigtramp_p): New function.
9521 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9522 deprecated_pc_in_sigtramp.
9523 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9525 (amd64obsd_pc_in_sigtramp): Remove function.
9526 (amd64obsd_sigtramp_p): New function.
9527 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9528 deprecated_pc_in_sigtramp.
9529 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9530 (i386bsd_pc_ins_sigtramp): Remove prototype.
9531 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9532 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9533 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9534 the program counter is in the range specified by `struct
9536 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9537 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9538 (i386_go32_pc_in_sigtramp): Remove function.
9539 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9540 Initialize TDEP->sigtramp_p.
9541 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9542 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9543 deprecated_pc_in_sigtramp.
9544 * i386-linux-tdep.c: Adjust comments.
9545 (i386_linux_pc_in_sigtramp): Remove function.
9546 (i386_linux_sigtramp_p): New function.
9547 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9548 deprecated_pc_in_sigtramp.
9549 * i386-nto-tdep.c: Update copyright year.
9550 (i386nto_pc_in_sigtramp): Remove function.
9551 (i386nto_sigtramp_p): New function.
9552 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9554 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9555 deprecated_pc_in_sigtramp.
9556 * i386-sol2-tdep.c: Update copyright year.
9557 (i386_sol2_pc_in_sigtramp): Remove function.
9558 (i386_sol2_sigtramp_p): New function.
9559 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9560 deprecated_pc_in_sigtramp.
9561 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9562 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9563 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9564 deprecated_sigtramp_start and deprecated_sigtramp_end.
9565 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9566 (i386nbsd_pc_in_sigtramp): Remove function.
9567 (i386nbsd_sigtramp_p): New function.
9568 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9569 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9570 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9571 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9572 (i386obsd_pc_in_sigtramp): Remove function.
9573 (i386obsd_sigtramp_p): New function.
9574 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9576 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9577 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9579 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9580 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9583 * config/i386/i386aout.mt: Remove file.
9585 * configure.tgt: Remove i[34567]86-*-go32*,
9586 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9587 and i[34567]86-*-isc*. Set gdb_target to i386 for
9588 i[34567]86-*-netware* and i[34567]86-*-*.
9589 * config/i386/i386.mt: New file.
9590 * config/i386/embed.mt: Remove file.
9591 * config/i386/go32.mt: Remove file.
9592 * config/i386/i386nw.mt: Remove file.
9593 * config/i386/i386v.mt: Remove file.
9594 * config/i386/tm-go32.h: Remove file.
9596 * tui/tui-hooks.c: Include "readline/readline.h" after
9597 "gdb_curses.h" instead of before.
9598 * tui/tui-io.c: Likewise.
9600 * tui/tui.c: Fix typo in comment.
9602 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9604 2004-04-08 Andrew Cagney <cagney@redhat.com>
9606 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9607 (deprecated_exception_support_initialized): Declare.
9608 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9609 (initialize_hp_cxx_exception_support)
9610 (child_enable_exception_callback): Update.
9611 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9612 (deprecated_exception_support_initialized): Rename
9613 deprecated_exception_catchpoints_are_fragile and
9614 deprecated_exception_support_initialized.
9615 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9617 * symtab.c (deprecated_hp_som_som_object_present): Rename
9618 hp_som_som_object_present.
9619 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9620 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9621 Update. Delete extern declaration.
9622 * valops.c (hp_som_som_object_present): Ditto.
9623 * parse.c (deprecated_hp_som_som_object_present)
9624 (parse_nested_classes_for_hpacc): Ditto.
9625 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9626 * hppa-hpux-tdep.c (hp_som_som_object_present)
9627 (initialize_hp_cxx_exception_support): Ditto.
9628 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9629 * cp-valprint.c (hp_som_som_object_present)
9630 (cp_print_class_method): Ditto.
9631 * c-typeprint.c (hp_som_som_object_present):
9632 (c_type_print_base): Ditto.
9633 * c-exp.y (hp_som_som_object_present): Ditto.
9635 2004-04-08 Andrew Cagney <cagney@redhat.com>
9637 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9638 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9639 (frame_unwind_find_by_frame): Re-implement the unwind code so
9640 that it can both prepend and append sniffers. Replace
9641 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9642 * tramp-frame.c (tramp_frame_append): Use
9643 frame_unwind_prepend_unwinder.
9644 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9645 frame_unwind_register_unwinder.
9646 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9648 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9649 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9650 (mips_linux_init_abi): Update.
9652 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9654 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9655 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9658 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9660 * ia64-tdep.c (elf.h): Don't include.
9661 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9663 2004-04-07 Jason Molenda (jmolenda@apple.com)
9665 * frame.h: Typeo corrections in comments.
9667 2004-04-07 Jim Blandy <jimb@redhat.com>
9669 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9672 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9674 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9675 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9676 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9677 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9679 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9681 * config/sparc/tm-sol2.h: Update copyright year. Include
9684 * sparc-sol2-tdep.c: Update copyright year. Include
9686 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9687 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9688 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9689 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9692 2004-04-06 Andrew Cagney <cagney@redhat.com>
9694 * infttrace.c: Include "infttrace.h".
9695 * infttrace.h: Include "target.h".
9696 * Makefile.in (infttrace_h): Update.
9697 (infttrace.o): Update.
9699 2004-04-06 Andrew Cagney <cagney@redhat.com>
9701 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9702 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9703 move extern declarations from here ...
9704 * infttrace.h: ... to here.
9705 * Makefile.in (hppah-nat.o): Update dependencies.
9707 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9708 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9709 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9710 (hppa_breakpoint_from_pc): Delete.
9712 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9714 2004-04-05 Andrew Cagney <cagney@redhat.com>
9716 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9717 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9720 2004-04-06 Randolph Chung <tausq@debian.org>
9722 Committed by Andrew Cagney (mechanical change).
9723 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9724 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9725 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9726 child_enable_exception_callback, current_ex_event,
9727 null_symtab_and_line, child_get_current_exception_event,
9728 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9729 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9730 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9731 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9732 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9733 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9734 Move hpux-specific definitions ...
9735 * hppa-hpux-tdep.c: ... to here.
9737 2004-04-05 Andrew Cagney <cagney@redhat.com>
9739 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9740 skip_prologue_using_sal.
9742 2004-04-05 Andrew Cagney <cagney@redhat.com>
9744 * config/i386/tm-i386.h: Delete file.
9745 * config/i386/tm-vxworks.h: Update copyright, do not include
9747 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9748 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9749 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9750 * config/i386/ncr3000.mt (TM_FILE): Delete.
9751 * config/i386/interix.mt (TM_FILE): Delete.
9752 * config/i386/i386v.mt (TM_FILE): Delete.
9753 * config/i386/i386nw.mt (TM_FILE): Delete.
9754 * config/i386/i386gnu.mt (TM_FILE): Delete.
9755 * config/i386/i386aout.mt (TM_FILE): Delete.
9756 * config/i386/embed.mt (TM_FILE): Delete.
9758 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9760 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9761 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9762 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9763 (accg7_regnum): New constants.
9764 (last_spr_regnum, last_pseudo_regnum): Update.
9765 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9766 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9767 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9769 (frv_register_sim_regno): Update spr_map[].
9771 2004-04-04 Andrew Cagney <cagney@redhat.com>
9773 * config/mips/xm-riscos.h: Delete.
9774 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9775 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9776 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9777 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9778 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9779 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9780 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9781 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9782 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9783 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9784 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9785 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9786 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9787 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9788 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9789 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9790 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9791 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9792 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9793 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9794 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9795 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9796 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9797 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9798 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9799 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9801 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9802 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9803 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9804 * configure.host: Remove m680[01]0-sun-sunos3*,
9805 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9806 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9807 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9808 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9810 * NEWS: Mention removed systems.
9812 2004-04-04 Andrew Cagney <cagney@redhat.com>
9814 GDB 6.1 release created from 6.1 branch.
9816 2004-04-04 Andrew Cagney <cagney@redhat.com>
9818 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9819 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9820 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9822 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9823 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9824 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9826 2004-04-03 Jim Blandy <jimb@redhat.com>
9828 * MAINTAINERS: Chris Faylor has changed employers; add him to
9829 "paper trail" section, and update his E-mail address.
9831 2004-04-03 Andrew Cagney <cagney@redhat.com>
9833 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9834 generic dummy frames.
9835 * dummy-frame.c: Update copyright.
9836 (dummy_frame_sniffer): Delete check for generic dummy frames.
9838 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9839 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9840 (REG_PARM_STACK_SPACE): Delete.
9841 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9842 Inline reference to REG_PARM_STACK_SPACE.
9844 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9845 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9846 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9847 (FRAME_BASE_BEFORE_SIGTRAMP)
9848 (hppa32_hpux_frame_base_before_sigtramp)
9849 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9850 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9851 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9852 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9853 (FRAME_BASE_BEFORE_SIGTRAMP)
9854 (hppa64_hpux_frame_base_before_sigtramp)
9855 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9857 2004-04-03 Andrew Cagney <cagney@redhat.com>
9859 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9861 2004-04-02 Andrew Cagney <cagney@redhat.com>
9863 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9864 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9865 * dummy-frame.h: Delete out-of-date comments.
9866 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9867 * gdbarch.h, gdbarch.c: Re-generate.
9869 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9871 Committed by Andrew Cagney <cagney@redhat.com>.
9872 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9873 into account an instruction saving a register if we have already
9874 seen an earlier instruction saving that same register.
9876 2004-04-02 Andrew Cagney <cagney@redhat.com>
9878 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9879 * gdbarch.h, gdbarch.c: Re-generate.
9880 * frame.c (legacy_get_prev_frame): Delete references to
9881 DEPRECATED_INIT_FRAME_PC_FIRST.
9883 * infrun.c (pc_in_sigtramp): Delete function.
9884 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9887 2004-04-02 Andrew Cagney <cagney@redhat.com>
9889 * infrun.c (handle_step_into_function): Delete code conditional on
9891 (handle_inferior_event, step_over_function): Ditto.
9893 2004-04-02 Andrew Cagney <cagney@redhat.com>
9895 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9896 "previous frame inner to this frame" test.
9898 2004-04-02 Andrew Cagney <cagney@redhat.com>
9900 * frame.c (safe_frame_unwind_memory): New function.
9901 * frame.h (safe_frame_unwind_memory): Declare. Update description
9903 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9904 "next_frame". Use safe_frame_unwind_memory.
9905 (tramp_frame_sniffer): Update call to tramp_frame_start.
9907 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9909 * dwarf2read.c (dwarf2_objfile_data_key): New.
9910 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9911 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9912 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9913 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9914 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9915 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9916 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9918 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9919 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9920 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9921 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9922 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9923 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9925 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9927 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9928 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9929 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9930 (read_partial_die, read_full_die, read_indirect_string)
9931 (dwarf_decode_line_header, dwarf_decode_macros)
9932 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9933 Update uses of removed variables.
9934 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9936 (_initialize_dwarf2_read): New function.
9937 * symfile.h (dwarf2_has_info): Update prototype.
9938 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9939 * elfread.c (elf_symfile_read): Likewise.
9941 2004-04-01 Jim Blandy <jimb@redhat.com>
9943 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9944 function for register numbers on all the rs6000-derived targets.
9945 (rs6000_gdbarch_init): Don't register a separate
9946 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9947 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9950 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9953 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9955 * valarith.c: Update copyright notice.
9956 (value_add): Handle range types.
9958 (value_equal): Ditto.
9959 (value_less): Ditto.
9961 (value_complement): Ditto.
9962 (value_binop): Simplify slightly by using is_integral_type and
9963 eliminiating unnecessary COERCE_ENUMs.
9965 2004-03-31 Andrew Cagney <cagney@redhat.com>
9967 * frame.h (frame_unwind_id): Declare.
9968 * frame.c (frame_unwind_id): New function.
9969 (get_prev_frame_1): New function.
9970 (frame_debug_got_null_frame): New function.
9971 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9972 code proper to prev_frame, update description.
9973 * infrun.c (step_over_function): Use frame_unwind_id.
9975 2004-04-31 J. Brobecker <brobecker@gnat.com>
9977 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9978 (hppa64_push_dummy_call): Likewise.
9980 2004-03-30 Jim Blandy <jimb@redhat.com>
9982 From Ulrich Weigand:
9983 * utils.c (query): Do not use a va_list variable multiple times.
9985 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9987 * Makefile.in (linux_nat_h): Update dependencies.
9988 * configure.in: Check for <gnu/libc-version.h>.
9989 * configure: Regenerate.
9990 * config.in: Regenerate.
9991 * linux-nat.h: Include "target.h". Add waitstatus field to
9993 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9994 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9996 (lin_lwp_handle_extended): New function. Handle clone events.
9997 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9999 (child_wait): Handle clone events.
10000 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10001 * linux-nat.c (linux_enable_event_reporting): Turn on
10002 PTRACE_O_TRACECLONE.
10003 (linux_handle_extended_wait): Handle clone events.
10004 * thread-db.c: Include <gnu/libc-version.h>.
10005 (struct private_thread_info): Add dying flag.
10006 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10008 (attach_thread): Update comments. Handle dying threads.
10009 (detach_thread): Set the dying flag.
10010 (check_event): Always call attach_thread.
10012 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10014 * mips-tdep.c (mips_pdr_data): New.
10015 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10016 (_initialize_mips_tdep): Initialize mips_pdr_data.
10018 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10020 * minsyms.c (install_minimal_symbols): Move dropping leading
10021 char from linkage name from here...
10022 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10023 test for "__gnu_compiled*" symbols.
10025 2004-03-28 Jim Blandy <jimb@redhat.com>
10027 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10028 registers to temp register r0 and byte stores as prologue
10031 2004-03-28 Andrew Cagney <cagney@redhat.com>
10033 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10036 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10038 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10039 and switch the layout to force a display of register window.
10041 2004-02-26 J. Brobecker <brobecker@gnat.com>
10043 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10044 of the INTEGER class.
10046 2004-03-26 Jim Blandy <jimb@redhat.com>
10048 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10049 bytes long on PPC GNU/Linux.
10051 2004-03-26 David Carlton <carlton@kealia.com>
10053 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10055 2004-03-25 Andrew Cagney <cagney@redhat.com>
10057 * PROBLEMS: Add general section titles, remove references to
10060 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10062 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10064 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10065 FP_REGISTER_VIRTUAL_SIZE.
10066 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10067 of DEPRECATED_REGISTER_RAW_SIZE.
10068 (arm_register_type): Add gdbarch argument.
10069 (arm_register_raw_size, arm_register_virtual_size): Delete.
10070 (arm_register_byte, arm_extract_return_value)
10071 (arm_store_return_value, arm_get_longjmp_target): Update references
10072 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10073 (arm_gdbarch_init): Likewise. Don't set
10074 deprecated_register_raw_size, deprecated_register_virtual_size,
10075 deprecated_max_register_raw_size,
10076 deprecated_max_register_virtual_size, or
10077 deprecated_max_register_virtual_type. Do set register_type.
10078 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10079 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10080 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10081 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10082 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10083 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10085 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10086 (remote_rdp_store_register): Likewise.
10088 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10090 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10091 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10092 to after osabi initialization.
10093 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10094 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10096 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10097 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10099 (mips_linux_init_abi): Append signal trampoline unwinders.
10101 2004-03-24 Andrew Cagney <cagney@redhat.com>
10103 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10104 * tramp-frame.c: Include "gdb_assert.h".
10105 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10107 (tramp_frame_append): Validate the tramp frame's instructions.
10108 * Makefile.in (tramp-frame.o): Update dependencies.
10110 2004-03-23 Andrew Cagney <cagney@redhat.com>
10112 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10114 2004-03-23 Andrew Cagney <cagney@redhat.com>
10116 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10117 Nasser as past testsuite/lib/ (and other) maintainers.
10119 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10121 * infcmd.c (attach_command): Reread symbols if we already have
10124 2004-03-23 Andrew Cagney <cagney@redhat.com>
10126 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10128 2004-03-23 Andrew Cagney <cagney@redhat.com>
10130 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10131 * gdbarch.h, gdbarch.c: Re-generate.
10132 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10133 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10134 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10135 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10136 (DEPRECATED_SIGTRAMP_START): Update.
10137 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10138 (DEPRECATED_SIGTRAMP_START): Update.
10139 * blockframe.c (find_pc_sect_partial_function): Update.
10140 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10142 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10144 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10147 2004-03-23 Andrew Cagney <cagney@redhat.com>
10149 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10150 predicate, deprecate.
10151 * gdbarch.h, gdbarch.c: Re-generate.
10152 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10153 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10154 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10155 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10156 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10157 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10158 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10159 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10160 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10161 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10162 * blockframe.c (find_pc_partial_function): Update.
10163 * breakpoint.c (bpstat_what): Update.
10164 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10165 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10166 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10167 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10168 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10169 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10170 * i386-nto-tdep.c (i386nto_init_abi): Update.
10171 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10172 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10173 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10174 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10175 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10176 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10177 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10178 * infrun.c (pc_in_sigtramp): Update.
10179 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10180 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10181 * mips-tdep.c (mips_gdbarch_init): Update.
10182 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10183 * ppc-linux-tdep.c: Update comment.
10184 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10185 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10186 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10187 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10188 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10189 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10190 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10191 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10192 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10193 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10195 2004-03-23 Andrew Cagney <cagney@redhat.com>
10197 * tramp-frame.h, tramp-frame.h: New files.
10198 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10199 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10201 * Makefile.in: Update all dependencies.
10203 2004-03-23 Andrew Cagney <cagney@redhat.com>
10205 * Makefile.in (trad_frame_h): Add $(frame_h).
10206 * trad-frame.h: Update copyright. Include "frame.h".
10207 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10208 (trad_frame_set_id, trad_frame_get_id): Declare.
10209 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10210 * trad-frame.c: Update copyright.
10211 (struct trad_frame_cache): Define.
10212 (trad_frame_cache_zalloc): New function.
10213 (trad_frame_set_id, trad_frame_get_id): New functions.
10214 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10216 2004-03-22 Andrew Cagney <cagney@redhat.com>
10218 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10219 s390_pltstub_unwind_cache.
10220 (s390_stub_frame_unwind_cache): Rename
10221 s390_pltstub_frame_unwind_cache.
10222 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10223 (s390_stub_frame_prev_register): Rename
10224 s390_pltstub_frame_prev_register.
10225 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10226 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10228 From Ulrich Weigand:
10229 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10230 pointer calls like PLT calls.
10232 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10234 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10235 PC rather than the partial function start address. Use the start
10236 address to sanity check the found PDR.
10238 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10240 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10241 linux_handle_extended_wait.
10243 2004-03-22 Andrew Cagney <cagney@redhat.com>
10245 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10248 * frame.h (generic_pop_current_frame): Delete declaration.
10249 (deprecate_pop_dummy_frame): Deprecate
10250 generic_pop_dummy_frame.
10251 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10252 (generic_pop_current_frame): Delete function.
10253 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10254 generic_pop_current_frame.
10255 * v850-tdep.c (v850_pop_frame): Update.
10256 * mcore-tdep.c (mcore_pop_frame): Update.
10257 * sh64-tdep.c (sh64_pop_frame): Update.
10258 * h8300-tdep.c (h8300_pop_frame): Update.
10260 2004-03-22 Andrew Cagney <cagney@redhat.com>
10262 * frame.h (deprecated_pc_in_call_dummy): Rename
10263 generic_pc_in_call_dummy.
10264 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10265 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10266 generic_pc_in_call_dummy.
10267 (pc_in_dummy_frame): Make static.
10268 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10269 * gdbarch.h, gdbarch.c: Re-generate.
10270 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10271 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10272 (legacy_get_prev_frame): Ditto.
10273 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10276 2004-03-21 Andrew Cagney <cagney@redhat.com>
10278 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10279 declaration and out-of-date comment.
10280 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10282 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10283 deprecated_pc_in_call_dummy.
10285 * infrun.c (handle_inferior_event): For non legacy frames, use the
10286 frame ID and frame type to identify a signal trampoline. Update
10289 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10291 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10292 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10294 2004-03-21 Andrew Cagney <cagney@redhat.com>
10296 * frame-unwind.h: Update copyright.
10297 (struct frame_data): Add opaque declaration.
10298 (frame_sniffer_ftype): Declare.
10299 (struct frame_unwind): Add "unwind_data" and "sniffer".
10300 (frame_unwind_register_unwinder): Declare.
10301 (frame_unwind_find_by_frame): Add parameter "this_cache".
10302 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10303 (legacy_get_prev_frame, legacy_get_prev_frame)
10304 (get_frame_type): Pass the prologue_cache to
10305 frame_unwind_find_by_frame.
10306 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10308 (frame_unwind_register_unwinder): New function.
10309 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10311 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10313 * bcache.c (print_percentage): Use floating point to avoid
10314 incorrect results when portion*100 overflows.
10316 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10318 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10319 (ppc_linux_init_extra_frame_info)
10320 (ppc_linux_frameless_function_invocation)
10321 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10322 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10323 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10324 (rs6000_frame_chain): Delete declarations.
10325 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10326 (ppc_linux_init_extra_frame_info)
10327 (ppc_linux_frameless_function_invocation)
10328 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10329 (ppc_linux_init_abi): Remove registration of above deleted functions.
10330 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10331 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10332 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10333 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10334 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10335 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10336 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10337 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10338 frame management for all OSABIs.
10340 2004-03-19 Andrew Cagney <cagney@redhat.com>
10342 Committed by Kevin Buettner <kevinb@redhat.com>.
10344 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10346 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10347 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10348 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10349 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10350 unwinders. #ifdef legacy frame code.
10351 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10353 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10354 (struct rs6000_frame_cache, rs6000_frame_cache)
10355 (rs6000_frame_this_id, rs6000_frame_prev_register)
10356 (rs6000_frame_sniffer, rs6000_frame_unwind)
10357 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10358 (rs6000_frame_base): Implement a traditional frame unwinder.
10359 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10362 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10364 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10365 breakpoint address for watchpoints or the catch eventpoints.
10366 Add new paramter ``bptype''. Adjust all callers.
10368 2004-03-19 Andrew Cagney <cagney@redhat.com>
10370 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10372 * PROBLEMS: Delete note that ARM does not use frame code, problem
10375 2004-03-18 Andrew Cagney <cagney@redhat.com>
10377 * stack.c (return_command): Delete code wrapped in #ifdef
10378 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10380 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10382 2004-03-18 Andrew Cagney <cagney@redhat.com>
10384 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10385 DEPRECATED_IN_SIGTRAMP.
10386 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10387 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10388 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10389 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10390 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10391 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10392 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10393 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10394 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10395 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10397 2004-03-18 Andrew Cagney <cagney@redhat.com>
10399 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10400 (struct frame_base_table_entry): Define.
10401 (struct frame_base_table): Re-implement as a linked list.
10402 (frame_base_init): Re-implement.
10403 (frame_base_table): Delete function.
10404 (append_predicate): Delete function.
10405 (frame_base_append_sniffer): Update.
10406 (frame_base_set_default): Update.
10407 (frame_base_find_by_frame): Update.
10408 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10409 * Makefile.in (frame-base.o): Update dependencies.
10411 2004-03-17 Andrew Cagney <cagney@redhat.com>
10413 * frame.c (legacy_get_prev_frame): Pass correct frame to
10414 frame_unwind_find_by_frame.
10416 2004-03-17 David Carlton <carlton@kealia.com>
10418 * NEWS: Mention C++ nested types and namespaces
10420 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10422 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10423 and "Regressions since gdb 5.3.". Add known regressions since
10426 2004-03-16 David Carlton <carlton@kealia.com>
10428 * dwarf2read.c (process_structure_scope): Process children even
10429 when we're a declaration.
10431 2004-03-16 Andrew Cagney <cagney@redhat.com>
10433 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10434 * blockframe.c (find_pc_partial_function)
10435 (find_pc_sect_partial_function): Merge into a single
10436 find_pc_partial_function.
10438 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10440 * i386bsd-nat.c: s/regno/regnum/g.
10441 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10443 (store_inferior_registers): Likewise.
10445 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10447 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10448 of i387_fill_fsave.
10449 (store_inferior_registers): Call i387_collect_fsave and
10450 i387_collect_fxsave instead of i387_fill_fsave and
10453 2004-03-15 Andrew Cagney <cagney@redhat.com>
10455 * Makefile.in (frame-unwind.o): Update dependencies.
10456 * frame-unwind.c: Include "gdb_obstack.h".
10457 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10459 (append_predicate): Delete function.
10460 (struct frame_unwind_table_entry): New structure.
10461 (struct frame_unwind_table): Replace "sniffer" with "head" and
10463 (frame_unwind_append_sniffer): Update.
10464 (frame_unwind_find_by_frame): Update.
10465 (_initialize_frame_unwind): Registe frame_unwind_init using
10466 gdbarch_data_register_pre_init.
10468 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10470 * i386bsd-nat.c: Update copyright year.
10471 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10472 define unconditionally.
10474 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10476 * i387-tdep.h (i387_collect_fsave): New prototype.
10477 * i387-tdep.c (i387_collect_fsave): New function containing most
10478 of the code from i387_fill_fsave.
10479 (i387_fill_fsave): Call i387_collect_fsave.
10481 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10483 * i386-linux-tdep.c: Update copyright year.
10484 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10485 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10486 svr4_ilp32_link_map_offsets instead of
10487 i386_linux_svr4_fetch_link_map_offsets.
10489 2004-03-15 David Carlton <carlton@kealia.com>
10491 Fix for PR c++/1553:
10492 * dwarf2read.c (read_structure_type): Determine type name by
10493 calling determine_class_name.
10494 (determine_class_name): New.
10495 (determine_prefix): Look at TYPE_TAG_NAME and call
10496 determine_class_name when appropriate.
10497 (determine_prefix_aux, class_name): Delete.
10498 (read_namespace): Set die->type.
10500 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10502 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10503 unused macro definition. The definition in target.h (or perhaps
10504 elsewhere) takes precedence.
10506 2004-03-15 Andrew Cagney <cagney@redhat.com>
10508 * ppc-tdep.h: Update copyright.
10509 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10510 function signatures to match "regsets.h".
10511 * ppc-linux-tdep.c: Include "regset.h".
10512 (ELF_GREGSET_SIZE): Delete.
10513 (right_supply_register): New function.
10514 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10515 using right_supply_register.
10516 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10518 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10519 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10520 (_initialize_ppc_linux_tdep): Do not register
10521 ppc_linux_regset_core_fns.
10522 (ppc_linux_regset_from_core_section): Replace
10523 fetch_core_registers.
10524 (ppc_linux_regset_core_fns): Delete.
10525 * ppc-linux-nat.c: (right_fill_reg): New function.
10526 (supply_gregset): Update call to ppc_linux_supply_gregset.
10527 (fill_gregset): Clear the register set, use right_fill_reg.
10528 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10529 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10531 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10534 2004-03-15 Andrew Cagney <cagney@redhat.com>
10536 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10537 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10538 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10539 and register_gdbarch_data.
10540 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10541 (struct gdbarch_data): Replace "init" by "pre_init" and
10543 * gdbarch.h, gdbarch.c: Re-generate.
10544 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10545 with"obstack", use OBSTACK_ZALLOC.
10546 (dwarf2_frame_ops): Delete.
10547 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10548 (dwarf2_frame_init_reg): Use gdbarch_data.
10549 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10550 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10551 (_initialize_svr4_solib): Update.
10552 * user-regs.c (_initialize_user_regs): Update.
10553 * reggroups.c (_initialize_reggroup): Update.
10554 * regcache.c (_initialize_regcache): Update.
10555 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10556 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10557 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10558 * frame-unwind.c (_initialize_frame_unwind): Update.
10559 * frame-base.c (_initialize_frame_base): Update.
10560 * user-regs.c (user_reg_add): Update.
10561 * reggroups.c (reggroup_add): Update.
10562 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10563 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10564 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10565 * frame-base.c (frame_base_table): Update.
10566 * remote.c (_initialize_remote): Update.
10567 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10569 2004-03-15 Andrew Cagney <cagney@redhat.com>
10571 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10573 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10575 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10576 * frv-linux-tdep.c: New file.
10577 * frv-tdep.c (struct gdbarch_tdep): Add new field
10578 ``sigcontext_reg_addr''.
10579 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10580 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10581 (frv_sigramp_frame_sniffer): New functions.
10582 (frv_sigtramp_frame_unwind): New static global.
10583 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10585 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10586 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10588 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10590 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10591 but not via a call to error(), when unable to read memory.
10593 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10595 * frv-tdep.c (frv_call_dummy_words): Delete.
10596 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10598 2004-03-15 Andrew Cagney <cagney@redhat.com>
10600 * infrun.c (handle_step_into_function, step_over_function): Only
10601 update and use STEP_FRAME_ID when the system is using legacy
10602 frames. Update comments.
10604 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10606 * amd64-linux-tdep.h: Remove file.
10607 * amd64-linux-tdep.c: Don't include "inferior.h" and
10608 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10609 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10610 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10611 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10612 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10614 (user_to_gdb_regmap): Remove variable.
10615 (amd64_linux_gregset_reg_offset): New variable.
10616 (amd64_core_fns): Remove variable.
10617 (fetch_core_registers): Remove function.
10618 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10620 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10621 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10622 * Makefile.in (amd64_linux_tdep_h): Remove.
10623 (amd64-linux-nat.o): Update dependencies.
10624 (amd64-linux-tdep.o): Update dependencies.
10626 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10627 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10629 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10631 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10632 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10634 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10636 * dwarf2read.c (read_structure_type): Rename from
10637 read_structure_scope. Don't create a symbol or call process_die.
10638 Return immediately if die->type is set. Call read_type_die before
10639 dwarf2_add_member_fn.
10640 (process_structure_scope): New function.
10641 (read_enumeration_type, process_enumeration_scope): New functions,
10642 broken out from read_enumeration. Don't create the enumeration
10643 type if it has already been created.
10644 (read_enumeration): Removed.
10645 (process_die): Call read_structure_type, process_structure_scope,
10646 read_enumeration_type, and process_enumeration_scope. Just call
10647 new_symbol for base and subrange types. Add a comment about other
10649 (read_type_die): Call read_enumeration_type.
10650 (add_partial_structure, new_symbol): Update comments.
10652 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10654 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10656 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10658 * tui/tui-win.h (tui_get_cmd_list): Declare.
10659 * tui/tui-win.c (tui_command): New function.
10660 (tui_get_cmd_list): New function.
10661 (_initialize_tui_win): Moved initialization of tui command in
10664 * tui/tui-data.c (init_content_element): Setup new data members.
10665 (init_win_info): Likewise.
10666 (free_content_elements): Free it.
10667 * tui/tui-data.h (struct tui_data_element): Store the register
10669 (struct tui_data_info): Keep the current register group.
10671 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10673 * tui/tui-regs.h (tui_show_registers): Update prototype.
10674 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10675 (tui_resize_all): No need to calculate anything for register window.
10676 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10677 (tui_set_register_element, tui_set_general_regs_content): Remove.
10678 (tui_set_special_regs_content): Remove.
10679 (tui_set_general_and_special_regs_content): Remove.
10680 (tui_set_float_regs_content): Remove.
10681 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10682 (tui_set_regs_content): Remove.
10683 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10684 (tui_v_show_registers_command_support): Remove.
10685 (tui_show_registers): Use a reggroup to specify the registers to show.
10686 (tui_show_register_group): New function.
10687 (tui_display_registers_from): Compute the layout of register window
10688 and refresh with new API; be sure to delete old register windows.
10689 (tui_check_register_values): Update to use tui_get_register and
10691 (tui_display_register): Just refresh the register window part.
10692 (tui_register_format): Format registers and save in tui_data_element.
10693 (tui_get_register): New to combine tui_reg_value_has_changed and
10694 tui_get_register_raw_value; fix to use the new gdb API.
10695 (tui_show_float_command): Renamed tui_reg_float_command.
10696 (tui_show_general_command): Renamed tui_reg_general_command.
10697 (tui_show_special_command): Renamed tui_reg_system_command.
10698 (_initialize_tui_regs): Remove unused commands.
10700 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10702 * NEWS (New native configurations): Mention OpenBSD/amd64.
10704 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10705 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10707 * config/i386/nm-fbsd64.h: Likewise.
10708 * config/i386/nm-obsd.h: Likewise.
10709 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10710 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10712 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10714 * frv-tdep.c (set_variant_scratch_registers): New function.
10715 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10718 From Richard Sandiford <rsandifo@redhat.com>:
10719 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10721 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10723 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10724 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10725 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10726 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10727 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10728 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10729 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10730 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10731 definitions from frv-tdep.c to frv-tdep.h.
10733 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10735 Add shared library support for FR-V FDPIC ABI:
10736 * Makefile.in (solib-frv.o): Add dependencies.
10737 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10739 (frv_push_dummy_call): Add support for FDPIC ABI.
10740 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10742 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10743 (frv_fdpic_find_canonical_descriptor): Declare.
10744 * solib-frv.c: New file.
10745 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10746 * config/frv/tm-frv.h (solib.h): Include.
10748 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10750 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10751 (frv-tdep.o): Update dependencies.
10752 * frv-tdep.h: New file.
10753 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10754 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10756 (struct gdbarch_tdep): Add new member ``frv_abi''.
10757 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10759 (new_variant): Set ``frv_abi'' field.
10760 (gdb_arch_init): Detect FDPIC executables.
10762 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10764 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10767 2004-03-11 Andrew Cagney <cagney@redhat.com>
10769 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10771 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10773 * solist.h (master_so_list): New function.
10774 * solib.c (master_so_list): Likewise.
10775 * solib-svr4.c (enable_break): Iterate over so_list entries
10776 obtained from master list instead of entries obtained directly
10777 via svr4_current_sos().
10779 2004-03-10 Ben Elliston <bje@gnu.org>
10781 * MAINTAINERS: Update my mail address.
10783 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10785 * remote-m32r-sdi.c: Support hardware watchpoint.
10787 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10789 * user-regs.c: Update copyright years.
10790 (struct user_regs): Rename to gdb_user_regs.
10791 (append_user_reg, builtin_user_regs, user_regs_init)
10792 (user_reg_add, user_reg_map_name_to_regnum)
10793 (usernum_to_user_reg): Update.
10795 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10797 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10798 (skip_children): New functions.
10799 (locate_pdi_sibling): Call skip_children.
10801 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10803 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10804 * gdbtypes.c (check_typedef): Update comments.
10806 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10808 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10809 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10810 pointer. Update comment about comp_unit_head.
10811 (struct abbrev_info): Shorten two int flags.
10812 (dwarf_alloc_abbrev): Take a CU argument.
10813 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10814 each time through the loop. Update cleanup argument.
10815 (psymtab_to_symtab_1): Update cleanup call.
10816 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10818 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10819 Just call obstack_free and clear the pointer.
10821 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10823 * infrun.c (handle_inferior_event): Remove short-circuit code for
10824 events in a different thread.
10826 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10828 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10829 print the whole transfer.
10830 (initialize_targets): Update description of "set debug target".
10832 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10834 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10836 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10838 * MAINTAINERS (write after approval): Add myself.
10840 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10842 * sh-tdep.c (sh_print_registers_info): Use for loop.
10843 Don't skip multiple registers when a float register is encountered.
10845 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10848 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10849 to official SH documentation.
10851 2004-03-07 Andrew Cagney <cagney@redhat.com>
10853 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10856 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10858 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10859 (arm_get_next_pc): Handle BX and BLX.
10861 2004-03-07 Andrew Cagney <cagney@redhat.com>
10863 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10864 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10866 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10867 (hppa_target_read_fp): Delete.
10868 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10869 register_virtual_size, max_register_raw_size,
10870 max_register_virtual_size, register_byte, register_size,
10871 target_read_fp, fp_regnum, and register_bytes. Set register_type
10872 instead of register_virtual_type.
10873 (hppa32_register_type, hppa64_register_type): Replace
10874 hppa32_register_virtual_type and hppa64_register_virtual_type.
10875 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10876 (HPPA_FP_REGNUM): Define.
10878 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10880 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10881 (pa_do_registers_info): Delete.
10882 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10883 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10884 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10886 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10887 GDB_TARGET_IS_HPPA code.
10888 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10889 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10890 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10891 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10892 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10893 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10894 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10895 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10896 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10897 (hppa_frameless_function_invocation, hppa64_store_return_value)
10898 (hppa_store_struct_return, hppa64_extract_return_value)
10899 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10900 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10901 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10902 (find_proc_framesize, deposit_21, restore_pc_queue)
10903 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10904 (rp_saved, pc_in_linker_stub): Delete.
10906 Unconditionally enable 64-bit frame and ABI code.
10907 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10908 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10909 push_dummy_frame, fix_call_dummy, push_arguments,
10910 call_dummy_location, extract_return_value, use_struct_convention,
10911 store_return_value, store_struct_return, saved_pc_after_call,
10912 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10913 frame_chain, frame_chain_valid, frameless_function_invocation,
10914 frame_saved_pc, and pop_frame.
10916 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10917 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10918 (hppa_gdbarch_init): Do not set PC_REGNUM.
10920 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10922 * config/alpha/tm-fbsd.h: Remove file.
10923 * config/alpha/fbsd.mt: Tweak comment.
10924 (TM_FILE): Set to tm-alpha.h.
10926 2004-03-05 Andrew Cagney <cagney@redhat.com>
10928 * infrun.c (step_over_function): When non-legacy code, and no
10929 step_frame_id, use the unwinder to get the caller's frame ID.
10931 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10933 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10934 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10935 bfd_arch_unknown. Adjust comment.
10937 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10938 * i386obsd-tdep.c: Correct spelling in comment.
10939 * i386nbsd-tdep.c: Correct spelling in comment.
10940 * sparc-tdep.c: Correct spelling in comments.
10942 2004-03-05 David Carlton <carlton@kealia.com>
10944 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10947 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10949 * sparc-tdep.c: Fix typo in comment.
10951 2004-03-04 J. Brobecker <brobecker@gnat.com>
10953 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10955 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10957 * dwarf2read.c: Add comment describing memory lifetimes.
10958 (struct dwarf2_pinfo): Update comment.
10959 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10960 (read_enumeration, new_symbol): Don't use obsavestring.
10962 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10964 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10965 instead of amd64_fill_fxsave.
10966 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10967 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10969 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10970 Reorganize code a bit.
10972 2004-03-04 Orjan Friberg <orjanf@axis.com>
10974 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10975 when the frame pointer is pushed. Don't set the frame pointer's
10976 address on the stack unless it's actually located there.
10977 Set the SRP's address on the stack correctly when the PC is still in
10979 (cris_return_value): New function.
10980 (cris_gdbarch_init): Clear deprecated store_return_value,
10981 extract_return_value.
10983 2004-03-02 Jim Blandy <jimb@redhat.com>
10985 * stabsread.c (reg_value_complaint): The maximum register number
10986 is one less than the number of registers.
10988 2004-03-02 Andrew Cagney <cagney@redhat.com>
10990 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10991 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10992 trailing comma and redundant assignment of I386_ST0_REGNUM.
10993 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10994 32-bit segment registers.
10996 2004-03-01 Andrew Cagney <cagney@redhat.com>
10998 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10999 use frame_relative_level and get_next_frame.
11001 2004-02-29 Andrew Cagney <cagney@redhat.com>
11003 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11004 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11005 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11008 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11010 * inflow.c (terminal_inferior): Don't give up the terminal if we
11011 previously couldn't get the inferior's terminal state.
11013 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11015 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11018 2004-02-28 Andrew Cagney <cagney@redhat.com>
11020 * NEWS: Refer to GDB 6.1.
11021 * README: Refer to GDB 6.1.
11022 * PROBLEMS: Refer to GDB 6.1.
11024 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11026 * thread-db.c (disable_thread_signals): Remove unused function.
11028 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11030 * amd64-nat.c: Include "gdb_string.h".
11031 (amd64_collect_native_gregset): Zero-extend the 32-bit
11032 general-purpose registers and %eip.
11034 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11035 * amd64-tdep.c (amd64_collect_fxsave): New function.
11036 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11038 * i387-tdep.h: Update copyright year.
11039 (i387_collect_fxsave): New prototype.
11040 * i387-tdep.c: Update copyright year.
11041 (i387_collect_fxsave): New function containing most of the code
11042 from i387_fill_fxsave.
11043 (i387_fill_fxsave): Call i387_collect_fxsave.
11045 2004-02-28 Andrew Cagney <cagney@redhat.com>
11047 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11048 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11050 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11052 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11054 2004-02-28 Andrew Cagney <cagney@redhat.com>
11056 * utils.c: Use "", instead of <>, to include readline.
11057 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11058 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11059 * source.c, solib.c, exec.c, event-top.c: Ditto.
11060 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11061 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11062 * Makefile.in: Update all dependencies.
11063 (readline_tilde_h, readline_history_h): Define.
11064 (readline_headers): Delete.
11066 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11068 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11069 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11070 "config/i386/tm-lx64.h".
11072 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11073 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11074 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11076 2004-02-28 Andrew Cagney <cagney@redhat.com>
11078 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11080 * breakpoint.c (_initialize_breakpoint): Use
11081 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11082 Add help to show command.
11084 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11086 * i386-nat.c: Reformat to be closer to coding standards.
11087 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11088 `retval'. Make variables `align' and `size' local to while-loop.
11089 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11090 (_initialize_i386_nat): New prototype.
11092 * tui/tui.c: Include <readline/readline.h> instead of
11093 "readline/readline.h". Include it after <term.h> and
11096 2004-02-27 Andrew Cagney <cagney@redhat.com>
11098 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11099 the new frame unwind code.
11100 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11101 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11104 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11105 "return_value" and "push_dummy_call".
11106 (hppa32_use_struct_convention): Delete unused function.
11107 (hppa32_store_return_value): Delete unused function.
11108 (hppa32_extract_return_value): Delete unused function.
11109 (hppa32_stack_align): Delete function.
11111 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11113 * coffread.c (enter_linenos): Don't let rawptr reference memory
11114 outside linetab[]'s limits.
11116 2004-02-27 Andrew Cagney <cagney@redhat.com>
11118 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11119 inferior stack space - the stack needs to grow upwards.
11120 (hppa32_frame_align): New function.
11121 (hppa64_frame_align): Replace hppa_frame_align.
11122 (hppa_gdbarch_init): Update.
11124 2004-02-26 Orjan Friberg <orjanf@axis.com>
11126 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11127 (dwarf2-frame.h): Include.
11128 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11129 Remove static variables related to ABI setting.
11130 (struct gdbarch_tdep): Remove cris_abi member.
11131 (struct frame_extra_info): Remove.
11132 (cris_unwind_cache, stack_item): New structs.
11133 (cris_frame_unwind, cris_frame_base): New variables.
11134 (push_stack_item, pop_stack_item)
11135 (cris_frame_unwind_cache, cris_frame_this_id)
11136 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11137 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11138 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11139 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11140 (cris_reg_struct_has_addr): New functions.
11141 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11142 (cris_frame_saved_pc, cris_saved_pc_after_call,
11143 (cris_store_struct_return, cris_frameless_function_invocation)
11144 (cris_pop_frame, cris_skip_prologue_main)
11145 (cris_abi_original_store_return_value)
11146 (cris_abi_v2_store_return_value)
11147 (cris_abi_original_extract_return_value)
11148 (cris_abi_v2_extract_return_value)
11149 (cris_abi_original_reg_struct_has_addr)
11150 (cris_abi_v2_reg_struct_has_addr)
11151 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11152 (cris_push_return_address, cris_abi_update): Remove.
11153 (_initialize_cris_tdep): Remove ABI command.
11154 (cris_dump_tdep): Ditto.
11155 (cris_gdbarch_init): Remove ABI command.
11156 Set store_return_value, extract_return_value, push_dummy_code,
11157 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11158 frame_unwind_append_sniffer, frame_base_set_default.
11159 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11160 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11161 sizeof_call_dummy_words, get_saved_register, push_return_address,
11162 pop_frame, store_struct_return, frame_init_saved_regs,
11163 init_extra_frame_info, frameless_function_invocation, frame_chain,
11164 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11167 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11169 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11170 * valprint.c (print_hex_chars): Change from static to external.
11171 (print_char_chars): New function.
11172 * printcmd.c (print_scalar_formatted): For integer and enum types
11173 that are longer than LONGEST, perform processing via appropriate
11174 print_*_chars routines.
11176 2004-02-26 Andrew Cagney <cagney@redhat.com>
11178 * Makefile.in: Update dependencies.
11179 Changes from Ulrich Weigand,
11180 * s390-tdep.c: Include "dwarf2-frame.h".
11181 (s390_dwarf2_frame_init_reg): New function.
11182 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11183 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11185 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11187 * breakpoint.c (pending_break_support): New setting variable.
11188 (break_command_1): Account for pending_break_support setting
11189 when creating pending breakpoints.
11190 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11191 (_initialize_breakpoint): Add "set breakpoint pending" and
11192 "show breakpoint pending" commands.
11194 2004-02-26 Andrew Cagney <cagney@redhat.com>
11197 * charset.c (backslashable, backslashed, represented): Remove 'e'
11198 from list of escaped characters, not part of ISO-C.
11200 2004-02-25 J. Brobecker <brobecker@gnat.com>
11202 From Peter Schauer <schauer@pdf.de>:
11203 * tui/tui.c: Move system header includes after local includes.
11204 Fixes a build failure on solaris systems.
11206 2004-02-25 J. Brobecker <brobecker@gnat.com>
11208 * configure.in: Refine the previous change.
11209 * configure: Regenerate.
11211 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11213 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11214 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11215 "amd64-tdep.h" instead of "x86-64-tdep.h".
11216 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11217 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11218 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11219 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11220 and "x86-64-tdep.c".
11221 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11222 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11223 and "x86-64-tdep.c".
11224 * amd64bsd-nat.c: Update copyright year.
11225 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11226 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11228 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11230 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11232 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11234 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11236 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11238 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11239 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11240 * Makefile.in (amd64_linux_tdep_h): Renamed from
11241 x86_64_linux_tdep_h.
11242 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11243 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11244 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11245 (amd64obsd-tdep.o): Update dependencies.
11246 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11248 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11250 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11251 amd64-linux-nat.c amd64-linux-tdep.c.
11252 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11253 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11254 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11255 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11256 amd64-tdep.o and amd64-linux-tdep.o.
11257 (TM_FILE): Set to tm-linux64.h.
11258 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11259 (NAT_FILE): Set to nm-linux64.h.
11260 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11261 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11263 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11265 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11268 2004-02-25 Roland McGrath <roland@redhat.com>
11270 * remote.c (remote_protocol_qPart_auxv): New variable.
11271 (init_all_packet_configs): Initialize it.
11272 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11273 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11274 (show_remote_cmd): Call it.
11275 (_initialize_remote): Initialize commands.
11276 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11277 service TARGET_OBJECT_AUXV requests.
11279 2004-02-25 J. Brobecker <brobecker@gnat.com>
11281 * configure.in: Make sure that the wborder function is available.
11282 Otherwise, search for it in the cur_colr library.
11283 * configure: Regenerate.
11285 2004-02-25 Andrew Cagney <cagney@redhat.com>
11287 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11289 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11291 * config/i386/tm-x86-64linux.h: Tweak comments.
11293 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11295 * MAINTAINERS: Add self to write-after-approval list.
11297 2004-02-25 Andrew Cagney <cagney@redhat.com>
11299 PR cli/1566. Problem found, and fix suggested by David Allan.
11300 * cli/cli-script.c (execute_control_command): Unconditionally
11301 install a cleanup. Default "ret" to "invalid_control". Use
11302 "break" instead of "return" to escape from the switch.
11304 2004-02-24 J. Brobecker <brobecker@gnat.com>
11306 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11307 with the lines macro defined in term.h on AiX.
11308 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11309 a collision with the label_width macro defined in term.h on AiX.
11311 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11313 Committed by Kevin Buettner <kevinb@redhat.com>.
11315 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11316 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11317 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11318 instead of ia64_write_pc().
11319 * ia64-linux-tdep.c (regcache.h): Include.
11320 (ia64_linux_write_pc): New function.
11322 2004-02-23 Roland McGrath <roland@redhat.com>
11324 * auxv.c (info_auxv_command): Fix typos in error messages.
11326 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11328 * x86-64-tdep.h: Tweak comment.
11329 (enum amd64_regnum): New.
11330 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11331 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11332 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11333 (X86_64_XMM1_REGNUM): Removed.
11334 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11335 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11336 prototypes for renamed functions.
11337 * x86-64-tdep.c: Fix typo.
11338 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11340 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11341 Use constants from `enum amd64_regnum' for register numbers.
11342 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11343 (amd64_analyze_prologue, amd64_frame_cache,
11344 amd64_sigtramp_frame_cache): Use constants from `enum
11345 amd64_regnum' for register numbers.
11346 (amd64_supply_fpregset): Adjust for renamed functions.
11347 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11348 `enum amd64_regnum' for register numbers.
11349 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11350 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11351 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11352 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11353 (amd64_linux_fill_gregset): Adjust for renamed macros.
11354 (fetch_core_registers): Adjust for renamed functions.
11355 (amd64_linux_init_abi): Adjust for renamed functions.
11356 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11358 * amd64-nat.c: Adjust for renamed macros.
11359 * amd64bsd-nat.c (fetch_inferior_registers)
11360 (store_inferior_registers): Use constants from `enum amd64_regnum'
11361 for register numbers. Adjust for renamed variables.
11362 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11364 (_initialize_amd64fbsd_nat): Use constants from `enum
11365 amd64_regnum' for register numbers.
11366 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11367 `enum amd64_regnum' for register numbers.
11368 (amd64fbsd_init_abi): Adjust for renamed functions.
11369 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11370 `enum amd64_regnum' for register numbers.
11371 (amd64nbsd_init_abi): Adjust for renamed functions.
11372 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11373 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11374 `enum amd64_regnum' for register numbers.
11375 (amd64obsd_init_abi): Adjust for renamed functions.
11376 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11378 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11380 * breakpoint.c (print_one_breakpoint): Do not output spaces
11381 after printing <PENDING> for a pending breakpoint.
11383 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11385 * printcmd.c (print_scalar_formatted): Initialize val_long
11386 to remove compiler warning message.
11388 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11390 * defs.h (nquery, yquery): New prototypes.
11391 * breakpoint.c (break_command_1): Use new nquery interface.
11392 * utils.c (defaulted_query, nquery, yquery): New functions.
11394 2004-02-23 Andrew Cagney <cagney@redhat.com>
11396 * hppa-tdep.c (hppa_frame_align): New function.
11397 (hppa32_push_dummy_call): New function.
11398 (hppa64_push_dummy_call): New function.
11399 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11402 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11403 FIX_CALL_DUMMY when push_dummy_call is available.
11404 (call_function_by_hand, push_dummy_code): Ditto.
11406 2004-02-22 Andrew Cagney <cagney@redhat.com>
11408 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11409 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11410 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11411 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11412 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11413 call_dummy_location to ON_STACK.
11415 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11417 * x86-64-linux-tdep.c: Tweak comment.
11418 (amd64_linux_supply_gregset): Renamed from
11419 x86_64_linux_supply_gresget.
11420 (amd64_linux_fill_gregset): Renamed from
11421 x86_64_linux_fill_gregset.
11422 (fetch_core_registers): Adjust for renamed functions.
11423 (amd64_core_fns): Renamed from x86_64_core_fns.
11424 (amd64_linux_sigtramp_start): Renamed from
11425 x86_64_linux_sigtramp_start.
11426 (amd64_linux_pc_in_sigtramp): Renamed from
11427 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11428 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11429 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11430 (amd64_linux_sigcontext_addr): Renamed from
11431 x86_64_linux_sigcontext_addr.
11432 (amd64_linux_sc_reg_offset): Renamed from
11433 x86_64_linux_sc_reg_offset.
11434 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11435 Adjust for renamed functions and variables.
11436 (_initialize_amd64_linux_tdep): Renamed from
11437 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11439 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11440 Adjust for renamed functions.
11442 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11443 from x86_64_linux_gregset64_reg_offset.
11444 (amd64_linux_gregset32_reg_offset): Rename from
11445 x86_64_linux_gregset64_reg_offset.
11446 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11447 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11448 (amd64_linux_dr_set_control): Renamed from
11449 x86_64_linux_dr_set_control. Adjust for renamed functions.
11450 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11451 Adjust for renamed functions.
11452 (amd64_linux_dr_reset_addr): Renamed from
11453 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11454 (amd64_linux_dr_get_status): Renamed from
11455 x86_64_linux_dr_get_status. Adjust for renamed functions.
11456 (_initialize_amd64_linux_nat): Renamed from
11457 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11459 * config/i386/nm-x86-64linux.h: Update copyright year.
11460 Adjust for renamed functions.
11462 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11463 amd64fbsd_sigtramp_start.
11464 (amd64fbsd_sigtramp_end_addr): Renamed from
11465 amd64fbsd_sigtramp_end.
11466 (amd64fbsd_init_abi): Adjust for renamed variables.
11467 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11469 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11470 amd64fbsd_sigtramp_start.
11471 (amd64fbsd_sigtramp_end_addr): Renamed from
11472 amd64fbsd_sigtramp_end.
11474 2004-02-22 Andrew Cagney <cagney@redhat.com>
11476 * hppa-tdep.c (hppa32_return_value): New function.
11477 (hppa64_return_value): New function.
11478 (hppa_gdbarch_init): Set return_value; keep disabled.
11480 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11481 struct-return and inferior function call methods.
11483 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11485 (struct hppa_frame_cache): Define.
11486 (hppa_frame_cache, hppa_frame_this_id): New functions.
11487 (hppa_frame_prev_register): New function.
11488 (hppa_frame_unwind, hppa_frame_base): New variables.
11489 (hppa_frame_unwind_sniffer): New function.
11490 (hppa_frame_base_address, hppa_unwind_pc): New function.
11491 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11492 sniffer, and frame base sniffer; keep disabled.
11493 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11494 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11496 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11497 to predicates for "seriously old code".
11499 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11502 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11504 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11506 * config/pa/tm-hppa.h: Update copyright.
11507 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11508 (deprecated_init_frame_pc_default): Delete declaration.
11509 (hppa_frame_init_saved_regs): Delete declaration.
11510 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11511 * hppa-tdep.c: Include "arch-utils.h".
11512 (hppa_gdbarch_init): Set deprecated init_frame_pc
11513 and deprecated frame_init_saved_regs.
11514 (hppa_frame_init_saved_regs): Make static.
11516 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11518 Remove old 386BSD support.
11519 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11520 * configure.host: Remove i[34567]86-*-bsd*.
11521 * configure.tgt: Remove i[34567]86-*-bsd*.
11522 * i386b-nat.c: Removed.
11523 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11524 (i386b-nat.o): Remove dependencies.
11526 * config/i386/i386bsd.mh: Removed.
11527 * config/i386/i386bsd.mt: Removed.
11528 * config/i386/nm-i386bsd.h: Removed.
11529 * config/i386/tm-i386bsd.h: Removed.
11530 * config/i386/xm-i386bsd.h: Removed.
11532 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11534 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11535 (amd64fbsd_init_abi): Set link map offsets.
11536 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11537 (amd64nbsd_init_abi): Set link map offsets.
11538 * amd64obsd-tdep.c: Include "solib-svr4.h".
11539 (amd64obsd_init_abi): Set link map offsets.
11540 * i386fbsd-tdep.c: Include "solib-svr4.h".
11541 (i386fbsd_init_abi): Set link map offsets.
11542 * i386nbsd-tdep.c: Include "solib-svr4.h".
11543 (i386nbsdelf_init_abi): Set link map offsets.
11544 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11545 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11546 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11547 solib-legacy.o and core-aout.o. Reformat.
11548 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11549 solib-svr4.o, solib-legacy.o. Reformat.
11550 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11551 * config/i386/nbsdelf.mh: Reformat.
11552 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11553 solib-svr4.o, solib-legacy.o and corelow.o.
11554 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11555 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11556 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11557 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11558 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11559 (TM_FILE): Set to tm-fbsd.h.
11560 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11561 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11563 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11565 (TM_FILE): Set to nm-nbsd.h.
11566 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11567 Simplify shared library support. Don't include "elf/common.h".
11568 (SVR4_SHARED_LIBS): Don't define.
11569 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11571 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11572 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11573 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11574 Don't include "i386/tm-i386.h". Include "solib.h".
11575 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11576 Don't include "i386/tm-i386.h".
11577 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11578 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11579 Include "i386/xm-i386.h".
11580 (HOST_LONG_DOUBLE_FORMAT): Remove.
11582 Fix OpenBSD/i386 sigtramp recognition.
11583 * i386-tdep.h: Update copyright year.
11584 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11585 (i386bsd_sigtramp_end): New prototypes.
11586 (i386fbsd_sigtramp_start_addr): Renamed from
11587 i386fbsd_sigtramp_start.
11588 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11589 (i386obsd_sigtramp_start_addr): Renamed from
11590 i386obsd_sigtramp_start.
11591 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11592 * i386bsd-tdep.c: Update copyright year.
11593 (i386bsd_pc_in_sigtramp): Make public.
11594 * i386fbsd-nat.c: Update copyright year.
11595 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11596 * i386fbsd-tdep.c: Update copyright year.
11597 (i386fbsd_sigtramp_start_addr): Renamed from
11598 i386fbsd_sigtramp_start.
11599 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11600 (i386fbsdaout_init_abi): Adjust for renamed variables.
11601 * i386obsd-nat.c: Update copyright year.
11602 (_initialize_i386obsd_nat): Adjust for renamed variables.
11603 * i386obsd-tdep.c: Include "target.h".
11604 (i386obsd_page_size): New variable.
11605 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11606 (i386obsd_sigtramp_end): New functions.
11607 (i386obsd_sigtramp_start_addr): Renamed from
11608 i386obsd_sigtramp_start.
11609 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11610 (i386obsd_init_abi): Adjust for renamed variables. Set
11611 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11612 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11614 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11615 trampoline change in OpenBSD kernel.
11617 * amd64-nat.c: Update copyright year.
11618 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11619 architecture from REGCACHE.
11621 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11622 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11624 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11626 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11627 i[34567]86-*-openbsd3.[0-3].
11628 * config/i386/obsdaout.mh: New file.
11630 * config/i386/obsd.mh (MH_FLAGS): Remove.
11633 * i386obsd-tdep.c: Update copyright years. Include
11635 (i386obsd_init_abi): Don't set regset_from_core_section here.
11636 (i386obsd_aout_init_abi): New function. Set
11637 regset_from_core_section here.
11638 (i386obsd_elf_init_abi): New function.
11639 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11640 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11641 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11642 (TM_FILE): Set to tm-nbsd.h.
11644 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11647 * solib-svr4.h: Update copyright year.
11648 (svr4_ilp32_fetch_link_map_offsets)
11649 (svr4_lp64_fetch_link_map_offsets): New prototype.
11650 * solib-svr4.c: Update copyright year.
11651 (svr4_ilp32_fetch_link_map_offsets)
11652 (svr4_lp64_fetch_link_map_offsets): New function.
11654 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11656 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11657 to the partial symbol table.
11659 2004-02-20 J. brobecker <brobecker@gnat.com>
11661 * PROBLEMS: Add description of problem documented under gdb/1560.
11663 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11665 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11667 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11669 (amd64obsd_init_abi): Reorder initializations. Use
11670 amd64obsd_r_reg_offset to initialize the general-purpose register
11671 set details. Set regset_from_core_section.
11672 (_initialize_amd64obsd_tdep): Rename from
11673 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11674 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11675 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11677 * NEWS (New native configurations): Mention OpenBSD/alpha.
11678 * configure.tgt: Add alpha*-*-openbsd*.
11679 * configure.host: Add alpha*-*-openbsd*.
11680 * alphanbsd-tdep.c: Update copyright year.
11681 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11683 2004-02-20 Andrew Cagney <cagney@redhat.com>
11686 * configure.tgt: Delete target "none-*-*".
11687 * configure.host: Delete host "none-*-*".
11688 * config/none/none.mh: Delete file.
11689 * config/none/none.mt: Delete file.
11690 * config/none/xm-none.h: Delete file.
11691 * config/none/tm-none.h: Delete file.
11692 * config/none/nm-none.h: Delete file.
11694 2004-02-19 Fred Fish <fnf@redhat.com>
11696 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11697 cache->uses_fp prior to setting it.
11699 2004-02-19 Fred Fish <fnf@redhat.com>
11701 Fix for PR breakpoint/1558.
11702 * sh-tdep.c (IS_JSR): New macro.
11703 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11705 2004-02-19 Jim Blandy <jimb@redhat.com>
11707 * findvar.c (value_from_register): Doc fix.
11709 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11711 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11712 type being greater than sizeof of host's LONGEST. Always use
11713 unpack_long() unless format 'f' chosen.
11715 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11717 Committed by Elena Zannoni <ezannoni@redhat.com>
11719 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11720 contains a symbol wich is the best, non-exact match for the given
11721 pc. Update comments.
11723 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11725 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11726 macro, which was part of the now removed Mach 3 port.
11727 * utils.c (request_quit): Ditto.
11729 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11731 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11732 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11734 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11736 Committed by Mark Kettenis <kettenis@gnu.org>.
11738 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11741 2004-02-18 Andrew Cagney <cagney@redhat.com>
11743 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11744 CONFIG_INSTALL and CONFIG_UNINSTALL.
11745 * configure: Re-generate.
11746 * interps.h (INTERP_TUI): Define.
11747 * Makefile.in: Update dependencies.
11749 (tui-main.o): Specify dependencies.
11750 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11751 * tui/tui-main.c: New file.
11753 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11755 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11756 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11758 * configure.host: Add x86_64-*-openbsd*.
11759 * configure.tgt: Add x86_64-*-openbsd*.
11760 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11762 * tui/tui.c: Don't include <malloc.h>.
11764 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11765 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11768 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11769 static. Remove extraneous whitespace.
11770 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11773 2004-02-17 Jim Blandy <jimb@redhat.com>
11775 * findvar.c (value_from_register): Doc fix.
11777 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11779 Committed by Jim Blandy <jimb@redhat.com>.
11781 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11782 CORE_ADDR as type for selectors. Correct types for GNU run time
11783 message lookup function to use double indirection.
11784 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11785 * objc-lang.h (lookup_child_selector): Adapt prototype.
11787 * s390-nat.c (SUBOFF): New macro.
11788 (supply_gregset, fill_gregset): Use it to handle debugging
11789 of 32-bit exectuables running under a 64-bit kernel.
11790 * s390-tdep.c: Include "solib-svr4.h".
11791 (s390_svr4_fetch_link_map_offset): New function.
11792 (s390x_svr_fetch_link_map_offset): Likewise.
11793 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11794 * Makefile.in (s390-tdep.o): Update dependencies.
11796 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11798 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11799 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11800 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11801 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11802 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11803 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11804 S390_SIGNAL_FRAMESIZE,
11805 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11806 (struct frame_extra_info): Remove.
11807 (s390_memset_extra_info): Remove.
11808 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11809 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11810 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11811 (is_rse): Renamed to ...
11812 (is_rsy): ... this. Support long displacements.
11813 (is_rxe): Renamed to ...
11814 (is_rxy): ... this. Support long displacements.
11815 (compute_x_addr): Support long displacements.
11816 (struct s390_prologue_data): New data type.
11817 (s390_on_stack): Change API to use struct s390_prologue_data.
11818 (s390_store): Reimplement.
11819 (s390_load): New function.
11820 (s390_get_signal_frame_info): Remove.
11821 (s390_get_frame_info): Remove, replace by ...
11822 (s390_analyze_prolog): ... this new function.
11823 (s390_check_function_end): Remove.
11824 (s390_function_start): Remove.
11825 (s390_frameless_function_invokation): Remove.
11826 (s390_is_sigreturn): Remove.
11827 (s390_init_frame_pc_first): Remove.
11828 (s390_init_frame_extra_info): Remove.
11829 (s390_frame_init_saved_regs): Remove.
11830 (s390_frame_saved_pc_nofix): Remove.
11831 (s390_frame_saved_pc): Remove.
11832 (s390_frame_chain): Remove.
11833 (s390_fp_regnum, s390_read_fp): Remove.
11834 (s390_pop_frame_regular, s390_pop_frame): Remove.
11835 (s390_saved_pc_after_call): Remove.
11836 (s390_skip_prologue): Reimplement.
11837 (s390_in_function_epilogue_p): Support long displacements.
11838 (struct s390_unwind_cache): New data structure.
11839 (s390_frame_unwind_cache): New function.
11840 (s390_prologue_frame_unwind_cache): Likewise.
11841 (s390_backchain_frame_unwind_cache): Likewise.
11842 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11843 (s390_frame_unwind): Define.
11844 (s390_frame_sniffer): New function.
11845 (struct s390_pltstub_unwind_cache): New data structure.
11846 (s390_pltstub_frame_unwind_cache): New function.
11847 (s390_pltstub_frame_this_id): Likewise.
11848 (s390_pltstub_frame_prev_register): Likewise.
11849 (s390_pltstub_frame_unwind): Define.
11850 (s390_pltstub_frame_sniffer): New function.
11851 (struct s390_sigtramp_unwind_cache): New data structure.
11852 (s390_sigtramp_frame_unwind_cache): New function.
11853 (s390_sigtramp_frame_this_id): Likewise.
11854 (s390_sigtramp_frame_prev_register): Likewise.
11855 (s390_sigtramp_frame_unwind): Define.
11856 (s390_sigtramp_frame_sniffer): New function.
11857 (s390_frame_base_address, s390_local_base_address): New functions.
11858 (s390_frame_base): Define.
11859 (s390_unwind_pc, s390_unwind_sp): New function.
11860 (s390_push_dummy_call): Use new frame base location.
11861 (s390_unwind_dummy_id): Likewise.
11862 (s390_gdbarch_init): Remove calls to:
11863 set_gdbarch_frameless_function_invocation,
11864 set_gdbarch_deprecated_init_frame_pc,
11865 set_gdbarch_deprecated_frame_chain,
11866 set_gdbarch_deprecated_frame_init_saved_regs,
11867 set_gdbarch_deprecated_pop_frame,
11868 set_gdbarch_deprecated_init_extra_frame_info,
11869 set_gdbarch_deprecated_init_frame_pc_first,
11870 set_gdbarch_deprecated_target_read_fp,
11871 set_gdbarch_deprecated_frame_saved_pc,
11872 set_gdbarch_deprecated_saved_pc_after_call,
11873 set_gdbarch_deprecated_fp_regnum.
11875 set_gdbarch_in_solib_call_trampoline,
11876 frame_unwind_append_sniffer,
11877 frame_base_set_default,
11878 set_gdbarch_unwind_pc,
11879 set_gdbarch_unwind_sp.
11880 * Makefile.in (s390-tdep.o): Update dependencies.
11882 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11883 (S390_STACK_FRAME_OVERHEAD): Remove.
11884 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11885 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11886 (s390_promote_integer_argument): Remove.
11887 (s390_cannot_extract_struct_value_address): Remove.
11888 (s390_use_struct_convention, s390_store_struct_return): Remove.
11889 (s390_extract_return_value, s390_store_return_value): Remove.
11890 (s390_return_value_convention, s390_return_value): New functions.
11891 (is_float_singleton): Handle typedefs.
11892 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11893 Remove, replace by ...
11894 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11895 s390_function_arg_integer): ... these new functions.
11896 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11897 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11898 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11901 set_gdbarch_deprecated_store_struct_return,
11902 set_gdbarch_deprecated_extract_return_value,
11903 set_gdbarch_deprecated_store_return_value,
11904 set_gdbarch_use_struct_convention,
11905 set_gdbarch_extract_struct_value_address,
11906 set_gdbarch_deprecated_pc_in_call_dummy,
11907 set_gdbarch_deprecated_push_arguments,
11908 set_gdbarch_deprecated_save_dummy_frame_tos,
11909 set_gdbarch_deprecated_push_return_address,
11910 set_gdbarch_deprecated_sizeof_call_dummy_words,
11911 set_gdbarch_deprecated_call_dummy_words,
11912 set_gdbarch_deprecated_dummy_write_sp.
11914 set_gdbarch_push_dummy_call,
11915 set_gdbarch_unwind_dummy_id,
11916 set_gdbarch_return_value.
11918 * config/s390/nm-linux.h: Update comments.
11919 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11920 (STOPPED_BY_WATCHPOINT): Redefine.
11921 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11922 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11923 (s390_stopped_by_watchpoint): Likewise.
11924 (watch_area_cnt): Remove.
11925 * s390-nat.c: Update comments.
11926 (watch_area): Remove typedef.
11927 Global replace watch_area by struct watch_area.
11928 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11929 (s390_stopped_by_watchpoint): Remove pid argument,
11930 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11931 (s390_fix_watch_points): Remove pid argument,
11932 use s390_inferior_tid. Recompute area spanned by watchpoints.
11933 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11934 argument. Reimplement.
11936 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11937 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11938 (FETCH_INFERIOR_REGISTERS): Define.
11939 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11941 * config/s390/s390x.mt: Remove.
11942 * config/s390/tm-s390.h: Remove.
11943 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11944 (TARGET_ELF64): Remove.
11945 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11946 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11947 s390*-*-* case; always set gdb_target to s390.
11948 * regformats/reg-s390.dat: Remove control registers.
11949 * regformats/reg-s390x.dat: Likewise.
11950 * s390-tdep.h: New file.
11951 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11952 Include "inferior.h" and "s390-tdep.h".
11953 Remove private definition of offsetof.
11954 (s390_register_u_addr): Remove.
11955 (regmap_gregset, regmap_fpregset): Define.
11956 (supply_gregset, fill_gregset): Reimplement.
11957 (supply_fpregset, fill_fpregset): Likewise.
11958 (s390_inferior_tid): New function.
11959 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11960 (fetch_inferior_registers, store_inferior_registers): Likewise.
11961 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11962 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11963 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11964 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11965 (struct gdbarch_tdep): Define.
11966 (struct s390_register_info): Define.
11967 (s390_register_info): New variable.
11968 (s390_register_name): Reimplement.
11969 (s390_register_type): New function.
11970 (s390_register_raw_size, s390x_register_raw_size): Remove.
11971 (s390_cannot_fetch_register): Remove.
11972 (s390_register_byte): Remove.
11973 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11974 (s390_dwarf_regmap): New variable.
11975 (s390_dwarf_reg_to_regnum): New function.
11976 (s390_stab_reg_to_regnum): Remove.
11977 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11978 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11979 (s390_convert_register_p): Likewise.
11980 (s390_register_to_value, s390_value_to_register): Likewise.
11981 (s390_register_reggroup_p): Likewise.
11982 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11983 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11984 (s390_supply_regset, s390_regset_from_core_section): New functions.
11985 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11986 (S390_FPR_SIZE): Likewise.
11987 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11988 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11989 (S390_NUM_GPRS): Move here from tm-s390.h.
11990 (S390_NUM_FPRS): Likewise.
11991 (s390_in_function_epilogue_p): New function.
11992 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11993 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11994 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11995 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11996 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11998 set_gdbarch_deprecated_max_register_raw_size,
11999 set_gdbarch_deprecated_max_register_virtual_size,
12000 set_gdbarch_deprecated_register_byte,
12001 set_gdbarch_cannot_fetch_register,
12002 set_gdbarch_cannot_store_register,
12003 set_gdbarch_deprecated_register_size,
12004 set_gdbarch_deprecated_register_raw_size,
12005 set_gdbarch_deprecated_register_virtual_size,
12006 set_gdbarch_deprecated_register_virtual_type,
12007 set_gdbarch_deprecated_register_bytes.
12009 set_gdbarch_num_pseudo_regs,
12010 set_gdbarch_register_type,
12011 set_gdbarch_convert_register_p,
12012 set_gdbarch_register_to_value,
12013 set_gdbarch_value_to_register,
12014 set_gdbarch_register_reggroup_p,
12015 set_gdbarch_regset_from_core_section,
12016 set_gdbarch_pseudo_register_read,
12017 set_gdbarch_pseudo_register_write,
12018 set_gdbarch_in_function_epilogue_p.
12019 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12020 (s390_tdep_h): New variable.
12022 2004-02-17 Jim Blandy <jimb@redhat.com>
12024 * findvar.c (value_from_register): If the type has no length, just
12025 return an acceptable value --- don't report an internal error.
12027 * stabsread.c (read_type): If we find any type numbers that are
12028 forward references, complain if the references aren't resolved by
12029 the time we're finished reading.
12030 (cleanup_undefined_types): Make error message more appropriate for
12033 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12035 * Makefile.in (defs_h): Remove dependency on progress_h.
12036 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12038 * main.c (captured_main): Delete use of START_PROGRESS and
12041 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12043 * objfiles.c (terminate_minimal_symbol_table): Add back
12044 initialization of MSYMBOL_TYPE.
12046 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12048 Committed by Andrew Cagney.
12049 * Makefile.in (ia64_tdep_h): New macro.
12050 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12051 (ia64-tdep.o): Likewise.
12052 * ia64-tdep.h: New file.
12053 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12054 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12055 (ia64_aix_sigcontext_register_address): Likewise.
12056 (ia64_linux_getunwind_table): Delete declaration.
12057 * ia64-linux-tdep.c: Likewise.
12059 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12061 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12062 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12063 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12065 2004-02-17 Andrew Cagney <cagney@redhat.com>
12067 * symtab.c (skip_prologue_using_sal): New function.
12068 * symtab.h (skip_prologue_using_sal): Declare.
12069 * frv-tdep.c: Include "symtab.h".
12070 (skip_prologue_using_sal): Delete function.
12071 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12072 * rs6000-tdep.c (refine_prologue_limit): Mention
12073 skip_prologue_using_sal.
12074 * ia64-tdep.c (refine_prologue_limit): Ditto.
12075 * Makefile.in: Update dependencies.
12077 2004-02-16 Andrew Cagney <cagney@redhat.com>
12079 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12080 START_INFERIOR_TRAPS_EXPECTED.
12081 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12082 START_INFERIOR_TRAPS_EXPECTED.
12083 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12085 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12086 macro, moved to "nm-osf.h". Update copyright.
12087 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12090 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12091 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12092 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12093 frameless_look_for_prologue.
12094 * frame.h (legacy_frameless_look_for_prologue): Rename
12095 frameless_look_for_prologue.
12096 * gdbarch.h, gdbarch.c: Re-generate.
12097 * sh64-tdep.c (sh64_gdbarch_init): Update.
12098 * sh-tdep.c (sh_gdbarch_init): Update.
12099 * s390-tdep.c (s390_gdbarch_init): Update.
12100 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12101 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12102 * m68k-tdep.c (m68k_gdbarch_init): Update.
12103 (delta68_frame_args_address): Update.
12104 * m32r-tdep.c (m32r_gdbarch_init): Update.
12105 * hppa-tdep.c (hppa_gdbarch_init): Update.
12106 * h8300-tdep.c (h8300_gdbarch_init): Update.
12107 * frv-tdep.c (frv_gdbarch_init): Update.
12108 (frv_frameless_function_invocation): Update.
12109 * cris-tdep.c (cris_gdbarch_init): Update.
12110 (cris_frameless_function_invocation): Update.
12111 * avr-tdep.c (avr_gdbarch_init): Update.
12112 * arm-tdep.c (arm_gdbarch_init): Update.
12113 * stack.c (frame_info): Update, call predicate.
12114 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12115 * frame.c (legacy_get_prev_frame): Update, call predicate..
12116 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12117 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12118 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12120 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12121 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12122 * vax-tdep.c (vax_gdbarch_init): Ditto.
12124 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12127 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12129 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12132 2004-02-16 Andrew Cagney <cagney@redhat.com>
12134 * tui/tui-windata.c: Include "gdb_string.h".
12135 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12136 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12137 * Makefile.in: Update dependencies.
12139 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12141 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12142 * infrun.c: Include "gdb_assert.h".
12143 (singlestep_ptid, saved_singlestep_ptid)
12144 (stepping_past_singlestep_breakpoint): New variables.
12145 (resume): Set singlestep_ptid. Check for singlestep thread
12147 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12148 (handle_inferior_event): Handle singlestep thread hop.
12150 2004-02-16 Andrew Cagney <cagney@redhat.com>
12152 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12153 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12154 (dwarf2_frame_init_reg): Ditto.
12156 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12157 suggested by Joshua Neuheisel
12159 * configure.in: Always check for curses, including pdcurses.
12160 Warn, instead of error, when no curses are found. Enable TUI when
12161 curses is available.
12162 * configure: Re-generate.
12164 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12166 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12167 sh_sh4_register_convert_to_virtual.
12168 (sh_register_convert_to_raw): Rename from
12169 sh_sh4_register_convert_to_raw.
12170 (sh_pseudo_register_read): Accomodate above name change.
12171 (sh_pseudo_register_write): Ditto.
12173 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12175 * sh-tdep.c (sh_generic_register_name): Remove.
12176 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12178 2004-02-15 Andrew Cagney <cagney@redhat.com>
12180 * configure.in (build_warnings): Add -Wunused-function.
12181 * configure: Re-generate.
12183 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12184 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12186 * procfs.c (procfs_init_inferior): Assume that
12187 START_INFERIOR_TRAPS_EXPECTED is defined.
12188 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12189 * config/ns32k/tm-nbsd.h: Delete file,
12190 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12192 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12193 * config/vax/tm-vax.h: Delete file.
12195 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12196 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12197 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12198 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12199 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12200 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12201 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12203 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12205 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12206 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12207 (struct dwarf2_frame_ops): New.
12208 (dwarf2_frame_default_init_reg): New function, based on
12209 dwarf2_frame_init_reg.
12210 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12211 (dwarf2_frame_init_reg): Call architecture-specific function.
12212 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12213 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12214 instead of dwarf2_frame_data.
12215 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12216 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12218 2004-02-15 Andrew Cagney <cagney@redhat.com>
12220 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12221 register_gdbarch_swap.
12222 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12223 * f-lang.c (_initialize_f_language): Update, use
12224 DEPRECATED_REGISTER_GDBARCH_SWAP.
12225 * remote.c (_initialize_remote): Ditto.
12226 * regcache.c (_initialize_regcache): Ditto.
12227 * parse.c (_initialize_parse): Ditto.
12228 * infrun.c (_initialize_infrun): Ditto.
12229 * mi/mi-main.c (_initialize_mi_main): Ditto.
12230 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12232 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12233 poking .cacheable directly.
12234 * symfile.c (symfile_bfd_open): Ditto.
12236 * Makefile.in: Update all dependencies.
12238 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12239 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12240 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12241 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12242 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12244 2004-02-14 Andrew Cagney <cagney@redhat.com>
12246 * arch-utils.c (legacy_convert_register_p): Check
12247 DEPRECATED_REGISTER_CONVERTIBLE_P.
12248 * findvar.c (value_of_register): Ditto.
12250 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12251 * gdbarch.h, gdbarch.c: Re-generate.
12252 * arch-utils.c (deprecated_register_convertible_not): Delete.
12253 * arch-utils.h (deprecated_register_convertible_not): Delete.
12254 * mi/mi-main.c (get_register): Update. Update copyright.
12255 * infcmd.c (default_print_registers_info): Update.
12257 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12258 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12259 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12260 * gdbarch.h, gdbarch.c: Re-generate.
12261 * frame.c (deprecated_get_next_frame_hack): Delete function.
12262 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12263 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12265 * infcall.c (call_function_by_hand): Update.
12267 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12269 * symfile.c (init_entry_point_info, entry_point_address): Move
12271 * objfiles.c (init_entry_point_info, entry_point_address):..to
12273 * symfile.h (init_entry_point_info, entry_point_address): Remove
12275 * objfiles.h (init_entry_point_info, entry_point_address):Add
12277 * cris-tdep.c: Remove include of symfile.h. Add include of
12279 * infcall.c: Ditto.
12280 * mcore-tdep.c: Ditto.
12281 * mn10300-tdep.c: Ditto.
12282 * sh64-tdep.c: Ditto.
12283 * v850-tdep.c: Ditto.
12284 * arm-tdep.c: Remove include of symfile.h.
12285 * blockframe.c: Ditto.
12286 * coffread.c: Ditto.
12287 * dbxread.c: Ditto.
12288 * dwarf2read.c: Ditto.
12289 * dwarfread.c: Ditto.
12290 * frv-tdep.c: Ditto.
12291 * ia64-tdep.c: Ditto.
12292 * mdebugread.c: Ditto.
12293 * mipsread.c: Ditto.
12294 * rs6000-tdep.c: Ditto.
12295 * s390-tdep.c: Ditto.
12296 * sh-tdep.c: Ditto.
12297 * xstormy16-tdep.c: Ditto.
12298 * gdbarch.sh: Remove include of symfile.h.
12299 * gdbarch.c: Regenerate.
12300 * solib-irix.c (enable_break): Use entry_point_address().
12301 Add comment about include file.
12302 * xcoffread.c: Add comment about include file.
12303 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12304 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12305 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12306 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12307 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12309 2004-02-13 Andrew Cagney <cagney@redhat.com>
12311 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12312 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12314 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12316 2004-02-12 Fred Fish <fnf@redhat.com>
12318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12319 set_gdbarch_store_return_value.
12321 2004-02-12 Andrew Cagney <cagney@redhat.com>
12323 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12324 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12325 (interrupt_query): Ditto.
12326 (ofunc): Delete unused variable.
12327 * cris-tdep.c (cris_abi): Delete unused function.
12328 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12329 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12330 (cris_get_asr_quick_shift_steps): Ditto.
12331 (cris_skip_prologue_frameless_p): Ditto.
12332 * arm-tdep.c (arm_push_return_address): Delete unused function.
12333 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12334 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12335 * s390-tdep.c (s390_function_start): Delete unused function.
12337 2004-02-12 Andrew Cagney <cagney@redhat.com>
12339 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12340 gdbarch.h, gdbarch.c: Re-generate.
12341 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12342 to generic_prologue_frameless_p.
12343 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12344 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12346 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12348 * mips-linux-tdep.c: Include "frame.h".
12349 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12350 (mips_linux_skip_resolver): New functions.
12351 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12352 and set_gdbarch_in_solib_call_trampoline.
12353 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12354 to after set_gdbarch_in_solib_return_trampoline. Only set the
12355 solib hooks to mips16 functions if the OS ABI is unknown.
12356 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12357 including "config/tm-linux.h".
12358 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12359 * Makefile.in (mips-linux-tdep.o): Update.
12361 2004-02-11 David Carlton <carlton@kealia.com>
12363 * linespec.c (decode_compound): Only look for a class symbol when
12364 considering all but the rightmost component.
12366 2004-02-11 Andrew Cagney <cagney@redhat.com>
12368 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12369 abi code are are separatly grouped.
12371 2004-02-11 Andrew Cagney <cagney@redhat.com>
12373 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12374 * gdbarch.h, gdbarch.c: Re-generate.
12375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12376 * v850-tdep.c (v850_gdbarch_init): Update.
12377 * sh64-tdep.c (sh64_gdbarch_init): Update.
12378 * sh-tdep.c (sh_gdbarch_init): Update.
12379 * s390-tdep.c (s390_gdbarch_init): Update.
12380 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12381 * mips-tdep.c (mips_gdbarch_init): Update.
12382 * mcore-tdep.c (mcore_gdbarch_init): Update.
12383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12384 * m32r-tdep.c (m32r_gdbarch_init): Update.
12385 * ia64-tdep.c (ia64_gdbarch_init): Update.
12386 * hppa-tdep.c (hppa_gdbarch_init): Update.
12387 * h8300-tdep.c (h8300_gdbarch_init): Update.
12388 * frv-tdep.c (frv_gdbarch_init): Update.
12389 * d10v-tdep.c (d10v_gdbarch_init): Update.
12390 * cris-tdep.c (cris_gdbarch_init): Update.
12391 * avr-tdep.c (avr_gdbarch_init): Update.
12392 * arm-tdep.c (arm_gdbarch_init): Update.
12393 * alpha-tdep.c (alpha_gdbarch_init): Update.
12395 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12397 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12399 (sh_sh4al_dsp_register_name): Ditto.
12401 2004-02-10 Andrew Cagney <cagney@redhat.com>
12403 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12404 (mips_init_frame_pc_first): Delete function.
12405 (mips_frame_saved_pc): Delete function.
12406 (mips_frame_chain): Delete function.
12407 (mips_init_extra_frame_info): Delete function.
12408 (mips_xfer_register): Delete unused variable "reg".
12409 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12410 (mips_n32n64_return_value): Delete unused variable "reg".
12411 (mips_n32n64_return_value): Delete unused variable "pos".
12412 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12413 (mips_o32_return_value): Delete unused variable "pos".
12414 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12415 (mips_print_fp_register): Delete unused variable "namelen"
12416 (mips_print_fp_register): Delete unused variable "flt2"
12417 (get_frame_pointer): Delete function.
12418 (cached_proc_desc): Delete static variable.
12419 (mips_pop_frame): Delete function.
12420 (mips_find_saved_regs): Delete function.
12421 (mips_get_saved_register): Delete function.
12422 (mips_saved_pc_after_call): Delete function.
12423 (SIGFRAME_BASE): Delete macro.
12424 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12425 (SIGFRAME_PC_OFF): Delete macro.
12426 (SIGFRAME_REGSAVE_OFF): Delete macro.
12427 (mips_dump_tdep): Do not print deleted macro definitions.
12429 2004-02-10 Andrew Cagney <cagney@redhat.com>
12431 * Makefile.in (SFILES): Remove explictly listed tui files.
12432 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12434 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12436 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12437 to use paddr functions to format ia64 addresses and long values.
12438 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12439 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12440 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12441 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12442 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12444 2004-02-10 Andrew Cagney <cagney@redhat.com>
12446 * defs.h: Do not include "tui.h".
12447 * gdb_curses.h: New file.
12448 * tui/tui-hooks.h: New file.
12449 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12450 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12451 (tui_initialize_io): Delete declaration.
12452 (tui_initialize_readline: Delete redundant declaration.
12453 (struct tui_point): Delete definition.
12454 * tui/tui-data.h (struct tui_point): Define.
12455 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12456 * utils.c: Include "tui/tui.h".
12457 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12458 * printcmd.c [TUI]: Include "tui/tui.h".
12459 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12460 * tui/tui-command.c: Include "gdb_curses.h".
12461 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12462 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12463 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12464 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12465 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12466 * Makefile.in: Update all dependencies.
12467 (tui_hooks_h, gdb_curses_h): Define.
12468 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12470 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12472 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12473 auxf2. Add comments about some other rarely used fields.
12475 2004-02-10 Andrew Cagney <cagney@redhat.com>
12477 * Makefile.in (init.c): Fix script removing duplicates. Problem
12478 reported by Peter Schauer.
12480 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12482 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12483 obstack_specify_allocation.
12484 * objfiles.c (allocate_objfile): Ditto.
12485 * solib-sunos.c (solib_add_common_symbols)
12486 (allocate_rt_common_objfile): Ditto.
12487 * symfile.c (reread_symbols): Ditto.
12488 * gdb_obstack.h: Add comment.
12490 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12492 * linespec.c (decode_line_1, locate_first_half)
12493 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12494 commented out code.
12496 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12498 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12501 2004-02-09 Andrew Cagney <cagney@redhat.com>
12503 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12504 fails, try find_pc_section. Fix PR c++/1267.
12505 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12506 instead of find_pc_mapped_section.
12507 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12508 not default to the section containing PC. Fix PR symtab/1519.
12510 2004-02-09 Andrew Cagney <cagney@redhat.com>
12512 * Makefile.in (mips-tdep.o): Update dependencies.
12513 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12515 (mips_unwind_pc): Return the pseudo PC register.
12516 (mips_unwind_dummy_id): New function.
12517 (mips16_fetch_instruction): New function.
12518 (mips32_fetch_instruction): New function.
12519 (struct mips_frame_cache): Define.
12520 (mips_mdebug_frame_cache): New function.
12521 (mips_mdebug_frame_this_id): New function.
12522 (mips_mdebug_frame_prev_register): New function.
12523 (mips_mdebug_frame_unwind): Define.
12524 (mips_mdebug_frame_sniffer): New function.
12525 (mips_mdebug_frame_base_address): New function.
12526 (mips_mdebug_frame_base): Define.
12527 (mips_mdebug_frame_base_sniffer): New function.
12528 (mips_gdbarch_init): Append unwind and base sniffers. Set
12531 2004-02-08 Andrew Cagney <cagney@redhat.com>
12533 * frame.c: Print both the register number and name.
12535 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12536 and a sed into a single sed. Make .c and .o patterns more robust.
12538 (INIT_FILES): Replace OBS with COMMON_OBS.
12539 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12541 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12543 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12544 the PT_WCOOKIE request.
12546 2004-02-08 Andrew Cagney <cagney@redhat.com>
12548 * mips-tdep.c (mips_unwind_pc): New function.
12549 (mips_gdbarch_init): Set mips_unwind_pc.
12551 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12552 (get_frame_id): Allow the UNKNOWN_FRAME.
12553 (frame_register_unwind, get_frame_type): Ditto.
12555 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12556 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12557 unwind_dummy_id indicates a legacy frame.
12559 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12560 * configure: Re-generate.
12562 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12565 2004-02-08 Andrew Cagney <cagney@redhat.com>
12567 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12569 * configure: Re-generate.
12570 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12571 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12572 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12573 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12574 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12575 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12576 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12577 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12578 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12579 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12581 2004-02-07 Andrew Cagney <cagney@redhat.com>
12583 * Makefile.in: Update all dependencies.
12585 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12586 * configure: Re-generate.
12587 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12588 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12589 (COMMON_OBS): Add "main.o" and "annotate.o".
12590 (ANNOTATE_OBS): Delete.
12591 (OBS): Remove ANNOTATE_OBS.
12592 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12594 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12595 against CONFIG_OBS and "main.o".
12596 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12597 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12599 * tui/tui-command.c: Include "gdb_string.h", delete register
12600 attribute, use ISO-C function signatures.
12601 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12602 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12603 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12604 * tui/tui.c: Ditto.
12606 * tui/tui-command.c: Change variable and function names to lower
12608 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12609 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12610 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12611 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12612 * tui/tui-winsource.c, tui/tui.c: Ditto.
12614 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12616 * buildsym.c (free_pending_blocks, finish_block)
12617 (record_pending_block, make_blockvector, end_symtab): Replace
12618 symbol_obstack with objfile_obstack.
12619 * coffread.c (process_coff_symbol, coff_read_struct_type)
12620 (coff_read_enum_type): Ditto.
12621 * cp-namespace.c (initialize_namespace_symtab)
12622 (check_one_possible_namespace_symbol): Ditto.
12623 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12624 (dwarf2_symbol_mark_computed): Ditto.
12625 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12626 * elfread.c (elf_symtab_read): Ditto.
12627 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12628 (hpread_read_enum_type, hpread_read_function_type)
12629 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12631 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12632 (java_link_class_type): Ditto.
12633 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12634 (new_symbol): Ditto.
12635 * minsyms.c (install_minimal_symbols): Ditto.
12636 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12637 (terminate_minimal_symbol_table): Replace symbol_obstack with
12639 (free_objfile): Remove freeing of symbol_obstack.
12640 * objfiles.h: Remove symbol_obstack field.
12641 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12643 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12645 (solib_add_common_symbols): Replace symbol_obstack with
12647 * somsolib.c (som_solib_add): Ditto.
12648 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12649 (common_block_start, common_block_end): Ditto.
12650 * symfile.c (reread_symbols): Remove freeing and init of
12652 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12653 * symfile.h: Update comment.
12654 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12656 * symtab.c (symbol_set_names): Replace symbol_obstack with
12658 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12660 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12661 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12664 2004-02-07 Andrew Cagney <cagney@redhat.com>
12666 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12667 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12668 fields and variables.
12669 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12670 (m_beInvisible): Delete macro.
12671 * tui/tui-data.h: Fix case case fields and variables.
12672 (m_genWinPtrIsNull): Delete macro.
12673 (tui_win_list): Rename winList.
12674 (TUI_SRC_WIN): Rename srcWin.
12675 (TUI_DISASM_WIN): Rename disassemWin.
12676 (TUI_DATA_WIN): Rename dataWin.
12677 (TUI_CMD_WIN): Rename cmdWin.
12678 (m_genWinPtrNotNull): Delete macro.
12679 (m_winPtrIsNull): Delete macro.
12680 (m_winPtrNotNull): Delete macro.
12681 (tui_win_is_source_type): Replace m_winIsSourceType
12682 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12683 (tui_win_has_locator): Replace m_hasLocator.
12684 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12685 m_setWinHighlightOff.
12686 * tui/tui-data.c: Update references.
12687 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12688 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12689 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12690 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12691 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12692 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12693 * tui/tui-winsource.c, tui/tui.c: Ditto.
12695 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12697 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12698 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12701 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12702 variable `i6' to `i7'.
12703 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12705 2004-02-07 Andrew Cagney <cagney@redhat.com>
12707 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12708 (TuiPoint, TuiPointPtr): Ditto.
12709 (TuiStatus, TuiStatusPtr): Ditto.
12710 (TuiWinType, TuiWinTypePtr): Ditto.
12711 (struct tui_point): Rename _TuiPoint.
12712 (tui_get_low_disassembly_address): Rename
12713 tuiGetLowDisassemblyAddress.
12714 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12715 (tuiFree): Delete declaration.
12716 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12717 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12718 * tui/tui.c (tuiFree): Delete function.
12719 * cli/cli-cmds.c (disassemble_command): Update references.
12720 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12721 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12722 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12723 * tui/tui-winsource.c: Ditto.
12725 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12727 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12728 coffstab_build_psymtabs, elfstab_build_psymtabs)
12729 (stabsect_build_psymtabs): Replace psymbol_obstack with
12731 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12732 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12734 * dwarfread.c (scan_compilation_units): Ditto.
12735 * elfread.c (elfstab_offset_sections): Ditto.
12736 * hppa-tdep.c (read_unwind_info): Ditto.
12737 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12738 (hpread_end_psymtab): Ditto.
12739 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12740 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12742 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12743 * objfiles.c (add_to_objfile_sections)
12744 (build_objfile_section_table): Ditto.
12745 (allocate_objfile): Remove init of psymbol_obstack.
12746 (free_objfile): Remove freeing of psymbol_obstack.
12747 * objfiles.h (struct objfile): Remove field
12748 psymbol_obstack. Update comments.
12749 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12750 psymbol_obstack with objfile_obstack.
12751 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12753 * somread.c (som_symfile_offsets, init_import_symbols)
12754 (init_export_symbols): Replace psymbol_obstack with
12756 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12757 * symfile.c (default_symfile_offsets, syms_from_objfile)
12758 (reread_symbols): Remove freeing and init of psymbol_obstack.
12759 (cashier_psymtab): Update comment.
12760 * symmisc.c (print_objfile_statistics): Don't report stats for
12762 * symtab.h (struct general_symbol_info, struct partial_symtab):
12764 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12765 (xcoff_symfile_offsets): Replace psymbol_obstack with
12768 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12770 * objfiles.h (struct objfile): Add objfile_obstack field.
12771 Remove type_obstack field.
12773 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12774 read_structure_scope read_enumeration, new_symbol): Replace
12775 type_obstack with objfile_obstack.
12776 * dwarfread.c (struct_type, enum_type): Ditto.
12777 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12778 (lookup_fundamental_type): Ditto.
12779 * gdbtypes.h (TYPE_ALLOC): Ditto.
12780 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12781 (hpread_read_doc_function_type, hpread_read_struct_type)
12782 (fix_static_member_physnames, hpread_read_array_type)
12783 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12784 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12785 (java_link_class_type): Ditto.
12786 * mdebugread.c (parse_type): Ditto.
12787 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12788 * solib-sunos.c (solib_add_common_symbols): Ditto.
12789 * stabsread.c (define_symbol, read_type, read_member_functions,
12790 read_cpp_abbrev, read_one_struct_field): Ditto.
12791 * symfile.c (reread_symbols): Ditto.
12792 * symmisc.c (print_objfile_statistics): Ditto.
12794 2004-02-07 Andrew Cagney <cagney@redhat.com>
12796 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12797 (tui_exec_info_content): Rename TuiExecInfoContent.
12798 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12799 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12800 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12801 (TuiList, TuiListPtr): Ditto.
12802 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12803 (TuiDataType, TuiDataTypePtr): Ditto.
12804 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12805 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12806 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12807 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12808 (TuiDataElement, TuiDataElementPtr): Ditto.
12809 (TuiWinElement, TuiWinElementPtr): Ditto.
12810 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12811 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12812 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12813 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12814 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12815 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12816 * tui/tui-command.c, tui/tui-data.c: Update references.
12817 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12818 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12819 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12820 * tui/tui-winsource.c, tui/tui.c: Ditto.
12822 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12824 * dwarf2-frame.h: Update copyright.
12825 (enum dwarf2_frame_reg_rule): New.
12826 (struct dwarf2_frame_state_reg): New.
12827 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12828 * dwarf2-frame.c: Update copyright.
12829 (enum dwarf2_reg_rule): Remove.
12830 (struct dwarf2_frame_state): Remove defenition of `struct
12831 dwarf2_frame_state_reg'.
12832 (read_reg): Call get_frame_arch to get the architecture instead of
12833 using CURRENT_GDBARCH.
12834 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12836 (dwarf2_frame_init_reg): New function.
12837 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12838 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12839 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12840 tags with DWARF2_FRAME_.
12841 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12842 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12843 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12845 2004-02-06 Andrew Cagney <cagney@redhat.com>
12847 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12848 (enum tui_data_type): Rename _TuiDataType.
12849 (struct tui_layout_def): Rename _TuiLayoutDef.
12850 (struct tui_source_element): Rename _TuiSourceElement.
12851 (struct tui_data_element): Rename _TuiDataElement.
12852 (struct tui_command_element): Rename _TuiCommandElement.
12853 (struct tui_locator_element): Rename _TuiLocatorElement.
12854 (union tui_which_element): Define.
12855 (struct tui_win_element): Rename _TuiWinElement.
12856 (struct tui_data_info): Rename _TuiDataInfo.
12857 (struct tui_source_info): Rename _TuiSourceInfo.
12858 (struct tui_command_info): Rename _TuiCommandInfo.
12859 (tui_initialize_static_data): Rename initializeStaticData.
12860 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12861 (tui_alloc_win_info): Rename allocWinInfo.
12862 (tui_init_generic_part): Rename initGenericPart.
12863 (tui_init_win_info): Rename initWinInfo.
12864 (tui_alloc_content): Rename allocContent.
12865 (tui_add_content_elements): Rename addContentElements.
12866 (tui_init_content_element): Rename initContentElement.
12867 (tui_free_window): Rename freeWindow.
12868 (tui_free_win_content): Rename freeWinContent.
12869 (tui_free_data_content): Rename freeDataContent.
12870 (tui_free_all_source_wins_content): Rename
12871 freeAllSourceWinsContent.
12872 (tui_del_window): Rename tuiDelWindow.
12873 (tui_del_data_windows): Rename tuiDelDataWindows.
12874 (tui_partial_win_by_name): Rename partialWinByName.
12875 (tui_win_name): Rename winName.
12876 (tui_current_layout): Rename currentLayout.
12877 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12878 (tui_term_height): Rename termHeight.
12879 (tui_set_term_height_to): Rename setTermHeightTo.
12880 (tui_term_width): Rename termWidth.
12881 (tui_set_term_width_to): Rename setTermWidthTo.
12882 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12883 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12884 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12885 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12886 (tui_source_windows): Rename sourceWindows.
12887 (tui_clear_source_windows): Rename clearSourceWindows.
12888 (tui_clear_source_windows_detail): Rename
12889 clearSourceWindowsDetail.
12890 (tui_clear_win_detail): Rename clearWinDetail.
12891 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12892 (tui_default_tab_len): Rename tuiDefaultTabLen.
12893 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12894 (tui_win_with_focus): Rename tuiWinWithFocus.
12895 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12896 (tui_layout_def): Rename tuiLayoutDef.
12897 (tui_win_resized): Rename tuiWinResized.
12898 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12899 (tui_next_win): Rename tuiNextWin.
12900 (tui_prev_win): Rename tuiPrevWin.
12901 (tui_add_to_source_windows): Rename addToSourceWindows.
12902 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12903 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12904 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12905 * tui/tui.c, tui/tui-data.c: Ditto.
12906 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12907 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12909 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12910 (struct symtab): Declare.
12911 (tui_set_source_content): Rename tuiSetSourceContent.
12912 (tui_show_symtab_source): Rename tuiShowSource.
12913 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12914 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12915 * tui/tui-source.c: Update copyright. Update references.
12916 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12917 * tui/tui-stack.c: Update references.
12919 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12920 (struct tui_win_info): Declare.
12921 (tui_scroll_forward): Rename tuiScrollForward.
12922 (tui_scroll_backward): Rename tuiScrollBackward.
12923 (tui_scroll_left): Rename tuiScrollLeft.
12924 (tui_scroll_right): Rename tuiScrollRight.
12925 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12926 (tui_resize_all): Rename tuiResizeAll.
12927 (tui_refresh_all_win): Rename tuiRefreshAll.
12928 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12929 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12930 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12931 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12933 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12934 (tui_erase_data_content): Rename tuiEraseDataContent.
12935 (tui_display_all_data): Rename tuiDisplayAllData.
12936 (tui_check_data_values): Rename tuiCheckDataValues.
12937 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12938 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12939 (tui_first_data_element_no_in_line): Rename
12940 tuiFirstDataElementNoInLine.
12941 (tui_delete_data_content_windows): Rename
12942 tuiDeleteDataContentWindows.
12943 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12944 (tui_display_data_from): Rename tuiDisplayDataFrom.
12945 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12946 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12947 * tui/tui-win.c, tui/tui-regs.c: Update references.
12948 * tui/tui-layout.c, tui/tui.c: Update references.
12950 * tui/tui-wingeneral.h: Update copyright.
12951 (m_allBeVisible): Delete macro.
12952 (m_allBeInvisible): Delete macro.
12953 (struct tui_gen_win_info): Declare.
12954 (struct tui_win_info): Declare.
12955 (tui_unhighlight_win): Rename unhighlightWin.
12956 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12957 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12958 (tui_make_window): Rename makeWindow.
12959 (tui_copy_win): Rename copyWin.
12960 (tui_box_win): Rename boxWin.
12961 (tui_highlight_win): Rename highlightWin.
12962 (tui_check_and_display_highlight_if_needed): Rename
12963 checkAndDisplayHighlightIfNeeded.
12964 (tui_refresh_all): Rename refreshAll.
12965 (tui_delete_win): Rename tuiDelwin.
12966 (tui_refresh_win): Rename tuiRefreshWin.
12967 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12968 (tui_make_visible, tui_make_invisible): New functions.
12969 (tui_make_all_visible, tui_make_all_invisible): New functions.
12970 (make_all_visible): Rename makeAllVisible.
12971 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12972 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12973 * tui/tui-windata.c, tui/tui-win.c: Update references.
12974 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12975 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12977 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12979 * proc-api.c (write_with_trace): Initialize local variable to
12980 silence compiler warning.
12982 2004-02-06 Andrew Cagney <cagney@redhat.com>
12984 * tui/tui-source.h: Do not include "defs.h".
12985 (struct tui_win_info): Declare.
12986 (tui_set_source_content_nil): Declare.
12987 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12988 (union tui_line_or_address): Rename _TuiLineOrAddress.
12989 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12990 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12991 (tui_update_source_window_as_is): Rename
12992 tuiUpdateSourceWindowAsIs.
12993 (tui_update_source_windows_with_addr): Rename
12994 tuiUpdateSourceWindowsWithAddr.
12995 (tui_update_source_windows_with_line): Rename
12996 tuiUpdateSourceWindowsWithLine.
12997 (tui_clear_source_content): Rename tuiClearSourceContent.
12998 (tui_erase_source_content): Rename tuiEraseSourceContent.
12999 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13000 (tui_show_source_content): Rename tuiShowSourceContent.
13001 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13002 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13003 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13004 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13005 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13006 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13007 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13008 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13009 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13010 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13011 (struct tui_win_info): Declare.
13012 * tui/tui-stack.c: Update references.
13013 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13014 * tui/tui-win.c, tui/tui-source.c: Ditto.
13015 * tui/tui.c, tui/tui-disasm.c: Ditto.
13017 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13019 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13020 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13022 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13024 * infrun.c (handle_inferior_event): Allow for breakpoint
13025 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13026 and SIGEMT. Update comments.
13027 * NEWS (Revised SPARC target): Mention support for non-executable
13030 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13032 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13033 * inftarg.c: Update copyright year.
13034 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13035 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13036 (sparc_xfer_wcookie): New function.
13037 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13038 * Makefile.in (sparc-nat.o): Update dependencies.
13039 * config/sparc/nm-nbsd.h: Include "target.h".
13040 (NATIVE_XFER_WCOOKIE): New define.
13041 (sparc_xfer_wcookie): New prototype.
13043 2004-02-04 Andrew Cagney <cagney@redhat.com>
13045 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13046 SYSCALL_TRAP function.
13047 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13049 2004-02-04 Andrew Cagney <cagney@redhat.com>
13050 Daniel Jacobowitz <drow@mvista.com>
13052 * objfiles.h: Delete comments refering to inside_entry_func and
13053 DEPRECATED_FRAME_CHAIN_VALID.
13054 * defs.h (inside_entry_func): Update prototype..
13055 * blockframe.c (inside_entry_func): Rename to
13056 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13057 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13059 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13061 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13062 outside of #ifdef SOLIB_ADD region.
13063 (do_restore_lang_radix_cleanup): Ditto.
13064 (resolve_pending_breakpoint): Ditto.
13066 2004-02-03 Andrew Cagney <cagney@redhat.com>
13068 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13069 (process_note_abi_tag_sections): Delete unused function.
13070 (ia64_read_fp): Delete unused function.
13071 (gdbarch_extract_struct_value_address): Delete declaration.
13073 2004-02-02 Andrew Cagney <cagney@redhat.com>
13075 * vax-tdep.c (vax_frame_chain): Delete call to
13076 deprecated_inside_entry_file.
13077 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13079 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13081 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13082 column that's "empty" or "same value" when eliminating REG_RA
13085 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13087 * NEWS: Add information about new pending breakpoint support.
13089 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13091 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13092 and pending fields for pending breakpoint support.
13093 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13094 (condition_command): Only parse condition if not a pending
13096 (print_one_breakpoint): Add support for pending breakpoints.
13097 (describe_other_breakpoints): Add checks to verify we are not
13098 dealing with pending breakpoints.
13099 (check_duplicates): Don't check pending breakpoints.
13100 (set_raw_breakpoint): Initialize pending flag.
13101 (do_restore_lang_radix_cleanup): New cleanup routine.
13102 (resolve_pending_breakpoint): New function.
13103 (re_enable_breakpoints_in_shlibs): Try and resolve any
13104 pending breakpoints via resolve_pending_breakpoint.
13105 (mention): Add pending breakpoint support.
13106 (parse_breakpoint_sals): Add new parameter to pass to
13107 decode_line_1 to indicate silent errors when files or functions
13108 are not found. Change all callers.
13109 (do_captured_parse_breakpoint): New function.
13110 (break_command_1): Change prototype to return an rc value and to
13111 take an optional pending breakpoint pointer. Support creating
13112 a pending breakpoint if a "not found" form of error occurs when
13113 parsing the breakpoint. Also support resolving an existing pending
13114 breakpoint and be silent if the resolution fails.
13115 (create_breakpoints): Change prototype to take pending breakpoint
13116 pointer. When resolving a pending breakpoint, use the new pointer
13117 to provide a conditional or commands added by the end-user.
13118 (delete_breakpoint): Add appropriate check for pending.
13119 (breakpoint_re_set_one): Ditto.
13120 (do_enable_breakpoint): Ditto.
13122 2004-02-02 David Carlton <carlton@kealia.com>
13124 * valops.c (enum oload_classification): New.
13125 (find_overload_match): Break implementation into separate
13126 functions; delete #if 0'd code; look for symbols within
13128 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13129 (find_oload_champ,oload_method_static,classify_oload_match): New.
13130 * cp-support.h: Add declaration for cp_func_name; update
13131 declaration for make_symbol_overload_list.
13132 * cp-support.c (cp_func_name): New.
13133 (overload_list_add_symbol): Fix comment, use
13134 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13135 (make_symbol_overload_list): Take a function name and a namespace
13136 instead of a symbol; change implementation.
13137 (make_symbol_overload_list_using): New.
13138 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13140 2004-02-02 Fred Fish <fnf@redhat.com>
13142 * main.c (gdb_stdtarg): Move definition to group with other
13143 gdb_stdtarg definitions and update copyright years.
13144 * remote-sim.c (gdb_os_write_stderr): Write output to
13145 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13146 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13147 gdb_stderr stream and update copyright years.
13149 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13151 * Makefile.in (mips-linux-nat.o): Update dependencies.
13152 * mips-linux-nat.c: Include mips-tdep.h.
13154 2004-02-01 Roland McGrath <roland@redhat.com>
13156 * sol-thread.c (sol_thread_xfer_partial): New function.
13157 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13158 (init_sol_core_ops): Likewise.
13160 * procfs.c (procfs_xfer_partial): New function.
13161 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13162 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13164 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13165 procfs_xfer_auxv function.
13167 * procfs.c (procfs_make_note_section): If we can read
13168 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13169 * linux-proc.c (linux_make_note_section): Likewise.
13171 * auxv.h: New file.
13172 * auxv.c: New file.
13173 * Makefile.in (auxv_h): New variable.
13174 (COMMON_OBS): Add auxv.o here.
13175 (auxv.o): New target.
13177 * corelow.c (core_xfer_partial): New function.
13178 (init_core_ops): Use it for core_ops.to_xfer_partial.
13180 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13181 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13182 macro if that is defined.
13184 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13186 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13187 and check the specified thread for each breakpoint.
13188 * breakpoint.h (bpstat_stop_status): Update prototype.
13189 * infrun.c (handle_inferior_event): Update calls to
13190 bpstat_stop_status.
13192 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13194 * Makefile.in (cli-cmds.o): Add $(readline_h).
13196 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13198 * cli/cli-cmds.c: Include readline.h.
13199 (complete_command): Pass the start of the last word to
13202 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13204 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13205 argument, and change first argument to a CORE_ADDR.
13206 * breakpoint.h (bpstat_stop_status): Update prototype.
13207 * infrun.c (adjust_pc_after_break): Add a new comment.
13208 (handle_inferior_event): Update calls to bpstat_stop_status.
13210 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13212 * breakpoint.h: Update copyright years.
13214 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13216 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13217 (bpstat_stop_status): Don't decrement PC.
13218 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13220 * infrun.c (adjust_pc_after_break): New function.
13221 (handle_inferior_event): Call it, early. Remove later references
13222 to DECR_PC_AFTER_BREAK.
13223 (normal_stop): Add commentary.
13225 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13227 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13228 2004-01-27 double-free fix.
13230 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13232 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13233 (sparc32_frame_prev_register): Handle StackGhost.
13234 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13236 2004-01-29 Roland McGrath <roland@redhat.com>
13238 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13239 * configure: Regenerated.
13241 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13242 * Makefile.in (procfs.o): Add dep.
13244 2004-01-28 Andrew Cagney <cagney@redhat.com>
13246 * tui/tui-stack.h: Update copyright.
13247 (struct frame_info): Add opaque declaration.
13248 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13249 (tui_show_locator_content): Rename tuiShowLocatorContent.
13250 (tui_show_frame_info): Rename tuiShowFrameInfo.
13251 * tui/tui-stack.c: Update copyright. Update references.
13252 * tui/tui-winsource.c: Update references.
13253 * tui/tui-win.c: Update references.
13254 * tui/tui-layout.c: Update references.
13255 * tui/tui-hooks.c: Update copyright, update references.
13256 * tui/tui.c: Update copyright, update references.
13257 * tui/tui-disasm.c: Update references.
13259 2004-01-28 David Carlton <carlton@kealia.com>
13261 * dwarf2read.c (add_partial_structure): Use demangled name if
13262 namespace equals "".
13264 2004-01-27 Jim Blandy <jimb@redhat.com>
13266 Clean up misapplied patch:
13267 * dwarf2read.c (determine_prefix): Change one of the two forward
13268 declarations for 'determine_prefix_aux' to a declaration for this.
13269 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13270 argument to 'die_specification'.
13272 * dwarf2read.c (read_func_scope): Re-indent comment.
13274 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13276 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13277 b->exp to NULL after freeing so that error during re-parsing or
13278 evaluation of expressions associated with breakpoint don't
13279 eventually lead to re-freeing of storage.
13280 Committed by Andrew Cagney.
13282 2004-01-27 Andrew Cagney <cagney@redhat.com>
13284 * source.c (ambiguous_line_spec): Delete undefined declaration.
13285 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13286 (m32r_set_server_address, m32r_set_download_path): Ditto.
13287 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13289 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13291 * dwarf2read.c: Update calls to changed and renamed functions, and
13292 references to moved variables.
13294 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13295 language, language_defn, list_in_scope, and ftypes members.
13296 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13297 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13298 (baseaddr): Remove globals.
13300 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13301 (set_cu_language, die_is_declaration, die_specification)
13302 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13303 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13304 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13305 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13307 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13308 cu.list_in_scope. Don't initialize cu_header_offset.
13309 (add_partial_symbol): Add local baseaddr.
13310 (psymtab_to_symtab_1): Add local baseaddr. Use
13311 objfile->section_offsets for consistency. Don't initialize
13312 cu_header_offset; do initialize cu.header.offset and
13314 (read_file_scope, read_func_scope, read_lexical_block_scope)
13315 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13317 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13319 * PROBLEMS: Add gdb/1516.
13321 2003-12-29 Robert Millan <robertmh@gnu.org>
13323 Patch committed by Andrw Cagney.
13324 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13325 * configure.tgt: Match knetbsd*-gnu.
13327 2004-01-26 Andrew Cagney <cagney@redhat.com>
13329 * breakpoint.c (catch_command_1): Delete #ifdef code.
13330 (catch_fork_command_1): Delete #ifdef wrapper.
13331 (catch_exec_command_1): Ditto.
13332 (catch_load_command_1): Ditto.
13333 (catch_unload_command_1): Ditto.
13335 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13336 (catch_breakpoint): Delete #if0ed function.
13337 (disable_catch_breakpoint): Ditto.
13338 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13339 (disable_catch, enable_catch, delete_catch): Ditto.
13341 2004-01-26 Andrew Cagney <cagney@redhat.com>
13343 * remote.c (echo_check, quit_flag): Delete variables.
13344 (cisco_kernel_mode): Delete variable.
13345 (minitelnet_return, tty_input, escape_count): Delete variables.
13346 (remote_cisco_mode): Delete variable.
13347 (remote_cisco_open, remote_cisco_close): Delete function.
13348 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13349 (init_remote_cisco_ops): Delete function.
13350 (_initialize_remote): Do not install "remote cisco" code.
13351 (read_frame): Delete cisco specific code.
13352 (remote_info_process): Delete function.
13353 (remote_wait): Delete cisco specific code.
13354 (remote_cisco_section_offsets): Delete function.
13355 (remote_cisco_objfile_relocate): Delete function.
13356 (remote_async_wait): Delete cisco specific code.
13357 (minitelnet, readtty, readsocket): Delete function.
13359 2004-01-26 Andrew Cagney <cagney@redhat.com>
13361 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13362 comments mentioning extract_returned_value_address.
13363 * infcmd.c (print_return_value): Update. Add comments on
13364 extract_returned_value_address.
13365 * stack.c (return_command): Add comments on
13366 extract_returned_value_address.
13367 * values.c: Update comment.
13368 * m32r-tdep.c: Update comment.
13369 * sparc-tdep.c: Update comment.
13370 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13372 * sh64-tdep.c (sh64_gdbarch_init): Update.
13373 * sh-tdep.c (sh_gdbarch_init): Update.
13374 * s390-tdep.c (s390_gdbarch_init): Update.
13375 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13376 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13377 * m68k-tdep.c (m68k_gdbarch_init): Update.
13378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13379 * m32r-tdep.c (m32r_gdbarch_init): Update.
13380 * ia64-tdep.c (ia64_gdbarch_init): Update.
13381 * h8300-tdep.c (h8300_gdbarch_init): Update.
13382 * frv-tdep.c (frv_gdbarch_init): Update.
13383 * arm-tdep.c (arm_gdbarch_init): Update.
13384 * alpha-tdep.c (alpha_gdbarch_init): Update.
13386 2004-01-26 Andrew Cagney <cagney@redhat.com>
13388 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13389 SYMBOL_LOCATION_FUNCS
13390 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13391 "struct symbol_ops".
13392 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13393 type to "struct symbol_ops".
13394 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13395 (struct symbol): Replace ".aux_value.loc.funcs" and
13396 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13397 (SYMBOL_OBJFILE): Delete macro.
13398 (SYMBOL_LOCATION_FUNCS): Delete macro.
13399 (SYMBOL_LOCATION_BATON): Update.
13400 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13401 intead of SYMBOL_LOCATION_FUNCS.
13402 * ax-gdb.c (gen_var_ref): Ditto.
13403 * printcmd.c (address_info): Ditto.
13404 * findvar.c (read_var_value): Ditto.
13405 (symbol_read_needs_frame): Ditto.
13407 2004-01-26 Andrew Cagney <cagney@redhat.com>
13409 * dwarf2read.c (read_func_scope): Document frame-base hack.
13411 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13413 * infcmd.c (print_return_value): Plug memory leak; delete
13414 ui_stream object. Rename argument `structure_return' to
13417 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13419 * infcmd.c (print_return_value): Wrap long lines.
13420 (finish_command_continuation, finish_command): Remove unused
13421 variable `funcaddr'. Fix some coding-standards problems.
13423 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13424 SECT_SIZE is large enough, not whether it's exactly the right size.
13425 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13426 TDEP->fpregset to zero.
13428 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13429 floating-point registers for traditional NetBSD core files.
13430 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13431 TDEP->sizeof_fpregset here.
13433 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13435 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13436 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13437 function with code split out from
13438 sparc32nbsd_sigcontext_frame_cache.
13439 (sparc32nbsd_sigcontext_frame_cache): Use
13440 sparc32nbsd_sigcontext_saved_regs.
13441 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13443 * sparcobsd-tdep.c: New file.
13444 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13445 (sparcobsd-tdep.o): New dependency.
13446 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13447 * config/sparc/obsd.mt: New file.
13449 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13450 TDEP->fpregset to be initialized to enable core file register
13453 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13455 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13456 Add opaque declarations.
13457 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13458 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13459 function with code split out from
13460 sparc64nbsd_sigcontext_frame_cache.
13461 (sparc64nbsd_sigcontext_frame_cache): Use
13462 sparc64nbsd_sigcontext_saved_regs.
13463 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13465 * sparc64obsd-tdep.c: New file.
13466 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13467 (sparc64obsd-tdep.o): New dependency.
13468 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13469 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13470 * config/sparc/obsd64.mt: New file.
13472 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13473 read the instruction at PC.
13475 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13476 value of GDB_OSABI_DEFAULT.
13477 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13478 instead of GDB_OSABI_NETBSD_AOUT.
13480 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13482 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13485 2004-01-23 Andrew Cagney <cagney@redhat.com>
13487 * printcmd.c (display_command): Replace tui_set_display call with
13488 tui_set_layout_for_display_command.
13489 * tui/tui.h (enum tui_win_type): Define.
13490 (tui_set_layout): Delete declaration.
13491 (tui_set_layout_for_display_command): Rename set_tui_layout.
13492 * tui/tui-data.h (enum tui_layout_type): Define.
13493 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13495 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13496 (tui_default_win_height): Rename tuiDefaultWinHeight.
13497 (tui_default_win_viewport_height): Rename
13498 tuiDefaultWinViewportHeight.
13499 (tui_set_layout): RenametuiSetLayout.
13500 * tui/tui-layout.c: Update references.
13501 * tui/tui.c: Update references.
13502 * tui/tui-disasm.c: Update references.
13504 2004-01-23 David Carlton <carlton@kealia.com>
13506 Partial workaround for PR c++/1511:
13507 * cp-namespace.c: Include frame.h.
13508 (cp_lookup_transparent_type): New
13509 (cp_lookup_transparent_type_loop): New.
13510 * cp-support.h: Declare cp_lookup_transparent_type.
13511 * symtab.c (basic_lookup_transparent_type): Renamed from
13512 lookup_transparent_type.
13513 (lookup_transparent_type): Replace old body by a call to
13514 current_language->la_lookup_transparent_type.
13515 * symtab.h: Update copyright. Declare
13516 basic_lookup_transparent_type.
13517 * language.h: Update copyright.
13518 (struct language_defn): Add la_lookup_transparent_type.
13519 * language.c: Update copyright.
13520 (unknown_language_defn): Add basic_lookup_transparent_type.
13521 (auto_language_defn): Add basic_lookup_transparent_type.
13522 (local_language_defn): Add basic_lookup_transparent_type.
13523 * ada-lang.c: Update copyright.
13524 (ada_language_defn): Add basic_lookup_transparent_type.
13525 * c-lang.c: Update copyright.
13526 (c_language_defn): Add basic_lookup_transparent_type.
13527 (cplus_language_defn): Add basic_lookup_transparent_type.
13528 (asm_language_defn): Add basic_lookup_transparent_type.
13529 (minimal_language_defn): Add basic_lookup_transparent_type.
13530 * f-lang.c: Update copyright.
13531 (f_language_defn): Add basic_lookup_transparent_type.
13532 * jv-lang.c: Update copyright.
13533 (java_language_defn): Add basic_lookup_transparent_type.
13534 * m2-lang.c: Update copyright.
13535 (m2_language_defn): Add basic_lookup_transparent_type.
13536 * objc-lang.c: Update copyright.
13537 (objc_language_defn): Add basic_lookup_transparent_type.
13538 * p-lang.c: Update copyright.
13539 (p_language_defn): Add basic_lookup_transparent_type.
13540 * scm-lang.c: Update copyright.
13541 (scm_language_defn): Add basic_lookup_transparent_type.
13542 * Makefile.in (cp-namespace.o): Depend on frame.h.
13544 2004-01-23 David Carlton <carlton@kealia.com>
13546 Patch for PR c++/1520:
13547 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13548 properly if we have a specification die.
13549 (determine_prefix_aux): Rename from determine_prefix.
13550 (determine_prefix): Like the old determine_prefix, but never
13553 2004-01-23 Theodore A. Roth <troth@openavr.org>
13555 * avr-tdep.c: Update copyright.
13556 (avr_iaddr_p): Delete unused function.
13557 (avr_saddr_p): Delete unused function.
13559 2004-01-23 David Carlton <carlton@kealia.com>
13561 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13562 Fix for PR symtab/1534.
13564 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13566 * NEWS (New native configurations): Mention OpenBSD/sparc and
13568 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13569 * configure.host: Likewise.
13570 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13571 handler for OpenBSD.
13572 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13574 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13576 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13577 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13579 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13580 * cli/cli-cmds.c (shell_escape): Likewise.
13582 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13583 OpenBSD .note.openbsd.ident sections.
13585 2004-01-22 David Carlton <carlton@kealia.com>
13587 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13588 get_scope_pc_bounds.
13589 (read_file_scope): Ditto.
13590 (get_scope_pc_bounds): New function, produced by extracting code
13591 from the above two functions, consolidating it, and adding support
13592 for DW_TAG_namespace.
13594 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13596 * osabi.c (MAX_NOTESZ): New define.
13597 (check_note): New function.
13598 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13601 2004-01-21 Roland McGrath <roland@redhat.com>
13603 * MAINTAINERS (write after approval): Add myself.
13605 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13607 * utils.c (init_page_info): Move declarations of `rows' and
13608 `cols' before the __GO32__-specific code. Move the closing brace
13609 outside the #ifdef __GO32__..#endif block.
13610 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13612 2004-01-21 Paul Brook <paul@codesourcery.com>
13614 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13615 BPSTAT_WHAT_CHECK_SHLIBS.
13617 2004-01-21 Paul Brook <paul@codesourcery.com>
13619 * MAINTAINERS: Add myself to write-after-approval.
13621 2004-01-20 Andrew Cagney <cagney@redhat.com>
13623 * ax-gdb.c (print_axs_value): Delete unused function.
13624 * jv-lang.c (java_lookup_type): Delete unused function.
13625 * cli/cli-dump.c (dump_filetype): Delete unused function.
13626 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13627 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13628 (mips_getstring): Delete unused function.
13629 (pmon_insert_breakpoint): Delete #if0ed function.
13630 (PMON_MAX_BP): Delete #if0ed MACRO.
13631 (mips_pmon_bp_info): Delete #if0ed variable.
13632 (pmon_remove_breakpoint): Delete #if0ed function.
13633 * monitor.c (monitor_write_even_block): Delete unused function.
13634 (monitor_write_memory_block): Delete #if0ed code.
13635 * dink32-rom.c (dink32_load): Delete unused function.
13636 (_initialize_dink32_rom): Delete #if0ed code.
13637 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13639 * tui/tui-command.c: Update references.
13640 * tui/tui-io.c: Update references.
13641 * tui/tui-command.h: Update copyright.
13642 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13644 * source.c (ambiguous_line_spec): Delete never-defined function.
13645 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13646 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13647 * cli/cli-cmds.c (validate_comname): Ditto.
13649 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13651 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13652 (tui_show_disassem): Rename tuiShowDisassem.
13653 (tui_show_disassem_and_update_source): Rename
13654 tuiVerticalDisassemScroll.
13655 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13656 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13657 * tui/tui.h: Update copyright.
13658 (enum tui_status): Define.
13659 * tui/tui-data.h (enum tui_scroll_direction): Define.
13660 * tui/tui-disasm.c: Update copyright. Update references.
13661 * tui/tui-winsource.c: Update copyright. Update references.
13662 * tui/tui-win.c: Update references.
13663 * tui/tui-layout.c: Update references.
13665 2004-01-20 Andrew Cagney <cagney@redhat.com>
13667 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13668 sym2 to start of block.
13670 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13672 * MAINTAINERS: Delete mmalloc.
13673 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13674 * NEWS: Mention removal of --with-malloc.
13675 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13676 * config.in: Regenerate.
13677 * configure: Regenerate.
13678 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13679 USE_MMALLOC, MMCHECK_FORCE.
13680 * gdbinit.in: Remove mmalloc.
13681 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13682 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13683 * config/i386/go32.mh: Likewise.
13684 * config/i386/interix.mh: Likewise.
13685 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13687 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13689 * linespec.c (decode_variable, symtab_from_filename): Call
13690 error_silent with error message instead of throwing an exception
13692 * defs.h (error_silent, error_output_message): Add prototypes.
13693 (catch_exceptions_with_msg): Ditto.
13694 * utils.c (error_silent, error_output_message): New functions.
13695 * top.c (catch_exceptions_with_msg): New function.
13697 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13699 * mi/mi-cmds.h (enum print_values): Add definition.
13701 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13702 type and value for simple data types and just the name and type
13703 for complex ones, if required.
13705 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13706 children, if required.
13708 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13710 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13711 unused declarations.
13713 2004-01-19 Andrew Cagney <cagney@redhat.com>
13715 * top.h (mapped_symbol_files): Delete declaration.
13716 * main.c (captured_main): Delete option "m" and "mapped".
13717 * objfiles.c (mapped_symbol_files): Delete variable.
13718 * symfile.c (symbol_file_command): Delete mmap code.
13719 (symbol_file_add_with_addrs_or_offsets): Ditto.
13720 (add_symbol_file_command, reread_separate_symbols): Ditto.
13721 * objfiles.h (OBJF_MAPPED): Delete.
13722 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13723 (free_objfile) [USE_MMALLOC]: Ditto.
13724 (open_existing_mapped_file): Delete function.
13725 (open_mapped_file): Delete function.
13726 (map_to_file): Delete function.
13728 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13730 * infrun.c (step_into_function): Account for possible breakpoint
13731 adjustment when computing ``stop_func_start''.
13733 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13735 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13736 the region size against the size of a pointer, not the size of
13737 a register as given by DEPRECATED_REGISTER_SIZE.
13739 2004-01-19 Andrew Cagney <cagney@redhat.com>
13741 * tui/tui-regs.h: Include "tui-data.h".
13742 (tuiFirstRegElementNoInLine): Delete declaration.
13743 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13744 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13745 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13746 (tui_calculate_regs_column_count): Rename
13747 tuiCalculateRegsColumnCount.
13748 (tui_check_register_values): Rename tuiCheckRegisterValues.
13749 (tui_show_registers): Rename tuiShowRegisters.
13750 (tui_display_registers_from_line): Rename
13751 tuiDisplayRegistersFromLine.
13752 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13753 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13754 (tui_first_reg_element_no_inline): Rename
13755 tuiFirstRegElementNoInLine.
13756 * tui/tui-data.h: Update copyright.
13757 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13758 * tui/tui-windata.c: Update copyright, update references.
13759 * tui/tui-regs.c: Update copyright, update references.
13760 * tui/tui-win.c: Update copyright, update references.
13761 * tui/tui-layout.c: Update copyright, update references.
13763 2004-01-18 Andrew Cagney <cagney@redhat.com>
13765 * tui/tui-io.c: Update copyright.
13766 (key_is_end_sequence, key_is_backspace): New functions.
13767 (key_is_command_char, key_is_start_sequence): New function.
13768 (tui_getc): Update references.
13769 * tui/tui-io.h: Update copyright.
13770 (m_tuiStartNewLine): Delete macro.
13771 (m_isBackspace, m_isDeleteChar): Delete macros.
13772 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13773 (m_isNextPage, m_isPrevPage): Delete macros.
13774 (m_isLeftArrow, m_isRightArrow): Delete macros.
13775 (m_isXdbStyleCommandChar): Delete macro.
13776 (key_is_start_sequence): Declare, replace m_isStartSequence.
13777 (key_is_end_sequence): Declare, replace m_isEndSequence.
13778 (key_is_backspace): Declare ,replace m_isBackspace.
13779 (key_is_command_char): Declare, replace m_isCommandChar.
13780 * tui/tui-command.c: Update copyright.
13781 (tuiDispatchCtrlChar): Update references.
13783 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13786 * tui/tui-command.c: Rename tui/tuiCommand.c.
13787 * tui/tui-command.h: Rename tui/tuiCommand.h.
13788 * tui/tui-data.c: Rename tui/tuiData.c.
13789 * tui/tui-data.h: Rename tui/tuiData.h.
13790 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13791 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13792 * tui/tui-io.c: Rename tui/tuiIO.c.
13793 * tui/tui-io.h: Rename tui/tuiIO.h.
13794 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13795 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13796 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13797 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13798 * tui/tui-source.c: Rename tui/tuiSource.c.
13799 * tui/tui-source.h: Rename tui/tuiSource.h.
13800 * tui/tui-stack.c: Rename tui/tuiStack.c.
13801 * tui/tui-stack.h: Rename tui/tuiStack.h.
13802 * tui/tui-win.c: Rename tui/tuiWin.c.
13803 * tui/tui-win.h: Rename tui/tuiWin.h.
13804 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13805 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13806 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13807 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13808 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13809 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13810 * tui/tui-file.c: Update includes.
13811 * tui/tui-hooks.c: Update includes.
13812 * tui/tui-interp.c: Update includes.
13813 * tui/tui.c: Update includes.
13814 * Makefile.in: Update all tui/ dependencies.
13815 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13817 * Makefile.in: Update copyright. Update dependencies.
13819 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13822 2004-01-18 Andrew Cagney <cagney@redhat.com>
13824 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13825 instead of register_gdbarch_init.
13827 * remote-sds.c (tohex): Delete unused function. Update copyright.
13828 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13829 * v850-tdep.c (v850_register_virtual_size): Ditto.
13830 * target.c (normal_target_post_startup_inferior): Ditto.
13831 * source.c (ambiguous_line_spec): Ditto.
13832 * remote.c (adapt_remote_get_threadinfo): Ditto.
13833 * mi/mi-out.c (out_field_fmt): Ditto.
13834 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13835 (output_control_change_notification): Ditto.
13836 * m68k-tdep.c (m68k_register_byte): Ditto.
13837 (m68k_remote_breakpoint_from_pc): Ditto.
13838 * ui-out.c (init_ui_out_state): Delete unused declaration.
13839 * stabsread.c (search_value): Ditto.
13840 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13841 * maint.c (print_section_table): Ditto.
13842 * infrun.c (set_follow_fork_mode_command): Ditto.
13844 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13846 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13847 DW_CFA_def_cfa_exporession. Add support for
13848 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13849 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13851 2004-01-18 Andrew Cagney <cagney@redhat.com>
13853 * ocd.c: Update copyright.
13854 (bdm_read_register_command): Delete unused function.
13855 (_initialize_remote_ocd): Delete commented out reference.
13856 (get_quoted_char, reset_packet): Delete #if0ed function.
13857 (output_packet, put_quoted_char): Delete #if0ed function.
13858 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13859 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13860 (BDM_BREAKPOINT): Delete #if0ed macro.
13861 (remote_timeout): Delete #if0ed variable.
13863 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13865 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13866 (core-sol2.o): Remove dependency.
13867 * core-sol2.c: Remove file.
13869 2004-01-17 Andrew Cagney <cagney@redhat.com>
13871 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13872 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13875 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13877 * remote.c: Update copyright years.
13879 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13881 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13883 2004-01-17 Andrew Cagney <cagney@redhat.com>
13885 * mdebugread.c: Update copyright.
13886 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13887 (parse_type, parse_procedure): Ditto.
13888 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13890 * cris-tdep.c (cris_store_struct_return): Put back accidently
13893 * gdbarch.sh: Update copyright year.
13894 * gdbarch.h, gdbarch.c: Re-generate.
13896 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13898 Suggested by George Anzinger.
13899 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13900 correct stack offset. Include unknown opcode numbers in the error
13903 2004-01-17 Andrew Cagney <cagney@redhat.com>
13905 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13906 extract_struct_value_address, i386 does not set it.
13907 * sparc64-tdep.c (sparc64_init_abi): Do not set
13908 extract_struct_value_address, never called.
13909 (sparc64_extract_struct_value_address): Delete function.
13910 * m68hc11-tdep.c: Update copyright.
13911 (m68hc11_gdbarch_init): Delete redundant assignment of
13912 extract_struct_value_address.
13913 * i386-tdep.c: Update copyright.
13914 (i386_gdbarch_init): Do not set extract_struct_value_address,
13916 (i386_extract_struct_value_address): Delete function.
13917 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13918 extract_struct_value_address, never called.
13919 (sparc32_extract_struct_value_address): #if 0 function. Add
13920 comments explaining its future.
13922 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13924 * arm-tdep.c (arm_write_pc): New function.
13925 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13927 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13929 * breakpoint.c (must_shift_inst_regs): Delete.
13930 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13931 and SHIFT_INST_REGS.
13932 * infcmd.c (step_1, step_1_continuation): Delete references to
13934 * infrun.c (keep_going): Likewise.
13935 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13936 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13938 2004-01-17 Andrew Cagney <cagney@redhat.com>
13940 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13941 * gdbarch.h, gdbarch.c: Re-generate.
13942 * infcmd.c (print_return_value): Delete reference to
13943 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13945 * cris-tdep.c (cris_gdbarch_init): Do not set
13946 deprecated_extract_struct_value_address.
13948 * xstormy16-tdep.c: Update copyright.
13949 (xstormy16_extract_struct_value_address): Update to current
13950 extract struct value address interface.
13951 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13952 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13953 current extract struct value address interface.
13954 (sh64_gdbarch_init): Set extract_struct_value_address.
13956 * cris-tdep.c: Update copyright.
13957 (cris_extract_struct_value_address): Delete function.
13958 (struct_return_address): Delete variable.
13959 (cris_store_struct_return): Do not set struct_return_address.
13961 * mcore-tdep.c: Update copyright.
13962 (mcore_extract_struct_value_address): Delete function. Update
13964 (mcore_gdbarch_init): Update.
13965 * mn10300-tdep.c: Update copyright.
13966 (mn10300_extract_struct_value_address): Delete function.
13967 (mn10300_gdbarch_init): Update.
13968 * v850-tdep.c: Update copyright.
13969 (v850_extract_struct_value_address): Delete.
13970 (v850_gdbarch_init): Update.
13971 * ns32k-tdep.c: Update copyright.
13972 (ns32k_extract_struct_value_address): Delete.
13973 (ns32k_gdbarch_init): Update.
13974 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13975 (hppa_gdbarch_init): Update.
13976 * vax-tdep.c: Update copyright.
13977 (vax_extract_struct_value_address): Delete.
13978 (vax_gdbarch_init): Update.
13980 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13981 * gdbarch.h, gdbarch.c: Re-generate.
13982 * procfs.c (procfs_fetch_registers): Delete reference to
13983 DEPRECATED_NPC_REGNUM.
13984 (procfs_store_registers): Ditto.
13985 * regcache.c (generic_target_write_pc): Simplify.
13986 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13988 * core-sol2.c (fetch_core_registers): Replace
13989 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13991 * hppa-tdep.c: Update copyright year.
13992 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13994 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13996 * mips-tdep.c (mips_write_pc): New function.
13997 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13998 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13999 (mips_find_saved_regs, mips_software_single_step: Ditto.
14000 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14001 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14003 2004-01-17 Andrew Cagney <cagney@redhat.com>
14005 * mips-tdep.c: Re-indent. Group functions by ABI.
14007 2004-01-17 Andrew Cagney <cagney@redhat.com>
14009 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14010 * gdbarch.c: Re-generate.
14011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14012 DECR_PC_AFTER_BREAK to zero.
14013 * vax-tdep.c (vax_gdbarch_init): Ditto.
14014 * v850-tdep.c (v850_gdbarch_init): Ditto.
14015 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14016 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14017 * sh-tdep.c (sh_gdbarch_init): Ditto.
14018 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14019 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14020 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14021 * mips-tdep.c (mips_gdbarch_init): Ditto.
14022 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14024 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14025 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14026 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14027 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14028 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14029 * frv-tdep.c (frv_gdbarch_init): Ditto.
14030 * cris-tdep.c (cris_gdbarch_init): Ditto.
14031 * avr-tdep.c (avr_gdbarch_init): Ditto.
14032 * arm-tdep.c (arm_gdbarch_init): Ditto.
14033 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14035 2004-01-17 J. Brobecker <brobecker@gnat.com>
14037 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14038 Delete, no longer used.
14039 (read_subrange_type): New function, mostly extracted from
14041 (read_array_type): Replace extracted code by call to
14042 read_subrange_type().
14043 (dwarf2_get_attr_constant_value): New function.
14044 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14045 (add_partial_symbol): Likewise.
14046 (process_die): Likewise.
14047 (new_symbol): Likewise.
14048 (read_type_die): Likewise.
14050 2004-01-16 Andrew Cagney <cagney@redhat.com>
14052 * symfile.c: Update copyright year.
14053 (compare_symbols): Delete unused function.
14054 * stabsread.c: Update copyright year.
14055 (lrs_general_complaint): Delete unused function.
14056 (ref_search_value): Ditto.
14057 (get_substring): Delete declaration.
14058 * sh64-tdep.c: Update copyright year.
14059 (sh64_get_gdb_regnum): Delete unused function.
14060 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14061 Delete unused function.
14063 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14065 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14066 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14068 2004-01-16 Andrew Cagney <cagney@redhat.com>
14070 Changes from Peter Schauer.
14071 * rs6000-tdep.c: Update copyright year.
14072 (rs6000_push_dummy_call): Update the stack pointer before
14073 accessing the corresponding stack region.
14074 * rs6000-nat.c: Update copyright year.
14075 (set_host_arch): Set "info.abfd" to "exec_bfd".
14077 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14079 * blockframe.c: Update copyright year.
14080 (inside_entry_func): Don't treat a zero PC specially.
14082 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14084 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14086 (gcore_create_callback): Ditto. Skip any memory segment that has
14087 no permissions set.
14089 2004-01-14 David Carlton <carlton@kealia.com>
14091 Change symbols for C++ nested types to contain the fully qualified
14092 name, if possible. (At least in the DWARF-2 case.) Partial fix
14093 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14095 * c-exp.y (qualified_type): Handle types nested within classes.
14096 * cp-namespace.c: Update comments.
14097 (cp_set_block_scope): Delete #if 0.
14098 (cp_lookup_nested_type): Handle types nested within classes.
14099 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14101 (add_partial_symbol): Add the name of the enclosing namespace to
14103 (pdi_needs_namespace): New.
14104 (add_partial_namespace): Tweak comment.
14105 (add_partial_structure): New.
14106 (psymtab_to_symtab_1): Initialize processing_current_prefix
14108 (process_die): instead of here.
14109 (read_structure_scope): Try to figure out the name of the class or
14110 namespace that the structure might be defined within.
14111 (read_enumeration): Generate fully-qualified names, if possible.
14112 (read_namespace): Don't set name to NULL.
14113 (die_specification): New.
14114 (new_symbol): Generate fully-qualified names for types.
14115 (read_type_die): Determine appropriate prefix.
14116 (determine_prefix): New.
14117 (typename_concat): New.
14119 * valops.c (value_aggregate_elt): Pass NOSIDE to
14120 value_struct_elt_for_reference.
14121 (value_struct_elt_for_reference): Make static, add NOSIDE
14122 parameter, call value_maybe_namespace_elt as a last resort.
14123 (value_namespace_elt): Break out code into
14124 value_maybe_namespace_elt.
14125 (value_maybe_namespace_elt): New.
14127 2004-01-12 Andrew Cagney <cagney@redhat.com>
14129 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14130 cooked floating-point registers.
14131 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14132 and value_to_register.
14134 2004-01-13 Andrew Cagney <cagney@redhat.com>
14136 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14137 * gdbarch.c: Re-generate.
14138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14139 FUNCTION_START_OFFSET.
14140 * v850-tdep.c (v850_gdbarch_init): Ditto.
14141 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14142 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14143 * sh-tdep.c (sh_gdbarch_init): Ditto.
14144 * s390-tdep.c (s390_gdbarch_init): Ditto.
14145 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14146 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14148 * mips-tdep.c (mips_gdbarch_init): Ditto.
14149 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14150 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14152 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14153 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14154 * i386-tdep.c (i386_gdbarch_init): Ditto.
14155 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14156 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14157 * frv-tdep.c (frv_gdbarch_init): Ditto.
14158 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14159 * cris-tdep.c (cris_gdbarch_init): Ditto.
14160 * avr-tdep.c (avr_gdbarch_init): Ditto.
14161 * arm-tdep.c (arm_gdbarch_init): Ditto.
14162 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14164 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14166 * infrun.c (follow_fork_mode_ask): Remove.
14167 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14168 (follow_fork): Simplify and remove internal error for
14169 follow_fork_mode_ask.
14170 (_initialize_infrun): Update "set follow-fork-mode" help text.
14172 2004-01-13 Andrew Cagney <cagney@redhat.com>
14174 * configure.in: Update copyright year.
14175 (build_warnings): Add -Wunused-label.
14176 * configure: Re-generate.
14178 2004-01-12 Andrew Cagney <cagney@redhat.com>
14180 * exec.h (exec_ops): Make "extern".
14182 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14183 the function is void.
14184 (mips_pseudo_register_write): Ditto.
14186 2004-01-12 Andrew Cagney <cagney@redhat.com>
14188 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14189 call. Never defined.
14190 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14191 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14192 (struct sparc_gregset, struct regcache): Ditto.
14193 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14195 2004-01-12 Andrew Cagney <cagney@redhat.com>
14197 * mi/ChangeLog: Delete file. Renamed to ...
14198 * mi/ChangeLog-1999-2003: New file.
14199 * tui/ChangeLog: Delete file. Renamed to ...
14200 * tui/ChangeLog-1998-2003: New file.
14202 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14204 * sparc64nbsd-tdep.c: Include "regset.h".
14205 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14207 (fetch_core_registers): Remove function.
14208 (sparc64nbsd_core_fns): Remove variable.
14209 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14211 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14212 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14213 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14215 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14216 sparc_extract_struct_value_address.
14217 (sparc32_gdbarch_init): Set extract_struct_value_address.
14218 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14220 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14221 return_value_on_stack.
14223 * NEWS: Mention that %cs and %ss have been added to the AMD64
14226 * frame.c: Update copyright year.
14227 (get_prev_frame): Improve comment.
14229 * sparc64fbsd-tdep.c: Include "regset.h".
14230 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14232 (fetch_core_registers): Remove function.
14233 (sparc64fbsd_core_fns): Remove variable.
14234 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14236 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14237 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14238 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14240 * sparcnbsd-tdep.c: Include "regset.h".
14241 (fetch_core_registers): Remove function.
14242 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14243 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14245 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14247 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14249 * sparc-tdep.h (struct regset): Provide opaque declaration.
14250 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14251 fpregset and sizeof_fpregset members.
14252 * sparc-tdep.c (struct regset): Provide opaque declaration.
14253 (sparc_regset_from_core_section): New function.
14254 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14255 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14256 Set regset_from_core_section when appropriate.
14258 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14260 * x86-64-tdep.c (amd64_non_pod_p): New function.
14261 (amd64_classify_aggregate): Return class memory for non-POD
14262 C++ structure types.
14264 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14265 argument. Use it to reserve a register if necessary.
14266 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14267 amd64_push_arguments.
14269 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14271 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14272 register numbers in comments.
14273 * x86-64-tdep.h: Update copyright year.
14274 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14275 Adjust for addition of %cs and %ss.
14276 * amd64fbsd-nat.c: Update copyright year.
14277 (reg_offset): Add register offsets for %cs and %ss.
14278 * amd64fbsd-tdep.c: Update copyright year.
14279 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14280 (amd64fbsd_sc_reg_offset): Likewise.
14281 * x86-64-linux-nat.c: Update copyright year.
14282 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14284 * amd64nbsd-nat.c: Update copyright year.
14285 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14286 * amd64nbsd-tdep.c: Update copyright year.
14287 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14288 * x86-64-linux-tdep.c: Update copyright year.
14289 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14290 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14291 * regformats/reg-x86-64.dat: Add %cs and %ss.
14293 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14294 variables to prevent long lines. Update comments to reflect
14297 2004-01-09 David Carlton <carlton@kealia.com>
14299 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14300 * dwarf2read.c (read_namespace): Pull out name-generating code
14301 into namespace_name. Rename previous_namespace to previous_prefix
14302 and processing_current_namespace to processing_current_prefix..
14303 (namespace_name): New function.
14304 (add_partial_symbol): Substitute uses of pdi->name with
14306 * cp-support.h: Rename processing_current_namespace to
14307 processing_current_prefix.
14308 Update copyright year.
14309 * cp-namespace.c: Rename processing_current_namespace to
14310 processing_current_prefix.
14311 Update copyright year.
14313 2004-01-09 Andrew Cagney <cagney@redhat.com>
14315 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14317 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14319 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14321 (process_one_symbol): Deal with N_PATCH stabs.
14323 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14325 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14327 Update copyright year.
14329 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14331 * config/pa/tm-hppa.h: Update extern declarations for
14332 hppa32_hpux_frame_saved_pc_in_sigtramp,
14333 hppa32_hpux_frame_base_before_sigtramp, and
14334 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14336 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14338 * config/pa/tm-hppah.h: Update copyright years.
14340 2004-01-08 Andrew Cagney <cagney@redhat.com>
14342 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14343 (mips_o32_reg_struct_has_addr): Delete function.
14344 (mips_gdbarch_init): Update.
14345 (mips_extract_struct_value_address): Delete function.
14347 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14349 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14352 2004-01-07 Andrew Cagney <cagney@redhat.com>
14354 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14355 architecture's elf flags (when available).
14357 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14358 FPU to the start, check the MIPS FPU when looking for an old
14360 (set_mipsfpu_single_command): Update the architecture.
14361 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14363 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14364 (mips_mask_address_p): Add "tdep" parameter.
14365 (show_mask_address, mips_addr_bits_remove): Update.
14366 (mips_dump_tdep): Update.
14367 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14368 (MIPS_STACK_ARGSIZE): Delete macro.
14369 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14370 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14371 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14372 (mips_dump_tdep): Update.
14373 (MIPS_SAVED_REGSIZE): Delete macro.
14374 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14375 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14376 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14377 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14378 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14379 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14380 (mips_pop_frame, return_value_location): Update.
14381 (mips_n32n64_return_value, mips_dump_tdep): Update.
14383 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14386 * mips-tdep.c: Update copyright.
14387 (mips_gdbarch_init): Merge two code blocks handling the register
14388 name and number layout.
14390 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14392 * tracepoint.c (validate_actionline): Fix segv at EOF
14394 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14396 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14397 properly for static fields.
14399 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14400 Jason Molenda <jmolenda@apple.com>
14402 * disasm.c: Update copyright to include 2004.
14403 (do_mixed_source_and_assembly): For uiout asm list
14404 and tuple cleanups, initialize to null_cleanup instead of
14405 NULL and do so prior to loop. Only reset when we close off
14406 the tuple/list. Move check for whether to close off the
14407 asm tuple/list to after dump_insns call where it will be run
14408 on each loop iteration.
14410 2004-01-05 Andrew Cagney <cagney@redhat.com>
14412 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14413 should be a switch case and not a label.
14414 * mips-tdep.c (mips32_next_pc): Delete unused labels
14415 "greater_equal_branch" and "less_zero_branch".
14416 * jv-valprint.c (java_print_value_fields): Delete unused label
14419 * target.c (unpush_target): Only close a target that is in the
14422 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14424 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14425 address from [sp + 64] instead of %o2.
14427 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14428 fixes PR backtrace/1476.
14430 2004-01-05 Andrew Cagney <cagney@redhat.com>
14432 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14433 move to start of file.
14434 * i386-tdep.h (struct regcache): Add opaque declaration.
14435 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14437 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14438 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14439 * win32-nat.c (fake_create_process): Use ISO C style definition.
14440 * stabsread.c (define_symbol): Delete #ifndef
14441 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14442 stabs_argument_has_addr call, macro never defined.
14444 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14446 * op50-rom.c: Delete.
14447 * w89k-rom.c: Delete.
14448 * Makefile.in: Remove references.
14450 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14452 * x86-64-tdep.c: Update copyright year.
14453 (struct amd64_register_info): Rename from x86_64_register_info.
14454 (amd64_register_info): Rename from x86_64_register_info.
14455 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14456 (amd64_register_name): Rename from x86_64_register_name.
14457 (amd64_register_type): Rename from x86_64_register_type.
14458 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14459 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14460 (amd64_dwarf_reg_to_regnum): Rename from
14461 x86_64_dwarf_reg_to_regnum.
14462 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14463 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14464 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14465 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14466 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14467 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14468 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14469 (amd64_frame_cache): Rename from x86_64_frame_cache.
14470 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14471 (amd64_frame_prev_register): Rename from
14472 x86_64_frame_prev_register.
14473 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14474 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14475 (amd64_sigtramp_frame_cache): Rename from
14476 x86_64_sigtramp_frame_cache.
14477 (amd64_sigtramp_frame_prev_register): Rename from
14478 x86_64_sigtramp_frame_prev_register.
14479 (amd64_sigtramp_frame_unwind): Rename from
14480 x86_64_sigtramp_frame_unwind.
14481 (amd64_sigtramp_frame_sniffer): Rename from
14482 x86_64_sigtramp_frame_sniffer.
14483 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14484 (amd64_frame_base): Rename from x86_64_frame_base.
14485 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14486 (amd64_frame_align): Rename from x86_64_frame_align.
14487 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14488 (amd64_regset_from_core_section): Rename from
14489 x86_64_regset_from_core_section.
14490 (x86_64_init_abi): Update comments.
14492 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14494 * MAINTAINERS (write after approval): Add myself.
14496 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14498 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14501 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14503 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14504 such that it mentions a specific version of GCC that exhibits this
14507 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14509 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14510 structure that has a single `float' member, store it in %f1 in
14513 * sparc-sol2-nat.c: Add missing '\'.
14515 * sparc-tdep.c (sparc32_return_value): New function.
14516 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14518 (sparc32_gdbarch_init): Set return_value, don't set
14519 extract_return_value, store_return_value, use_struct_convention
14520 and return_value_on_stack.
14522 * sparc-sol2-nat.c: Add missing ')'.
14524 2004-01-03 J. Brobecker <brobecker@gnat.com>
14526 * infrun.c (handle_step_into_function): New function.
14527 (handle_inferior_event): Extract out some code into the new
14530 2004-01-03 J. Brobecker <brobecker@gnat.com>
14532 * infrun.c (handle_inferior_event): Move the declaration of
14533 real_stop_pc inside the if blocks where it is used.
14535 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14537 * sparc64-tdep.c (sparc64_16_byte_align_p)
14538 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14539 Use check_typedef to get subtypes of structures and unions.
14540 (sparc64_store_return_value): Fix calculation of the appropriate
14541 offset into VALBUF when storing a structure or union.
14542 (sparc64_return_value): New function.
14543 (sparc64_use_struct_convention): Remove function.
14544 (sparc64_init_abi): Set return_value, don't set
14545 extract_return_value, store_return_value and
14546 use_struct_convention.
14548 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14550 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14551 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14552 gdb/config/alpha/xm-alphaosf.h,
14553 gdb/config/powerpc/tm-ppcle-eabi.h,
14554 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14555 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14556 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14557 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14558 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14559 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14560 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14561 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14562 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14563 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14564 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14565 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14566 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14567 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14568 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14569 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14570 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14571 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14572 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14573 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14574 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14575 Remove lines for .cvsignore files.
14577 2004-01-03 J. Brobecker <brobecker@gnat.com>
14579 * infrun.c: Back out the previous change.
14581 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14583 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14584 sparc-*-sunos4* to the list of REMOVED configurations.
14586 * configure.tgt: Add back sparc-*-vxworks*.
14587 * remote-vxsparc.c: Remove all includes except for "defs.h",
14588 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14589 Include "sparc-tdep.h".
14590 (SPARC_R_G1): New define.
14591 (vxsparc_gregset): New variable.
14592 (ext_format_sparc): Remove extern declaration.
14593 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14594 sparc32_supply_fpregset.
14595 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14596 sparc_collect_rwindow and sparc32_collect_fpregset.
14597 * config/sparc/tm-vxworks.h: New file, based on recently removed
14599 * config/sparc/vxworks.mt: New file, based on recently removed
14602 2004-01-03 J. Brobecker <brobecker@gnat.com>
14604 * infrun.c (handle_step_into_function): New function.
14605 (handle_inferior_event): Extract out some code into the new
14608 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14610 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14611 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14612 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14613 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14614 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14615 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14616 (sparc_nat_h): New variable.
14617 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14618 (tm-sun4os4.h): Remove dependency.
14619 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14620 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14621 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14622 sparc-tdep.o): Update dependencies.
14623 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14624 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14625 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14627 * configure.host: Remove existing sparc-*-lynxos*,
14628 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14629 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14630 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14631 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14633 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14634 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14635 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14636 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14637 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14638 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14639 sparc64-*-solaris2* and sparc64-*-* triplets.
14640 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14641 "symtab.h" and "objfiles.h".
14642 (BIAS): Remove define.
14643 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14644 (X_DISP19): Remove macros.
14645 (sparc_fetch_instruction): Remove function.
14646 (struct gdbarch_tdep): Remove definition.
14647 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14648 (sparc_breakpoint_from_pc): Remove function.
14649 (struct sparc64_frame_cache): Remove definition.
14650 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14651 sparc64_unwind_pc): Remove functions.
14652 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14653 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14654 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14655 (sparc64_frame_cache): Change return type to `struct
14656 sparc_frame_cache *'. Simply call sparc_frame_cache.
14657 (sparc64_frame_this_id, sparc64_frame_prev_register,
14658 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14659 instead of `struct sparc64_frame_cache.
14660 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14661 sparc_analyze_control_transfer, sparc_software_single_step,
14662 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14663 _initialize_sparc64_tdep): Remove functions.
14664 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14665 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14667 (sparc64_supply_gregset, sparc64_collect_gregset,
14668 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14669 (sparc64_init_abi): New function.
14670 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14671 inclusion guard. Include "sparc-tdep.h".
14673 (r_tstate_offset, r_fprs_offset): New defines.
14674 (enum sparc_regnum): Remove defenition.
14675 (enum sparc64_regnum): Reformat.
14676 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14677 (sparc64_init_abi, sparc64_supply_gregset,
14678 sparc64_collect_gregset, sparc64_supply_fpregset,
14679 sparc64_collect_fpregset): New prototypes.
14680 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14681 Add extern declarations.
14682 (sparc64_sol2_init_abi): New prototype.
14683 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14684 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14686 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14688 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14690 (_initialize_sparc64fbsd_nat): Remove initialization of
14691 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14692 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14693 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14694 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14695 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14696 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14697 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14698 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14699 (sparc64fbsd_r_y_offset): Remove variables.
14700 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14701 Make static and const.
14702 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14703 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14705 (sparc64fbsd_gregset): New variable.
14706 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14707 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14708 and sparc64_supply_fpregset.
14709 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14710 (sparc64fbsd_sigtramp_frame_this_id)
14711 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14712 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14713 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14714 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14715 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14716 * sparcnbsd-tdep.c: Update copyright year. Include
14717 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14718 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14719 "value.h" and "sparcnbsd-tdep.h".
14720 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14721 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14722 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14723 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14725 (sparcnbsd_gregset): New variable.
14726 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14727 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14728 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14729 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14730 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14732 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14733 (sparc32nbsd_sigcontext_frame_this_id)
14734 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14735 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14736 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14737 (sparcnbsd_get_longjmp_target_32,
14738 sparcnbsd_get_longjmp_target_64): Remove functions.
14739 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14740 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14741 sparcnbsd_init_elf): Remove.
14742 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14743 (sparcnbsd_elf_init_abi): New functions.
14744 (_initialize_sparcnbsd_tdep): New prototype.
14745 (_initialize_sparnbsd_tdep): Update.
14746 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14747 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14748 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14749 * config/sparc/linux.mh: Update comment.
14750 (XM_FILE, HOST_IPC): Remove variables.
14751 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14753 * config/sparc/linux.mt: Update comment.
14754 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14755 * config/sparc/nbsd.mt: Reformat.
14756 * config/sparc/nbsd64.mh: Update comment.
14757 (NATDEPFILES): Add sparc-nat.o.
14758 * config/sparc/nbsd64.mt: Update comment.
14759 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14760 (TM_FILE): Set to tm-nbsd.h.
14761 * config/sparc/nbsdelf.mh: Update comment.
14762 (NATDEPFILES): Add sparc-nat.o.
14764 * config/sparc/nbsdaout.mh: Update comment.
14765 (NATDEPFILES): Add sparc-nat.o
14767 * config/sparc/nm-linux.h: Update copyright year. Don't include
14768 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14770 (KERNEL_U_SIZE): Remove define.
14771 (kernel_u_size): Remove prototype.
14772 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14773 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14775 (CHILD_PREPARE_TO_STORE): Remove define.
14776 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14777 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14778 sparcnbsd-nat.c: Rewrite files.
14779 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14780 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14781 sparcnbsd-tdep.h: Remove files.
14782 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14783 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14784 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14785 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14786 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14787 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14788 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14789 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14790 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14791 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14792 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14793 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14794 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14795 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14796 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14797 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14798 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14799 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14800 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14802 2004-01-02 Andrew Cagney <cagney@redhat.com>
14804 From 2003-12-18 Kazuhiro Inaoka:
14805 * configure.host: Add m32r-linux target.
14807 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14809 * top.c (print_gdb_version): Update year to 2004.
14811 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14813 * MAINTAINERS: Add myself to the write-after-approval category.
14815 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14817 From Bernardo Innocenti <bernie@develer.com>:
14818 * configure.tgt: Add uClinux target.
14820 2004-01-02 Andrew Cagney <cagney@redhat.com>
14822 * utils.c (do_my_cleanups): Make static, add forward declaration.
14823 * defs.h (do_my_cleanups): Delete declaration.
14825 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14827 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14828 bfd/ChangeLog-0203.
14830 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14832 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14833 in <machine/reg.h>.
14834 * configure, config.in: Regenerate.
14836 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14837 tui/ChangeLog-1998-2003.
14843 version-control: never