1 2004-10-26 Andrew Cagney <cagney@gnu.org>
3 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
4 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
5 (mips_gdbarch_init): Update.
6 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
8 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
9 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
10 IN_SOLIB_RETURN_TRAMPOLINE.
11 * mips-tdep.c (mips_dump_tdep): Do not print
12 IN_SOLIB_RETURN_TRAMPOLINE.
13 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
14 (mips_gdbarch_init): Update.
16 * mips-tdep.h (mips_software_single_step): Move to here ...
17 * config/mips/tm-mips.h: ... from here.
18 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
19 (SOFTWARE_SINGLE_STEP): Delete.
20 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
22 2004-10-25 Andrew Cagney <cagney@gnu.org>
24 * NEWS: Add Changes since GDB 6.3 section.
26 2004-10-23 Andreas Schwab <schwab@suse.de>
28 * ada-lang.c (grow_vect): Return the new array instead of
29 expecting pointer to pointer to avoid violation of aliasing rules.
30 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
32 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
34 * s390-tdep.c (enum pv_boolean): Remove.
35 (pv_is_array_ref): Remove.
36 (s390_on_stack): Remove.
37 (S390_NUM_SPILL_SLOTS): Remove.
38 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
39 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
40 (s390_store): Track all stores of orginal incoming registers to the
41 stack constant offsets relative to the CFA, instead of only tracking
42 stores into specific spill slots.
43 (s390_load): Likewise.
44 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
45 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
46 defined as call-saved by the ABI.
47 (s390_push_dummy_call): Use bottom of dummy call argument save area
48 as return value, not the top. Do not store to the called function's
50 (s390_unwind_dummy_id): Adapt accordingly.
52 2004-10-23 Andrew Cagney <cagney@gnu.org>
54 * objfiles.h (struct objfile): Rename obj_private to
55 deprecated_obj_private, sym_private to deprecated_sym_private, and
56 sym_stab_info to deprecated_sym_stab_info.
57 * gdb-stabs.h: Update.
61 * xcoffread.c: Update.
65 * mdebugread.c: Update.
69 2004-10-23 Mark Kettenis <kettenis@gnu.org>
71 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
72 * configure.host: Add mips64*-*-openbsd*.
73 * configure.tgt: Add mips64*-*-openbsd*.
74 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
76 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
77 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
79 2004-10-21 Joel Brobecker <brobecker@gnat.com>
81 * symtab.c (symbol_search_name): Minor reformatting.
83 2004-10-20 Joel Brobecker <brobecker@gnat.com>
85 * symtab.h: Fix typo in comment.
87 2004-10-19 Mark Kettenis <kettenis@gnu.org>
89 * dwarf2read.c (struct comp_unit_head): Fix coding style.
90 (dwarf_decode_line_header): Likewise.
92 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
94 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
96 2004-10-19 Andrew Cagney <cagney@gnu.org>
98 GDB 6.3 branch created.
99 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
101 2004-10-15 Joel Brobecker <brobecker@gnat.com>
103 * dwarf2read.c (set_cu_language): Set language to Ada for
104 DW_LANG_Ada83 and DW_LANG_Ada95.
106 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
108 From Andreas Schwab <schwab@suse.de>:
109 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
110 for xmalloc and xrealloc.
112 2004-10-15 Andrew Cagney <cagney@gnu.org>
114 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
115 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
116 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
119 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
121 * ada-lang.c (ada_lookup_symbol): Correct comment.
122 (ada_evaluate_subexp): Change error message for
123 OP_FUNCALL case so as not to indicate an internal error.
125 2004-10-15 Joel Brobecker <brobecker@gnat.com>
127 Committed by Paul Hilfinger.
128 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
129 type sizes in XVE/XVU types, and emit a warning when that happens,
130 instead of rounding up the size of the resulting type.
131 Some minor reformatting.
132 (ada_is_aligner_type): Do not consider a type as an aligner type
133 if there is a corresponding XVS type as well.
134 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
135 have several levels of pointer indirection to the array.
137 2004-10-15 Jerome Guitton <guitton@gnat.com>
139 Committed by Paul Hilfinger.
140 * ada-lang.c (check_size): New function.
141 (coerce_unspec_val_to_type): call check_size to make sure
142 that the object size is reasonable.
143 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
144 Implements the case when we get a reference when we evaluate
145 the expression of one of the bounds of the slice.
146 (ada_value_struct_elt): when a packed array field is
147 a reference, use ada_coerce_ref to dereference it; use
148 ada_value_ind only if it is a pointer.
150 2004-10-15 Joel Brobecker <brobecker@gnat.com>
152 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
153 a bit to avoid the necessity of an advance declaration. Remove
155 (set_reg_offset): Move implemenation up.
156 (mips16_get_imm): Likewise.
157 (mips16_scan_prologue): Likewise.
158 (reset_saved_regs): Likewise.
159 (mips32_scan_prologue): Likewise.
161 2004-10-14 Joel Brobecker <brobecker@gnat.com>
163 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
164 Remove sp as a parameter, compute it internally instead. Move
165 prologue scanning limit from heuristic_proc_desc to here.
166 (mips16_scan_prologue): Likewise.
167 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
168 by call to mips16_scan_prologue.
169 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
170 by call to mips32_scan_prologue.
171 (heuristic_proc_desc): Remove code that's no longer necessary.
172 Update calls to mips16_scan_prologue and mips32_scan_prologue.
173 (mips_skip_prologue): Update calls to mips16_scan_prologue
174 and mips32_scan_prologue.
176 2004-10-14 Joel Brobecker <brobecker@gnat.com>
178 * mips-tdep.c (mips16_scan_prologue): Merge code from
179 mips16_skip_prologue. Now return the address of the first
180 instruction past the function prologue.
181 (mips16_skip_prologue): Remove, no longer necessary.
182 (mips_skip_prologue): Replace call to mips16_skip_prologue
183 by call to mips16_scan_prologue.
185 2004-10-14 Joel Brobecker <brobecker@gnat.com>
187 * mips-tdep.c (mips32_scan_prologue): Merge code from
188 mips32_skip_prologue. Now return the address of the first
189 instruction past the function prologue.
190 (mips32_skip_prologue): Remove. No longer necessary.
191 (mips16_skip_prologue): Add parameter end_pc instead of
193 (mips_skip_prologue): Compute the upper limit for the
194 prologue scanning. Update call to mips16_skip_prologue.
195 Replace call to mips32_skip_prologue by call to
196 mips32_scan_prologue.
198 2004-10-14 Mark Kettenis <kettenis@gnu.org>
200 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
201 NetBSD system call stubs that store %rp in the ERP slot of the
204 * source.c: Always define O_BINARY to 0 if not defined already.
205 (openp): Unconditionally use O_BINARY.
207 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
208 * event-top.c (gdb_readline2): Likewise.
210 2004-10-14 Orjan Friberg <orjanf@axis.com>
212 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
213 deprecated_add_core_fns which was removed by mistake.
215 2004-10-13 Kevin Buettner <kevinb@redhat.com>
217 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
218 references to deprecated_registers[] with equivalent code.
220 2004-10-13 Kevin Buettner <kevinb@redhat.com>
222 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
223 ``deprecated_registers'' with equivalent code. Use gdb_assert()
224 instead of explicit test and print statement.
226 2004-10-12 Mark Kettenis <kettenis@gnu.org>
228 * sparc-nat.c: Include "inf-ptrace.h".
229 (sparc_target): New function.
230 * sparc-nat.h: Update copyright year.
231 (sparc_target): New prototype.
232 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
233 (_initialize_sparcnbsd_nat): Construct and add target vector.
234 * sparc64nbsd-nat.c: Include "target.h".
235 (_initialize_sparc64nbsd_nat): Construct and add target vector.
236 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
238 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
239 inftarg.o, add inf-ptrace.o.
240 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
241 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
242 (NAT_FILE): Set to nm-bsd.h.
243 (LOADLIBES): New variable.
244 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
245 infarg.o, add inf-ptrace.o.
246 * config/sparc/nm-nbsdaout.h: Remove file.
247 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
248 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
249 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
251 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
252 "fopen-same.h". Update comment.
254 2004-10-11 Mark Kettenis <kettenis@gnu.org>
256 * i386gnu-nat.c: Include "gdb_string.h".
257 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
258 registers when the floating-point state isn't initialized.
259 * Makefile.in (i386gnu-nat.o): Update dependencies.
261 2004-10-11 David Anderson <davea@sgi.com>
263 * regcache.c (regcache_raw_read): Comment was missing "to".
264 Extraneous ' removed.
265 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
266 comment now describes use.
268 2004-10-11 Orjan Friberg <orjanf@axis.com>
270 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
271 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
272 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
273 (cris_sigtramp_frame_sniffer): New functions.
274 (cris_gdbarch_init): Hook in signal trampoline unwinder.
275 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
276 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
277 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
278 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
280 (cris_version_update): Remove, replace with ...
281 (set_cris_version): New function.
282 (struct gdbarch_tdep, cris_mode, cris_mode_update)
283 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
284 (_initialize_cris_tdep): Remove CRIS mode command.
285 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
286 cris-fpless-backtrace command.
287 (cris_scan_prologue): Fix prologue scanning limit.
288 (cris_register_type): Update to reflect actual registers.
289 (cris_register_bytes_ok) Remove.
290 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
291 Remove set_gdbarch_deprecated_register_size,
292 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
294 2004-10-10 Andrew Cagney <cagney@gnu.org>
296 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
299 2004-10-10 Joel Brobecker <brobecker@gnat.com>
301 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
303 2004-10-10 Joel Brobecker <brobecker@gnat.com>
305 * mips-tdep.c (mips16_scan_prologue): Renames
306 mips16_heuristic_proc_desc. Update comment.
307 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
308 (heuristic_proc_desc): Update calls to the 2 functions above.
310 2004-10-10 Joel Brobecker <brobecker@gnat.com>
312 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
313 Update comments. Also immediately return empty cache when the start
314 address of our function could not be found.
315 (mips_insn32_frame_cache): Likewise.
317 2004-10-10 Joel Brobecker <brobecker@gnat.com>
319 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
320 (mips_insn16_frame_cache): Pass frame cache in call to
321 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
322 Remove code that became redundant as a consequence.
323 (mips32_heuristic_proc_desc): No longer compute a fake
324 procedure descriptor. Compute the full frame cache instead.
325 Some minor comment reformatting.
327 2004-10-10 Jim Blandy <jimb@redhat.com>
329 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
330 reader, tracing bytecode stuff): Remove self.
332 2004-10-10 Mark Kettenis <kettenis@gnu.org>
334 * sparc64-linux-tdep.c: Update copyright year. Don't include
336 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
337 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
338 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
340 * sparc-linux-tdep.c: Update copyright year.
341 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
342 to struct frame_info *. Use safe_frame_unwind_memory instead of
343 deprecated_read_memory_nobpt.
344 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
345 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
346 changed signature of sparc_linux_sigtramp_start.
347 (sparc32_linux_pc_in_sigtramp): Remove function.
348 (sparc32_linux_sigtramp_p): New function.
349 (sparc32_linux_sigtramp_frame_sniffer): Use
350 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
352 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
354 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
356 * ada-lang.c (lim_warning): Re-implement as a varargs function.
357 (decode_packed_array_type, value_subscript_packed)
358 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
359 argument in call to lim_warning.
361 * configure.in: Really disable the TUI if an enhanced curses
363 * configure: Regenerate.
365 2004-10-09 Mark Kettenis <kettenis@gnu.org>
367 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
368 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
369 * config/i386/nm-nbsdaout.h: Remove file.
370 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
371 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
372 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
373 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
374 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
375 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
376 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
377 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
378 (ldd, ld_un, ld_2): Remove defines.
379 * config/i386/nm-obsd.h: Likewise.
381 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
383 * ada-lex.l: Remove useless rule whose right-context clause
384 causes unreferenced static function warning for yyrealloc.
385 (ada_flex_use): Remove the artificial reference to yyrealloc.
387 2004-10-08 Andrew Cagney <cagney@gnu.org>
389 * target.h (struct target_ops): Rename to_xfer_memory to
390 deprecated_xfer_memory.
392 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
394 * win32-nat.c: Update.
396 * uw-thread.c: Update.
397 * thread-db.c: Update.
398 * sol-thread.c: Update.
400 * remote-vx.c: Update.
401 * remote-st.c: Update.
402 * remote-sim.c: Update.
403 * remote-sds.c: Update.
404 * remote-rdp.c: Update.
405 * remote-rdi.c: Update.
406 * remote-mips.c: Update.
407 * remote-m32r-sdi.c: Update.
408 * remote-e7000.c: Update.
411 * nto-procfs.c: Update.
413 * linux-nat.c: Update.
415 * hpux-thread.c: Update.
416 * go32-nat.c: Update.
421 * aix-thread.c: Update.
423 2004-10-08 Andrew Cagney <cagney@gnu.org>
425 * target.c (debug_target): Move to near start of file.
426 (target_stopped_data_address_p): Re-org logic, add casts.
428 2004-10-02 Mark Kettenis <kettenis@gnu.org>
430 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
431 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
432 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
433 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
436 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
438 * target.h (to_stopped_data_address): Change prototype to
439 take a CORE_ADDR pointer and return an int.
440 * target.c (update_current_target): Change to_stopped_data_address
441 to match new prototype.
442 (debug_to_stopped_data_address): Change appropriately.
443 * breakpoint.c (bpstat_stop_status): Change call to
444 target_stopped_data_address to use new prototype.
445 * frv-tdep.c (frv_have_stopped_data_address): New function.
446 (frv_stopped_data_address): Change to new prototype and
448 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
449 prototype and functionality.
450 (ia64_stopped_by_watchpoint): New function.
451 * i386-nat.c (i386_stopped_data_address): Change to new
452 prototype and functionality.
453 (i386_stopped_by_watchpoint): New function.
454 * remote.c (remote_stopped_data_address): Change to new prototype
456 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
457 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
458 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
459 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
460 new i386_stopped_by_watchpoint function.
461 (i386_stopped_by_watchpoint): New prototype.
462 (i386_stoppped_data_address): Change to new prototype.
463 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
464 new ia64_stopped_by_watchpoint function.
465 (ia64_stopped_by_watchpoint): New prototype.
466 (ia64_stopped_data_address): Ditto.
468 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
470 * ada-typeprint.c (ada_print_type): Use int_string for printing
471 modulus of modular type.
472 * ada-lang.h (ada_modulus): Change return type to unsigned.
473 * ada-lang.c (ada_language_arch_info): Correct type of
475 (ada_modulus): Return unsigned result.
476 (ada_lookup_symbol): Remove user disambiguation and modify comment
479 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
481 Committed by Paul Hilfinger.
482 * ada-lang.c (decode_packed_array): On big-endian targets,
483 left-justify the value if it comes with a modular type.
485 2004-10-08 Joel Brobecker <brobecker@gnat.com>
487 Committed by Paul Hilfinger.
488 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
489 (is_name_suffix): Add support for "___JM" suffixes.
490 (ada_check_typedef): Renames ada_completed_type.
491 Update all users of CHECK_TYPEDEF, check_typedef, and
492 ada_complete_type to call ada_check_typedef.
493 * ada-typeprint.c: Likewise.
494 * ada-valprint.c: Likewise.
496 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
498 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
500 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
502 * MAINTAINERS: Update e-mail address.
504 2004-10-07 Daniel Jacobowitz <dan@debian.org>
506 From Maciej W. Rozycki <macro@mips.com>:
507 * mips-tdep.c (mips32_next_pc): Check the register's contents,
508 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
510 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
512 * m32r-tdep.c (decode_prologue): Support functions written
513 in assembler language. Recognize trap instructions as the
515 (m32r_frame_unwind_cache): Ditto.
516 (m32r_skip_prologue): Extend search limit. Quit analyzing
517 prologue if pc's location is not readable.
519 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
521 * Makefile.in (.l.c): Do conversions of names of alloc and free
522 functions that are done for .y.c files, plus special one
523 for yy_flex_realloc. Also, correct missing-file tests here.
524 * ada-lex.l (malloc, free): Remove macros.
525 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
527 (ada_flex_use): Dummy definition to remove warnings about unused
529 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
532 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
534 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
536 (sh_return_value_fpu): Ditto for CPUs with FPU.
537 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
538 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
539 Install sh_return_value_nofpu resp. sh_return_value_fpu as
540 RETURN_VALUE functions.
542 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
544 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
545 (sh_pseudo_register_write): Ditto.
547 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
549 * sh-tdep.c (IS_MACL_STS): New define.
551 (IS_MACL_LDS): Ditto.
552 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
553 instructions in prologue.
554 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
555 instructions in epilogue.
557 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
559 * sh-tdep.c (SH_NUM_REGS): Define as 67.
560 (sh_sh_register_name): Add eight empty register names.
561 (sh_sh3_register_name): Ditto.
562 (sh_sh3e_register_name): Ditto.
563 (sh_sh2e_register_name): Ditto.
564 (sh_sh2a_register_name): New function, defining SH2A register set.
565 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
567 (sh_sh_dsp_register_name): Add eight empty register names.
568 (sh_sh3_dsp_register_name): Ditto.
569 (sh_sh4_register_name): Ditto.
570 (sh_sh4_nofpu_register_name): Ditto.
571 (sh_sh4al_dsp_register_name): Ditto.
572 (sh2a_show_regs): New function.
573 (sh2a_nofpu_show_regs): New function.
574 (sh_sh2a_register_type): New function.
575 (do_bank_register_info): New function.
576 (sh_print_pseudo_register): Call do_bank_register_info.
577 Call sh_print_pseudo_register for valid "bank" register.
578 (sh_sh2a_register_sim_regno): New function.
579 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
580 Increment pseudo register count by one for all sh variants with
581 pseudo registers to accomodate pseudo bank register.
582 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
583 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
584 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
585 Increment pseudo register numbers.
587 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
589 * dwarf2read.c (read_subroutine_type): Call make_function_type
590 instead of lookup_function_type.
592 2004-10-05 Jim Blandy <jimb@redhat.com>
594 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
595 (Previous change missed some uses.)
597 2004-10-05 Andrew Cagney <cagney@gnu.org>
599 * target.h (deprecated_child_ops): Rename child_ops.
600 * wince.c: Update copyright. Rename child_ops.
601 * win32-nat.c: Rename child_ops.
602 * target.c: Rename child_ops.
603 * rs6000-nat.c: Rename child_ops.
604 * linux-nat.c: Rename child_ops.
605 * infttrace.c: Rename child_ops.
606 * inftarg.c: Rename child_ops.
607 * infptrace.c: Rename child_ops.
608 * hppah-nat.c: Update copyright. Rename child_ops.
609 * hpux-thread.c: Update copyright. Rename child_ops.
611 2004-10-05 Daniel Jacobowitz <dan@debian.org>
613 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
615 2004-10-05 Andrew Cagney <cagney@gnu.org>
617 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
619 2004-10-05 Daniel Jacobowitz <dan@debian.org>
621 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
622 (die_ref_table): Remove.
623 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
624 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
625 the usage of this type.
626 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
627 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
628 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
629 (dwarf2_create_include_psymtab): Update comment.
630 (find_partial_die): Remove third argument. Remove unreachable call
632 (dwarf2_find_containing_comp_unit): Update comments. Change one
633 assertion to an error. Remove an unreachable error.
634 (dwarf2_find_comp_unit): Update comments.
635 (type_at_offset): Remove dead code.
636 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
637 (store_in_ref_table): Add CU argument.
638 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
639 inter-compilation-unit references.
640 (load_full_comp_unit, process_full_comp_unit): New functions, based
641 on psymtab_to_symtab_1.
642 (psymtab_to_symtab_1): Use them.
643 (dwarf2_add_dependence): New function.
644 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
645 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
646 (partial_die_parent_scope, guess_structure_name): Update for changes
648 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
649 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
650 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
651 (read_die_and_children): Update call to store_in_ref_table.
652 (do_free_die_list_cleanup): Remove.
653 (fixup_partial_die): Update for changes to find_partial_die.
654 (read_full_die): Handle queueing absolute references.
655 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
656 (dwarf2_attr, die_specification, die_type)
657 (die_containing_type, dwarf2_extension): Update calls to
659 (dump_die): Update DW_FORM_ref* handling.
660 (dwarf2_get_ref_die_offset): Likewise.
661 (free_one_comp_unit): Release the dies list.
662 (dwarf2_mark_helper): New function.
663 (dwarf2_mark): Use it.
665 2004-10-05 Mark Kettenis <kettenis@jive.nl>
667 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
668 when writing to memory.
670 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
672 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
673 (m32r_extract_struct_value_address): Delete function.
674 (m32r_return_value): New function.
675 (m32r_gdbarch_init): Instead of store_return_value,
676 extract_return_value, deprecated_extract_struct_value_address
677 and deprecated_use_struct_convention, set return_value.
679 2004-10-03 Daniel Jacobowitz <dan@debian.org>
681 * dwarf2read.c (read_subrange_type): Add comment for variable
684 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
686 * Makefile.in (.l.c): Modify rule for compatibility with recent
687 versions of flex, and remove most command-line options.
688 * ada-lex.l: Add %options line in place of -I -i and -s command-line
691 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
693 Turn on initial Ada support (mainly expression evaluation).
695 * Makefile.in (SFILES): Remove ada-tasks.c.
696 (HFILES_NO_SRCDIR): Add ada-lang.h.
697 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
698 (YYOBJ): Add ada-exp.o.
699 (rule .l.c): Generalize to not mention ada.
700 * symtab.c: Include ada-lang.h.
701 (symbol_natural_name, symbol_demangled_name)
702 (symbol_search_name): Add Ada case.
704 2004-10-01 Andrew Cagney <cagney@gnu.org>
706 * Makefile.in (COMMON_OBS): Add inf-child.o.
707 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
708 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
709 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
710 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
711 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
712 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
713 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
714 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
715 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
716 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
717 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
718 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
719 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
721 * target.c (xfer_using_stratum): Change return type to LONGEST.
722 On each iteration offset, readbuf and writebuf.
723 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
724 partial_length, and read/modify/write predicate, update comments.
725 Pass buffer.word to ptrace write.
727 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
729 * symfile.c (init_filename_language_table): Add extensions for
731 * defs.h (enum language): Add language_ada.
732 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
733 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
734 (add_symbols_from_enclosing_procs): Make a no-op for now.
735 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
736 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
737 (find_line_in_linetable, find_next_line_in_linetable)
738 (read_all_symtabs, is_plausible_func_for_line)
739 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
740 (is_runtime_sym_defined, check_size): Remove declaration.
741 (function_name_from_pc, ada_translate_error_message)
742 (ada_lookup_minimal_symbol): Remove definition.
743 (ada_add_block_symbols): Remove useless label.
744 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
746 (ada_is_exception_sym): Likewise.
748 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
750 Add m32r-linux support.
751 * configure.tgt: Add m32r*-*-linux*.
752 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
753 and m32r-linux-tdep.c.
754 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
755 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
756 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
758 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
759 config/m32r/linux.mh, config/m32r/linux.mt,
760 config/m32r/nm-linux.h: New files.
762 2004-09-30 Joel Brobecker <brobecker@gnat.com>
764 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
765 (mips32_fetch_instruction): Remove, unused.
767 2004-09-30 Joel Brobecker <brobecker@gnat.com>
769 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
770 conditions that will always be true.
772 2004-09-30 Mark Kettenis <kettenis@gnu.org>
774 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
775 (vaxbsd_fetch_inferior_registers): Rename from
776 fetch_inferior_registers. Make static.
777 (vaxbsd_store_inferior_registers): Rename from
778 store_inferior_registers. Make static.
779 (_initialize_vaxbsd_nat): Construct and add target vector.
780 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
781 inftarg.o. Add inf-child.o and inf-ptrace.o.
782 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
783 inftarg.o. Add inf-child.o and inf-ptrace.o.
785 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
786 inftarg.o. Add inf-child.o and inf-ptrace.o.
788 * Makefile.in (vaxbsd-nat.o): Update dependencies.
790 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
791 (m88kbsd_fetch_inferior_registers): Rename from
792 fetch_inferior_registers. Make static.
793 (m88kbsd_store_inferior_registers): Rename from
794 store_inferior_registers. Make static.
795 (_initialize_m88kbsd_nat): New prototype and function.
796 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
797 inftarg.o. Add inf-child.o and inf-ptrace.o.
799 * Makefile.in (m88kbsd-nat.o): Update dependencies.
801 2004-09-30 Andrew Cagney <cagney@gnu.org>
803 * target.c (target_xfer_partial): New function.
804 (target_read_memory_partial, target_write_memory_partial)
805 (default_xfer_partial, target_read_partial, target_write_partial)
806 (xfer_using_stratum): Use.
807 (debug_to_xfer_partial): Delete function.
808 (setup_target_debug): Do not override to_xfer_partial.
810 2004-09-30 Mark Kettenis <kettenis@chello.nl>
812 * fork-child.c: Update copyright year. Fix coding style.
814 2004-09-29 Mark Kettenis <kettenis@gnu.org>
816 * defs.h (msavestring, mstrsave): Remove prototypes.
817 * utils.c (msavestring, mstrsave): Remove functions.
818 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
819 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
821 * source.c (find_and_open_source): Use xstrdup instead of
824 2004-09-30 Andrew Cagney <cagney@gnu.org>
826 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
827 (inf_ptrace_xfer_memory): Delete.
828 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
829 (target_read_memory, target_write_memory): Use xfer_using_stratum
830 when target_xfer_partial_p.
831 (debug_target): Move to start of file.
832 (target_read_memory_partial, target_write_memory_partial): Use
833 to_xfer_partial when target_xfer_partial_p.
835 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
836 inf_ptrace_xfer_memory with equivalent code.
837 * inftarg.c (child_xfer_partial): When performing a write, pass
838 writebuf to child_xfer_memory.
840 * target.c (target_read_string): Use target_read_memory instead of
843 2004-09-29 Andrew Cagney <cagney@gnu.org>
845 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
846 the address of status.
848 * infptrace.c (ptrace_wait): Mention problem with HPUX.
849 (kill_inferior): Inline ptrace_wait call.
850 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
851 * inftarg.c (child_wait): Inline ptrace_wait call.
853 * target.h (struct target_ops): Delete field to_post_wait.
854 (target_post_wait): Delete macro.
855 (child_post_wait): Delete declaration.
856 * target.c (update_current_target, update_current_target)
857 (debug_to_post_wait, setup_target_debug): Delete functions and
859 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
860 * inftarg.c (child_post_wait): Delete.
861 (init_child_ops): Do not set to_post_wait.
862 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
863 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
864 * inf-child.c (inf_child_post_wait): Delete.
865 (inf_child_target): Do not set to_post_wait.
866 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
867 (inf_ptrace_target): Do not set to_post_wait.
869 * wince.c (child_ops): Delete.
870 * win32-nat.c (child_ops): Delete.
872 * inftarg.c (inftarg_set_find_memory_regions)
873 (inftarg_set_make_corefile_notes): Delete functions.
874 (_initialize_linux_nat): Inline calls.
876 * target.h (child_ops): Declare.
877 * inftarg.c (child_ops): Move from here ...
878 * target.c (child_ops): ... to here.
879 * wince.c (child_ops): Delete extern declaration.
880 * win32-nat.c (child_ops): Delete extern declaration.
881 * linux-nat.c (child_ops): Delete extern declaration.
882 * hpux-thread.c (child_ops): Delete extern declaration.
884 2004-09-28 Mark Kettenis <kettenis@gnu.org>
886 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
888 2004-09-28 Mark Kettenis <kettenis@gnu.org>
890 * configure.in: Only set host_makefile_frag when building a native
892 * configure: Regenerate.
894 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
897 2004-09-28 Andrew Cagney <cagney@gnu.org>
899 Problem identified by Paul Hilfinger.
900 * Makefile.in (ada_lex_c): Define.
901 (ada-lex.o): Delete rule.
903 * linux-proc.c: Delete file.
904 * Makefile.in: Update.
905 * config/sparc/linux64.mh (NATDEPFILES):
906 * config/sparc/linux.mh (NATDEPFILES): Update.
907 * config/s390/s390.mh (NATDEPFILES): Update.
908 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
909 * config/powerpc/linux.mh (NATDEPFILES): Update.
910 * config/pa/linux.mh (NATDEPFILES): Update.
911 * config/mips/linux.mh (NATDEPFILES): Update.
912 * config/m68k/linux.mh (NATDEPFILES): Update.
913 * config/ia64/linux.mh (NATDEPFILES): Update.
914 * config/i386/linux64.mh (NATDEPFILES): Update.
915 * config/i386/linux.mh (NATDEPFILES): Update.
916 * config/arm/linux.mh (NATDEPFILES): Update.
917 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
918 * linux-nat.c: Update copyright. Include <sys/param.h>,
919 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
920 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
921 (O_LARGEFILE): Possibly define.
922 (_initialize_linux_nat, linux_proc_pending_signals)
923 (add_line_to_sigset, linux_proc_xfer_memory)
924 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
925 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
926 (struct linux_corefile_thread_data)
927 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
928 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
930 2004-09-16 Andrew Cagney <cagney@gnu.org>
932 * lin-lwp.c: Delete file.
933 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
934 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
935 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
936 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
937 (linux_nat_attach, detach_callback, linux_nat_detach)
938 (resume_callback, resume_clear_callback, linux_nat_resume)
939 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
940 (stop_wait_callback, linux_nat_has_pending, flush_callback)
941 (status_callback, running_callback, count_events_callback)
942 (select_singlestep_lwp_callback, select_event_lwp_callback)
943 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
944 (child_wait, stop_and_resume_callback, linux_nat_wait)
945 (kill_callback, kill_wait_callback, linux_nat_kill)
946 (linux_nat_create_inferior, linux_nat_mourn_inferior)
947 (linux_nat_xfer_memory, linux_nat_thread_alive)
948 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
949 (_initialize_linux_nat): New functions.
950 * Makefile.in: Update all dependencies.
951 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
952 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
953 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
954 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
955 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
956 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
957 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
958 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
959 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
960 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
961 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
962 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
963 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
965 2004-09-27 Mark Kettenis <kettenis@gnu.org>
967 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
968 config/i386/obsd64.mh (NAT_FILE): Remove variable.
970 * configure.in: Don't comment out NATDEPFILES in the generated
971 Makefile if NAT_FILE is unset.
972 * configure: Regenerate.
974 2004-09-27 Andrew Cagney <cagney@gnu.org>
976 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
977 (insert_step_resume_breakpoint): Delete.
978 (insert_step_resume_breakpoint_at_frame): New function.
979 (insert_step_resume_breakpoint_at_sal): New function.
980 (handle_inferior_event, step_into_function)
981 (insert_step_resume_breakpoint): Simplify by using same.
983 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
985 2004-09-26 Mark Kettenis <kettenis@gnu.org>
987 * fbsd-proc.c: Remove file.
988 * Makefile.in (fbsd-proc.o): Remove dependency.
990 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
993 * config/i386/nm-fbsd64.h: Remove file.
994 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
996 2004-09-26 Mark Kettenis <kettenis@gnu.org>
998 * amd64-nat.h: Update copyright year.
999 (amd64bsd_target): New prototype.
1000 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1001 (amd64bsd_target): New function.
1002 (amd64bsd_fetch_inferior_registers): Rename from
1003 fetch_inferior_registers. Make static.
1004 (amd64bsd_store_inferior_registers): Rename from
1005 store_inferior_registers. Make static.
1006 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1007 (_initialize_amd64fbsd_nat): Construct and add target vector.
1008 * amd64nbsd-nat.o: Include "target.h".
1009 (_initialize_amd64nbsd_nat): Construct and add target vector.
1010 * amd64obsd-nat.c: Include "target.h".
1011 (_initialize_amd64obsd_nat): Construct and add target vector.
1012 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1013 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1014 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1016 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1017 Remove infptrace.o and inftarg.o. Add inf-child.o and
1019 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1020 (amd64obsd-nat.o): Update dependencies.
1022 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1024 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1025 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1026 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1027 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1028 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1030 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1032 (inf_ptrace_detach): Inline detach call.
1034 * configure.in: Check for waddstr instead of mvwaddstr when
1035 searching for curses library. Check for wborder.
1036 * configure, config.in: Regenerate.
1037 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1040 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1042 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1044 Committed by Andrew Cagney.
1045 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1046 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1048 (fetch_register_using_p): Implement 'p' packet. Based on code by
1050 (remote_fetch_registers): Call fetch_register_using_p.
1051 (init_all_packet_configs, show_remote_cmd)
1052 (_initialize_remote): Add p-packet.
1054 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1056 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1057 instead of call_ptrace. Call wait directly instead of
1059 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1060 (inf_ptrace_wait): Inline ptrace_wait call.
1062 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1064 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1065 rolled back instead.
1067 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1069 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1070 the new argument order.
1072 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1074 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1075 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1076 (struct gdbarch_tdep): Remove.
1077 (struct xstormy16_frame_cache): New frame cache structure.
1078 (xstormy16_register_byte, xstormy16_register_raw_size)
1079 (xstormy16_reg_virtual_type, xstormy16_register_type)
1080 (xstormy16_push_arguments, xstormy16_push_return_address)
1081 (xstormy16_pop_frame, xstormy16_store_struct_return)
1082 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1083 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1084 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1085 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1086 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1087 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1088 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1089 (xstormy16_extract_return_value, xstormy16_store_return_value):
1090 Regcachify. Drop useless struct convention handling.
1091 (xstormy16_register_type, xstormy16_return_value)
1092 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1093 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1094 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1095 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1096 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1097 (xstormy16_unwind_dummy_id) : New functions.
1098 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1099 of xstormy16_scan_prologue.
1100 (xstormy16_frame_unwind): New frame_unwind structure.
1101 (xstormy16_frame_base): New frame_base structure.
1102 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1103 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1105 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1107 * language.c (language_gdbarch_post_init): Fix off-by one error.
1109 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1111 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1112 (struct dwarf2_offset_and_type): New.
1113 (set_die_type, reset_die_and_siblings_types, get_die_type)
1114 (offset_and_type_hash, offset_and_type_eq): New functions.
1115 (read_structure_type, read_enumeration_type, read_array_type)
1116 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1117 (read_tag_reference_type, read_tag_const_type)
1118 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1119 (read_typedef, read_base_type, read_subrange_type): Use
1122 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1124 * Makefile.in (dwarf2read.o): Update dependencies.
1125 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1126 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1128 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1129 mark, and has_form_ref_addr.
1130 (struct dwarf2_per_cu_data): New.
1131 (dwarf2_max_cache_age): New.
1132 (dwarf2_build_psymtabs_hard): Free cached compilation units
1133 after loading. Create and manage the list of compilation units.
1134 Remove unnecessary NULL initialization. Fix indentation.
1135 (psymtab_to_symtab_1): Initialize all of CU.
1136 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1137 (find_partial_die): Use dwarf2_find_containing_comp_unit
1139 (free_stack_comp_unit): Update comments. Clear the per-cu
1140 pointer. Handle aging.
1141 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1142 (age_cached_comp_units, free_one_cached_comp_unit)
1143 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1144 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1145 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1146 (show_dwarf2_cmd): New.
1147 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1148 and "maint show dwarf2 max-cache-age".
1149 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1151 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1154 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1156 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1157 and dwarf2_cu struct pointer as arguments. Change function to use
1158 obstack if provided and use dwarf2_cu to determine language-specific
1160 (partial_die_parent_scope): Change comment to include java. Use
1161 new version of typename_concat instead of obconcat.
1162 (partial_die_full_name): Use typename_concat.
1163 (read_namespace): Ditto.
1164 (read_enumeration_type): Use typename_concat instead of obconcat.
1165 (new_symbol): Ditto.
1166 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1167 (guess_structure_name): Ditto.
1168 (read_subroutine_type): Ditto.
1169 (read_structure_type): Ditto.
1170 (is_vtable_name): Add Java support.
1171 (determine_class_name): Switch to new typename_concat call.
1172 (determine_prefix): Switch to new typename_concat call.
1173 * jv-exp.y (FuncStart): New pattern.
1174 (MethodInvocation): Add support for simple function calls. Change
1175 warning message for other forms of inferior call currently not
1177 * valarith.c (value_subscript): Treat an array with upper-bound
1178 of -1 as unknown size.
1180 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1182 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1183 (lookup_partial_symtab): Use symtab_to_fullname.
1185 2004-09-19 Jim Blandy <jimb@redhat.com>
1187 * minsyms.c (lookup_minimal_symbol): Doc fix.
1189 2004-09-20 Andrew Cagney <cagney@gnu.org>
1191 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1193 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1194 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1196 * infptrace.c: Update.
1198 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1200 * symtab.c (output_source_filename): Mark first argument as const.
1201 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1202 for "info sources" output.
1204 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1206 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1207 <machine/vmparam.h>.
1208 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1209 (register_u_addr): Remove prototype.
1211 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1213 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1214 (i386bsd_fetch_inferior_registers): Rename from
1215 fetch_inferior_registers. Make static.
1216 (i386bsd_store_inferior_registers): Rename from
1217 store_inferior_registers. Make static.
1218 (i386bsd_target): New function.
1219 * i386bsd-nat.h: New file.
1220 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1222 (i386fbsd_resume): Rename from child_resume. Make static.
1223 (_initialize_i386fbsd_nat): Construct and add target vector.
1224 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1225 (_initialize_i386nbsd_nat): Construct and add target vector.
1226 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1228 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1229 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1230 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1231 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1232 (LOADLIBES): New variable.
1233 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1234 inf-ptrace.o. Remove inftarg.o.
1235 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1236 inf-ptrace.o. Remove inftarg.o.
1237 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1238 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1239 (LOADLIBES): New variable.
1240 * Makefile.in (i386bsd_nat_h): New variable.
1241 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1244 * sparc64nbsd-tdep.c: Include "objfiles.h".
1245 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1246 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1247 svr4_lp64_fetch_link_map_offsets.
1248 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1250 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1251 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1252 svr4_lp64_fetch_link_map_offsets.
1253 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1256 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1257 * fbsd-nat.h: New file.
1258 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1259 (fbsd_nat_h): New variable.
1260 (fbsd-nat.o): New dependency.
1262 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1263 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1265 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1268 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1270 * ada-exp.y (type_int): New function to add layer of abstraction
1271 around references to expression types.
1273 (type_long_long): Ditto.
1274 (type_float): Ditto.
1275 (type_double): Ditto.
1276 (type_long_double): Ditto.
1278 (type_system_address): Ditto.
1279 (simple_exp): Use type_* functions in place of builtin_*
1282 (write_var_from_name): Ditto.
1283 (write_object_renaming): Ditto.
1284 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1286 (build_ada_types): Remove, replacing with...
1287 (ada_language_arch_info): New function to initialize primitive
1288 type vector in language_arch_info.
1289 (ada_array_length): Remove use of builtin_type_ada_int.
1290 (value_pos_atr): Ditto.
1291 (ada_evaluate_subexp): Ditto.
1292 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1293 builtin_type_ada_long_long, builtin_type_ada_char,
1294 builtin_type_ada_float, builtin_type_ada_double,
1295 builtin_type_ada_long_double, builtin_type_ada_natural,
1296 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1297 (ada_builtin_types): Remove.
1298 (ada_language_defn): Remove entries for la_builtin_type_vector and
1299 string_char_type and use ada_language_arch_info.
1300 (_initialize_ada_language): Do type-vector initialization along
1301 the lines of c-lang.c.
1302 (ada_create_fundamental_type): Break up line.
1303 (ada_dump_symtab): Remove unused function.
1304 (enum ada_primitive_types): Define.
1305 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1306 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1307 builtin_type_ada_float, builtin_type_ada_double,
1308 builtin_type_ada_long_double, builtin_type_ada_natural,
1309 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1310 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1311 (processInt): Ditto.
1312 (processReal): Ditto.
1313 (name_lookup): Ditto.
1314 * ada-typeprint.c (print_range): Use builtin_type_int, not
1315 builtin_type_ada_int.
1317 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1319 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1321 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1322 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1323 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1324 * configure.in: Improve checks for curses library by checking for
1325 mvwaddstr instead of initscr. Drop HP curses in favour of
1326 standard curses on HP-UX.
1327 * configure: Regenerated.
1329 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1331 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1332 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1333 Minor formatting changes.
1334 (empty_array): Slight rewrite for formatting.
1335 (emit_char,parse,ada_language_defn,build_ada_types,
1336 ada_is_exception_sym, _initialize_ada_language): Move
1338 (ada_dump_symtab): Remove unused definition.
1339 (ada_maybe_exception_partial_symbol): Remove unused definition.
1341 2004-09-16 Andrew Cagney <cagney@gnu.org>
1343 * inf-child.c: Include "gdb_string.h".
1344 (inf_child_core_file_to_sym_file): Delete.
1345 (inf_child_target): Set to_fetch_registers and to_store_registers.
1346 * inf-ptrace.c: Include "gdb_string.h".
1347 * Makefile.in: Update all dependencies.
1349 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1352 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1354 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1355 call to heuristic_proc_desc. Remove code that became redundant
1357 (read_next_frame_reg): Remove special case for SP_REGNUM.
1358 (set_reg_offset): Fix small typo.
1359 (reset_saved_regs): New procedure.
1360 (mips32_heuristic_proc_desc): No longer compute a fake
1361 procedure descriptor. Compute the full frame cache instead.
1362 Some minor comment reformatting.
1364 2004-09-14 Andrew Cagney <cagney@gnu.org>
1366 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1369 * thread-db.c (thread_db_new_objfile): Assume that there is a
1372 2004-09-13 Jim Blandy <jimb@redhat.com>
1374 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1375 so that its storage isn't referenced after its lifetime ends.
1377 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1378 and never assigned to. Delete it, and the 'if (use_buffer)'
1379 clauses. Delete 'raw_buffer', since it is now unused.
1381 2004-09-13 Andrew Cagney <cagney@gnu.org>
1383 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1384 * configure: Re-generate.
1385 * nlm/Makefile.in (TAGS): Update.
1386 * Makefile.in (TAGS): Update.
1387 * config/vax/nbsd.mt (TM_FILE): Update.
1388 * config/sparc/vxworks.mt (TM_FILE): Update.
1389 * config/sparc/sol2.mt (TM_FILE): Update.
1390 * config/sparc/sol2-64.mt (TM_FILE): Update.
1391 * config/sparc/obsd64.mt (TM_FILE): Update.
1392 * config/sparc/obsd.mt (TM_FILE): Update.
1393 * config/sparc/nbsd64.mt (TM_FILE): Update.
1394 * config/sparc/nbsd.mt (TM_FILE): Update.
1395 * config/sparc/linux64.mt (TM_FILE): Update.
1396 * config/sparc/linux.mt (TM_FILE): Update.
1397 * config/sparc/fbsd.mt (TM_FILE): Update.
1398 * config/sh/wince.mt (TM_FILE): Update.
1399 * config/sh/nbsd.mt (TM_FILE): Update.
1400 * config/sh/linux.mt (TM_FILE): Update.
1401 * config/sh/embed.mt (TM_FILE): Update.
1402 * config/s390/s390.mt (TM_FILE): Update.
1403 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1404 * config/rs6000/rs6000.mt (TM_FILE): Update.
1405 * config/rs6000/aix4.mt (TM_FILE): Update.
1406 * config/powerpc/vxworks.mt (TM_FILE): Update.
1407 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1408 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1409 * config/powerpc/obsd.mt (TM_FILE): Update.
1410 * config/powerpc/nbsd.mt (TM_FILE): Update.
1411 * config/powerpc/linux.mt (TM_FILE): Update.
1412 * config/powerpc/aix.mt (TM_FILE): Update.
1413 * config/pa/obsd.mt (TM_FILE): Update.
1414 * config/pa/linux.mt (TM_FILE): Update.
1415 * config/pa/hppahpux.mt (TM_FILE): Update.
1416 * config/pa/hppa64.mt (TM_FILE): Update.
1417 * config/pa/hppa.mt (TM_FILE): Update.
1418 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1419 * config/mips/wince.mt (TM_FILE): Update.
1420 * config/mips/vxmips.mt (TM_FILE): Update.
1421 * config/mips/nbsd.mt (TM_FILE): Update.
1422 * config/mips/linux.mt (TM_FILE): Update.
1423 * config/mips/irix6.mt (TM_FILE): Update.
1424 * config/mips/irix5.mt (TM_FILE): Update.
1425 * config/mips/embed.mt (TM_FILE): Update.
1426 * config/m68k/vxworks68.mt (TM_FILE): Update.
1427 * config/m68k/st2000.mt (TM_FILE): Update.
1428 * config/m68k/os68k.mt (TM_FILE): Update.
1429 * config/m68k/obsd.mt (TM_FILE): Update.
1430 * config/m68k/nbsd.mt (TM_FILE): Update.
1431 * config/m68k/monitor.mt (TM_FILE): Update.
1432 * config/m68k/linux.mt (TM_FILE): Update.
1433 * config/m68k/cisco.mt (TM_FILE): Update.
1434 * config/ia64/linux.mt (TM_FILE): Update.
1435 * config/ia64/aix.mt (TM_FILE): Update.
1436 * config/ia64/ia64.mt (TM_FILE): Update.
1437 * config/i386/vxworks.mt (TM_FILE): Update.
1438 * config/i386/obsd64.mt (TM_FILE): Update.
1439 * config/i386/obsd.mt (TM_FILE): Update.
1440 * config/i386/nto.mt (TM_FILE): Update.
1441 * config/i386/nbsd64.mt (TM_FILE): Update.
1442 * config/i386/nbsd.mt (TM_FILE): Update.
1443 * config/i386/linux64.mt (TM_FILE): Update.
1444 * config/i386/linux.mt (TM_FILE): Update.
1445 * config/i386/i386sol2.mt (TM_FILE): Update.
1446 * config/i386/i386lynx.mt (TM_FILE): Update.
1447 * config/i386/fbsd64.mt (TM_FILE): Update.
1448 * config/i386/fbsd.mt (TM_FILE): Update.
1449 * config/i386/cygwin.mt (TM_FILE): Update.
1450 * config/h8300/h8300.mt (TM_FILE): Update.
1451 * config/frv/frv.mt (TM_FILE): Update.
1452 * config/cris/cris.mt (TM_FILE): Update.
1453 * config/arm/wince.mt (TM_FILE): Update.
1454 * config/arm/nbsd.mt (TM_FILE): Update.
1455 * config/arm/linux.mt (TM_FILE): Update.
1456 * config/arm/embed.mt (TM_FILE): Update.
1457 * config/alpha/nbsd.mt (TM_FILE): Update.
1458 * config/alpha/fbsd.mt (TM_FILE): Update.
1459 * config/alpha/alpha.mt (TM_FILE): Update.
1460 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1461 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1463 Eliminate event_loop_p, always has the value 1.
1464 * defs.h (event_loop_p): Delete macro.
1465 * breakpoint.c (until_break_command): Simplify.
1466 * utils.c (prompt_for_continue): Simplify.
1467 * tracepoint.c (read_actions): Simplify.
1468 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1469 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1470 (set_prompt, init_main): Simplify.
1471 (init_signals, disconnect): Delete, unused.
1472 * remote.c (remote_async_resume)
1473 (extended_remote_async_create_inferior): Simplify.
1474 * mi/mi-interp.c (mi_input): Delete, unused.
1475 (mi_interpreter_resume, mi_command_loop): Simplify.
1476 * interps.c (current_interp_command_loop): Simplify.
1477 * infrun.c (proceed): Simplify.
1478 * infcmd.c (run_command, continue_command, step_1, jump_command)
1479 (until_command, advance_command, finish_command)
1480 (interrupt_target_command): Simplify.
1481 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1483 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1484 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1485 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1486 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1487 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1488 * mips-tdep.c (mips_dump_tdep): Do not print same.
1490 2004-09-12 Andrew Cagney <cagney@gnu.org>
1492 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1494 * Makefile.in (valprint.o): Delete explict rule.
1496 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1497 reported by Dave Anderson.
1499 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1501 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1503 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1504 Andrew Cagney <cagney@gnu.org>
1506 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1507 (mi_cmd_data_list_register_values)
1508 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1509 the register number computation.
1511 2004-09-12 Andrew Cagney <cagney@gnu.org>
1513 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1514 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1515 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1516 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1518 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1519 inf-ptrace.o and inf-child.o.
1520 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1521 * Makefile.in: Update dependencies.
1523 2004-09-11 Andrew Cagney <cagney@gnu.org>
1525 * language.c (hex_string, hex_string_custom): Move from here ...
1526 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1527 (CELLSIZE): Increase to 50.
1528 * language.h (hex_string, hex_string_custom): Move from here ...
1529 * defs.h: ... to here.
1530 * Makefile.in: Update all dependencies.
1532 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1534 * language.c (local_hex_format_custom): Remove.
1535 (local_hex_string): Rename to hex_string, use C format, and move to
1537 (local_hex_string_custom): Rename to hex_string_custom and change
1538 interface. Now uses C format. Move to utils.c
1539 (local_octal_format_custom): Remove.
1540 (local_decimal_format_custom): Remove.
1541 (unknown_language_defn): Remove language-specific number
1543 (auto_language_defn): Ditto.
1544 (local_language_defn): Ditto.
1545 * language.h (struct language_format_info): Delete declaration.
1546 (struct language_defn): Remove language_format_info fields
1547 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1548 (local_binary_format): Remove macro.
1549 (local_binary_format_prefix): Remove macro.
1550 (local_binary_format_specifier): Remove macro.
1551 (local_binary_format_suffix): Remove macro.
1552 (local_octal_format): Remove macro.
1553 (local_octal_format_prefix): Remove macro.
1554 (local_octal_format_specifier): Remove macro.
1555 (local_octal_format_suffix): Remove macro.
1556 (local_decimal_format): Remove macro.
1557 (local_decimal_format_prefix): Remove macro.
1558 (local_decimal_format_specifier): Remove macro.
1559 (local_decimal_format_suffix): Remove macro.
1560 (local_hex_format): Remove macro.
1561 (local_hex_format_prefix): Remove macro.
1562 (local_hex_format_specifier): Remove macro.
1563 (local_hex_format_suffix): Remove macro.
1564 (local_decimal_format_custom): Remove.
1565 (local_octal_format_custom): Remove.
1566 (local_hex_format_custom): Remove.
1567 (local_hex_string): Rename to hex_string and move to defs.h.
1568 (local_hex_string_custom): Rename to hex_string_custom, change
1569 interface, and move to defs.h.
1570 * utils.c: (int_string): New function.
1571 (hex_string): New function (from language.c).
1572 (hex_string_custom): New function (from language.c).
1573 (octal2str): New function.
1574 (decimal2str): Add width parameter.
1575 (paddr_u): Use new decimal2str interface.
1577 * defs.h (hex_string): Declare.
1578 (hex_string_custom): Declare.
1579 (int_string): Declare.
1580 * printcmd.c (print_scalar_formatted): Remove localized binary
1582 * valprint.c (print_longest): Use int_string.
1583 (print_floating): Use C hex format.
1584 (print_hex_chars): Ditto.
1585 (print_binary_chars): Remove language-specific formatting.
1586 (print_octal_chars): Use C octal format.
1587 (print_decimal_chars): Delocalize format.
1588 (print_decimal): Remove.
1589 * ada-lang.c (ada_language_defn): Remove language-specific number
1591 * p-lang.c (pascal_language_defn): Ditto.
1592 * c-lang.c (c_language_defn): Ditto.
1593 (cplus_language_defn): Ditto.
1594 (asm_language_defn): Ditto.
1595 (minimal_language_defn): Ditto.
1596 * f-lang.c (f_language_defn): Ditto.
1597 * jv-lang.c (java_language_defn): Ditto.
1598 * m2-lang.c (m2_language_defn): Ditto.
1599 * scm-lang.c (scm_language_defn): Ditto.
1600 * objc-lang.c (objc_language_defn): Ditto.
1601 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1603 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1604 * ui-out.c (ui_out_field_core_addr): Ditto.
1605 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1606 * exec.c (print_section_info): Ditto.
1607 * i387-tdep.c (print_i387_status_word): Ditto.
1608 (print_i387_control_word): Ditto.
1609 (i387_print_float_info): Ditto.
1610 * maint.c (maint_print_section_info): Ditto.
1611 * solib.c (info_sharedlibrary_command): Ditto.
1612 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1613 * symtab.c (print_msymbol_info): Ditto.
1614 * tracepoint.c (tracepoints_info): Ditto.
1615 * solib-frv.c (lm_base): Ditto.
1616 (frv_current_sos): Ditto.
1617 (enable_break2): Ditto.
1618 (enable_break): Ditto.
1619 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1620 (process_one_symbol): Ditto.
1621 * infcmd.c (program_info): Ditto.
1622 * mdebugread.c (parse_partial_symbols): Ditto.
1623 * symfile.c (add_symbol_file_command): Ditto.
1624 * cli/cli-cmds.c (edit_command): Ditto.
1625 (list_command): Ditto.
1626 * infcall.c (call_function_by_hand): Ditto.
1627 * remote-vx.c (vx_run_files_info): Ditto.
1632 * aix-thread.c (pdc_symbol_addrs): Ditto.
1633 (pdc_read_regs): Ditto.
1634 (pdc_write_regs): Ditto.
1635 (pdc_read_data): Ditto.
1636 (pdc_write_data): Ditto.
1637 * d10v-tdep.c (display_trace): Ditto.
1638 * rs6000-nat.c (find_toc_address): Ditto.
1639 * aix-thread.c: Don't include language.h.
1640 * buildsym.c: Ditto.
1642 * mdebugread.c: Ditto.
1643 * rs6000-nat.c: Ditto.
1644 * buildsym.c (make_blockvector): Use renamed hex_string.
1646 2004-09-10 Jason Molenda (jmolenda@apple.com)
1648 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1649 chars after 'if' or 'while' commands in user-defined commands.
1651 2004-09-08 Jim Blandy <jimb@redhat.com>
1653 Fix bug reported and analyzed by Olivier Crete:
1654 * symfile.c (copy_section_addr_info): New function.
1655 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1656 original set of address arguments, instead of handwritten code
1657 that uses one length to allocate and a different length to
1658 initialize. Use make_cleanup_free_section_addr_info.
1659 * symfile.h (copy_section_addr_info): New declaration.
1660 * utils.c: #include "symfile.h".
1661 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1663 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1664 * Makefile.in (utils.o): Update dependencies.
1666 2004-09-08 Andrew Cagney <cagney@gnu.org>
1668 * thread-db.c (keep_thread_db): Delete.
1669 (thread_db_new_objfile, thread_db_create_inferior)
1670 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1672 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1674 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1675 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1676 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1677 (i386_frameless_signal_p): Remove prototype.
1678 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1679 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1681 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1682 instead of FP0_REGNUM.
1683 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1684 of FP0_REGNUM and FPC_REGNUM.
1686 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1687 (sunos_solib_create_inferior_hook): Don't call
1688 sunos_relocate_main_executable.
1690 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1691 solib_svr4_fetch_link_map_offsets to
1692 svr4_ilp32_fetch_link_map_offsets.
1693 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1694 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1695 svr4_ilp32_fetch_link_map_offsets.
1696 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1698 2004-09-07 Jim Blandy <jimb@redhat.com>
1700 * frame.h (frame_register): Doc fix.
1702 2004-09-07 Andrew Cagney <cagney@gnu.org>
1704 * vx-share/wait.h: Delete #ifdef USG.
1705 * utils.c (request_quit): Ditto.
1706 * tui/tui.c (tui_reset): Ditto.
1708 * remote-sds.c: Ditto.
1709 * remote-rdi.c: Ditto.
1710 * mdebugread.c: Ditto.
1711 * m68klinux-nat.c: Ditto.
1712 * infttrace.c: Ditto.
1713 * infptrace.c: Ditto.
1714 * i386v-nat.c: Ditto.
1717 * core-aout.c: Ditto.
1719 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1721 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1722 heuristic_proc_desc.
1723 (mips_insn32_frame_cache): Likewise.
1725 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1727 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1728 left behind by error.
1730 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1732 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1733 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1735 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1737 * config/rs6000/xm-aix4.h: Remove this file.
1738 * config/rs6000/aix4.mh (XM_FILE): Delete.
1740 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1742 * config/rs6000/xm-rs6000.h: Remove this file.
1743 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1745 2004-09-03 Andrew Cagney <cagney@gnu.org>
1747 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1748 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1751 * mips-tdep.c (temp_saved_regs): Delete.
1752 (set_reg_offset): Replace saved_regs parameter with this_cache.
1753 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1754 (mips32_heuristic_proc_desc): Add this_cache parameter.
1755 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1756 (after_prologue): Pass a NULL this_cache.
1758 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1759 non-kernel trap prologues.
1761 * mips-tdep.c (find_proc_desc): Delete function.
1762 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1764 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1765 mips_insn32_frame_cache.
1767 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1768 Simplify as NEXT_FRAME is NULL.
1769 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1771 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1773 (mips_skip_prologue): Update.
1775 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1776 "cur_frame" parameter.
1777 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1778 (mips_insn32_frame_cache, find_proc_desc): Update
1780 * config/vax/nm-obsd.h: Delete file.
1781 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1782 * config/vax/nm-nbsd.h: Delete file.
1783 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1784 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1785 * config/sh/nm-nbsd.h: Delete file.
1786 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1787 * config/rs6000/nm-rs6000ly.h: Delete file.
1788 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1789 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1790 * config/powerpc/nm-obsd.h: Delete file.
1791 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1792 * config/powerpc/nm-nbsd.h: Delete file.
1793 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1794 * config/pa/nm-obsd.h: Delete file.
1795 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1796 * config/mips/nm-nbsd.h: Delete file.
1797 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1798 * config/m88k/nm-obsd.h: Delete file.
1799 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1800 * config/m68k/nm-nbsd.h: Delete file.
1801 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1802 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1803 * config/i386/nm-nbsd.h: Delete file.
1804 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1805 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1806 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1807 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1808 * config/i386/nm-i386lynx.h: Delete file.
1809 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1810 * config/arm/nm-nbsd.h: Delete file.
1811 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1812 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1814 * config/i386/tm-fbsd.h: Delete file.
1815 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1816 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1818 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1819 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1820 * config/rs6000/aix4.mt (TM_FILE): Set to
1821 config/rs6000/tm-rs6000.h.
1822 * config/powerpc/tm-ppc-aix.h: Delete file.
1823 * config/powerpc/aix.mt (TM_FILE): Set to
1824 config/rs6000/tm-rs6000.h.
1825 * config/m68k/tm-linux.h: Delete file.
1826 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1827 * config/i386/tm-linux64.h: Delete file.
1828 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1829 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1831 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1832 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1833 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1834 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1835 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1836 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1837 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1838 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1839 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1841 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1844 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1846 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1847 Minor reformatting. Some code factoring.
1849 2004-09-02 Andrew Cagney <cagney@gnu.org>
1851 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1852 * config/vax/tm-nbsd.h: Delete file.
1853 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1854 * config/sparc/tm-vxworks.h: Delete file.
1855 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1856 * config/sparc/tm-nbsd.h: Delete file.
1857 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1858 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1859 * config/sparc/tm-linux.h: Delete file.
1860 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1861 * config/s390/tm-linux.h: Delete file.
1862 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1863 * config/pa/tm-bsd.h: Delete file.
1864 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1865 * config/m68k/tm-obsd.h: Delete file.
1866 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1867 * config/m68k/tm-nbsd.h: Delete file.
1868 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1869 * config/i386/tm-vxworks.h: Delete file.
1870 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1871 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1872 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1873 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1874 * config/i386/tm-nbsd.h: Delete file.
1875 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1876 * config/i386/tm-i386lynx.h: Delete file.
1877 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1878 * config/cris/tm-cris.h: Delete file.
1880 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1881 * configure: Re-generate.
1882 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1883 * config/arm/tm-nbsd.h: Delete file.
1885 * config/powerpc/tm-ppcle-sim.h: Delete.
1886 * config/powerpc/tm-ppcle-eabi.h: Delete.
1887 * config/powerpc/tm-nbsd.h: Delete.
1888 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1889 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1892 * config/i386/nto.mh (NAT_FILE): Delete.
1893 * config/i386/nm-nto.h: Delete.
1895 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1896 * config/m68k/tm-os68k.h: Ditto.
1897 * config/m68k/tm-monitor.h: Ditto.
1898 * config/m68k/tm-cisco.h: Ditto.
1899 * config/m68k/st2000.mt (TM_FILE): Delete.
1900 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1901 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1902 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1903 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1905 * config/m68k/tm-st2000.h: Delete.
1906 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1907 * config/sparc/fbsd.mt (TM_FILE): Delete.
1908 * config/sparc/tm-fbsd.h: Delete.
1910 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1911 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1912 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1914 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1915 GDB_TM_FILE and GDB_XM_FILE.
1916 * gdbarch.c: Re-generate.
1917 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1918 quotes in macro definition.
1919 * configure.in: Re-generate.
1921 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1922 validating architecture methods.
1923 * gdbarch.c: Re-generate.
1925 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1926 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1927 GDB_MULTI_ARCH_PARTIAL.
1928 * gdbarch.h: Re-generate.
1930 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1931 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1932 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1933 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1934 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1935 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1936 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1937 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1938 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1939 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1940 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1941 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1943 2004-09-01 Andrew Cagney <cagney@gnu.org>
1945 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1946 and main_func_highpc.
1947 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1948 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1949 * nlmread.c (nlm_symfile_read): Update.
1951 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1953 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1954 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1955 (find_proc_desc): Remove dead code.
1957 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1959 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1961 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1963 * observer.sh: Add struct so_list declaration.
1964 * Makefile.in: Add dependencies on observer.h for solib.c and
1966 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1968 (_initialize_breakpoint): Register
1969 disable_breakpoints_in_unloaded_shlib as an observer of the
1970 "solib unloaded" observation event.
1971 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1972 call decode_line_1 so unfound breakpoint errors are silent.
1973 * solib.c (update_solib_list): When a solib is discovered to have
1974 been unloaded by the program, notify all observers of the
1975 "solib unloaded" observation event.
1977 2004-09-01 Andrew Cagney <cagney@gnu.org>
1979 * frame.c: Include "objfiles.h".
1980 (inside_main_func): New function.
1981 (get_prev_frame): Use new inside_main_func.
1982 * Makefile.in (frame.o): Update dependencies.
1983 * defs.h (inside_main_func): Delete declaration.
1984 * blockframe.c (inside_main_func): Delete function.
1986 2004-08-31 Jim Blandy <jimb@redhat.com>
1988 * dwarf2read.c (is_vtable_name): New function, based on logic from
1989 read_structure_type, but passing the correct length to strncmp,
1990 and using 'sizeof' instead of 'strlen'.
1991 (read_structure_type): Call it.
1993 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1995 * config/powerpc/aix.mh: Add comment.
1997 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1999 * MAINTAINERS: Add self to Write-After-Approval.
2001 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2003 * MAINTAINERS: Add self to Write-After-Approval.
2005 2004-08-30 Andrew Cagney <cagney@gnu.org>
2007 Fix PR breakpoints/1757.
2008 * infrun.c (struct execution_control_state): Replace
2009 remove_breakpoints_on_following_step with
2010 step_after_step_resume_breakpoint.
2011 (init_execution_control_state): Update.
2012 (handle_inferior_event): For signals, when stepping off a
2013 breakpoint, set step_after_step_resume_breakpoint. When
2014 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2015 (keep_going): Delete code handling
2016 remove_breakpoints_on_following_step.
2018 2004-08-29 David Lecomber <david@streamline-computing.com>
2021 * language.h (enum array_ordering): New enum.
2022 * language.h (struct language_defn): New la_array_ordering
2024 * language.c (unknown_language_defn, auto_language_defn)
2025 (local_language_defn): Ditto.
2026 * ada-lang.c (ada_language_defn): Ditto.
2027 * c-lang.c (c_language_defn, cplus_language_defn)
2028 (asm_language_defn, minimal_language_defn): Ditto.
2029 * f-lang.c (f_language_defn): Ditto.
2030 * jv-lang.c (java_language_defn): Ditto.
2031 * m2-lang.c (f_language_defn): Ditto.
2032 * objc-lang.c (objc_language_defn): Ditto.
2033 * p-lang.c (pascal_language_defn): Ditto.
2034 * scm-lang.c (scm_language_defn): Ditto.
2035 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2036 oriented large to small in type structure.
2037 * dwarf2read.c (read_array_order): New function.
2038 (read_array_type): Use read_array_order to check row/column
2041 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2043 * target.c (target_resize_to_sections): Check
2044 current_target.to_sections for an old value when updating.
2046 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2048 * procfs.c (dbx_link_bpt_addr): New static global variable.
2049 (dbx_link_shadow_contents): New static global variable.
2050 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2051 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2053 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2054 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2056 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2057 after the inferior has been forked.
2058 (remove_dbx_link_breakpoint): New function.
2059 (dbx_link_addr): New function.
2060 (insert_dbx_link_bpt_in_file): New function.
2061 (insert_dbx_link_bpt_in_region): New function.
2062 (insert_dbx_link_breakpoint): New function.
2063 (proc_trace_syscalls_1): New function, extracted from
2064 proc_trace_syscalls.
2065 (proc_trace_syscalls): Replace extract code by call to
2066 proc_trace_syscalls_1.
2067 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2070 2004-08-25 Jim Blandy <jimb@redhat.com>
2072 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2074 2004-08-25 Andrew Cagney <cagney@gnu.org>
2076 * infrun.c (struct execution_control_state): Delete field
2077 "stepping_through_sigtramp".
2078 (init_execution_control_state): Do not set same.
2079 (context_switch): Do not pass same to save_infrun_state and
2081 * gdbthread.h (struct thread_info): Delete field
2082 stepping_through_sigtramp.
2083 (save_infrun_state, load_infrun_state): Delete parameter
2084 stepping_through_sigtramp.
2085 * thread.c (load_infrun_state, save_infrun_state): Update.
2087 * infrun.c: Re-indent. Move expression operators to the beginning
2088 of the line. Remove long disabled #if 0 code.
2090 2004-08-24 Andrew Cagney <cagney@gnu.org>
2092 * doublest.h (floatformat_ieee_quad): Rename
2093 floatformat_ia64_quad.
2094 * doublest.c (floatformat_ieee_quad): Rename
2095 floatformat_ia64_quad.
2096 (_initialize_doublest): Update.
2098 2004-08-24 Jim Blandy <jimb@redhat.com>
2100 * dwarf2expr.h (struct dwarf_expr_context): New members
2101 'num_pieces' and 'pieces', for returning the result of an
2102 expression that uses DW_OP_piece.
2103 (struct dwarf_expr_piece): New struct type.
2104 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2106 (free_dwarf_expr_context): Free pieces, if any.
2107 (add_piece): New function.
2108 (execute_stack_op): Implement DW_OP_piece.
2109 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2110 expression is a list of pieces, print an error message.
2111 (dwarf2_loc_desc_needs_frame): If the expression yields
2112 pieces, and any piece is in a register, then we need a frame.
2114 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2115 the stack until we've decided what sort of result the evaluation
2116 has produced. Use separate variables, with more specific names.
2118 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2120 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2121 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2122 (arm_netbsd_init_abi_common): Register them.
2124 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2126 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2128 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2129 safe_frame_unwind_memory instead of target_read_memory.
2131 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2133 (fetch_register, store_register): Remove prototypes.
2134 (child_resume): Reorganize code and comments such that it is
2135 grouped a bit more logically.
2136 (attach): Explicitly compare errno against 0.
2137 (detach): Likewise. Use perror_with_name instead of
2139 * Makefile.in (infptrace.o): Update dependencies.
2141 * ia64-linux-nat.c: Update copyright year.
2142 (fetch_debug_register, store_debug_register)
2143 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2145 * config/ia64/nm-linux.h: Update copyright year.
2146 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2148 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2149 from CORE_ADDR to struct frame_info *. Use
2150 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2151 (amd64_linux_sigtramp_p): Adjust for changed signature of
2152 and64_linux_sigtramp_start
2154 * gdb_ptrace.h: GNU/Linux.
2156 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2159 * infptrace.c: Include "gdb_assert.h".
2160 (PTRACE_XFER_TYPE): Remove define.
2161 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2162 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2164 (fetch_inferior_registers, store_inferior_registers): Remove
2165 redundant culry braces. Tweak comment. s/regno/regnum.
2166 * Makefile.in (infptrace.o): Update dependencies.
2168 * configure.in: Change test for return type of ptrace to default
2169 to `long' instead of `int'.
2170 * configure: Regenerate.
2172 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2174 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2176 * configure.in: Check for ttrace function.
2177 * configure, config.in: Regenerate.
2179 * gdb_ptrace.h: New file.
2180 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2182 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2183 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2184 (attach): Don't define PT_ATTACH.
2185 (detach): Don't define PT_DETACH.
2186 * Makefile.in (gdb_ptrace_h): New variable.
2187 (infptrace.o): Update dependencies.
2189 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2191 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2192 instead of `int' if not already defined.
2193 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2195 * infptrace.c (call_ptrace): Revert change that replaced
2196 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2198 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2200 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2203 * linux-nat.c (kill_inferior): Add missing third and fourth
2204 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2206 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2209 * proc-why.c (proc_prettyfprint_why): Fix format string.
2211 * solib-osf.c (osf_current_sos): Remove unsused label.
2213 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2215 * configure, config.in: Regenerate.
2216 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2217 <ncurses/ncurses.h>.
2219 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2220 * config/nm-nbsd.h: Update copyright year.
2221 (PTRACE_ARG3_TYPE): Remove define.
2223 * sparc-nat.c (fetch_inferior_registers)
2224 (store_inferior_registers, sparc_xfer_wcookie):
2225 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2227 * alphabsd-nat.c (fetch_inferior_registers):
2228 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2230 * amd64bsd-nat.c (fetch_inferior_registers)
2231 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2233 * armnbsd-nat.c: Update copyright year.
2234 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2235 (store_register, store_regs, store_fp_register, store_fp_regs):
2236 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2237 * hppabsd-nat.c (fetch_inferior_registers)
2238 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2240 * i386bsd-nat.c (fetch_inferior_registers)
2241 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2242 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2243 * m68kbsd-nat.c (fetch_inferior_registers)
2244 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2246 * m88kbsd-nat.c (fetch_inferior_registers)
2247 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2249 * mipsnbsd-nat.c: Update copyright year.
2250 (fetch_inferior_registers, store_inferior_registers):
2251 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2252 * ns32knbsd-nat.c: Update copyright year.
2253 (fetch_inferior_registers, store_inferior_registers):
2254 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2255 * ppcnbsd-nat.c (fetch_inferior_registers):
2256 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2258 * ppcobsd-nat.c (fetch_inferior_registers):
2259 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2261 * shnbsd-nat.c: Update copyright year.
2262 (fetch_inferior_registers, store_inferior_registers):
2263 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2264 * vaxbsd-nat.c (fetch_inferior_registers)
2265 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2268 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2270 * infptrace.c (call_ptrace, child_resume, attach, detach)
2271 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2272 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2273 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2276 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2278 * defs.h: Remove out-of-date comment.
2279 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2280 [!GETENV_PROVIDED] (getenv): Remove prototype.
2282 * standalone.c: Remove file.
2283 * Makefile.in (standalone.o): Remove dependency.
2285 * i386-linux-nat.c (dummy_sse_values): Remove function and
2287 (i386_linux_dr_get): Fix typo in comment.
2288 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2290 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2292 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2294 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2297 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2299 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2300 parenthesis in definition.
2301 * configure: Regenerated.
2303 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2305 * PROBLEMS: Mention build/1411.
2307 2004-08-09 Robert Millan <robertmh@gnu.org>
2309 Committed by Nathanael Nerode.
2310 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2311 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2313 2004-08-12 Andrew Cagney <cagney@gnu.org>
2315 * NEWS: Mention fixes in GDB 6.2.1.
2316 * PROBLEMS: Remove mention of mips-irix.
2318 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2320 * config/powerpc/xm-aix.h: Delete.
2321 * config/powerpc/aix.mh (MH_FILE): Remove.
2322 * config/powerpc/aix432.mh (MH_FILE): Remove.
2324 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2326 * config/powerpc/aix.mh: Remove obsolete comment.
2327 * config/powerpc/aix432.mh: Likewise.
2329 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2331 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2333 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2335 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2336 this file is now empty.
2337 * config/xm-aix4.h: Remove, this file is no longer included
2340 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2342 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2343 that file is now empty.
2344 (termdef): Remove prototype, function no longer used.
2346 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2348 * doc/gdbint.texinfo (Host Definition): Remove documentation
2349 for USE_O_NOCTTY, no longer used.
2350 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2351 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2353 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2355 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2356 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2357 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2359 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2361 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2362 instead of FIVE_ARG_PTRACE.
2364 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2365 (new_tty): Use O_NOCTTY unconditionally.
2367 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2369 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2370 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2373 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2375 * xcoff_symfile_finish: Replace last call to xmfree by call
2378 2004-08-10 Andrew Cagney <cagney@gnu.org>
2380 * main.c (captured_main): Delete call to init_malloc.
2381 * defs.h (init_malloc): Delete declaration.
2382 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2383 (init_malloc): Delete functions.
2385 * defs.h (xmfree): Delete.
2386 * utils.c (xmfree): Delete function.
2387 (xfree): Inline calls to xmfree and mfree.
2388 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2389 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2390 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2391 * somread.c (som_symfile_finish): Ditto.
2392 * objfiles.c (allocate_objfile, free_objfile):
2393 * nlmread.c (nlm_symfile_finish): Ditto.
2394 * hpread.c (hpread_symfile_finish): Ditto.
2395 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2396 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2397 * coffread.c (coff_symfile_finish): Ditto.
2399 * defs.h (xmcalloc): Delete declaration.
2400 * utils.c (xmcalloc): Delete.
2401 (xcalloc): Inline calls to xmcalloc and mcalloc.
2402 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2404 * symtab.c (create_demangled_names_hash): Ditto.
2406 * defs.h (xmrealloc): Delete.
2407 * utils.c (xmrealloc): Delete.
2408 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2409 * symmisc.c (extend_psymbol_list): Use xrealloc.
2410 * source.c (find_source_lines): Ditto.
2411 * hpread.c (hpread_lookup_type): Ditto.
2412 * dbxread.c (add_bincl_to_list): Ditto.
2414 * utils.c (xmmalloc): Delete.
2415 (xmalloc): Inline xmmalloc and mmalloc calls.
2416 (msavestring): Use xmalloc.
2417 * defs.h (xmmalloc): Delete declaration.
2418 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2420 * symmisc.c (extend_psymbol_list): Ditto.
2421 * symfile.c (init_psymbol_list): Ditto.
2422 * source.c (find_source_lines): Ditto.
2423 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2424 * elfread.c (elf_symtab_read): Ditto.
2425 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2426 * coffread.c (coff_symfile_init): Ditto.
2428 2004-08-10 David Carlton <carlton@bactrian.org>
2430 * MAINTAINERS: Remove David Carlton from c++ testsuite
2433 2004-08-10 Jerome Guitton <guitton@gnat.com>
2435 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2436 print a line feed before the prompt.
2438 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2440 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2442 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2444 General cleanup of the AIX xm include file:
2445 * config/xm-aix4.h (fd_set): Remove undefine.
2446 Remove include of <sys/select.h>.
2447 (HAVE_TERMIO): Remove define.
2449 (NULL): Remove redefine.
2450 (alloca): Remove #pragma.
2451 (vfork): Remove define.
2453 (SIGWINCH_HANDLER): Remove.
2454 (SIGWINCH_HANDLER_BODY): Remove.
2456 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2458 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2459 GDB_OSABI_OPENBSD_ELF.
2461 2004-08-07 Robert Millan <robertmh@gnu.org>
2463 * bsd-kvm.c: Check for nlist.h before including it.
2465 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2467 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2468 sigcontext' offset consistency checks for ancient BSD.
2470 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2472 * configure.in: Check for <sys/types.h>. Check return and
2473 argument types of ptrace.
2474 * configure, config.in: Regenerate.
2476 2004-08-09 Jim Blandy <jimb@redhat.com>
2478 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2479 rs6000_register_sim_regno): Doc fixes.
2481 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2483 * mips-tdep.c: Include "floatformat.h".
2484 (n32n64_floatformat_always_valid): New function.
2485 (floatformat_n32n64_long_double_big): New constant.
2486 (mips_gdbarch_init): Set size and format of long double
2487 for N32 and N64 ABIs.
2488 * Makefile.in (mips-tdep.o): Update dependencies.
2490 2004-08-08 Andrew Cagney <cagney@gnu.org>
2492 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2493 print. Improve script's error messages.
2494 * gdbarch.h: Re-generate.
2496 * gdbarch.sh (pformat): New function.
2497 (float_format, double_format, long_double_format): List with bit
2498 members. Use pformat when printing.
2499 * gdbarch.c, gdbarch.h: Re-generate.
2501 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2503 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2504 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2505 (ppcnbsd_supply_pcb): New function.
2506 (_initialize_ppcnbsd_nat): New prototype and function.
2507 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2508 (LOADLIBES): New variable.
2509 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2511 2004-08-08 Andrew Cagney <cagney@gnu.org>
2513 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2514 (builtin_type_ieee_double, builtin_type_ia64_quad)
2515 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2516 BE/LE floating-point types.
2517 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2518 (builtin_type_ieee_double, builtin_type_ia64_quad)
2519 (builtin_type_ia64_spill): Declare.
2520 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2521 (floatformat_ieee_double, floatformat_arm_ext)
2522 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2523 of LE/BE floatformats.
2524 * doublest.h: (struct floatformat, floatformat_ieee_single)
2525 (floatformat_ieee_double, floatformat_arm_ext)
2526 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2528 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2530 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2532 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2533 instead of regcache_raw_supply when storing the registers.
2535 * i386gnu-nat.c: Update copyright year.
2536 (gnu_store_registers): Don't use deprecated_registers and
2537 deprecated_registers_valid. Use regcache_valid_p and
2538 regcache_raw_supply instead.
2540 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2543 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2544 variables. Incapitalized "process".
2546 * configure.in: Add cursesX to the list of possible curses libs.
2547 Add cursesX.h to the list of possible curses headers.
2548 * configure, config.in: Regenerate.
2550 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2552 * configure.in: Test for struct lwp in <sys/lwp.h>.
2553 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2554 the offset of l_addr in struct lwp.
2556 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2558 * bsd-kvm.c: Include "gdbcore.h"
2559 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2561 2004-08-07 Andrew Cagney <cagney@gnu.org>
2563 * gdbtypes.c (build_flt, build_complex): New functions.
2564 (gdbtypes_post_init): Use.
2566 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2568 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2569 through to builtin_type_uint128.
2571 * c-exp.y: Use builtin_type function to obtain builtin types.
2573 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2575 * gdbtypes.c (gdbtypes_post_init): Update.
2576 (build_gdbtypes): Move initialization of builtin_type_int0
2577 through to builtin_type_uint128 from here ...
2578 (_initialize_gdbtypes): ... to here.
2579 * d10v-tdep.c (d10v_register_type): Update.
2581 * doublest.c: Update copyright.
2582 (floatformat_from_length): Call error when floatformat is NULL.
2583 (extract_floating_by_length): Remove NULL fmt check.
2584 (store_floating_by_length): Ditto.
2586 2004-08-07 Andrew Cagney <cagney@gnu.org>
2588 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2589 that the register is valid.
2591 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2593 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2594 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2595 struct frame_info *. Use safe_frame_unwind_memory instead of
2596 deprecated_read_memory_nobpt.
2597 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2598 changed signature of i386_linux_sigtramp_start and
2599 i386_linux_rt_sigtramp_start.
2601 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2602 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2603 instead of deprecated_read_memory_nobpt.
2604 (i386nbsd_sigtramp_p): Adjust for changed signature of
2605 i386nbsd_sigtramp_offset.
2607 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2608 safe_frame_unwind_memory instead of target_read_memory.
2610 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2612 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2613 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2614 (_initialize_kernel_u_addr): Remove prototype and function.
2615 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2617 * xcoffread.c: Likewise.
2619 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2621 * vax-nat.c: New file.
2622 * vaxbsd-nat.c: Tweak comment.
2623 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2625 (vax-nat.o): New dependency.
2626 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2627 (vax-*-ultrix2*): Remove.
2628 * config/vax/vax.mh: New file.
2629 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2630 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2631 (vax_register_u_addr): New prototype.
2632 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2633 * config/vax/vaxult2.mh: Remove file.
2634 * config/vax/vaxult.mh: Remove file.
2635 * config/vax/vaxbsd.mh: Remove file.
2636 * config/vax/vax.mt (TM_FILE): Remove.
2637 * config/vax/tm-vaxbsd.h: Remove file.
2639 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2641 * aix-thread.c (get_signaled_thread): New function.
2642 (iter_trap): Delete, no longer used.
2643 (iter_tid): New function.
2644 (pd_update): Find the thread that received the SIGTRAP signal
2645 by first locating the kernel thread, and then finding its
2648 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2650 * lin-lwp.c (child_wait): Continue inferior after processing
2651 PTRACE_EVENT_CLONE event.
2653 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2655 * MAINTAINERS: Add self to Write-After-Approval.
2657 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2659 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2660 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2662 2004-08-05 Andrew Cagney <cagney@gnu.org>
2664 * config/xm-sysv4.h: Delete file.
2665 * config/mips/xm-irix5.h: Delete file.
2666 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2667 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2668 * config/ia64/xm-aix.h: Delete file.
2669 * config/ia64/aix.mh (XM_FILE): Delete.
2670 * config/pa/xm-hppah.h: Delete file.
2671 * config/pa/hpux11w.mh (XM_FILE): Delete.
2672 * config/pa/hpux11.mh (XM_FILE): Delete.
2673 * config/pa/hpux1020.mh (XM_FILE): Delete.
2674 * config/pa/hppahpux.mh (XM_FILE): Delete.
2676 * config/alpha/xm-alphalinux.h: Delete file.
2677 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2678 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2679 * config/alpha/xm-alphaosf.h: Delete file.
2680 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2681 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2682 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2683 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2685 * config/i386/xm-i386v.h: Delete file.
2686 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2687 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2688 * config/i386/xm-i386sco.h: Delete file.
2689 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2690 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2691 * config/i386/xm-i386v4.h: Delete file.
2692 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2693 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2694 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2695 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2697 * config/vax/xm-vax.h: Delete file.
2698 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2699 * config/vax/xm-vaxult2.h: Delete file.
2700 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2701 * config/vax/vaxult2.mh (XM_FILE): Delete.
2702 * config/vax/xm-vaxult.h: Delete file.
2703 * config/vax/vaxult.mh (XM_FILE): Delete.
2704 * config/vax/xm-vaxbsd.h: Delete file.
2705 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2707 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2708 * gdbarch.h, gdbarch.c: Re-generate.
2709 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2710 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2711 * frame.h: Delete deprecated_read_fp from comments.
2712 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2713 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2715 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2717 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2718 trampoline in OpenBSD 3.5-current.
2720 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2723 * Makefile.in: Remove embedded page breaks.
2725 2004-08-04 Jim Blandy <jimb@redhat.com>
2727 * regcache.c (regcache_raw_read): Assert that, after calling
2728 target_fetch_registers, the register we're reading is cached.
2730 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2731 a call to 'internal_error', with a more helpful error message.
2732 * rs6000-tdep.c (e500_pseudo_register_read,
2733 e500_pseudo_register_write, rs6000_store_return_value): Same.
2735 2004-08-04 Andrew Cagney <cagney@gnu.org>
2737 * Makefile.in: Update dependencies.
2739 2004-08-04 Jim Blandy <jimb@redhat.com>
2741 Change the layout of the PowerPC E500 raw register cache to allow
2742 the lower 32-bit halves of the GPRS to be their own raw registers,
2743 not pseudoregisters.
2744 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2745 add ppc_ev0_upper_regnum flag.
2746 * rs6000-tdep.c: #include "reggroups.h".
2747 (spe_register_p): Recognize the ev upper half registers as SPE
2749 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2751 (e500_move_ev_register): New function.
2752 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2753 vector registers are the pseudo-registers now, formed by splicing
2754 together the gprs and the upper-half registers.
2755 (e500_register_reggroup_p): New function.
2757 (P8, A4): New macro.
2758 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2759 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2761 (registers_e500): Rearrange register set so that the raw register
2762 set contains 32-bit GPRs and upper-half registers, and the SPE
2763 vector registers become pseudo-registers.
2764 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2765 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2766 register numbers are now the same for the E500 as they are for
2767 other PowerPC variants. Register e500_register_reggroup_p as the
2768 register group function for the E500.
2769 * Makefile.in (rs6000-tdep.o): Update dependencies.
2771 Adapt PPC E500 native support to the new raw regcache layout.
2772 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2773 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2774 (fetch_spe_register, store_spe_register): Handle fetching/storing
2775 all the SPE registers at once, if regno == -1. These now take
2776 over the job of fetch_spe_registers and store_spe_registers.
2777 (fetch_spe_registers, store_spe_registers): Deleted.
2778 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2779 unconditionally; they're always raw. Fetch/store SPE upper half
2780 registers, if present, instead of ev registers.
2781 (fetch_register, store_register): Remove sanity checks: gprs are
2782 never pseudo-registers now, so we never need to even mention any
2783 registers that are ever pseudoregisters.
2785 Use a fixed register numbering when communicating with the PowerPC
2787 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2788 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2789 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2791 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2792 init_sim_regno_table.
2793 * Makefile.in (gdb_sim_ppc_h): New variable.
2794 (rs6000-tdep.o): Update dependencies.
2796 2004-08-02 Andrew Cagney <cagney@gnu.org>
2798 * cris-tdep.c (cris_register_size): Restore function, still used
2801 * gdbarch.sh (deprecated_target_read_fp)
2802 (deprecated_frame_locals_address, deprecated_frame_args_address)
2803 (deprecated_frame_chain_valid, deprecated_frame_chain)
2804 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2805 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2806 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2807 * gdbarch.h, gdbarch.c: Re-generate.
2808 * regcache.c (deprecated_read_fp): Do not call
2809 DEPRECATED_TARGET_READ_FP_P.
2810 * infcmd.c (default_print_registers_info): Do not call
2811 DEPRECATED_DO_REGISTERS_INFO.
2812 * frame-base.c (default_frame_locals_address): Do not call
2813 DEPRECATED_FRAME_LOCALS_ADDRESS.
2814 (default_frame_args_address): Do not call
2815 DEPRECATED_FRAME_ARGS_ADDRESS.
2817 * gdbarch.sh (deprecated_register_raw_size)
2818 (deprecated_register_virtual_size:int): Delete.
2819 * gdbarch.h, gdbarch.c: Re-generate.
2820 * cris-tdep.c (cris_register_size): Delete.
2821 (cris_gdbarch_init): Update.
2822 * alpha-tdep.c (alpha_register_raw_size)
2823 (alpha_register_virtual_size): Delete.
2824 (alpha_gdbarch_init): Update.
2826 * gdbarch.sh (deprecated_register_virtual_type)
2827 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2828 (deprecated_dummy_write_sp): Delete.
2829 * gdbarch.h, gdbarch.c: Re-generate.
2831 * gdbarch.sh (deprecated_register_bytes): Delete.
2832 * gdbarch.h, gdbarch.c: Re-generate.
2833 * regcache.c (deprecated_register_bytes): New function.
2834 * regcache.h (deprecated_register_bytes): Declare.
2835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2836 * v850-tdep.c (v850_gdbarch_init): Update.
2837 * sh64-tdep.c (sh64_gdbarch_init): Update.
2838 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2839 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2840 * mcore-tdep.c (mcore_gdbarch_init): Update.
2841 * cris-tdep.c (cris_gdbarch_init): Update.
2842 * arm-tdep.c (arm_gdbarch_init): Update.
2843 * remote.c (init_remote_state): Update.
2844 * remote-vx.c (vx_prepare_to_store): Update.
2845 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2846 * irix5-nat.c (fetch_core_registers): Update.
2847 * cris-tdep.c (cris_register_bytes_ok): Update.
2848 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2850 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2851 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2852 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2853 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2854 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2855 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2856 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2857 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2858 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2859 with mips_insn16 and mips_insn32.
2861 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2862 * rs6000-tdep.c (rs6000_push_dummy_call)
2863 (rs6000_extract_return_value): Use register_size.
2864 * xstormy16-tdep.c (xstormy16_get_saved_register)
2865 (xstormy16_extract_return_value): Ditto.
2866 * valops.c (value_assign): Ditto.
2867 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2868 * v850-tdep.c (v850_extract_return_value): Ditto.
2869 * tracepoint.c (collect_symbol): Ditto.
2870 * target.c (debug_print_register): Ditto.
2871 * stack.c (frame_info): Ditto.
2872 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2873 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2874 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2875 (store_register_using_P): Ditto.
2876 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2877 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2878 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2879 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2880 * regcache.c (deprecated_read_register_bytes)
2881 (deprecated_write_register_bytes, read_register)
2882 (write_register): Ditto.
2883 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2884 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2885 * monitor.c (monitor_supply_register, monitor_fetch_register)
2886 (monitor_store_register): Ditto.
2887 * mn10300-tdep.c (mn10300_pop_frame_regular)
2888 (mn10300_print_register): Ditto.
2889 * mipsv4-nat.c (fill_fpregset): Ditto.
2890 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2891 (mips64_fill_fpregset): Ditto.
2892 * mi/mi-main.c (register_changed_p, get_register)
2893 (mi_cmd_data_write_register_values): Ditto.
2894 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2895 * irix5-nat.c (fill_gregset, fetch_core_registers):
2896 * infrun.c (write_inferior_status_register): Ditto.
2897 * infptrace.c (fetch_register, store_register): Ditto.
2898 * infcmd.c (default_print_registers_info): Ditto.
2899 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2900 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2901 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2902 * hpux-thread.c (hpux_thread_fetch_registers)
2903 (hpux_thread_store_registers): Ditto.
2904 * hppah-nat.c (store_inferior_registers, fetch_register):
2905 * findvar.c (value_from_register): Ditto.
2906 * dve3900-rom.c (fetch_bitmapped_register):
2907 * cris-tdep.c (cris_gdbarch_init): Ditto.
2908 * alpha-tdep.h: Ditto.
2909 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2911 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2912 DEPRECATED_REGISTER_RAW_SIZE from comments.
2913 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2914 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2915 DEPRECATED_REGISTER_RAW_SIZE.
2916 * findvar.c (value_of_register): Simplify by assuming that the
2917 registers raw and virtual sizes are identical.
2918 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2920 * arch-utils.c (generic_register_size): Simplify by assuming
2923 * regcache.c (legacy_read_register_gen, real_register)
2924 (legacy_write_register_gen): Delete, not used.
2926 * regcache.c (struct regcache_descr): Delete legacy_p.
2927 (init_legacy_regcache_descr): Delete function.
2928 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2929 Do not use deprecated register functions.
2930 (regcache_raw_read, deprecated_write_register_gen):
2931 (deprecated_read_register_gen, regcache_raw_write): Delete code
2932 predicated on legacy_p.
2933 (register_size): Delete check against register raw size.
2935 * cris-tdep.c (cris_register_type): Replace
2936 cris_register_virtual_type.
2937 (cris_gdbarch_init): Update, set register_type.
2939 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2940 * gdbarch.h, gdbarch.c: Re-generate.
2941 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2942 (arm_gdbarch_init) Do not set frameless function invocation.
2943 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2944 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2945 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2946 (frv_gdbarch_init): Do not set frameless function invocation.
2947 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2948 * sh-tdep.c (sh_gdbarch_init): Ditto.
2949 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2950 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2951 * avr-tdep.c (avr_gdbarch_init): Ditto.
2953 * blockframe.c (legacy_frame_chain_valid): Delete function.
2955 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2956 and pc. Update comments.
2957 (pc_in_dummy_frame): Delete function.
2958 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2960 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2961 call_hi, top and pc, use the id.
2962 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2964 * dummy-frame.c: Include "gdb_string.h".
2965 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2966 (generic_save_dummy_frame_tos): Delete.
2967 (dummy_frame_push): New function, replaces above.
2968 * dummy-frame.h: Update copyright.
2969 (dummy_frame_push): Declare.
2970 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2971 (generic_save_call_dummy_addr): Delete declarations.
2972 * infcall.c: Include "dummy-frame.h".
2973 (call_function_by_hand): Add locals caller_regcache,
2974 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2975 with call to frame_save_as_regcache plus cleanup. Delete calls to
2976 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2977 Move clear_proceed_status to just before the resume, add call to
2978 dummy_frame_push (discard cleanup).
2979 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2980 (dummy-frame.o): Add $(gdb_string_h).
2982 2004-08-01 Andrew Cagney <cagney@gnu.org>
2984 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2985 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2986 * dummy-frame.c (find_dummy_frame): Delete.
2987 (struct dummy_frame_cache, dummy_frame_sniffer)
2988 (dummy_frame_prev_register, dummy_frame_this_id)
2989 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2990 frame unwinder using a dummy_frame_cache.
2992 2004-08-01 Andrew Cagney <cagney@gnu.org>
2994 * frame.h (frame_save_as_regcache): Declare.
2995 * frame.c (frame_save_as_regcache): New function.
2996 (do_frame_read_register): Replace do_frame_unwind_register.
2997 (frame_pop): Use frame_save_as_regcache.
2998 * dummy-frame.c (generic_push_dummy_frame): Use
2999 frame_save_as_regcache.
3001 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3003 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3004 file as included until we record the first line in the linetable.
3006 2004-08-01 Andrew Cagney <cagney@gnu.org>
3008 * frame.h (deprecated_pop_dummy_frame)
3009 (deprecated_read_register_dummy)
3010 (deprecated_generic_find_dummy_frame): Delete.
3011 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3012 (deprecated_read_register_dummy)
3013 (deprecated_find_dummy_frame_regcache)
3014 (discard_innermost_dummy)
3015 (deprecated_pop_dummy_frame): Delete.
3016 (dummy_frame_this_id): Simplify.
3017 (struct dummy_frame): Delete "fp" and "sp".
3018 (find_dummy_frame): Simplify.
3019 (generic_push_dummy_frame): Do not set "fp" or "sp".
3020 (fprint_dummy_frames): Do not print "fp" and "sp"
3022 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3024 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3025 (struct i386_insn): New structure.
3026 (i386_match_insn): New function.
3027 (i386_frame_setup_skip_insns): New variable.
3028 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3029 array i386_frame_setup_insns of instructions that should be
3030 skipped inside the frame setup sequence.
3032 2004-08-01 Andrew Cagney <cagney@gnu.org>
3034 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3035 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3036 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3037 * stack.c (frame_info): Delete references to
3038 DEPRECATED_FRAME_INIT_SAVED_REGS and
3039 deprecated_get_frame_saved_regs.
3040 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3041 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3042 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3043 (frame_unwind_register_signed)
3044 (frame_unwind_register_unsigned)
3045 (frame_unwind_unsigned_register): Use register_size.
3046 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3047 (deprecated_frame_xmalloc_with_cleanup)
3048 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3049 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3051 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3052 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3053 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3054 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3056 * infcall.c (call_function_by_hand): Do not use
3057 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3058 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3059 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3060 DEPRECATED_STACK_ALIGN.
3062 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3064 Committed by Andrew Cagney.
3065 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3067 2004-08-01 Andrew Cagney <cagney@gnu.org>
3069 * mips-tdep.c (mips16_frame_cache)
3070 (mips16_frame_this_id, mips16_frame_prev_register)
3071 (mips16_frame_unwind, mips16_frame_sniffer)
3072 (mips16_frame_base_address, mips16_frame_base)
3073 (mips16_frame_base_sniffer, mips32_frame_cache)
3074 (mips32_frame_this_id, mips32_frame_prev_register)
3075 (mips32_frame_unwind, mips32_frame_sniffer)
3076 (mips32_frame_base_address, mips32_frame_base)
3077 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3078 separate heuristic mips16 and mips32 unwinders.
3079 (mips_stub_frame_cache, mips_stub_frame_this_id)
3080 (mips_stub_frame_prev_register)
3081 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3082 (mips_stub_frame_base_address, mips_stub_frame_base)
3083 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3084 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3085 match true mdebug frames.
3086 (non_heuristic_proc_desc): Add forward declaration.
3088 2004-08-01 Andrew Cagney <cagney@gnu.org>
3090 * config/mips/tm-irix6.h: Delete file.
3091 * config/mips/tm-irix5.h: Delete file.
3092 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3093 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3095 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3096 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3097 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3098 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3099 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3100 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3101 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3102 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3103 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3104 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3105 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3106 (TARGET_SIGNAL_RAW_VALUES): Delete.
3107 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3109 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3110 (TARGET_HW_WATCH_LIMIT): Delete.
3111 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3112 * minimon.h: Delete file.
3114 * trad-frame.c (trad_frame_get_this_base)
3115 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3117 * trad-frame.h (trad_frame_set_this_base)
3118 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3120 2004-07-31 Andrew Cagney <cagney@gnu.org>
3122 * trad-frame.c (trad_frame_get_prev_register): Rename
3123 trad_frame_get_prev_register.
3124 * vax-tdep.c (vax_frame_prev_register): Update.
3125 * trad-frame.h: Update.
3126 * trad-frame.c (trad_frame_get_register): Update.
3127 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3128 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3130 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3131 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3133 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3135 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3137 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3139 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3141 * s390-tdep.c (s390_frame_prev_register)
3142 (s390_stub_frame_prev_register)
3143 (s390_sigtramp_frame_prev_register): Update.
3144 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3145 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3146 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3147 * m88k-tdep.c (m88k_frame_prev_register)
3148 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3149 * m32r-tdep.c (m32r_frame_prev_register): Update.
3150 * hppa-tdep.c (hppa_frame_prev_register_helper)
3151 * frv-tdep.c (frv_frame_prev_register): Update.
3152 * d10v-tdep.c (d10v_frame_prev_register): Update.
3153 * cris-tdep.c (cris_frame_prev_register): Update.
3154 * avr-tdep.c (avr_frame_prev_register): Update.
3155 * arm-tdep.c (arm_prologue_prev_register)
3156 (arm_sigtramp_prev_register): Update.
3158 2004-07-31 Andrew Cagney <cagney@gnu.org>
3160 * frame.h (legacy_saved_regs_unwind)
3161 (legacy_frame_chain_valid, legacy_frame_p)
3162 (enum frame_type): Delete UNKNOWN_FRAME.
3163 * dummy-frame.c (dummy_frame_this_id): Simplify.
3164 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3165 * frame.c (struct frame_info): Delete the field "type".
3166 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3167 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3168 (legacy_saved_regs_unwind, legacy_frame_p)
3169 (frame_type_from_pc): Delete.
3170 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3171 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3173 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3175 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3178 * mips-nat.c: Remove file.
3179 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3180 (mips-nat.o): Remove dependency.
3182 * infptrace.c: Update copyright year.
3183 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3184 explicitly setting the buffer to all zeroes.
3186 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3187 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3189 2004-07-30 Andrew Cagney <cagney@gnu.org>
3191 * GDB 6.2 released from gdb_6_2-branch.
3193 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3195 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3197 * exec.c (exec_file_attach):
3198 * nto-tdep.c (nto_find_and_open_solib):
3199 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3200 * solib.c (solib_open):
3201 * somsolib.c (som_solib_sizeof_symbol_table):
3202 * source.c (is_regular_file, openp, open_source_file):
3203 * symfile.c (symfile_bfd_open):
3204 * wince.c (upload_to_device): Differentiate between the search for
3205 binary and source files.
3207 2004-07-30 Andrew Cagney <cagney@gnu.org>
3209 * complaints.c (_initialize_complaints): Pass NULL to
3210 add_setshow_zinteger_cmd for help_doc.
3211 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3213 2004-07-30 Andrew Cagney <cagney@gnu.org>
3216 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3217 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3218 $(PACKAGE).pot and update-po.
3219 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3220 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3221 (update-po): New rules.
3222 (localedir): Define using autoconf.
3223 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3224 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3225 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3226 * configure.in: Generate CATALOGS and LINGUAS from contents of
3227 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3228 * configure: Re-generate.
3229 * po/gdbtext: New file
3231 2004-07-30 Jerome Guitton <guitton@gnat.com>
3233 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3236 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3238 * dwarf2read.c (read_file_scope): Set producer if attribute
3240 (struct dwarf2_cu): Added new member producer.
3242 2004-07-30 Jerome Guitton <guitton@gnat.com>
3244 * inflow.c (kill_command): release file handles in BFD.
3245 * exec.c (exec_file_attach): Ditto.
3246 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3248 2004-07-29 Andrew Cagney <cagney@gnu.org>
3250 * PROBLEMS (mips-irix): Note that it is broken.
3252 2004-07-29 Andrew Cagney <cagney@gnu.org>
3254 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3255 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3257 * config/xm-nbsd.h: Delete file.
3258 * config/arm/xm-nbsd.h: Delete file.
3259 * config/i386/xm-nbsd.h: Delete file.
3260 * config/ns32k/xm-nbsd.h: Delete file.
3261 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3262 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3263 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3264 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3265 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3267 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3268 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3269 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3270 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3271 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3272 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3274 * config/powerpc/xm-linux.h: Delete empty file.
3275 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3276 * config/powerpc/linux.mh (XM_FILE): Delete.
3277 * config/m68k/xm-linux.h: Delete empty file.
3278 * config/m68k/linux.mh (XM_FILE): Delete.
3279 * config/ia64/xm-linux.h: Delete empty file.
3280 * config/ia64/linux.mh (XM_FILE): Delete.
3281 * config/arm/xm-linux.h: Delete empty file.
3282 * config/arm/linux.mh (XM_FILE): Delete.
3284 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3285 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3286 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3287 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3288 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3289 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3290 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3291 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3293 * config/m68k/xm-m68k.h: Delete file.
3294 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3296 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3297 * config/pa/xm-linux.h: Delete empty file.
3298 * config/pa/linux.mh (XM_FILE): Delete.
3299 * config/i386/xm-i386.h: Delete empty file.
3300 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3302 * config/i386/obsdaout.mh (XM_FILE): Delete.
3303 * config/i386/obsd64.mh (XM_FILE): Delete.
3304 * config/i386/fbsd64.mh (XM_FILE): Delete.
3305 * config/i386/nto.mh (XM_FILE): Delete.
3306 * config/i386/obsd.mh (XM_FILE): Delete.
3307 * config/i386/linux64.mh (XM_FILE): Delete.
3308 * config/i386/linux.mh (XM_FILE): Delete.
3309 * config/i386/i386sol2.mh (XM_FILE): Delete.
3310 * config/i386/i386gnu.mh (XM_FILE): Delete.
3311 * config/i386/fbsd.mh (XM_FILE): Delete.
3312 * config/i386/nbsd64.mh (XM_FILE): Delete.
3314 2004-07-29 Andrew Cagney <cagney@gnu.org>
3316 * config/pa/xm-linux.h: Do not include "floatformat.h".
3317 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3318 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3319 * config/i386/xm-i386.h: Do not include "floatformat.h".
3320 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3321 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3322 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3323 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3324 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3325 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3326 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3327 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3328 * configure, config.in: Regenerate.
3329 * configure.host (gdb_host_float_format, gdb_host_double_format)
3330 (gdb_host_long_double_format): Set according to the host.
3332 2004-07-29 Andrew Cagney <cagney@gnu.org>
3334 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3336 2004-07-28 Andrew Cagney <cagney@gnu.org>
3338 * PROBLEMS: Mention threads/1650.
3339 * NEWS: Mention the NPTL fix.
3341 2004-07-28 Andrew Cagney <cagney@gnu.org>
3343 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3344 (add_setshow_cmd_full): Make static.
3345 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3346 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3347 * cli/cli-decode.c (add_setshow_filename_cmd)
3348 (add_setshow_string_cmd): New functions.
3349 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3350 * mips-tdep.c (_initialize_mips_tdep): Update.
3351 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3352 * cli/cli-logging.c (_initialize_cli_logging): Update.
3353 * complaints.c (_initialize_complaints): Update.
3354 * remote.c (_initialize_remote): Update.
3356 2004-07-28 Andrew Cagney <cagney@gnu.org>
3358 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3359 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3360 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3361 print parameters. Make string parameters constant.
3362 * command.h: Update. Update copyright.
3363 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3364 * observer.c (_initialize_observer): Ditto.
3365 * frame.c (_initialize_frame): Ditto.
3366 * complaints.c (_initialize_complaints): Ditto.
3367 * maint.c (_initialize_maint_cmds): Ditto.
3368 * target.c (initialize_targets): Ditto.
3369 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3370 * infcall.c (_initialize_infcall): Ditto.
3371 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3372 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3373 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3374 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3375 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3377 2004-07-28 Andrew Cagney <cagney@gnu.org>
3379 * gdbtypes.c (lookup_primitive_typename): Delete function.
3380 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3381 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3382 * gdbtypes.c (lookup_typename): Ditto.
3383 * f-exp.y (yylex): Ditto.
3384 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3386 * scm-lang.c (c_builtin_types): Delete extern declaration.
3387 (scm_language_defn): Replace
3388 string_char_type and primitive_type_vector with
3389 la_language_arch_info.
3390 * jv-lang.c (java_language_defn): Replace
3391 string_char_type and primitive_type_vector with
3392 la_language_arch_info.
3393 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3394 c_builtin_types in comment.
3395 * c-lang.h (struct language_arch_info): Declare opaque.
3396 (c_language_arch_info): Declare.
3397 (c_builtin_types): Delete declaration.
3398 * c-lang.c (c_language_arch_info): Set string_char_type to
3399 builtin_char, not builtin_true_char. Make global.
3400 (c_builtin_types): Delete array.
3401 (asm_language_defn, minimal_language_defn): Replace
3402 string_char_type and primitive_type_vector with
3403 la_language_arch_info.
3405 2004-07-28 Andrew Cagney <cagney@gnu.org>
3407 * gdbtypes.h (struct builtin_type): Rename true_char to
3409 * gdbtypes.c (gdbtypes_post_init): Update.
3410 * c-lang.c (arch_info): New function.
3411 (enum c_primitive_types): New enum.
3412 (c_language_defn): Instead of string_char_type and
3413 primitive_type_vector set la_language_arch_info.
3415 2004-07-28 Andrew Cagney <cagney@gnu.org>
3417 * language.h (struct language_arch_info): Fix typo
3418 s/primative/primitive/.
3419 * gdbtypes.c (lookup_primitive_typename): Ditto.
3420 * language.c (language_lookup_primitive_type_by_name)
3421 (unknown_language_arch_info): Ditto.
3423 2004-07-27 Andrew Cagney <cagney@gnu.org>
3425 * defs.h (enum language): Add nr_languages.
3426 * language.h (struct language_arch_info): Define.
3427 (struct language_defn): Add la_language_arch_info.
3428 (language_lookup_primative_type_by_name): Declare.
3429 (language_string_char_type): Declare.
3430 * language.c (_initialize_language, language_gdbarch_post_init)
3431 (struct language_gdbarch, language_gdbarch_data): Implement
3432 per-architecture language information.
3433 (unknown_language_arch_info, language_string_char_type)
3434 (language_lookup_primative_type_by_name): New functions.
3435 (unknown_language_defn, auto_language_defn)
3436 (local_language_defn): Set la_language_arch_info to
3437 unknown_language_arch_info.
3438 (unknown_builtin_types): Delete.
3439 * gdbtypes.c (lookup_primitive_typename): Use
3440 language_lookup_primative_type_by_name.
3441 (create_string_type): Use language_string_char_type.
3442 * values.c (value_from_string): Use language_string_char_type.
3443 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3444 * p-lang.c (pascal_language_defn): Ditto.
3445 * m2-lang.c (m2_language_defn): Ditto.
3446 * jv-lang.c (java_language_defn): Ditto.
3447 * objc-lang.c (objc_language_defn): Ditto.
3448 * f-lang.c (f_language_defn): Ditto.
3449 * c-lang.c (c_language_defn, cplus_language_defn)
3450 (asm_language_defn, minimal_language_defn): Ditto.
3452 2004-07-27 Andrew Cagney <cagney@gnu.org>
3454 * gdbtypes.h (struct builtin_type): Declare.
3455 (builtin_type): Declare.
3456 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3457 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3458 (gdbtypes_post_init): New function.
3459 (builtin_type): New function.
3461 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3463 * remote-m32r-sdi.c: Fix breakpoint bug.
3464 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3465 recv_char_data, recv_long_data): New functions to replace communication
3468 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3470 Document PR threads/1650.
3471 * PROBLEMS (Threads): Document problem with many threads
3473 2004-07-26 Andrew Cagney <cagney@gnu.org>
3475 * gdb-mi.el: Move from here ...
3476 * mi/gdb-mi.el: ... to here.
3478 2004-07-26 Andrew Cagney <cagney@gnu.org>
3480 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3481 * main.c (captured_main): When in batch mode always detach.
3483 2004-07-26 Andrew Cagney <cagney@gnu.org>
3485 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3486 and h8300 as broken.
3487 * NEWS: END-OF-LIFE frame compatibility module.
3488 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3491 2004-07-26 Andrew Cagney <cagney@gnu.org>
3493 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3494 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3495 * wince.c (_initialize_wince): Update.
3496 * win32-nat.c (_initialize_win32_nat): Update.
3497 * varobj.c (_initialize_varobj): Update.
3498 * valops.c (_initialize_valops): Update.
3499 * utils.c (initialize_utils, initialize_utils): Update.
3500 * tui/tui-win.c (_initialize_tui_win): Update.
3501 * top.c (init_main): Update.
3502 * symfile.c (_initialize_symfile): Update.
3503 * source.c (_initialize_source): Update.
3504 * somsolib.c (_initialize_som_solib): Update.
3505 * solib.c (_initialize_solib): Update.
3506 * solib-frv.c (_initialize_frv_solib): Update.
3507 * serial.c (_initialize_serial): Update.
3508 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3509 * remote.c (_initialize_remote, _initialize_remote): Update.
3510 * remote-vx.c (_initialize_vx): Update.
3511 * remote-utils.c (_initialize_sr_support): Update.
3512 * remote-sds.c (_initialize_remote_sds): Update.
3513 * remote-mips.c (_initialize_remote_mips): Update.
3514 * remote-e7000.c (_initialize_remote_e7000): Update.
3515 * proc-api.c (_initialize_proc_api): Update.
3516 * printcmd.c: Update.
3517 * parse.c (_initialize_parse): Update.
3518 * pa64solib.c (_initialize_pa64_solib): Update.
3519 * p-valprint.c (_initialize_pascal_valprint): Update.
3520 * monitor.c (_initialize_remote_monitors): Update.
3521 * mips-tdep.c (_initialize_mips_tdep): Update.
3522 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3523 * maint.c (_initialize_maint_cmds): Update.
3524 * lin-lwp.c (_initialize_lin_lwp): Update.
3525 * language.c (_initialize_language): Update.
3526 * kod.c (_initialize_kod): Update.
3527 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3528 * i386-tdep.c (_initialize_i386_tdep): Update.
3529 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3530 * gdbarch.sh: Update.
3531 * gdbarch.c: Re-generate.
3532 * gdb-events.sh: Update.
3533 * gdb-events.c: Re-generate.
3534 * frame.c (_initialize_frame): Update.
3536 * demangle.c (_initialize_demangler): Update.
3537 * dcache.c (_initialize_dcache): Update.
3538 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3539 * cp-valprint.c (_initialize_cp_valprint): Update.
3540 * corefile.c (_initialize_core): Update.
3541 * command.h: Update.
3542 * cli/cli-decode.h: Update.
3543 * cli/cli-cmds.c (init_cli_cmds): Update.
3544 * charset.c (_initialize_charset): Update.
3545 * breakpoint.c (_initialize_breakpoint): Update.
3546 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3547 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3548 * aix-thread.c (_initialize_aix_thread): Update.
3550 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3552 Partial fix for PR backtrace/1718.
3553 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3554 that GCC migrates into the prolugue. Don't handle any
3555 instructions that clobber %ebx.
3557 2004-07-23 Andrew Cagney <cagney@gnu.org>
3559 Use regcache_raw_collect instead of regcache_collect.
3560 * regcache.h (regcache_collect): Delete declaration.
3561 * regcache.c (regcache_colect): Delete function.
3562 * win32-nat.c (do_child_store_inferior_registers): Update.
3563 * sol-thread.c (sol_thread_store_registers): Update.
3564 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3565 * rs6000-nat.c (store_register): Update.
3566 * remote.c (store_register_using_P, remote_store_registers): Update.
3567 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3568 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3569 (fill_vrregset, store_spe_registers, fill_gregset)
3570 (fill_gregset): Update.
3571 * nto-procfs.c (procfs_store_registers): Update.
3572 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3573 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3574 * m68klinux-nat.c (store_register, fill_gregset): Update.
3575 * m68k-tdep.c (fill_gregset): Update.
3576 * infptrace.c (store_register): Update.
3577 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3578 * i386-linux-nat.c (store_register, fill_gregset): Update.
3579 * hppa-linux-nat.c (fill_gregset): Update.
3580 * go32-nat.c (store_register): Update.
3581 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3582 (store_fp_regs): Update.
3583 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3584 (store_nwfpe_extended, store_fpregister, store_fpregs)
3585 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3586 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3587 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3588 (store_regs_user_thread, store_regs_kernel_thread): Update.
3590 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3592 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3593 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3595 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3596 member of `struct comp_unit'.
3598 2004-07-23 Andrew Cagney <cagney@gnu.org>
3600 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3601 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3603 2004-07-23 Martin Hunt <hunt@redhat.com>
3604 Kevin Buettner <kevinb@redhat.com>
3606 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3607 alignment was being added to the offset instead of multiplied.
3609 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3611 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3612 changed signal trampoline in OpenBSD 3.5-current.
3614 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3615 <machine/pcb.h> and "bsd-kvm.h".
3616 (sparc64nbsd_supply_pcb): New function.
3617 (_initialize_sparc64nbsd_nat): Renamed from
3618 _initialize_sparcnbsd_nat. Enable libkvm interface.
3619 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3620 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3621 (LOADLIBES): New variable.
3623 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3625 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3627 2004-07-21 Andrew Cagney <cagney@gnu.org>
3629 Use regcache_raw_supply instead of supply_register.
3630 * regcache.h (supply_register): Delete declaration.
3631 * regcache.c (supply_register): Delete function.
3632 * wince.c (do_child_fetch_inferior_registers): Update.
3633 * win32-nat.c (do_child_fetch_inferior_registers)
3634 (fetch_elf_core_registers): Update.
3635 * v850ice.c (v850ice_fetch_registers): Update.
3636 * thread-db.c (thread_db_store_registers): Update.
3637 * sol-thread.c (sol_thread_store_registers): Update.
3638 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3639 * rs6000-nat.c (fetch_register): Update.
3640 * rom68k-rom.c (rom68k_supply_one_register): Update.
3641 * remote.c (remote_wait, remote_async_wait): Update.
3642 * remote-st.c (get_hex_regs): Update.
3643 * remote-sim.c (gdbsim_fetch_register): Update.
3644 * remote-sds.c (sds_fetch_registers): Update.
3645 * remote-rdp.c (remote_rdp_fetch_register): Update.
3646 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3647 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3648 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3649 * remote-hms.c (init_hms_cmds): Update.
3650 * remote-est.c (init_est_cmds): Update.
3651 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3652 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3653 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3654 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3655 (fetch_register, supply_vrregset, supply_vrregset)
3656 (fetch_spe_registers): Update.
3657 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3658 * monitor.c (monitor_supply_register): Update.
3659 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3660 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3661 (mipsnbsd_supply_fpreg): Update.
3662 * mips-nat.c (fetch_inferior_registers)
3663 (fetch_core_registers): Update.
3664 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3665 (supply_fpregset, mips64_supply_gregset)
3666 (mips64_supply_fpregset): Update.
3667 * m68klinux-nat.c (fetch_register, supply_gregset)
3668 (supply_fpregset): Update.
3669 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3670 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3671 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3672 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3673 * infptrace.c (fetch_register): Update.
3674 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3675 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3676 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3677 (gnu_fetch_registers, gnu_store_registers): Update.
3678 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3679 * i386-linux-nat.c (fetch_register, supply_gregset)
3680 (dummy_sse_values): Update.
3681 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3682 * hppah-nat.c (fetch_register): Update.
3683 * hppa-linux-nat.c (fetch_register, supply_gregset)
3684 (supply_fpregset): Update.
3685 * go32-nat.c (fetch_register): Update.
3686 * dve3900-rom.c (fetch_bitmapped_register)
3687 (_initialize_r3900_rom): Update.
3688 * cris-tdep.c (supply_gregset): Update.
3689 * abug-rom.c (init_abug_cmds): Update.
3690 * core-aout.c (fetch_core_registers): Update.
3691 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3692 (fetch_register, fetch_fp_register): Update.
3693 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3694 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3695 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3696 * alphanbsd-tdep.c (fetch_core_registers): Update.
3697 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3698 * alpha-nat.c (fetch_osf_core_registers)
3699 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3700 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3701 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3703 2004-07-21 Andrew Cagney <cagney@gnu.org>
3705 * PROBLEMS: Mention breakpoints/1702.
3706 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3707 that is known to work.
3709 2004-07-21 Andrew Cagney <cagney@gnu.org>
3711 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3712 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3713 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3714 (handle_inferior_event): Wrap call to deprecated
3715 IGNORE_HELPER_CALL in #ifdef.
3716 * config/mips/tm-nbsd.h: Update.
3718 2004-07-20 Jim Blandy <jimb@redhat.com>
3720 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3721 bfd_mach_ppc has no segment registers.
3723 Include PowerPC SPR numbers for special-purpose registers.
3724 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3725 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3726 new member in initializer.
3727 (S, S4, SN4, S64): New macros for defining special-purpose
3729 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3730 registers_403, registers_403GC, registers_505, registers_860,
3731 registers_601, registers_602, registers_603, registers_604,
3732 registers_750, registers_e500): Use them.
3734 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3735 replace references with expression used to initialize variable.
3737 2004-07-20 Andrew Cagney <cagney@gnu.org>
3739 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3741 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3742 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3743 (s390_sigtramp_frame_sniffer): Update.
3744 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3745 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3746 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3747 (mips32_fetch_instruction): Update.
3748 * mcore-tdep.c (get_insn): Update.
3749 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3750 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3751 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3752 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3753 (i386_linux_rt_sigtramp_start): Update.
3754 * i386-linux-nat.c (child_resume): Update.
3755 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3756 * hppa-linux-tdep.c (insns_match_pattern): Update.
3757 * gdbcore.h: Update.
3758 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3759 * frame.c (safe_frame_unwind_memory): Update.
3760 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3761 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3762 * alpha-tdep.c (alpha_read_insn): Update.
3764 2004-07-20 Andrew Cagney <cagney@gnu.org>
3766 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3767 containing both bytes and mask. Add "frame_type".
3768 * tramp-frame.c (tramp_frame_start): Update.
3769 (tramp_frame_prepend_unwinder): Update.
3770 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3771 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3772 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3773 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3775 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3777 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3778 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3779 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3780 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3782 2004-07-17 Andrew Cagney <cagney@gnu.org>
3784 * NEWS, PROBLEMS: Update for 6.2.
3786 * README: Update to 6.2.
3788 * utils.c (xvasprintf): Call xstrvprintf.
3790 * parse.c: Update copyright.
3791 (null_post_parser): Eliminate ARGSUSED.
3793 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3794 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3795 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3797 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3798 * ppc-linux-nat.c: Use "Linux kernel".
3799 * hppa-linux-tdep.c: Use GNU/Linux.
3800 * hppa-linux-nat.c: Use GNU/Linux.
3801 * dwarfread.c: Add [sic] to use of Linux.
3803 * hppa-linux-nat.c: Do not include <string.h>.
3804 (supply_fpregset): Remove "register" attribute.
3806 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3808 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3810 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3811 * configure, config.in: Regenerated.
3813 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3815 (vaxbsd_supply_pcb): New function.
3816 (_initialize_vaxbsd_nat): New prototype and function.
3817 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3819 (LOADLIBES): New variable.
3820 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3821 (LOADLIBES): New variable.
3822 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3823 (LOADLIBES): New variable.
3824 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3826 2004-07-16 Andrew Cagney <cagney@gnu.org>
3828 * defs.h (event_loop_p): Replace variable declaration with macro,
3830 * main.c (captured_main): Delete options "-async" and "-noasync".
3831 (event_loop_p): Delete variable.
3832 * NEWS: Mention that "-async" and "-noasync" were removed.
3834 2004-07-16 Andrew Cagney <cagney@gnu.org>
3836 * remote-m32r-sdi.c: Re-indent.
3838 2004-07-16 Jim Blandy <jimb@redhat.com>
3840 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3841 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3842 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3843 missing MPC823 SPRs.
3844 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3845 incorrect. (This was corrected in GDB's register name tables on
3848 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3849 should be "esasrr" ("ESA Save and Restore Register").
3851 2004-07-16 Andrew Cagney <cagney@gnu.org>
3853 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3854 calls, no longer applicable. Update comments and rename parameter
3855 "step_frame" to "return_frame".
3857 2004-07-16 Andrew Cagney <cagney@gnu.org>
3859 * frame.c (fprint_field): New function.
3860 (fprint_frame_id): Use fprint_field.
3862 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3864 * ada-lang.c (ada_language_defn): Remove commented out code.
3866 2004-07-15 Jim Blandy <jimb@redhat.com>
3868 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3869 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3871 2004-07-14 Jim Blandy <jimb@redhat.com>
3873 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3875 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3877 * ppc-tdep.h (ppc_num_srs): New enum constant.
3879 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3880 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3881 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3882 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3883 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3884 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3885 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3886 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3887 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3888 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3889 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3890 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3891 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3892 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3893 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3894 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3895 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3896 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3897 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3898 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3899 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3900 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3901 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3902 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3903 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3904 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3905 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3906 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3907 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3908 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3909 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3910 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3911 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3912 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3913 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3914 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3915 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3916 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3917 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3918 special-purpose register numbers.
3920 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3921 manual mentions 'md_twb', but many mention 'm_twb', and at that
3922 point in the register list.)
3924 2004-07-14 Andrew Cagney <cagney@gnu.org>
3926 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3927 instead of "internal-error".
3929 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3931 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3932 that was inserted inside a comment.
3934 2004-07-10 Randolph Chung <tausq@debian.org>
3936 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3938 (hppa_hpux_push_dummy_code): New function.
3939 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3940 Set find_global_pointer method.
3942 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3944 * NEWS: Mention BSD libkvm interface.
3946 2004-07-10 Michael Snyder <msnyder@redhat.com>
3948 * symfile.c (generic_load): Comment typo.
3949 * stack.c (get_selected_block): Ditto.
3950 * regcache.c (regcache_cooked_read): Ditto.
3951 * monitor.c (monitor_debug): Ditto.
3952 * mips-tdep.c (mips_read_pc): Ditto.
3953 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3954 * gdb_mbuild.sh: Ditto.
3955 * gdbarch.sh: Ditto.
3958 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3960 * ada-tasks.c: Remove file.
3962 Remove ARI problems:
3964 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3967 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3969 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3970 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3971 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3972 (UMIN_OF_SIZE): Remove.
3973 (max_of_type): New function to replace orphan macro in gdbtypes.h
3974 (min_of_type): Ditto.
3975 (discrete_type_high_bound): Use max_of_type.
3976 (discrete_type_low_bound): Use min_of_type.
3977 (possible_user_operator_p): Move operator to beginning of line.
3978 (ada_is_variant_part): Ditto.
3979 (ensure_lval): Rewrite to avoid deprecated operations.
3980 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3981 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3982 (ada_enum_name): Remove assignments in 'if' statements.
3983 (build_ada_types): Add gdbarch parameter.
3984 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3985 with gdbarch_data_register_post_init.
3986 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3989 * ada-valprint.c (inspect_it): Remove declaration.
3990 (repeat_count_threshold): Remove declaration.
3991 (ada_print_floating): Remove assignments in 'if' statements.
3992 (print_str): Move operator to beginning of line.
3994 2004-07-08 Jim Blandy <jimb@redhat.com>
3996 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3998 2004-07-08 Bob Rossi <bob@brasko.net>
4000 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4002 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4004 * language.h (struct_language_defn): Add new function pointer:
4005 la_class_name_from_physname. Also add new prototype for
4006 language_class_name_from_physname.
4007 * language.c (language_class_name_from_physname): New function.
4008 (unk_lang_class_name): Ditto.
4009 (unknown_language_defn, auto_language_defn): Change
4010 to add unk_lang_class_name function pointer for
4011 la_class_name_from_physname.
4012 (local_language_defn): Ditto.
4013 * dwarf2read.c (guess_structure_name): Change to call
4014 language_class_name_from_physname.
4015 (determine_class_name): Ditto.
4016 * cp-support.c (class_name_from_physname): Renamed.
4017 (cp_class_name_from_physname): New name of function.
4018 * cp-support.h: Ditto.
4019 * c-lang.c (c_language_defn): Change to add NULL
4020 for class_name_from_physname function pointer.
4021 (cplus_language_defn): Change to add cp_class_name_from_physname.
4022 * jv-lang.c (java_class_name_physname): New function.
4023 (java_find_last_component): New static routine.
4024 (java_language_defn): Add java_class_name_from_physname pointer.
4025 * ada-lang.c (ada_language_defn): Change to add NULL
4026 for class_name_from_physname function pointer.
4027 * f-lang.c (f_language_defn): Ditto.
4028 * m2-lang.c (m2_language_defn): Ditto.
4029 * objc-lang.c (objc_language_defn): Ditto.
4030 * p-lang.c (pascal_language_defn): Ditto.
4031 * scm-lang.c (scm_language_defn): Ditto.
4033 2004-07-06 Andrew Cagney <cagney@gnu.org>
4035 Patch from Bart Robinson.
4036 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4037 (O_LARGEFILE): Define to 0, if not defined.
4039 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4041 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4042 <machine/pcb.h> and "bsd-kvm.h".
4043 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4044 (m68kbsd_supply_pcb): New function.
4045 (_initialize_m68kbsd_nat): New prototype and function.
4046 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4047 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4048 (LOADLIBES): New variable.
4049 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4050 (LOADLIBES): New variable.
4052 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4054 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4056 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4058 (bsd_kvm_cmdlist): New variable.
4059 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4060 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4061 command and "kvm proc" command.
4062 * Makefile.in (bsd-kvm.o): Update dependencies.
4064 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4066 * osabi.c: Update copyright year.
4067 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4068 notes if EI_OSABI is set to ELFOSABI_HPUX.
4070 2004-07-01 Michael Snyder <msnyder@redhat.com>
4072 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4073 that seems to have gotten whacked out of line.
4075 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4077 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4080 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4082 * ada-lang.c (decode_packed_array): Minor change to comment.
4083 (ada_value_slice_ptr): New function.
4084 (ada_value_slice): New function.
4085 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4086 test. Don't know why it is there.
4087 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4088 to avoid dereferencing huge arrays from which one is slicing.
4089 (empty_array): Correct to return an array rather than
4091 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4092 on empty arrays (let'em use 'FIRST instead).
4094 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4096 Address complaints from gdb_ari.sh:
4098 * ada-exp.y: Include gdb_string.h rather than string.h.
4099 (convert_char_literal): Reformat declaration.
4100 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4101 * ada-lex.l: Change use of free to xfree (the macro would do so
4102 anyway, but this is harmless).
4103 Include gdb_string.h rather than string.h.
4104 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4106 * ada-lang.c (parse): Remove K&Rism in parameter list.
4107 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4109 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4111 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4114 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4116 * alphabsd-nat.c: Update copyright year.
4117 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4119 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4121 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4122 (i386_cygwin_in_solib_call_trampoline): New function.
4123 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4124 and skip_trampoline_code gdbarch methods.
4126 2004-06-29 Jim Blandy <jimb@redhat.com>
4128 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4129 name actually used in the dependency lists.
4131 2004-06-29 Randolph Chung <tausq@debian.org>
4133 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4135 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4137 * win32-nat.c (child_pid_to_exec_file): New function.
4138 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4141 2004-06-28 Andrew Cagney <cagney@gnu.org>
4143 * defs.h (xstrvprintf): Declare.
4144 * utils.c (xstrvprintf): New function.
4145 (internal_vproblem, xstrprintf, xasprintf)
4146 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4147 * serial.c (serial_printf): Ditto.
4148 * complaints.c (vcomplaint): Ditto.
4150 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4152 * infcmd.c (attach_command): Move call to target_terminal_inferior
4153 behind loading symbol table.
4155 2004-06-28 Andrew Cagney <cagney@gnu.org>
4157 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4158 change - add back extern deprecated_ui_loop_hook declaration.
4160 2004-06-28 Andrew Cagney <cagney@gnu.org>
4162 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4164 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4165 (c_value_of_variable): Ditto.
4166 * utils.c (internal_vproblem): Ditto.
4167 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4168 * remote.c (add_packet_config_cmd): Ditto.
4169 * remote-rdp.c (rdp_set_command_line): Ditto.
4170 * regcache.c (regcache_dump): Ditto.
4171 * frv-tdep.c (new_variant, new_variant): Ditto.
4172 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4173 (fbsd_find_memory_regions): Ditto.
4174 * breakpoint.c (create_thread_event_breakpoint)
4175 (create_breakpoints): Ditto.
4176 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4177 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4179 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4181 * ada-lang.c: Re-indent file, with some massaging to help indent
4182 a bit when the result is otherwise really too ugly.
4184 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4186 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4187 code_addr_p and special_addr_p to 'unsigned int'.
4189 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4191 * i386v4-nat.c: Update copyright year and tweak comment.
4192 (regmap): Remove trailing comma.
4193 (supply_gregset): Rename local variable i to regnum. Call
4194 regcache_raw_supply instead of supply_register.
4195 (fill_gregset): Rename argument regno to regnum. Call
4196 regcache_raw_collect instead of regcache_collect.
4198 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4200 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4202 (frame_id_build, frame_id_build_special): Update comments.
4203 (frame_id_build_wild): New prototype.
4204 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4205 struct frame_id fields.
4206 (frame_id_build_wild): New function.
4207 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4209 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4211 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4214 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4216 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4218 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4220 * ada-lang.c: Re-indent file.
4222 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4224 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4225 (no_symtab_msg): Likewise.
4227 2004-06-27 Andreas Schwab <schwab@suse.de>
4229 * source.c: Fix whitespace.
4231 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4233 * configure.in: Include <sys/param.h> for td_pcb test.
4234 * configure: Regenerated.
4236 * i386nbsd-nat.c: New file.
4237 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4238 i386obsd-nat.c and i386obsd-tdep.c.
4239 (i386nbsd-nat.o): New dependency.
4240 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4242 (LOADLIBES): New variable.
4243 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4245 (LOADLIBES): New variable.
4247 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4248 (LOADLIBES): New variable.
4250 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4251 fetching from BSD_KVM_PADDR. Correctly lookup address for
4254 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4256 (amd64fbsd_supply_pcb): New funcion.
4257 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4259 2004-06-27 <david@streamline-computing.com>
4261 Partial fix for PR cli/1056.
4262 * valarith.c: Check for zero in division and remainder
4265 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4267 * i387-tdep.c: Remove excessive whitespace.
4269 2004-06-26 Andrew Cagney <cagney@gnu.org>
4271 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4272 * gdb-events.h, gdb-events.c: Re-generate.
4273 * tui/tui-hooks.c (tui_install_hooks): Update.
4274 (tui_remove_hooks): Update.
4275 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4277 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4279 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4280 (gregset_t, fpregset_t): Remove typedefs.
4281 (REG_OFFSET): Rename argument.
4282 (amd64bsd_r_reg_offset): Rename from reg_offset.
4283 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4285 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4287 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4289 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4291 * vax-tdep.c: Tweak comment.
4293 Add OpenBSD/hppa support.
4294 * NEWS (New native configurations): Mention OpenBSD/hppa.
4295 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4296 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4298 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4299 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4300 * configure.host: Add hppa*-*-openbsd*.
4301 * configure.tgt: Add hppa*-*-openbsd*.
4303 2004-06-25 Andrew Cagney <cagney@gnu.org>
4305 * defs.h (deprecated_ui_loop_hook): Deprecated.
4306 * wince.c (child_wait): Update.
4307 * win32-nat.c (child_wait): Update.
4308 * v850ice.c (v850ice_wait): Update.
4309 * top.c (deprecated_ui_loop_hook): Update.
4311 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4312 (do_unix_readchar): Update.
4313 * ser-tcp.c (net_open): Update.
4314 * remote-sim.c (gdb_os_poll_quit): Update.
4315 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4317 2004-06-24 Andrew Cagney <cagney@gnu.org>
4319 * defs.h (deprecated_pre_add_symbol_hook)
4320 (deprecated_post_add_symbol_hook): Deprecated.
4321 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4322 (symbol_file_add_with_addrs_or_offsets): Update references.
4324 2004-06-24 Andrew Cagney <cagney@gnu.org>
4326 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4327 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4328 * wince.c (ui_loop_hook): Delete extern declaration.
4329 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4330 * v850ice.c (ui_loop_hook): Delete extern declaration..
4331 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4332 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4333 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4334 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4335 ui_loop_hook declaration.
4337 2004-06-24 Andrew Cagney <cagney@gnu.org>
4339 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4340 entry_func_highpc fields.
4341 * objfiles.c (init_entry_point_info): Do not clear
4342 entry_func_lowpc and entry_func_highpc.
4343 (objfile_relocate): Do not relocate entry_func_lowpc and
4345 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4347 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4349 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4350 entry_func_lowpc and entry_func_highpc with call to
4353 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4355 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4356 quad-precision floating point arguments in registers.
4358 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4360 From Michael Mueller <m.mueller99@kay-mueller.de>:
4361 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4364 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4366 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4368 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4369 untriggered watchpoints to a separate if clause. Update function
4370 comment regarding STOPPED_BY_WATCHPOINT argument.
4372 2004-06-22 Jim Blandy <jimb@redhat.com>
4374 * gdbarch.sh: Doc fix.
4376 2004-06-21 Martin Hunt <hunt@redhat.com>
4377 Kevin Buettner <kevinb@redhat.com>
4379 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4380 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4381 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4382 to set_gdbarch_sp_regnum(). Use cooked register number.
4383 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4385 2004-06-21 Andrew Cagney <cagney@gnu.org>
4387 * gdbarch.sh: When the macro field is empty, do not generate a
4388 macro definition. When the macro field is "=", generate the macro
4389 name from the upper-case function name.
4390 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4391 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4392 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4393 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4394 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4395 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4396 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4397 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4398 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4399 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4400 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4401 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4402 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4403 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4404 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4405 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4406 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4407 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4408 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4409 (DEPRECATED_USE_STRUCT_CONVENTION)
4410 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4411 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4412 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4413 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4414 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4415 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4416 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4417 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4418 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4419 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4420 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4421 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4422 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4423 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4424 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4425 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4426 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4427 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4429 2004-06-21 Andrew Cagney <cagney@gnu.org>
4431 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4432 macro name, and the function rather than macro value. Only wrap
4433 macro print statements in #ifdef. Move format logic to where it
4435 * gdbarch.c: Re-generate.
4437 * gdbarch.sh (read): Delete "print_p" and "description", add
4438 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4439 Delete references to print_p.
4440 (TARGET_ARCHITECTURE): Delete print predicate.
4441 * gdbarch.c: Re-generate.
4443 * gdbarch.sh: Check that multi-arch methods do not provide a
4445 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4446 (print_registers_info, print_float_info, print_vector_info)
4447 (adjust_breakpoint_address, remote_translate_xfer_address)
4448 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4449 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4450 name from the multi-arch definition.
4452 2004-06-20 Andrew Cagney <cagney@gnu.org>
4454 * gdbarch.sh: Sort by the function, instead of macro name.
4455 * gdbarch.c: Re-generate.
4457 2004-06-20 Andrew Cagney <cagney@gnu.org>
4459 * gdbarch.sh: Use the function, instead of macro name in
4460 errors and the log file.
4461 (return_value): Remove stray ":" in spec.
4463 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4464 * gdbarch.h, gdbarch.c: Re-generate.
4465 * Makefile.in (arch-utils.o): Update dependencies.
4466 * values.c (using_struct_return): Move code calling
4467 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4468 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4469 to legacy_return_value, simplify.
4470 * infcmd.c (print_return_value): Move code calling
4471 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4472 to legacy_return_value, simplify.
4473 * infcall.c (call_function_by_hand): Move code calling
4474 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4475 * arch-utils.c: Update copyright. Include "gdbcore.h".
4476 (legacy_return_value): New function.
4477 * arch-utils.h: Update copyright.
4478 (legacy_return_value): Declare.
4480 2004-06-20 Andrew Cagney <cagney@gnu.org>
4482 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4483 * gdbarch.h, gdbarch.c: Re-generate.
4484 * values.c (using_struct_return): Update call.
4485 * mcore-tdep.c: Update comment.
4486 * infcall.c (call_function_by_hand): Update comment.
4487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4488 * arch-utils.h (always_use_struct_convention): Update.
4489 * v850-tdep.c (v850_gdbarch_init): Update.
4490 * sh64-tdep.c (sh64_gdbarch_init): Update.
4491 * sh-tdep.c (sh_gdbarch_init): Update.
4492 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4493 * mips-tdep.c (mips_gdbarch_init): Update.
4494 * mcore-tdep.c (mcore_gdbarch_init): Update.
4495 * m32r-tdep.c (m32r_gdbarch_init): Update.
4496 * ia64-tdep.c (ia64_gdbarch_init): Update.
4497 * h8300-tdep.c (h8300_gdbarch_init): Update.
4498 * frv-tdep.c (frv_gdbarch_init): Update.
4499 * cris-tdep.c (cris_gdbarch_init): Update.
4500 * arm-tdep.c (arm_gdbarch_init): Update.
4501 * alpha-tdep.c (alpha_gdbarch_init): Update.
4503 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4505 * PROBLEMS: Add more specific information, and a work-around,
4508 2004-06-18 Andrew Cagney <cagney@gnu.org>
4510 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4511 * gdbarch.h, gdbarch.c: Re-generate.
4512 * ada-lang.c (ada_finish_decode_line_1): Update.
4513 * infrun.c (handle_inferior_event): Update.
4514 * infcall.c (find_function_addr): Update.
4515 * linespec.c (minsym_found): Update.
4516 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4518 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4519 * cli/cli-cmds.c (disassemble_command): Update.
4520 * vax-tdep.c (vax_gdbarch_init): Update.
4522 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4524 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4526 2004-06-17 Andrew Cagney <cagney@gnu.org>
4528 GDB 6.1.1 released from the GDB 6.1 branch.
4529 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4532 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4535 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4536 operation as a uleb128. Found by Michael Coulter.
4538 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4540 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4542 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4543 to ada-lang.h; this is needed to be able to implement the kill command
4546 (task_entry): Ditto.
4548 (ada_build_task_list): Ditto.
4550 * ada-lang.c: Conditionalize routines and data structures related
4551 to breakpoints, exceptions, completion, and symbol caching on
4552 GNAT_GDB, since these are not yet used in the submitted public sources.
4553 (ada_main_name): Editorial: Move definition out of exception-related
4556 2004-06-15 Andrew Cagney <cagney@gnu.org>
4558 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4559 deprecated_pc_in_call_dummy.
4561 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4563 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4564 bfd_get_section_size_before_reloc or _raw_size.
4565 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4566 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4567 (dwarf2_read_section): Likewise.
4568 * elfread.c (elf_locate_sections): Likewise.
4569 * gcore.c (derive_heap_segment): Likewise.
4570 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4571 * remote-e7000.c (e7000_load): Likewise.
4572 * remote-m32r-sdi.c (m32r_load): Likewise.
4573 * remote-mips.c (mips_load_srec): Likewise.
4574 (pmon_load_fast): Likewise.
4575 * remote.c (compare_sections_command): Likewise.
4576 * symfile.c (add_section_size_callback): Likewise.
4577 (load_section_callback): Likewise.
4578 (pc_in_unmapped_range): Likewise.
4579 (pc_in_mapped_range): Likewise.
4580 (sections_overlap): Likewise.
4581 (list_overlays_command): Likewise.
4582 (simple_overlay_update_1): Likewise.
4583 (simple_overlay_update): Likewise.
4584 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4585 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4587 2004-06-14 Randolph Chung <tausq@debian.org>
4589 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4590 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4592 (hppa_hpux_inferior_created): New function.
4593 (hppa_hpux_init_abi): Register observer.
4594 * symfile.c (hp_cxx_exception_support_initialized)
4595 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4596 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4598 2004-06-14 Randolph Chung <tausq@debian.org>
4600 * MAINTAINERS (Write After Approval): Alphabetize my entry
4603 2004-06-14 Andrew Cagney <cagney@gnu.org>
4605 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4606 testsuite maintainer.
4608 2004-06-13 Andrew Cagney <cagney@gnu.org>
4610 * infcmd.c (print_return_value): Fix logic, allow
4611 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4613 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4614 defining any macros.
4615 * gdbarch.h: Re-generate.
4617 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4618 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4619 * gdbarch.h: Re-generate.
4621 * values.c (generic_use_struct_convention): Don't check gcc_p.
4623 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4624 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4625 * gdbarch.h, gdbarch.c: Regenerate.
4626 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4627 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4629 deprecated_max_register_raw_size and
4630 deprecated_max_register_virtual_size.
4631 * v850-tdep.c (v850_gdbarch_init): Ditto.
4632 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4634 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4635 * cris-tdep.c (cris_gdbarch_init): Ditto.
4637 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4638 * gdbarch.h, gdbarch.c: Re-generate.
4639 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4640 (m68hc11_use_struct_convention): Delete function.
4641 (m68hc11_extract_struct_value_address): Delete function.
4642 (m68hc11_return_value): New function.
4643 (m68hc11_gdbarch_init): Instead of store_return_value,
4644 extract_return_value, return_value_on_stack,
4645 deprecated_extract_struct_value_address and use_struct_convention,
4647 * values.c (using_struct_return): Do not call
4648 RETURN_VALUE_ON_STACK.
4649 * arch-utils.h (generic_return_value_on_stack_not): Delete
4651 * arch-utils.c (generic_return_value_on_stack_not): Delete
4654 2004-06-12 Andrew Cagney <cagney@gnu.org>
4656 * values.c (register_value_being_returned): Delete function.
4657 * infcmd.c (legacy_return_value): Delete function.
4658 * infcall.c (call_function_by_hand): Inline
4659 "register_value_being_returned", simplify.
4660 * values.c (using_struct_return): Update comment, refer to
4661 print_return_value instead of register_value_being_returned.
4662 * infcmd.c (print_return_value): Inline calls to
4663 register_value_being_returned and legacy_return_value. Simplify.
4665 2004-06-11 Randolph Chung <tausq@debian.org>
4667 * somread.c (som_symtab_read): Exclude gcc local symbols.
4669 2004-06-11 Randolph Chung <tausq@debian.org>
4671 * infrun.c (handle_inferior_event): Handle the case when a
4672 trampoline ends up in the runtime resolver, and if the trampoline
4673 has no name. Rearrange the code so that all the trampoline
4674 processing happens before other step-out-of-range handling.
4676 2004-06-11 Martin Hunt <hunt@redhat.com>
4678 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4681 2004-06-10 Andrew Cagney <cagney@gnu.org>
4683 * blockframe.c (legacy_inside_entry_func): Delete.
4684 (legacy_frame_chain_valid): Inline call to
4685 legacy_inside_entry_func, simplify.
4687 2004-06-10 Bob Rossi <bob@brasko.net>
4689 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4690 * dwarf2read.c (partial_die_info): Add dirname field.
4691 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4692 (read_partial_die): Save away DW_AT_comp_dir.
4693 * defs.h (symtab_to_filename): Removed.
4694 * source.c (find_and_open_source): Added.
4695 (open_source_file): Just calls find_and_open_source.
4696 (symtab_to_filename): Removed.
4697 (symtab_to_fullname, psymtab_to_fullname): Added.
4698 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4699 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4701 * symtab.h (partial_symtab): Add dirname field.
4702 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4703 (mi_cmd_file_list_exec_source_file): Call new function
4704 symtab_to_fullname to find fullname.
4705 (mi_cmd_file_list_exec_source_files): Added.
4706 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4707 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4709 2004-06-10 Andrew Cagney <cagney@gnu.org>
4711 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4712 to generic_use_struct_convention, the default value.
4714 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4717 * ns32k-tdep.c (ns32k_push_arguments): New function.
4718 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4719 * infcall.c (call_function_by_hand): Call error instead of
4720 legacy_push_arguments.
4721 * value.h (legacy_push_arguments): Delete declaration.
4722 * valops.c (legacy_push_arguments): Delete function.
4723 (value_push): Delete function.
4725 2004-06-10 Brian Ford <ford@vss.fsi.com>
4727 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4728 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4730 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4732 2004-06-10 Andrew Cagney <cagney@gnu.org>
4734 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4735 * gdbarch.h, gdbarch.c: Re-generate.
4736 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4738 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4739 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4740 deprecated_pc_in_call_dummy instead of
4741 DEPRECATED_PC_IN_CALL_DUMMY.
4742 (arm_skip_prologue): Ditto.
4743 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4744 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4745 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4746 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4748 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4749 (sh64_init_extra_frame_info, sh64_get_saved_register)
4750 (sh64_pop_frame): Ditto.
4751 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4752 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4753 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4754 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4755 (h8300_pop_frame): Ditto.
4756 * blockframe.c (legacy_inside_entry_func)
4757 (legacy_frame_chain_valid): Ditto.
4758 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4759 to deprecated_pc_in_call_dummy.
4761 2004-06-09 Andrew Cagney <cagney@gnu.org>
4763 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4764 provide a default value.
4765 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4766 * gdbarch.h, gdbarch.c: Re-generate.
4767 * arch-utils.c (generic_convert_register_p): Rename
4768 legacy_convert_register_p
4769 (legacy_register_to_value, legacy_value_to_register): Delete
4771 * arch-utils.h (generic_convert_register_p): Rename
4772 legacy_convert_register_p.
4773 (legacy_register_to_value, legacy_value_to_register): Delete
4776 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4777 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4778 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4779 * gdbarch.h, gdbarch.c: Re-generate.
4780 * infcmd.c (default_print_registers_info): Simplify.
4781 * findvar.c (value_of_register): Simplify.
4782 * mi/mi-main.c (get_register): Simplify.
4783 * arch-utils.c (legacy_convert_register_p): Always return 0.
4784 (legacy_register_to_value, legacy_value_to_register): Always call
4787 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4788 #ifdef CLEAR_INSN_CACHE code.
4789 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4790 Delete #ifdef CLEAR_DEFERRED_STORES code.
4792 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4794 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4796 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4798 * config/mips/mipsv4.mh: Delete file.
4800 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4802 (hpread_adjust_stack_address): Delete declaration.
4804 2004-06-08 Andrew Cagney <cagney@gnu.org>
4806 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4807 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4808 PTRACE_ATTACH / PTRACE_DETACH available call error.
4809 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4810 * infttrace.c (update_thread_state_after_attach, attach, detach):
4811 Remove #ifdef wrappers.
4812 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4813 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4814 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4815 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4816 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4817 * config/nm-linux.h (ATTACH_DETACH): Delete.
4818 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4819 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4820 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4821 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4822 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4824 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4826 * configure.in: Set $configdir to the right OS specific value.
4827 Use value when setting $tcldir and $tkdir.
4828 * configure: Regenerate.
4830 2004-06-06 Paul Brook <paul@codesourcery.com>
4832 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4835 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4837 * ada-lang.c (lookup_symbol_in_language): New function to allow
4838 re-use of another language's symbol lookup code. (Placed here
4839 temporarily while Ada support is being integrated into the public
4841 (restore_language): New auxiliary function for
4842 lookup_symbol_in_language.
4843 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4844 temporarily while Ada support is being integrated into the public
4847 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4849 * Makefile.in (check//%): New.
4851 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4852 (mn10300_store_return_value): Rewrite.
4853 (mn10300_type_align): New.
4854 (mn10300_use_struct_convention): Rewrite.
4855 (mn10300_return_value): New, using all of the above.
4856 (mn10300_pop_frame_regular): Add saved_regs_size.
4857 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4859 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4860 regs if PC is on movm.
4862 2004-06-07 Jim Blandy <jimb@redhat.com>
4864 Add native Linux support for the PowerPC E500.
4865 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4866 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4867 all architectures except the E500.
4868 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4870 (struct gdb_evrregset_t): New type.
4871 (have_ptrace_getsetevrregs): New variable.
4872 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4873 fetch_spe_registers): New functions.
4874 (fetch_register): Call fetch_spe_register as appropriate.
4875 Assert that we're only passed raw register numbers.
4876 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4877 Don't fetch gprs if they're pseudoregisters.
4878 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4879 store_spe_registers): New functions.
4880 (store_register): Call store_spe_register as appropriate.
4881 Assert that we're only passed raw register numbers.
4882 (store_ppc_registers): Call store_spe_registers as appropriate.
4883 Don't store gprs if they're pseudoregisters.
4885 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4887 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4888 struct if one exists, even if we are dealing with a zombie thread.
4890 2004-06-07 Andrew Cagney <cagney@gnu.org>
4892 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4893 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4894 Rename PC_REQUIRES_RUN_BEFORE_USE.
4895 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4898 2004-06-07 Randolph Chung <tausq@debian.org>
4900 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4901 unwinding after sp has been saved to the stack but before the end
4902 of the prologue, and after the fp has been modified but before it has
4903 been saved to the stack.
4904 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4905 Remove superfluous definitions.
4906 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4908 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4910 Committed by Randolph Chung.
4911 * hppa-linux-nat.c: Include the correct version of the header file
4912 depending on the kernel version.
4914 2004-06-06 Randolph Chung <tausq@debian.org>
4916 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4917 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4919 2004-06-06 Randolph Chung <tausq@debian.org>
4921 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4922 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4923 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4924 * hppa-tdep.c (hppa_symbol_address): New function definition.
4925 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4927 2004-06-06 Randolph Chung <tausq@debian.org>
4929 * hppa-tdep.h (struct value): Forward declaration.
4930 (gdbarch_tdep): Define tdep find_global_pointer method.
4931 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4932 associated with the function we are trying to call, and write it
4934 (hppa32_convert_from_funct_ptr_addr): New function.
4935 (hppa_find_global_pointer): New function.
4936 (hppa_gdbarch_init): Set default find_global_pointer method; set
4937 convert_from_func_ptr_addr method.
4938 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4939 (hppa_linux_init_abi): Set find_global_pointer method.
4940 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4942 2004-06-06 Randolph Chung <tausq@debian.org>
4944 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4945 to struct value *function.
4946 * gdbarch.c: Regenerate.
4947 * gdbarch.h: Likewise.
4948 * infcall.c (call_function_by_hand): Pass entire function value
4951 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4952 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4953 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4954 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4955 * arm-tdep.c (arm_push_dummy_call): Likewise.
4956 * avr-tdep.c (avr_push_dummy_call): Likewise.
4957 * cris-tdep.c (cris_push_dummy_call): Likewise.
4958 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4959 * frv-tdep.c (frv_push_dummy_call): Likewise.
4960 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4961 * hppa-tdep.c (hppa32_push_dummy_call)
4962 (hppa64_push_dummy_call): Likewise.
4963 * i386-tdep.c (i386_push_dummy_call): Likewise.
4964 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4965 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4966 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4967 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4968 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4969 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4970 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4971 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4972 (ppc64_sysv_abi_push_dummy_call): Likewise.
4973 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4974 (ppc64_sysv_abi_push_dummy_call): Likewise.
4975 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4976 * s390-tdep.c (s390_push_dummy_call): Likewise.
4977 * sh-tdep.c (sh_push_dummy_call_fpu)
4978 (sh_push_dummy_call_nofpu): Likewise.
4979 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4980 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4981 * vax-tdep.c (vax_push_dummy_call): Likewise.
4983 2004-06-04 Jim Blandy <jimb@redhat.com>
4985 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4986 gdbarch argument to register_size.
4988 * rs6000-tdep.c (rs6000_store_return_value): Use
4989 regcache_cooked_write_part instead of
4990 deprecated_write_register_bytes.
4991 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4992 not gdbarch_deprecated_store_return_value.
4994 * ppc-linux-nat.c (store_register, fetch_register): Remove
4995 incorrect assertions. Simplify and generalize handling of
4996 transfers whose sizes are not multiples of, or less than, sizeof
4999 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5001 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5002 as a new thread event.
5003 * thread-db.c (thread_get_info_callback): If the thread is a
5004 zombie, return TD_THR_ZOMBIE.
5005 (thread_from_lwp): If thread_get_info_callback returns
5006 TD_THR_ZOMBIE, check if the thread is still on the thread list
5007 and return a -1 ptid if not found.
5008 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5009 change the status to TARGET_WAITKIND_SPURIOUS.
5011 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5013 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5014 double values in little endian mode.
5016 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5018 Committed by Andrew Cagney.
5019 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5020 after last enum constant to avoid error from IBM C
5023 2004-06-02 Jim Blandy <jimb@redhat.com>
5025 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5026 to 'message', and make it local to the lone block that uses it.
5028 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5030 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5032 * ada-exp.y: Update copyright notice.
5035 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5036 SPECIAL_VARIABLE and unify the treatment of these cases.
5038 (write_attribute_call0): Remove.
5039 (write_attribute_call1): Remove.
5040 (write_attribute_calln): Remove.
5041 (save_qualifier): Add missing semicolon.
5043 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5044 temporarily disabled to allow compilation with FSF head version.
5046 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5047 use individual operators (OP_*) for all attributes.
5048 (exp syntax): Use write_int.
5049 Handle STRING literals with OP_STRING.
5050 (variable syntax): Add limit parameter to calls to
5051 write_object_renaming.
5053 (temp_parse_space): New definition to hold entities that need
5054 only live until the next call to ada_parse.
5055 (string_to_operator): Rename fields of ada_opname_table entries.
5057 (write_var_from_sym): Record block.
5058 (write_var_from_name): Minor reformatting.
5059 Make sure saved name is properly encoded in the case of multiple
5060 matches, and set its language to Ada.
5062 Modify to indicate unresolved name as symbol in the UNRESOLVED
5063 namespace, allocated in temp_parse_space.
5064 (write_int): New function.
5066 (write_object_renaming): Add max_depth parameter to limit
5067 chains of object renamings.
5068 Handle case where root of renaming expression is itself a renaming.
5069 Use temp_parse_space for temporary name buffer.
5070 Handle renamings to dereferenced pointers (___XEXA suffices).
5072 (ada_parse, yyerror, string_to_operator,
5073 write_var_from_sym, write_var_from_name, write_attribute_call0,
5074 write_attribute_call1, write_attribute_calln,
5075 write_object_renaming): Protoize.
5077 (_initialize_ada_exp): New function.
5079 * ada-lang.c: Update copyright notice.
5080 General terminology change to conform to GNAT compiler usage:
5081 mangle => encode, demangle => decode
5082 Include gdb_obstack.h.
5091 (ADA_RETAIN_DOTS): Make sure this is defined.
5092 (TRUNCATION_TOWARDS_ZERO): Define.
5093 (struct string_vector): Define.
5094 (unresolved_names): Remove definition.
5095 (xnew_string_vector): New function.
5096 (string_vector_append): New function.
5097 (extract_string): Make static.
5098 (ada_unqualified_name): New function.
5099 (add_angle_brackets): New function.
5100 (function_name_from_pc): New function.
5101 (place_on_stack): Rename to ensure_lval.
5103 (ensure_lval): Renamed from place_on_stack.
5104 Make identity on lvals.
5106 (is_nonfunction): New interface.
5107 Only symbols in LOC_CONST class can be enumerals.
5108 (fill_in_ada_prototype): Remove; now independent of language.
5109 (add_defn_to_vec): Add obstack and symtab arguments.
5110 Use obstack to hold collected definitions.
5111 (num_defns_collected): New function.
5112 (defns_collected): New function.
5113 (ada_resolve_subexp): Rename to resolve_subexp.
5114 (resolve_subexp): Renamed from ada_resolve_subexp.
5115 (ada_op_name): Return non-const result.
5116 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5119 (to_fixed_array_type): Add declaration.
5120 (coerce_unspec_val_to_type): Remove offset parameter.
5121 (find_sal_from_funcs_and_line): New interface.
5122 (find_line_in_linetable): Ditto.
5124 (all_sals_for_line): Rename to ada_sals_for_line and make
5126 Add new parameter. When set, do not ask the user to choose the
5127 instance, but use the first one found instead.
5128 Use given line number in returned sals.
5130 Skip the prologue if funfirstline is set.
5131 Correct for memory leak when 0 lines found.
5133 (value_pos_atr): Use pos_atr.
5134 (pos_atr): New function.
5135 (standard_lookup): Add block parameter.
5137 (makeTimeStart): Remove declaration and uses.
5138 (makeTimeStop): Remove declaration and uses.
5140 (ada_completer_word_break_characters): Allow for VMS.
5141 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5142 (raise_sym_name): New constant.
5143 (raise_unhandled_sym_name): New constant.
5144 (raise_assert_sym_name): New constant.
5145 (process_raise_exception_name): New constant.
5146 (longest_exception_template): New constant.
5147 (warning_limit): New variable to limit warnings during expression
5149 (warnings_issued): New variable to keep track of warnings issued.
5150 (known_runtime_file_name_patterns): New constant.
5151 (known_auxiliary_function_name_patterns): New constant.
5152 (symbol_list_obstack): New variable.
5154 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5155 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5156 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5157 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5158 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5159 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5160 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5161 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5164 (ada_get_field_index): New function.
5165 (lim_warning): New function.
5166 (ada_translate_error_message): New function.
5167 (MAX_OF_SIZE): New function.
5168 (MIN_OF_SIZE): New function.
5169 (UMAX_OF_SIZE): New function.
5170 (UMIN_OF_SIZE): New function.
5171 (discrete_type_high_bound): New function.
5172 (discrete_type_low_bound): New function.
5173 (base_type): New function.
5174 (do_command): Remove.
5176 (ada_update_initial_language): Use language_ada, not language_unknown.
5177 (ada_encode): Renamed from ada_mangle.
5178 Obey ADA_RETAIN_DOTS.
5179 (ada_decode): Renamed from ada_demangle.
5180 Update coding conventions.
5181 (decoded_names_store): New hash table.
5182 (ada_decode_symbol): New function.
5183 (ada_la_decode): New function.
5185 (modify_general_field): Correct computations of offset and bit
5187 (desc_base_type): Handle ref types, too.
5188 (ada_is_direct_array_type): New function.
5190 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5191 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5192 (ada_is_bogus_array_descriptor,ada_type_of_array,
5193 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5194 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5195 ada_is_array_descriptor_type.
5197 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5198 (ada_is_packed_array_type): Handle pointers or
5199 references to packed arrays as well.
5200 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5201 (decode_packed_array_type): Search for the packed array type
5202 symbol in the currently selected block and associated
5204 Use lookup_symbol again.
5206 (decode_packed_array): Handle pointers and references.
5207 Update call to coerce_unspec_val_to_type.
5208 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5209 (ada_value_primitive_packed_val): Improve comment.
5211 (ada_index_type): Substitute int type for "undefined".
5212 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5213 ada_array_langth, ada_is_string_type): Use renamed
5214 ada_is_simple_array_type.
5215 (empty_array): New function.
5217 (ada_resolve): Rename to resolve.
5218 (resolve): Make static.
5219 Call renamed resolve_subexp.
5221 (ada_resolve_subexp): Rename to resolve_subexp.
5222 (resolve_subexp): Update comment.
5223 Decomment disabled code.
5224 Add LOC_COMPUTED* cases.
5225 Modify to use temporary struct symbols (marked as being in
5226 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5227 OP_UNRESOLVED_VALUE.
5228 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5231 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5232 Use new ada_lookup_symbol_list interface.
5233 Use new ada_resolve_function interface.
5234 Remove OP_TYPE case.
5236 (ada_args_match): Idiot proof against null actuals.
5237 Use intermediate variables to clarify.
5238 (ada_resolve_function): Update comment and interface.
5239 (mangled_ordered_before): Rename to encoded_ordered_before and
5241 (sort_choices): Update comment and interface.
5242 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5243 (user_select_syms): New interface.
5244 Use new sort_choices interface.
5245 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5246 (possible_user_operator_p): Idiot-proof against null values.
5247 (ada_simple_renamed_entity): Don't make cleanup; rely on
5248 caller to free result string.
5249 Remove const from return type.
5250 (make_array_descriptor): Rename uses of place_on_stack to
5252 Make sure that arrays are on stack.
5254 (HASH_SIZE): Define.
5255 (struct cache_entry): Define.
5256 (cache_space): Define.
5258 (clear_ada_sym_cache): New function.
5259 (find_entry): New function.
5260 (lookup_cached_symbol): New function.
5261 (defn_vector_size): Define.
5262 (cache_symbol): New function.
5263 (defn_symbols): Remove.
5265 (standard_lookup): Use lookup_symbol_in_language to get effect of
5269 (symbol_completion_match): New function.
5270 (symbol_completion_add): New function.
5271 (ada_make_symbol_completion_list): New function.
5273 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5274 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5275 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5276 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5278 (ada_lookup_simple_minsym): New function.
5279 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5281 (add_symbols_from_enclosing_procs): New interface.
5282 Conditionalize more helpfully.
5283 Don't bother if program isn't running.
5284 Use new interface to get_frame_block.
5285 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5287 (remove_extra_symbols): New interface.
5288 (xget_renaming_scope): New function.
5289 (is_package_name): New function.
5290 (renaming_is_visible): New function.
5291 (remove_out_of_scope_renamings): New function.
5293 (ada_lookup_symbol_list): New interface.
5294 Properly reinitialize the symbol list obstack.
5295 Don't call add_symbols_from_enclosing_procs if we start from a
5296 static or global block.
5297 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5298 add_symbols_from_enclosing_procs.
5299 Add symtab data to cached entries.
5300 Handle symbols prefixed with
5301 "standard__" specially; strip prefix and don't look in local symbols.
5302 Do not include out of scope renaming symbols in list of
5304 Add const to block parameter.
5305 Move check for non-local, non-global symbols earlier.
5306 Remove timing stuff.
5307 (ada_lookup_symbol): New interface.
5308 Find symtab as well.
5309 (ada_lookup_symbol_nonlocal): New function.
5311 (is_name_suffix): Enhance suffix detection to recognize
5312 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5313 (is_dot_digits_suffix): New function.
5314 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5316 (ada_add_block_symbols): New interface. Use obstack to return results
5317 in a vector of struct ada_symbol_infos. Add symtab argument.
5318 Use new interface to add_defn_to_vec.
5319 Remove calls to fill_in_ada_prototype.
5320 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5322 (ada_finish_decode_line_1): Add const qualification to local to fix
5324 Start looking in static block for functions to avoid attempts
5325 to search frame chain for up-level variables.
5326 Adapt to new ada_sals_for_line interface.
5327 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5328 Handle quoting of the function name inside the spec string.
5329 Skip prologue when funfirstline is set and update the
5330 function documentation to that effect.
5332 (debug_print_lines, debug_print_block, debug_print_blocks,
5333 debug_print_symtab): Remove.
5335 (ada_main_name): New function.
5336 (ada_exception_breakpoint_type): New function.
5337 (is_known_support_routine): New function.
5338 (ada_find_printable_frame): Renamed from find_printable_frame and made
5340 Remove level parameter.
5341 Use new interface to select_frame.
5343 (begin_command): Remove.
5344 (ada_adjust_exception_stop): New function.
5345 (ada_print_exception_stop): New function.
5346 (exception_name_from_cond): New function.
5347 (ada_report_exception_break): Replace disabled code with
5348 conditionalization on GNAT_GDB.
5349 Get the exception name from the condition string.
5350 Remove and move functionality into new functions
5351 ada_print_exception_breakpoint_task and
5352 ada_print_exception_breakpoint_nontask.
5353 (error_breakpoint_runtime_sym_not_found): New function.
5354 (is_runtime_sym_defined): New function.
5355 (ada_breakpoint_rewrite): Uncomment suppressed code.
5356 Use symbolic error-message and runtime-symbol names.
5357 Surround runtime symbol names in quotes.
5358 Allow non-specific breakpoints on exceptions and assertions before
5361 (ada_is_tagged_type): Add parameter.
5362 (ada_is_tag_type): New function.
5363 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5364 (ada_variant_discrim_type): Ditto.
5365 (value_tag_from_contents_and_address): New function.
5366 (type_from_tag): New function.
5367 (struct tag_args): New structure used to communicate with
5369 (ada_tag_name_1): New function.
5370 (ada_tag_name): New function.
5372 (ada_scan_number): Update comment.
5373 (find_struct_field): New function.
5374 (ada_search_struct_field): Make static.
5375 (ada_value_struct_elt): New version that returns references when
5376 given pointers or references to structs.
5377 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5378 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5380 (ada_value_ind): Use new ada_to_fixed_value interface.
5381 (ada_coerce_ref): Ditto.
5382 (field_offset): Remove.
5384 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5385 (ada_find_renaming_symbol): New function.
5386 (ada_prefer_type): Prefer named types over unnamed ones.
5387 (variant_field_index): New function.
5388 (contains_variant_part): Removed: subsumed by variant_field_index.
5389 (ada_template_to_fixed_record_type): New function, mostly from
5390 template_to_fixed_record_type.
5391 (template_to_fixed_record_type):
5392 Do not scan the type fields beyond the last one; prevents a
5394 Handle case where variant field is listed BEFORE discriminant it
5396 Fix calculation of record length when bit length is
5397 not evenly divisible by char length.
5398 Move code to ada_template_to_fixed_record_type and call it.
5400 (template_to_static_fixed_type): Revise comment.
5401 Modify to work on ordinary record types as well as templates,
5402 so as to handle fields that use ___XVE or ___XVU encodings.
5403 (to_record_with_fixed_variant_part): Fill out comment.
5404 Initialize C++ stuff in right type.
5405 Allow case where DVAL is null.
5406 Handle case where variant field is not last.
5407 Fix typo concerning record length.
5408 (to_fixed_record_type): Decomment disabled code.
5409 (to_fixed_record_type): Use variant_field_index instead of
5410 contains_variant_part.
5411 (to_fixed_variant_branch_type): Ditto.
5412 (to_fixed_array_type): Decomment disabled code.
5413 (ada_to_fixed_type): Convert tagged types to the specific type.
5414 Deactivate the size-check for array types in order to avoid
5415 some false size alarms.
5416 (to_static_fixed_type): Decomment disabled code.
5417 Modify to call template_to_static_fixed_type
5418 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5419 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5420 Remove valaddr argument, as it is never really used.
5421 (ada_to_fixed_value): Change interface to act on single struct value*
5423 (adjust_pc_past_prologue): New function.
5424 (ada_attribute_name): Modify to take enum exp_opcode argument.
5426 (ada_enum_name): Recognize new homonym-distinguishing convention.
5427 Adjust local variable's type to remove compiler warning.
5428 Fix a small problem in the part that unqualifies the enumeration name.
5429 (ada_value_binop): New function.
5430 (ada_value_equal): New function.
5432 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5433 Don't give error message when not doing normal evaluation
5434 and a tagged type doesn't seem to contain a structure member.
5435 Give error message for packed arrays.
5436 For indexing arrays, handle pointers to packed arrays correctly.
5437 Handle case of 'first and 'last attributes of bare integral type
5438 without encoded subtype info.
5439 Remove some unnecessary casts.
5440 Fix uninitialized value of type in computing 'first, 'last, or 'length
5442 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5443 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5445 Attributes are now exp_opcode values.
5446 Correct treatment of 'modulus.
5447 Better error message for taking 'length of wrong kind of type;
5449 Change EVAL_NORMAL to noside for consistency.
5450 Use ada_value_binop for DIV, MOD, REM.
5451 Make special case out of array of length 0, since an argument
5452 of 0 upsets some platforms' malloc.
5453 Use OP_STRING instead of OP_ARRAY.
5454 For slice, add check that we have an array type before extracting
5455 a slice out of it. Avoids a SEGV.
5456 When evaluating an array slice, if the array type is a reference to
5457 an aligner type, then replace the aligner type by the actual type.
5458 Decomment disabled code.
5459 Remove some dead code.
5460 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5461 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5462 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5463 and UNOP_MBR to UNOP_IN_RANGE.
5464 If an array type has a parallel ___XVE type, then use it.
5465 Turn arrays into pointers for lvalue arrays.
5466 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5467 bounds error and handle 0-length slices.
5469 When selecting fields, apply ada_to_fixed_value (because the fields
5470 might have ___XVU or ___XVE encodings even if not dynamic.)
5471 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5472 (ada_is_system_address_type): New function.
5474 (get_var_value): Use new interface to ada_lookup_symbol_list.
5475 (get_int_var_value): New interface.
5476 (to_fixed_range_type): Allow unknown bound, with warning.
5477 (ada_is_modular_type): Decomment disabled code.
5478 (ADA_OPERATORS): New definition.
5479 (ada_operator_length): New function.
5480 (ada_expr_op_name): New function.
5481 (ada_forward_operator_length): New function.
5482 (ada_dump_subexp_body): New function.
5483 (ada_print_subexp): New function.
5484 (ada_exp_descriptor): New constant.
5485 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5486 (ada_language_defn): Add ada_exp_descriptor entry.
5487 Change ada_parse => parse.
5488 Add post-parser entry.
5489 Use ada-specific non-local symbol lookup.
5490 Don't use C-style arrays.
5491 String lower-bound is 1.
5492 Decomment disabled code.
5493 (parse): New function.
5494 New fields ada_translate_error_message, ada_lookup_symbol,
5495 ada_lookup_minimal_symbol.
5497 * ada-lang.h: Update copyright dates.
5498 Replace the mangle/demangle terminology throughout by the
5499 more appropriate encode/decode one.
5500 Include breakpoint.h.
5501 Forward declare struct partial_symbol, struct block.
5502 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5503 (EXTRACT_ADDRESS): Remove.
5504 (EXTRACT_INT): Remove.
5505 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5506 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5507 (MAX_RENAMING_CHAIN_LENGTH): Define.
5508 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5510 (enum task_states): Remove.
5511 ada_task_states: Remove.
5512 (fat_string): Remove.
5513 (struct entry_call): Remove.
5514 (struct task_fields): Remove.
5515 (struct task_entry): Remove.
5517 (struct ada_symbol_info): Define.
5518 (enum ada_attribute): Remove.
5519 (enum ada_operator): Define.
5521 (ada_get_field_index): Declare.
5522 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5523 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5524 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5525 (ada_lookup_symbol_list): New interface.
5526 (ada_decode_symbol): Declare.
5527 (ada_decode): Declare.
5528 (ada_lookup_symbol): New interface.
5529 (ada_update_initial_language): Declare.
5530 (ada_lookup_simple_minsym): Declare.
5531 (user_select_syms): New interface.
5532 (ada_sals_for_line): Declare.
5533 (ada_is_tagged_type): New interface.
5534 (ada_tag_name): Declare.
5535 (ada_lookup_struct_elt_type): Remove declaration.
5536 (ada_search_struct_field): Remove declaration.
5537 (ada_attribute_name): New interface.
5538 (ada_is_system_address_type): Declare.
5539 (ada_to_fixed_value): Remove declaration.
5540 (ada_template_to_fixed_record_type_1): Declare.
5541 (get_int_var_value): New interface.
5542 (ada_find_any_symbol): Declare.
5543 (ada_find_renaming_symbol): Declare.
5544 (ada_mangle): Rename to ada_encode.
5545 (ada_simple_renamed_entity): Remove const.
5546 (ada_main_name): Declare.
5547 (get_current_task): Rename to ada_get_current_task.
5548 (get_entry_number): Remove declaration.
5549 (ada_report_exception_break): Remove declaration.
5550 (ada_print_exception_breakpoint_nontask): Declare.
5551 (ada_print_exception_breakpoint_task): Declare.
5552 (ada_find_printable_frame): Declare.
5554 * ada-lex.l: Update copyright notices.
5555 Use xmalloc and xfree instead of malloc and free.
5556 Use new interface to name_lookup.
5557 Use new interface to
5558 ada_mangle=>ada_encode.
5559 Redo handling of '$...' variable to parallel current treatment
5561 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5562 digit_to_int, strtoulst, processInt, processReal, processId,
5563 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5566 (processInt): Use cast to remove harmless warning.
5567 (processReal): Modify to get rid of compiler warning on scan formats.
5569 (processId): Replace xmalloc with obstack_alloc for name and remove
5570 call to ada_name_string_cleanup.
5571 Remove obsolete disabled code.
5572 (name_lookup): Ditto.
5574 Use obsavestring on temp_parse_space instead of savestring
5575 on name, and remove call to ada_name_string_cleanup.
5576 Free string returned from ada_simple_renamed_entity.
5577 Use new interface to ada_lookup_symbol_list.
5578 Decomment disabled code.
5579 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5581 When a type name lookup succeeds as a result of
5582 lookup_primitive_typename, check for regular type entry that has not
5584 Limit length of chain of renamed symbols we are willing to follow.
5585 Do not break names beginning with "standard__" into segments.
5586 (block_lookup): Use new interface to ada_lookup_symbol_list.
5588 * ada-typeprint.c: Update copyright notice.
5589 (demangled_type_name): Rename to decoded_type_name.
5590 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5591 (print_range_bound): Correct handling of negative
5592 bounds that make the index type looked unsigned under STABS.
5593 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5594 (print_range_type_named): Use the builtin int type if no type
5595 corresponding to the given type name could be found.
5596 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5597 Add some bullet-proofing.
5598 (print_variant_clauses): Allow for variant branches with ___XVU
5599 encodings that are not dynamic fields.
5600 Use new interface to ada_is_tagged_type.
5601 (print_record_type): Allow for fields with ___XVE encodings that
5602 are not dynamic fields.
5603 Use new interface to ada_is_tagged_type.
5604 (ada_print_type): ada_is_array_descriptor =>
5605 ada_is_array_descriptor_type.
5607 * ada-valprint.c: Update copyright notice.
5608 Include gdb_string.h
5610 (ui_memcpy): New function.
5611 (ada_print_floating): New function.
5612 (ada_print_str): Order arguments correctly.
5613 Correct handling of empty arrays and arrays of 0-length items.
5614 ada_is_array_descriptor => ada_is_array_descriptor_type
5615 Print values of type System.Address in hexadecimal format.
5616 Use ada_print_floating to print floating-point numbers in Ada format.
5617 Print class tag values with type names.
5618 No longer print the address of reference values. Avoids
5619 a potential confusion.
5620 (ada_value_print): Stop printing the object type for reference
5621 values, but preserve that behavior for access types. Avoids
5622 a potential confusion.
5623 Simplify one conditional expression, as the first part is now
5625 ada_is_array_descriptor => ada_is_array_descriptor_type
5626 Add check for arrays for null records, and print them by hand.
5628 2004-06-01 Jim Blandy <jimb@redhat.com>
5630 * ppc-tdep.h: Delete unused 'regoff' member.
5631 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5633 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5636 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5637 (hpread_read_struct_type): Likewise.
5639 2004-06-01 Andrew Cagney <cagney@gnu.org>
5641 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5642 instead of xasprintf.
5643 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5644 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5645 (mi_cmd_data_list_register_names)
5646 (mi_cmd_data_list_changed_registers)
5647 (mi_cmd_data_list_register_values)
5648 (get_register, mi_cmd_data_write_register_values)
5649 (mi_cmd_data_write_register_values)
5650 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5651 (mi_cmd_target_download, mi_cmd_target_select)
5652 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5653 (mi_execute_cli_command, mi_execute_async_cli_command)
5654 (mi_execute_async_cli_command): Ditto.
5655 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5656 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5658 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5659 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5660 error_last_message instead of mi_error_last_message.
5661 * mi/mi-main.c (mi_error_last_message): Delete function.
5663 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5664 "invalid number of columns" error. Delete redundant "out of
5667 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5669 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5670 (gregset_t, fpregset_t): Remove typedefs.
5671 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5672 (REG_OFFSET): Rename argument.
5673 (i386bsd_r_reg_offset): Rename from reg_offset.
5674 (REG_ADDR): Remove macro.
5675 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5677 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5678 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5679 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5680 instead of supply_gregset.
5681 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5682 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5683 instead of fill_gregset.
5684 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5686 * i386bsd-nat.c: Don't include "gregset.h".
5687 (supply_gregset, fill_gregset): Make static.
5688 (supply_fpregset, fill_fpregset): Remove.
5689 * Makefile.in (i386bsd-nat.o): Update dependencies.
5691 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5693 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5694 "gdb_assert.h". Con't include "gregset.h".
5695 (fbsd_make_corefile_notes): Use regset-based core file support
5696 instead off fill_gregset and fill_fpregset.
5697 * Makefile.in (fbsd-proc.o): Update dependencies.
5699 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5701 (m88k_frame_prev_register): Simplify code a bit.
5703 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5704 (amd64_collect_fpregset): New function.
5705 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5707 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5709 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5710 (i386_collect_gregset): New function.
5711 (i386_supply_fpregset): Adjust comment.
5712 (i386_collect_fpregset): New function.
5713 (i386_regset_from_core_section): Use i386_collect_gregset and
5714 i386_collect_fpregset.
5716 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5717 handle VALUEP being null.
5719 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5721 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5723 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5725 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5726 assembler in OpenBSD 3.5-current.
5727 (amd64obsd_sigcontext_addr): Likewise.
5729 2004-05-28 Jim Blandy <jimb@redhat.com>
5731 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5732 register set, so our regcache isn't declared "legacy" and our E500
5733 pseudoregister read and write functions aren't ignored.
5734 (rs6000_register_byte, rs6000_register_raw_size,
5735 rs6000_register_virtual_type, rs6000_register_convertible,
5736 rs6000_register_convert_to_virtual,
5737 rs6000_register_convert_to_raw): Deleted.
5738 (rs6000_register_type, rs6000_convert_register_p,
5739 rs6000_register_to_value, rs6000_value_to_register): New
5741 (rs6000_gdbarch_init): Don't register
5742 gdbarch_deprecated_register_size,
5743 gdbarch_deprecated_register_bytes,
5744 gdbarch_deprecated_register_byte,
5745 gdbarch_deprecated_register_raw_size,
5746 gdbarch_deprecated_register_virtual_type,
5747 gdbarch_deprecated_register_convertible,
5748 gdbarch_deprecated_register_convert_to_virtual, or
5749 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5750 register gdbarch_register_type, gdbarch_convert_register_p,
5751 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5753 2004-05-26 Jim Blandy <jimb@redhat.com>
5755 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5756 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5757 functions, updated to match the register numberings used in GCC.
5758 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5759 rs6000_dwarf2_reg_to_regnum as register number conversions
5760 functions for STABS and Dwarf2.
5762 2004-05-26 Randolph Chung <tausq@debian.org>
5764 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5767 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5769 * NEWS: Document new "start" command.
5771 2004-05-25 Randolph Chung <tausq@debian.org>
5773 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5776 2004-05-25 Randolph Chung <tausq@debian.org>
5778 * hppa-hpux-tdep.c (offsetof): Define.
5779 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5780 (hppa32_hpux_frame_base_before_sigtramp)
5781 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5782 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5783 (hppa64_hpux_frame_base_before_sigtramp)
5784 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5786 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5787 (hppa_hpux_sigtramp_frame_unwind_cache)
5788 (hppa_hpux_sigtramp_frame_this_id)
5789 (hppa_hpux_sigtramp_frame_prev_register)
5790 (hppa_hpux_sigtramp_frame_unwind)
5791 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5792 (hppa_hpux_init_abi): Register sigtramp unwinder.
5793 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5795 2004-05-25 Randolph Chung <tausq@debian.org>
5797 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5798 and multiple stack unwinds.
5799 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5801 2004-05-25 Andrew Cagney <cagney@gnu.org>
5803 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5804 * symfile-mem.h: Delete file.
5805 * symfile-mem.c: Do not include "symfile-mem.h".
5806 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5807 "struct bfd_section". When an error do not bother returning NULL.
5808 (add_symbol_file_from_memory_command): Use "struct bfd" and
5809 "struct bfd_section".
5810 * Makefile.in (symfile_mem_h): Delete.
5811 (symfile-mem.o): Update dependencies.
5813 2004-05-25 Nick Roberts <nickrob@gnu.org>
5815 * gdb-mi.el: New file.
5817 2004-05-25 Andrew Cagney <cagney@gnu.org>
5819 * inftarg.c: Include "observer.h".
5820 (child_attach, child_create_inferior): Notify inferior_created.
5821 * corelow.c: Include "observer.h".
5822 (core_open): Notify inferior_created.
5823 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5825 2004-05-25 Andrew Cagney <cagney@gnu.org>
5827 * target.h (struct target_ops): Add from_tty to
5829 (target_create_inferior, find_default_create_inferior): Update.
5830 * infcmd.c (run_command): Update.
5831 * wince.c (child_create_inferior): Update.
5832 * win32-nat.c (child_create_inferior): Update.
5833 * uw-thread.c (uw_thread_create_inferior): Update.
5834 * thread-db.c (thread_db_create_inferior): Update.
5835 * target.c (debug_to_create_inferior)
5836 (find_default_create_inferior): Update.
5837 (maybe_kill_then_create_inferior): Update.
5838 * sol-thread.c (sol_thread_create_inferior): Update.
5839 * remote.c (extended_remote_async_create_inferior)
5840 (extended_remote_create_inferior): Update.
5841 * remote-vx.c (vx_create_inferior): Update.
5842 * remote-st.c (st2000_create_inferior): Update.
5843 * remote-sim.c (gdbsim_create_inferior): Update.
5844 * remote-sds.c (sds_create_inferior): Update.
5845 * remote-rdp.c (remote_rdp_create_inferior): Update.
5846 * remote-rdi.c (arm_rdi_create_inferior): Update.
5847 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5848 * remote-e7000.c (e7000_create_inferior): Update.
5849 * procfs.c (procfs_create_inferior): Update.
5850 * ocd.c (ocd_create_inferior): Update.
5851 * ocd.h (ocd_create_inferior): Update.
5852 * nto-procfs.c (procfs_create_inferior): Update.
5853 * monitor.c (monitor_create_inferior): Update.
5854 * lin-lwp.c (lin_lwp_create_inferior): Update.
5855 * inftarg.c (child_create_inferior): Update.
5856 * hpux-thread.c (hpux_thread_create_inferior): Update.
5857 * gnu-nat.c (gnu_create_inferior): Update.
5859 2004-05-25 Andrew Cagney <cagney@gnu.com>
5861 * MAINTAINERS: Update e-mail address.
5863 2004-05-24 Randolph Chung <tausq@debian.org>
5865 * thread.c (info_threads_command, thread_apply_all_command)
5866 (thread_apply_command, thread_command, do_captured_thread_select):
5867 Remove HPUXHPPA-specific code.
5869 2004-05-24 Randolph Chung <tausq@debian.org>
5871 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5873 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5876 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5878 * infcmd.c (kill_if_already_running): New function, extracted
5880 (run_command): Replace extracted code by call to
5881 kill_if_already_running().
5882 (start_command): New function.
5883 (_initialize_infcmd): Add "start" command.
5885 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5887 Add OpenBSD/m88k support.
5888 * NEWS (New native configurations): Mention OpenBSD/m88k.
5889 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5890 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5891 * Makefile.in (m88k_tdep_h): New variable.
5892 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5893 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5894 * configure.host: Add m88*-*-openbsd*.
5895 * configure.tgt: Add m88*-*-openbsd*.
5897 2004-05-24 Jim Blandy <jimb@redhat.com>
5899 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5902 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5904 * symtab.c (fixup_section): Search section table when lookup by
5907 2004-05-24 Randolph Chung <tausq@debian.org>
5909 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5912 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5914 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5915 register number in regcache_raw_collect call.
5916 (m68kbsd_collect_fpregset): Likewise.
5917 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5919 * regset.h (struct regset): Add back `regset' member.
5921 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5923 * configure.in: Check for td_pcb in `struct thread'.
5924 * configure, config.in: Regenerated.
5926 * dpx2-nat.c: Remove file.
5927 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5928 (dpx2-nat.o): Remove dependencies.
5930 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5931 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5932 (amd64obsd_supply_pcb): New function.
5933 (_initialize_amd64obsd_nat): Enable libkvm interface.
5934 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5935 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5936 (LOADLIBES): New variable.
5938 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5939 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5940 (sparc32nbsd_supply_pcb): New function.
5941 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5942 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5943 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5944 (LOADLIBES): New variable.
5946 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5948 * bsd-kvm.c, bsd-kvm.h: New files.
5949 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5951 (i386fbsd_supply_pcb): New function.
5952 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5953 (i386fbsd-nat.o): Update dependencies.
5954 (bsd_kvm_h): New variable.
5955 (bsd-kvm.o): New dependency.
5956 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5957 (LOADLIBES): New variable.
5959 * regset.c: Tweak comment.
5960 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5962 * regset.h: Update copyright year.
5963 (struct regset): Remove `descr' member, add `gdbarch' member.
5964 (regset_alloc): Adjust prototype and comment.
5965 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5966 (i386_supply_fpregset): Likewise.
5967 (i386_regset_from_core_section): Update call to regset_alloc.
5968 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5970 (i386obsd_aout_regset_from_core_section): Update call to
5972 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5974 (i386nbsd_aout_regset_from_core_section): Update call to
5976 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5978 (amd64_regset_from_core_section): Update call to regset_alloc.
5979 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5981 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5982 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5983 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5984 (sparc32nbsd_init_abi): Update call to regset_alloc.
5985 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5986 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5987 (sparc64obsd_init_abi): Update call to regset_alloc.
5988 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5989 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5990 (sparc64nbsd_init_abi): Update call to regset_alloc.
5991 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5992 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5993 (sparc64fbsd_init_abi): Update call to regset_alloc.
5995 2004-05-22 Jim Blandy <jimb@redhat.com>
5997 * ppc-tdep.h (spe_register_p): New declaration.
5998 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6000 * rs6000-tdep.c (spe_register_p): New function.
6001 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6003 (rs6000_gdbarch_init): Initialize the new members of the tdep
6006 2004-05-21 Jim Blandy <jimb@redhat.com>
6008 * ppc-linux-nat.c (fetch_register): Move code back to be next
6009 to the comment that describes it. (Moved code, instead of
6010 comment, for symmetry with store_register.)
6012 Allocate regset structures in the gdbarch's obstack, not using
6014 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6015 Add 'arch' argument. Allocate the regset on arch's obstack, not
6017 * regset.h (regset_alloc): Update declaration.
6018 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6020 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6021 * i386-tdep.c (i386_regset_from_core_section): Same.
6022 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6023 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6024 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6025 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6026 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6027 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6029 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6031 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6033 2004-05-21 Jim Blandy <jimb@redhat.com>
6035 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6036 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6038 2004-05-20 Jim Blandy <jimb@redhat.com>
6040 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6042 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6044 * regset.h: Make prototype const-correct.
6045 * regset.c (regset_xmalloc): Make const-correct.
6047 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6049 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6050 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6051 (symbol_search_name): Declare.
6053 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6054 (iter_name_next_hashed): Ditto.
6055 (iter_name_next_linear): Ditto.
6056 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6058 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6059 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6060 (symbol_search_name): New function.
6062 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6064 * minsyms.c (build_minimal_symbol_hash_tables): Change
6065 test for adding to demangled hash table to check for difference
6066 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6068 2004-05-19 Jim Blandy <jimb@redhat.com>
6070 Use a constructor function to create regset structures.
6071 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6072 (struct regset): Use supply_regset_ftype. Add new
6073 'collect_regset' member.
6074 (regset_xmalloc): New declaration.
6075 * regset.c: New file.
6076 * am64-tdep.c (amd64_regset_from_core_section): Use
6077 regset_xmalloc to construct regset structures.
6078 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6079 * i386-tdep.c (i386_regset_from_core_section): Same.
6080 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6081 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6082 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6083 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6084 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6085 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6086 * Makefile.in (COMMON_OBS): Add regset.o.
6087 (regset.o): New rule.
6089 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6091 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6092 and pthread_cond_wait.c.
6094 2004-05-18 Jim Blandy <jimb@redhat.com>
6096 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6097 before the mach-specific switch, and then let the individual cases
6098 override the defaults, rather than leaving them uninitialized
6099 until the switch and then setting them in each case.
6101 2004-05-18 Randolph Chung <tausq@debian.org>
6103 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6104 millicode functions.
6106 2004-05-18 Randolph Chung <tausq@debian.org>
6108 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6109 references to dld_flags_buffer consistent.
6111 2004-05-18 Randolph Chung <tausq@debian.org>
6113 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6114 it for unwinding the stack.
6116 2004-05-18 Randolph Chung <tausq@debian.org>
6118 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6119 Undefine these so we can overide them using gdbarch.
6121 2004-05-18 Randolph Chung <tausq@debian.org>
6123 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6124 handling for 64-bit HPUX (elf).
6126 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6128 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6130 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6131 * ia64-tdep.c (examine_prologue): Likewise.
6132 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6133 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6135 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6137 * vax-tdep.c (vax_return_value): Implement
6138 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6140 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6142 * vax-tdep.c (vax_return_value): Fix typo.
6144 2004-05-17 Andrew Cagney <cagney@redhat.com>
6146 * MAINTAINERS: Mark Salter was also responsible for
6149 * NEWS: Mention signal fixes.
6151 2004-05-17 Randolph Chung <tausq@debian.org>
6153 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6154 check to see if we are unwinding an export stub. Export stubs clobber
6155 the %rp in the call path and stores the original rp in a stack slot.
6157 2004-05-17 Jim Blandy <jimb@redhat.com>
6159 * MAINTAINERS: Update address for J.T. Conklin.
6161 2004-05-17 Randolph Chung <tausq@debian.org>
6163 * hppa-tdep.c: Remove superfluous #include's.
6164 * Makefile.in (hppa-tdep.o): Update dependencies.
6166 2004-05-17 Randolph Chung <tausq@debian.org>
6168 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6169 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6170 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6171 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6172 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6173 Remove static function declarations.
6175 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6177 * alphabsd-nat.c: Update copyright year.
6178 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6180 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6183 * m68k-tdep.c (m68k_svr4_return_value): Implement
6184 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6186 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6188 * sol-thread.c Update copyright year. Fix various coding
6189 standards violations. Tweak a few comments.
6190 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6193 2004-05-15 Randolph Chung <tausq@debian.org>
6195 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6196 as pointer instead of array reference since HPUX compiler does
6197 not accept unsized array arguments.
6198 * somsolib.c (dld_flags_buffer): Use constant array size.
6200 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6202 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6203 offset with decimal offset.
6204 (amd64obsd_sigcontext_addr): Return correct address for entire
6207 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6208 instead of get_frame_base.
6210 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6211 (fill_gregset): Use regcache_raw_collect.
6213 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6216 * config/sparc/tm-nbsd64.h: Remove file.
6217 * config/tm-sunos.h: Remove file.
6219 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6221 * rs6000-tdep.c (store_param_on_stack_p): New function,
6222 an improved version of some code extracted from skip_prologue().
6223 (skip_prologue): Use store_param_on_stack_p() to detect
6224 instructions saving a parameter on the stack. Detect when r0
6225 is used to save a parameter.
6226 Do not mark "li rx, SIMM" instructions as part of the prologue,
6227 unless the following instruction is also part of the prologue.
6229 2004-05-14 Andrew Cagney <cagney@redhat.com>
6231 * infrun.c (handle_inferior_event): Simplify
6232 STEP_OVER_UNDEBUGGABLE.
6234 * infrun.c (handle_step_into_function): Delete function.
6235 (handle_inferior_event): Inline calls to
6236 handle_step_into_function.
6238 2004-05-14 Jerome Guitton <guitton@gnat.com>
6240 * rs6000-nat.c: Fix a comment.
6242 2004-05-12 David Anderson <davea@sgi.com>
6244 Committed by Jim Blandy <jimb@redhat.com>:
6245 * regcache.c (struct regcache_descr): fix comment spelling.
6247 2004-05-13 J. Brobecker <brobecker@gnat.com>
6249 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6250 Fixes a link link failure.
6252 2004-05-13 J. Brobecker <brobecker@gnat.com>
6254 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6255 error that was causing the build to fail.
6257 2004-05-13 J. Brobecker <brobecker@gnat.com>
6259 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6260 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6262 2004-05-13 Andrew Cagney <cagney@redhat.com>
6264 * infrun.c (handle_inferior_event): Check for
6265 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6266 calls. Update comments.
6268 2004-05-13 Jim Blandy <jimb@redhat.com>
6270 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6271 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6272 (store_regs_user_thread, store_regs_kernel_thread): Use
6273 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6274 * ppc-linux-nat.c (fill_gregset): Same.
6275 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6276 (ppc_linux_sigtramp_cache): Same.
6277 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6278 (ppcnbsd_sigtramp_cache_init): Same.
6279 * rs6000-nat.c (fetch_core_registers): Same.
6280 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6281 (rs6000_frame_cache): Same.
6283 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6284 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6285 of assuming that the gprs are numbered starting with zero.
6286 * ppc-linux-nat.c (fill_gregset): Same.
6287 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6288 * ppcnbsd-nat.c (getregs_supplies): Same.
6289 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6290 * rs6000-nat.c (fetch_core_registers): Same.
6291 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6293 2004-05-07 Michael Snyder <msnyder@redhat.com>
6295 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6296 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6298 2004-05-13 Andrew Cagney <cagney@redhat.com>
6300 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6302 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6304 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6305 base_address for shared libraries.
6307 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6309 * MAINTAINERS (write after approval): Add myself.
6311 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6313 * breakpoint.c (bpstat_stop_status): Add new argument
6314 STOPPED_BY_WATCHPOINT. Use it instead of testing
6315 target_stopped_data_address agaist 0 to check whether
6316 or not we stopped due to a hardware watchpoint.
6317 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6318 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6321 2004-05-12 Jim Blandy <jimb@redhat.com>
6323 * configure.in: When checking whether we should use the -bbigtoc
6324 option, don't forget to restore the original value of LDFLAGS.
6325 * configure: Regenerated.
6327 2004-05-12 Andrew Cagney <cagney@redhat.com>
6329 * thread.c (load_infrun_state): Delete step_sp.
6330 * infrun.c (context_switch): Ditto.
6331 * inferior.h (step_sp): Ditto.
6332 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6333 * gdbthread.h (struct thread_info, save_infrun_state)
6334 (restore_infrun_state): Ditto.
6336 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6338 * MAINTAINERS (write after approval): Add myself.
6340 2004-05-12 Andrew Cagney <cagney@redhat.com>
6342 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6343 eliminate reference to step_sp.
6344 (struct execution_control_state, init_execution_control_state)
6345 (handle_inferior_event, keep_going): Delete update_step_sp and
6347 * infcmd.c (step_sp): Note that variable is unused.
6349 2004-05-11 Andrew Cagney <cagney@redhat.com>
6351 * infrun.c (step_over_function): Delete function.
6352 (handle_step_into_function): Use insert_step_resume_breakpoint.
6353 (insert_step_resume_breakpoint): Fix assertion.
6355 2004-05-11 Nick Roberts <nickrob@gnu.org>
6357 * utils.c (defaulted_query): Just use the normal query input type
6358 when printing the annotations.
6360 2004-05-11 Andrew Cagney <cagney@redhat.com>
6362 * infrun.c (handle_inferior_event): Simplify code handling
6363 step-into or return-from a signal trampoline.
6365 2004-05-11 Andrew Cagney <cagney@redhat.com>
6367 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6368 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6370 2004-05-10 Jim Blandy <jimb@redhat.com>
6372 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6373 with a call to internal_error.
6375 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6376 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6377 processor variant lacks those registers.
6378 (ppc_floating_point_unit_p): Change description to make it clear
6379 that this returns info about the ISA, not the ABI.
6380 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6381 return true or false by checking tdep->ppc_fp0_regnum and
6382 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6383 arch/mach switching done in rs6000_gdbarch_init; it's better to
6384 keep that logic there, and just check the results here.
6385 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6386 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6387 floating-point registers.
6388 (ppc_supply_fpregset, ppc_collect_fpregset)
6389 (rs6000_push_dummy_call, rs6000_extract_return_value)
6390 (rs6000_store_return_value): Assert that we have floating-point
6392 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6393 (rs6000_frame_cache): Don't note the locations at which
6394 floating-point registers were saved if we have no fprs.
6395 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6397 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6398 (store_regs_user_thread, store_regs_kernel_thread): Only call
6399 supply_fprs / fill_fprs if we actually have floating-point
6401 (special_register_p): Check ppc_fpscr_regnum before matching
6403 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6404 supply / collect fpscr if we don't have it.
6405 * ppc-bdm.c: #include "gdb_assert.h".
6406 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6407 have floating-point registers, since I can't test this code on
6408 FP-free systems to adapt it.
6409 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6410 fpscr and floating point register numbers if they don't exist.
6411 (fetch_register): Assert that we have floating-point registers
6412 before we reach the code that handles them.
6413 (store_register): Same. And use tdep instead of calling
6415 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6417 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6418 fprs and fpscr if we don't have them.
6419 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6421 * ppcnbsd-nat.c: #include "gdb_assert.h".
6422 (getfpregs_supplies): Assert that we have floating-point registers.
6423 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6424 * ppcobsd-tdep.c: #include "gdb_assert.h".
6425 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6426 have floating-point registers.
6427 * rs6000-nat.c (regmap): Don't match against the fpscr and
6428 floating point register numbers if they don't exist.
6429 (fetch_inferior_registers, store_inferior_registers,
6430 fetch_core_registers): Only fetch / store / supply the
6431 floating-point registers and the fpscr if we have them.
6432 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6433 (ppcobsd-tdep.o): Update dependencies.
6435 2004-05-10 Andrew Cagney <cagney@redhat.com>
6437 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6438 (context_switch): Do not switch through_sigtramp_breakpoint.
6439 * gdbthread.h (save_infrun_state, load_infrun_state)
6440 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6441 and structure member.
6442 * thread.c (load_infrun_state, save_infrun_state): Update.
6444 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6446 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6448 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6450 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6452 * aclocal.m4: Regenerate.
6454 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6456 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6458 2004-05-10 Andrew Cagney <cagney@redhat.com>
6460 * infrun.c (check_sigtramp2): Delete function.
6461 (handle_inferior_event): When single stepping, and taking a
6462 signal, set a breakpoint at the signal return address. Delete
6463 redundant calls to check_sigtramp2.
6464 (insert_step_resume_breakpoint): New function.
6465 (through_sigtramp_breakpoint, handle_inferior_event)
6466 (follow_exec, wait_for_inferior, fetch_inferior_event)
6467 (currently_stepping, keep_going): Delete most uses of
6468 through_sigtramp_breakpoint, not that it should be deleted.
6469 (delete_breakpoint_current_contents): Delete function.
6471 2004-05-10 Randolph Chung <tausq@debian.org>
6473 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6475 * config/pa/tm-linux.h: New file.
6477 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6479 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6480 of prefixes. Don't print the prefix twice in the CLI.
6482 2004-05-10 Jim Blandy <jimb@redhat.com>
6484 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6485 collect all the gprs.
6487 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6488 loop collecting gprs.
6490 2004-05-09 Andrew Cagney <cagney@redhat.com>
6492 * remote-vx.c (net_step): Delete step-range code.
6493 * remote.c (remote_resume, init_all_packet_configs)
6494 (set_remote_protocol_E_packet_cmd)
6495 (show_remote_protocol_E_packet_cmd)
6496 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6497 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6498 (show_remote_protocol_e_packet_cmd): Ditto.
6500 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6502 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6504 * hppa-tdep.h: Update copyright year.
6505 (struct trad_frame_saved_reg): Add opaque declaration.
6507 * amd64-tdep.c (amd64_return_value): Implement
6508 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6510 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6511 (m68k_value_to_register): New functions.
6512 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6515 * defs.h (enum return_value_convention): Add
6516 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6517 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6518 * infcmd.c (legacy_return_value): New function.
6519 (print_return_value): Rwerite to implement
6520 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6521 * values.c (using_struct_return): Check for inequality to
6522 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6523 RETURN_VALUE_STRUCT_CONVENTION.
6524 * i386-tdep.c (i386_return_value): Implement
6525 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6527 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6528 include "symtab.h", "opcode/vax.h" and "inferior.h".
6529 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6530 to read_memory_unsigned_integer.
6531 (vax_gdbarch_init): Reorder.
6532 (_initialize_vax_tdep): Spell out prototype.
6533 * Makefile.in (vax-tdep.o): Update dependencies.
6535 2004-05-08 Andrew Cagney <cagney@redhat.com>
6537 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6538 * target.c (target_detach, target_disconnect): Ditto.
6540 * infcall.c (call_function_by_hand): When no
6541 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6542 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6543 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6545 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6547 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6548 * gdbarch.h, gdbarch.c: Re-generate.
6549 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6550 deprecated_fix_call_dummy.
6551 * v850-tdep.c (v850_gdbarch_init): Ditto.
6552 * infcall.c (call_function_by_hand): Do not call
6553 DEPRECATED_FIX_CALL_DUMMY.
6555 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6556 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6557 * gdbarch.h, gdbarch.c: Re-generate.
6558 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6559 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6560 deprecated_sizeof_call_dummy_words.
6561 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6563 * v850-tdep.c (v850_gdbarch_init): Ditto.
6564 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6565 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6566 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6567 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6568 * arch-utils.h (legacy_call_dummy_words)
6569 (legacy_sizeof_call_dummy_words): Delete declarations.
6570 * arch-utils.c (legacy_call_dummy_words)
6571 (legacy_sizeof_call_dummy_words): Delete variables.
6573 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6574 * gdbarch.h, gdbarch.c: Re-generate.
6575 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6576 * infcall.c (call_function_by_hand): Eliminate call to
6577 DEPRECATED_PUSH_DUMMY_FRAME.
6578 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6580 (ns32k_push_dummy_frame): Delete function.
6582 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6583 deprecated_call_dummy_breakpoint_offset or
6584 deprecated_call_dummy_start_offset.
6585 * dummy-frame.c, arm-tdep.c: Update comments.
6586 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6587 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6588 * gdbarch.h, gdbarch.c: Re-generate.
6590 * infcall.c (legacy_push_dummy_code): Delete function.
6591 (push_dummy_code): Delete call.
6593 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6594 * gdbarch.h, gdbarch.c: Re-generate.
6595 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6596 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6597 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6598 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6600 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6601 (struct frame_info): Delete opaque declaration.
6602 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6603 * frame.c (get_frame_type): Delete call.
6605 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6607 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6608 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6610 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6612 * alphanbsd-tdep.c: Include "gdb_string.h".
6613 * armnbsd-tdep.c: Update copyright year.
6614 Include "gdb_string.h".
6615 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6618 * delta68-nat.c: Remove file.
6619 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6620 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6621 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6622 (delta68-nat.o): Remove dependency.
6624 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6626 (m68k_gdbarch_init): Don't set
6627 deprecated_frameless_function_invocation.
6629 2004-05-07 Randolph Chung <tausq@debian.org>
6631 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6632 read_memory_nobpt for code reading when doing frame unwinding.
6633 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6635 2004-05-07 Randolph Chung <tausq@debian.org>
6637 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6638 instead of sp, handle sigaltstack case.
6639 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6640 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6641 signal handler and not that of the caller.
6642 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6643 hppa_linux_sigtramp_find_sigcontext.
6645 2004-05-07 Randolph Chung <tausq@debian.org>
6647 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6649 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6650 * hppa-linux-nat.c (fetch_register, store_register): Define.
6651 (fetch_inferior_registers, store_inferior_registers): Define.
6652 (supply_gregset): Add comment and clean up some unneeded code.
6653 (fill_gregset): Add comment and fix so that it saves registers in
6654 the right place in the gregset.
6655 (fill_fpregset): Fix buffer overrun problem.
6656 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6658 2004-05-07 Randolph Chung <tausq@debian.org>
6660 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6661 do common handling of the pcoqt register.
6662 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6663 to use helper function.
6664 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6665 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6666 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6667 generic fallback unwinder when all else fails.
6668 (hppa_gdbarch_init): Add fallback sniffer.
6669 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6670 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6671 to use helper function.
6673 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6675 * config/djgpp/fnchange.lst: Add translation rules for
6676 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6678 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6680 * frame.c (get_prev_frame_1): Work around GCC bug.
6681 * frame.h: Add comment about GCC bug.
6683 2004-05-07 Andrew Cagney <cagney@redhat.com>
6685 * observer.c: Include "commands.h" and "gdbcmd.h".
6686 (observer_debug, _initialize_observer): Add the
6687 command "set/show debug observer".
6688 * observer.sh: When observer debugging, log notify calls.
6689 * Makefile.in (observer.o): Update dependencies.
6691 2004-05-07 Jason Molenda (jmolenda@apple.com)
6693 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6695 2004-05-07 Jim Blandy <jimb@redhat.com>
6697 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6698 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6699 to recognize gpr regnums, instead of assuming that
6700 tdep->ppc_fp0_regnum marks the end of the general-purpose
6703 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6704 the given architecture has floating-point registers.
6706 2004-05-07 Andrew Cagney <cagney@redhat.com>
6708 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6710 * gdbarch.h, gdbarch.c: Re-generate.
6711 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6712 deprecated_use_generic_dummy_frames.
6714 2004-05-07 Brian Ford <ford@vss.fsi.com>
6716 * NEWS: Mention Cygwin DWARF 2 support.
6718 2004-05-07 Andrew Cagney <cagney@redhat.com>
6720 * objfiles.h (struct entry_info): Delete unused fields
6721 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6722 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6723 * mipsread.c (mipscoff_symfile_read): Update.
6724 * mdebugread.c (parse_partial_symbols): Update.
6725 * dwarfread.c (read_file_scope): Update.
6726 * dwarf2read.c (read_file_scope): Update.
6727 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6728 * coffread.c (complete_symtab): Update.
6730 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6732 * infcall.c (_initialize_infcall): Fix typo.
6734 2004-05-07 Andrew Cagney <cagney@redhat.com>
6736 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6737 * command.h (add_setshow_zinteger_cmd): Declare.
6739 2004-05-06 Randolph Chung <tausq@debian.org>
6741 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6742 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6743 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6744 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6745 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6746 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6747 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6749 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6750 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6751 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6752 (hppa64_hpux_frame_find_saved_regs_in_sig)
6753 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6754 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6755 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6756 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6757 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6758 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6759 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6760 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6761 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6762 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6763 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6764 (hppa32_register_type, hppa_cannot_store_register)
6765 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6766 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6767 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6768 * pa64solib.c (pa64_solib_have_load_event)
6769 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6770 (pa64_solib_unloaded_library_pathname): Likewise.
6771 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6772 (som_solib_library_pathname): Likewise.
6774 2004-05-05 Jim Ingham <jingham@apple.com>
6776 * breakpoint.c (create_breakpoints): Copy the ignore count and
6777 thread id over from the pended breakpoint to the actual
6780 2004-05-05 Andrew Cagney <cagney@redhat.com>
6782 * gdbarch.sh (PARM_BOUNDARY): Delete.
6783 gdbarch.h, gdbarch.c: Re-generate.
6784 * valops.c (PARM_BOUNDARY): Delete macro.
6785 (value_push): Delete PARM_BOUNDARY code.
6786 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6788 2004-05-04 Jim Blandy <jimb@redhat.com>
6790 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6791 Don't assume that the gprs, fprs, and UISA sprs are
6792 contiguous, start at register number zero, and end with fpscr.
6793 Instead, use the numbers from the tdep structure.
6795 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6796 should no longer be used in code specific to the RS6000 and its
6798 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6799 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6800 tdep->ppc_fp0_regnum.
6801 (ppc_supply_fpregset, ppc_collect_fpregset)
6802 (rs6000_push_dummy_call, rs6000_extract_return_value)
6803 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6804 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6806 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6807 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6809 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6810 bdm_ppc_store_registers): Same.
6811 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6812 (store_register, fill_fpregset): Same.
6813 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6814 (ppc_linux_supply_fpregset): Same.
6815 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6816 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6818 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6819 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6820 ppc64_sysv_abi_return_value): Same.
6821 * rs6000-nat.c (regmap, fetch_inferior_registers)
6822 (store_inferior_registers, fetch_core_registers): Same.
6824 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6826 * m68knbsd-nat.c: Remove file.
6827 * m68knbsd-tdep.c: Remove file.
6828 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6830 * configure.host: Add m68k-*-netbsdelf*.
6831 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6832 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6833 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6835 * config/m68k/nbsdelf.mh: New file.
6836 * config/m68k/nbsd.mt: New file.
6837 * config/m68k/nbsdaout.mt: Remove file.
6838 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6839 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6840 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6841 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6842 (use_struct_convention): Remove prototype.
6843 (USE_STRUCT_CONVENTION): Remove define.
6844 * config/m68k/xm-nbsd.h: Remove file.
6846 2004-05-04 Michael Snyder <msnyder@redhat.com>
6848 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6849 reg_struct_return method (as gcc usually does for cross targets).
6851 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6853 Committed by Andrew Cagney.
6854 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6855 alignment padding when accessing ucontext struct members.
6857 2004-05-04 Jim Blandy <jimb@redhat.com>
6859 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6860 'ppc_gplast_regnum' member.
6861 (ppc_num_gprs): New enum constant.
6862 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6863 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6864 * rs6000-nat.c (regmap, fetch_inferior_registers,
6865 store_inferior_registers): Same.
6866 * rs6000-tdep.c (e500_pseudo_register_read)
6867 (e500_pseudo_register_write): Same.
6868 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6870 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6871 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6872 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6873 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6875 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6877 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6878 * rs6000-nat.c (regmap, fetch_inferior_registers)
6879 (store_inferior_registers): Same.
6881 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6884 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6886 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6887 failure detected by recent versions of GCC.
6888 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6889 to be consistent with the usage in dwarf2_create_include_psymtab.
6891 2004-05-03 Michael Snyder <msnyder@redhat.com>
6893 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6894 (heuristic_proc_start): Whitespace cleanup.
6896 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6898 * sun3-nat.c: Remove file.
6899 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6901 (ALLDEPFILES): Remove sun3-nat.c.
6902 (sun3-nat.o): Remove dependencies.
6904 * i386-interix-nat.c, i386-interix-tdep.c,
6905 config/i386/nm-interix.h, config/i386/interix.mh,
6906 config/i386/interix.mt: Remove files.
6907 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6910 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6912 * m68k-tdep.h (struct gdbarch_tdep): Add member
6913 struct_value_regnum.
6914 (m68k_svr4_init_abi): New prototype.
6915 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6916 different calling conventions.
6917 (m68k_extract_return_value): Remove code dealing with single-field
6919 (m68k_store_return_value): Remove code dealing with single-field
6920 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6921 (m68k_extract_struct_value_address): Remove function.
6922 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6923 (m68k_reg_struct_return_p, m68k_return_value)
6924 (m68k_svr4_return_value): New functions.
6925 (m68k_use_struct_convention): Remove function.
6926 (m68k_push_dummy_call): Use new struct_value_regnum member of
6927 `struct gdbarch_tdep' instead of hardcoded register number to
6929 (m68k_svr4_init_abi): New function.
6930 (m68k_gdbarch_init): Don't set extract_return_value,
6931 store_return_values, deprecated_extract_struct_value_address and
6932 use_struct_convention. Set return_value instead. Initialize new
6933 struct_value_regnum member of `struct gdbarch_tdep'.
6934 * m68klinux-tdep.c: Update copyright year.
6935 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6936 (m68k_linux_extract_struct_value_address): Remove function.
6937 (m68k_linux_init_abi): Don't set extract_return_value,
6938 store_return_values, deprecated_extract_struct_value_address and
6939 use_struct_convention. Call m68k_svr4_init_abi but override the
6940 new struct_value_regnum member of `struct gdbarch_tdep'.
6941 * Makefile.in (m68k-tdep.o): Update dependencies.
6943 2004-05-03 J. Brobecker <brobecker@gnat.com>
6945 * dwarf2read.c (line_header): Add new included_p field in
6947 (partial_die_info): New field has_stmt_list. New field line_offset.
6948 (dwarf2_create_include_psymtab): New function.
6949 (dwarf2_build_include_psymtabs): New function.
6950 (add_file_name): Add forward declaration. Initialize new field.
6951 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6952 to be able to determine the list of files included by the
6953 given unit, and build their associated psymtabs.
6954 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6956 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6957 (read_file_scope): Update call to dwarf_decode_lines.
6958 (read_partial_die): Handle DW_AT_stmt_list attributes.
6960 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6963 * configure.in: Revert special case for osf5.*.
6964 * configure: Regenerate.
6966 2004-05-02 Jim Blandy <jimb@redhat.com>
6968 Move the symbol-file-from-memory functions into their own file.
6969 * symfile-mem.c, symfile-mem.h: New files.
6970 * symfile.c (symbol_file_add_from_bfd): New function.
6971 (symbol_file_add): Call symbol_file_add_from_bfd.
6972 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6973 Moved to symfile-mem.c.
6974 (_initialize_symfile): Move definition of
6975 add-symbol-file-from-memory command to symfile-mem.c.
6976 * symfile.h (symbol_file_add_from_bfd): New declaration.
6977 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6978 * config/powerpc/linux.mt (TDEPFILES): Same.
6979 * Makefile.in (SFILES): Add symfile-mem.c.
6980 (symfile_mem_h): New variable.
6981 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6982 (symfile-mem.o): New rule.
6984 2004-05-01 Andrew Cagney <cagney@redhat.com>
6986 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6987 frame_find_by_id instead of frame_relative_level.
6988 (do_enable_breakpoint): Ditto.
6989 * thread.c: Update copyright.
6990 (info_threads_command): Ditto, simplify.
6992 * frame.c (deprecated_generic_get_saved_register): Delete
6993 function, moved to "xstormy16-tdep.c".
6994 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6995 deprecated_generic_get_saved_register from "frame.c".
6996 (xstormy16_frame_saved_register): Call
6997 xstormy16_get_saved_register.
6998 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7000 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7001 * frame.h (deprecated_generic_get_saved_register): Delete.
7003 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7005 * dwarfread.c: Update documentation on the state of dwarf-1.
7007 2004-05-01 Andrew Cagney <cagney@redhat.com>
7009 * stack.c (select_frame_command): Delete call to
7010 frame_relative_level.
7011 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7013 (frame_info): Do not print FRAMELESS.
7014 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7015 (catch_info): Delete #if0 code.
7017 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7018 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7019 of frame_relative_level.
7020 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7022 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7023 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7024 frame_relative_level.
7026 * frame.h (deprecated_set_frame_type): Delete declaration.
7027 * frame.c (deprecated_set_frame_type): Delete function, update
7030 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7031 * gdbarch.h, gdbarch.c: Re-generate.
7032 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7033 (shnbsd_pc_in_sigtramp): Delete.
7034 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7036 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7038 * frame.h: Update comments.
7039 * ppc-linux-tdep.c: Update comments.
7040 * breakpoint.c (bpstat_what): Update comments.
7042 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7043 m68klinux-tdep.o's dependencies, were previously added to
7046 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7047 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7048 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7049 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7050 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7052 * Makefile.in (m68klinux-nat.o): Update dependencies.
7053 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7054 (m68k_linux_sigtramp_frame_cache)
7055 (m68k_linux_sigtramp_frame_this_id)
7056 (m68k_linux_sigtramp_frame_prev_register)
7057 (m68k_linux_sigtramp_frame_unwind)
7058 (m68k_linux_sigtramp_frame_sniffer)
7059 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7060 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7061 names, use trad-frame.h.
7062 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7063 (struct m68k_sigtramp_info): Delete.
7064 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7065 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7066 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7067 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7070 * infrun.c (check_sigtramp2): Delete check for
7071 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7073 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7075 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7077 2004-05-01 Andrew Cagney <cagney@redhat.com>
7079 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7080 (frv_linux_sigtramp_frame_cache)
7081 (frv_linux_sigtramp_frame_this_id)
7082 (frv_linux_sigtramp_frame_prev_register)
7083 (frv_linux_sigtramp_frame_unwind)
7084 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7085 include "linux" in function and variable names, directly call
7086 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7087 the latest trad-frame code.
7088 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7089 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7090 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7091 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7092 * frv-tdep.c (frv_sigtramp_frame_cache)
7093 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7094 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7096 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7097 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7098 (frv_set_sigcontext_reg_addr): Delete function.
7100 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7101 (DEPRECATED_SIGTRAMP_END): Delete.
7102 * gdbarch.h, gdbarch.c: Re-generate.
7103 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7104 * config/vax/tm-vaxbsd.h: Update copyright.
7105 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7106 (DEPRECATED_IN_SIGTRAMP): Define.
7107 * config/m68k/tm-nbsd.h: Update copyright.
7108 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7109 (DEPRECATED_IN_SIGTRAMP): Define.
7111 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7113 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7114 encondings. Fixes PR gdb/1628.
7116 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7117 DW_CFA_restore state without a matching DW_CFA_remember_state
7118 instead of aborting. Fixes PR backtrace/1589.
7120 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7122 * MAINTAINERS: Add self as AIX maintainer.
7123 Update my e-mail address in write-after-approval section.
7125 2004-04-30 Andrew Cagney <cagney@redhat.com>
7127 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7128 (legacy_get_prev_frame): Ditto.
7130 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7131 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7132 * mipsread.c (sigtramp_address): Delete extern variable.
7133 (mipscoff_new_init): Delete reference.
7134 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7135 (fixup_sigtramp): Delete function.
7136 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7137 (fixup_sigtramp): Delete declarations.
7139 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7140 deprecated_pc_in_sigtramp.
7141 (ppcnbsd_pc_in_sigtramp): Delete function.
7143 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7145 * config/m68k/nm-nbsd.h: Tweak comments.
7146 * config/m68k/nm-nbsdaout.h: Likewise.
7148 2004-04-30 Andrew Cagney <cagney@redhat.com>
7150 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7151 legacy_pc_in_sigtramp.
7152 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7154 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7156 Add OpenBSD/m68k support.
7157 * NEWS (New native configurations): Mention OpenBSD/m68k.
7158 * m68kbsd-tdep.c: New file.
7159 * m68kbsd-nat.c: New file.
7160 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7161 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7162 * configure.host: Add m68k-*-openbsd.
7163 * configure.tgt: Add m68k-*-openbsd.
7164 * config/m68k/tm-obsd.h: New file.
7165 * config/m68k/obsd.mt: New file.
7166 * config/m68k/obsd.mh: New file.
7167 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7170 2004-04-30 Andrew Cagney <cagney@redhat.com>
7172 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7173 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7175 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7177 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7178 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7180 2004-04-30 Brian Ford <ford@vss.fsi.com>
7182 Revert 2004-04-16 change.
7183 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7184 (i386_coff_init_abi): Remove.
7185 * i386-tdep.h (i386_coff_init_abi): Remove.
7186 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7188 2004-04-30 Andrew Cagney <cagney@redhat.com>
7190 * blockframe.c (find_pc_partial_function): Delete use of
7191 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7192 DEPRECATED_SIGTRAMP_END.
7194 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7195 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7196 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7197 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7198 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7200 * defs.h (deprecated_inside_entry_file): Delete declaration.
7201 * blockframe.c (deprecated_inside_entry_file): Delete function.
7202 (legacy_frame_chain_valid): Delete call.
7203 * sh64-tdep.c (sh64_frame_chain): Delete call.
7204 * objfiles.h: Update comments.
7205 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7207 * frame.c (get_prev_frame): Delete call, update comments.
7209 2004-04-30 Brian Ford <ford@vss.fsi.com>
7211 * MAINTAINERS (Write After Approval): Add myself.
7213 2004-04-30 Andrew Cagney <cagney@redhat.com>
7215 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7216 * gdbarch.h, gdbarch.c: Re-generate.
7217 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7220 2004-04-30 Andrew Cagney <cagney@redhat.com>
7222 * gdb-events.sh (selected_thread_changed)
7223 (selected_frame_level_changed, target_changed): Delete.
7224 * gdb-events.h, gdb-events.c: Re-generate.
7225 * valops.c (value_assign): Update.
7226 * stack.c (select_frame_command, up_silently_base)
7227 (down_silently_base): Update.
7229 2004-04-29 Andrew Cagney <cagney@redhat.com>
7231 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7232 registers correctly.
7233 (print_gp_register_row, mips32_heuristic_proc_desc)
7234 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7235 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7236 references to mips_isa_regsize.
7238 2004-04-29 Andrew Cagney <cagney@redhat.com>
7240 * mips-tdep.c (struct gdbarch_tdep): Delete
7241 mips_fp_register_double.
7242 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7244 (mips_gdbarch_init): Do not set mips_fp_register_double.
7245 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7247 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7249 Committed by Andrew Cagney.
7250 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7253 2004-04-29 Andrew Cagney <cagney@redhat.com>
7255 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7256 gdbarch, use mips_abi, update callers.
7257 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7258 mips_abi_regsize, update callers.
7259 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7260 mips_default_abi_regsize.
7261 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7262 mips_default_abi_regsize.
7264 2004-04-29 Andrew Cagney <cagney@redhat.com>
7266 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7267 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7268 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7269 mips_default_abi_regsize.
7270 (mips_isa_regsize): Rename mips_regisze.
7271 * mipsnbsd-tdep.c: Update.
7272 * mips-linux-tdep.c: Update.
7273 * irix5-nat.c: Update.
7274 * mips-tdep.h (mips_isa_regsize): Update.
7276 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7277 Delete all disabled code.
7278 * gdb-events.h, gdb-events.c: Re-generate.
7280 2004-04-19 Jerome Guitton <guitton@gnat.com>
7281 Mark Kettenis <kettenis@gnu.org>
7283 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7284 the function begins with a branch instruction.
7286 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7288 * i386-tdep.c: Fix spelling mistakes.
7290 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7291 Andrew Cagney <cagney@redhat.com>
7293 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7295 * acconfig.h: Provide default _KMEMUSER value.
7296 * config.in, configure: Re-generate.
7297 * NEWS: Mention fix.
7299 2004-04-24 Randolph Chung <tausq@debian.org>
7301 * configure.host (hppa*-*-linux*): New target.
7302 * configure.tgt (hppa*-*-linux*): Likewise.
7303 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7304 gdbarch_init_osabi() call earlier so that osabi-specific frame
7305 unwinders can be registered first.
7306 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7308 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7309 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7310 * config/pa/linux.mh: New file.
7311 * config/pa/linux.mt: New file.
7312 * config/pa/nm-linux.h: New file.
7313 * config/pa/xm-linux.h: New file.
7314 * hppa-linux-nat.c: New file.
7315 * hppa-linux-tdep.c: New file.
7317 2004-04-28 Randolph Chung <tausq@debian.org>
7319 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7321 (hppa32_push_dummy_call): Fix small struct and floating point argument
7322 passing, and make sure the stack frame is properly aligned.
7324 2004-04-28 Andrew Cagney <cagney@redhat.com>
7326 * stack.c (print_stack_frame): Fix description.
7328 * NEWS: Mention gdb/gdbserver/configure execute permission
7329 changed. PR server/519.
7331 2004-04-28 Andrew Cagney <cagney@redhat.com>
7333 * stack.c (print_stack_frame_stub): Delete declaration.
7334 (struct print_stack_frame_args, print_stack_frame)
7335 (print_frame_info, print_frame): Replace "source" with print what.
7336 Replace "print" with "print_level". Replace "args" with
7338 * frame.h (show_and_print_stack_frame, print_stack_frame)
7339 (print_frame_info): Update declarations.
7340 * stack.c (select_and_print_frame, frame_command)
7341 (current_frame_command, up_command, down_command): Update calls -
7342 use get_selected_frame, pass "enum print_what" for source, do not
7343 call frame_relative_level.
7344 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7345 * remote-rdp.c (remote_rdp_open): Ditto.
7346 * remote-mips.c (common_open): Ditto.
7347 * remote-e7000.c (e7000_start_remote): Ditto.
7348 * ocd.c (ocd_start_remote): Ditto.
7349 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7350 * infrun.c (normal_stop): Ditto.
7351 * inflow.c (kill_command): Ditto.
7352 * infcmd.c (finish_command): Ditto.
7353 * corelow.c (core_open): Ditto.
7354 * tracepoint.c (finish_tfind_command): Ditto.
7355 * thread.c (info_threads_command, info_threads_command)
7356 (restore_current_thread, do_captured_thread_select): Ditto.
7357 * ada-tasks.c (task_command): Ditto.
7359 2004-04-26 Orjan Friberg <orjanf@axis.com>
7361 * frame.c: Include "observer.h".
7362 (frame_observer_target_changed): New function.
7363 (_initialize_frame): Attach target_changed observer.
7364 * regcache.c: Include "observer.h".
7365 (regcache_observer_target_changed): New function.
7366 (_initialize_regcache): Attach target_changed observer.
7367 * valops.c: Include "observer.h".
7368 (value_assign): Notify target_changed event when modifying register.
7369 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7371 2004-04-26 Orjan Friberg <orjanf@axis.com>
7373 From Paul Koning <pkoning@equallogic.com>:
7374 * breakpoint.c (free_valchain): New function.
7375 (insert_bp_location, delete_breakpoint): Use free_valchain.
7376 (remove_breakpoint): Do not remove the valchain.
7377 (bpstat_stop_status): If not stopped by watchpoint, skip
7378 watchpoints when generating stop status list.
7379 * infrun.c (handle_inferior_event): Make
7380 stepped_after_stopped_by_watchpoint a global variable.
7381 * remote.c (remote_stopped_data_address): Return watch data
7382 address rather than zero if stepped_after_stopped_by_watchpoint is
7385 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7388 * configure.in: Check for curses after termcap.
7389 On osf5.*, do not check for ncurses.
7390 * configure: Regenerate.
7392 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7394 * ppcobsd-nat.c: Include "ppc-tdep.h".
7395 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7397 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7398 Fixes PR tdep/1623 and PR tdep/1624.
7400 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7402 * xmodem.h, xmodem.c: Remove files.
7403 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7405 2004-04-23 Randolph Chung <tausq@debian.org>
7407 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7408 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7409 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7410 for handling stackless frames.
7411 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7413 2004-04-23 Randolph Chung <tausq@debian.org>
7415 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7416 starts at a pc before the frame is created.
7418 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7420 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7422 2004-04-23 Jerome Guitton <guitton@gnat.com>
7424 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7425 use convert_typed_floating to get the appropriate format.
7427 2004-04-22 Randolph Chung <tausq@debian.org>
7429 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7430 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7431 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7432 (hppa_sign_extend): Add prototype.
7433 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7434 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7435 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7436 hppa targets will also use these functions.
7437 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7438 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7439 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7440 (hppa_gdbarch_init): Remove gdbarch setting of
7441 skip_trampoline_code, in_solib_call_trampoline and
7442 in_solib_return_trampoline.
7443 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7444 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7445 hppa_in_solib_call_trampoline.
7446 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7447 Moved from hppa-tdep.c.
7448 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7449 in_solib_call_trampoline and in_solib_return_trampoline.
7451 2004-04-22 Randolph Chung <tausq@debian.org>
7453 * hppa-tdep.c (hppa_debug): New variable.
7454 (find_unwind_entry, hppa_frame_cache): Add debug output.
7455 (_initialize_hppa_tdep): Add command to set debug flag.
7457 2004-04-22 Andrew Cagney <cagney@redhat.com>
7459 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7461 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7462 signal trampoline unwinder.
7463 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7465 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7467 Add OpenBSD/powerpc support.
7468 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7469 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7470 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7471 (ppc_collect_fpregset): New prototypes.
7472 * ppcobsd-nat.c: New file.
7473 * ppcobsd-tdep.c: New file.
7474 * ppcobsd-tdep.h: New file.
7475 * rs6000-tdep.c: Include "regset.h".
7476 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7477 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7479 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7480 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7481 (rs6000-tdep.o): Update dependencies.
7482 * configure.host: Add powerpc-*-openbsd.
7483 * configure.tgt: Add powerpc-*-openbsd.
7484 * config/powerpc/obsd.mh: New file.
7485 * config/powerpc/nm-obsd.h: New file.
7486 * config/powerpc/obsd.mt: New file.
7488 2004-04-22 Andrew Cagney <cagney@redhat.com>
7490 * frame.h (show_frame_info): Delete declaration.
7492 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7493 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7494 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7495 * frv-tdep.c (frv_frame_this_id): Ditto.
7496 * avr-tdep.c (avr_frame_this_id): Ditto.
7498 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7500 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7502 2004-04-22 Jim Blandy <jimb@redhat.com>
7504 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7505 register number zero.
7507 2004-04-21 Michael Snyder <msnyder@redhat.com>
7509 * mips-tdep.c (heuristic_proc_start):
7510 Warning() already prefixes "Warning: ".
7512 2004-04-21 Andrew Cagney <cagney@redhat.com>
7514 * annotate.h (deprecated_annotate_starting_hook)
7515 (deprecated_annotate_stopped_hook)
7516 (deprecated_annotate_exited_hook)
7517 (deprecated_annotate_signal_hook)
7518 (deprecated_annotate_signalled_hook): Deprecate.
7519 * tracepoint.h (deprecated_create_tracepoint_hook)
7520 (deprecated_delete_tracepoint_hook)
7521 (deprecated_modify_tracepoint_hook)
7522 (deprecated_trace_find_hook)
7523 (deprecated_trace_start_stop_hook): Deprecate.
7524 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7525 * remote.h (deprecated_target_resume_hook)
7526 (deprecated_target_wait_loop_hook): Deprecate.
7527 * gdbcore.h (deprecated_exec_file_display_hook)
7528 (deprecated_file_changed_hook): Deprecate.
7529 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7530 * defs.h (deprecated_modify_breakpoint_hook)
7531 (deprecated_command_loop_hook, deprecated_show_load_progress)
7532 (deprecated_print_frame_info_listing_hook)
7533 (deprecated_query_hook, deprecated_warning_hook)
7534 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7535 (deprecated_delete_breakpoint_hook)
7536 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7537 (deprecated_readline_begin_hook, deprecated_readline_hook)
7538 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7539 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7540 (deprecated_context_hook, deprecated_target_wait_hook)
7541 (deprecated_attach_hook, deprecated_detach_hook)
7542 (deprecated_call_command_hook, deprecated_set_hook)
7543 (deprecated_error_hook, deprecated_error_begin_hook)
7544 (deprecated_ui_load_progress_hook): Deprecate.
7545 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7546 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7547 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7548 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7549 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7550 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7551 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7552 * annotate.c, aix-thread.c: Update.
7554 2004-04-21 Andrew Cagney <cagney@redhat.com>
7556 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7557 * vaxnbsd-tdep.c: Include "gdb_string.h".
7559 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7560 (add_symbol_file_from_memory_command): #if 0 function body, call
7563 2004-04-21 Andrew Cagney <cagney@redhat.com>
7565 * gdbcore.h: Update copyright.
7566 (deprecated_add_core_fns): Rename add_core_fns.
7567 * win32-nat.c (_initialize_core_win32): Update.
7568 * sun3-nat.c (_initialize_core_sun3): Update.
7569 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7570 * rs6000-nat.c (_initialize_core_rs6000): Update.
7571 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7572 * nto-tdep.c (_initialize_nto_tdep): Update.
7573 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7574 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7575 * mips-nat.c (_initialize_core_mips): Update.
7576 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7577 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7578 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7579 * lynx-nat.c (_initialize_core_lynx): Update.
7580 * irix5-nat.c (_initialize_core_irix5): Update.
7581 * i386-interix-nat.c (_initialize_core_interix): Update.
7582 * cris-tdep.c (_initialize_cris_tdep): Update.
7583 * corelow.c (deprecated_add_core_fns): Update.
7584 * core-regset.c (_initialize_core_regset): Update.
7585 * core-aout.c (_initialize_core_aout): Update.
7586 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7587 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7588 * alpha-nat.c (_initialize_core_alpha): Update.
7590 2004-04-21 Jim Blandy <jimb@redhat.com>
7592 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7594 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7596 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7598 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7599 (read_attribute_value): Update calls to dwarf_alloc_block.
7600 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7602 (psymtab_to_symtab_1): Likewise. Clean up using
7603 free_stack_comp_unit.
7604 (add_to_cu_func_list): Use the comp_unit_obstack.
7606 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7608 * dwarf2read.c (dwarf2_flag_true_p): New function.
7609 (die_is_declaration): Use the function above. Add some comments.
7611 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7613 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7614 architecture when registering sparcnbsd_core_osabi_sniffer.
7617 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7619 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7622 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7623 * i386-tdep.c: Correct register numbering scheme comments
7625 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7626 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7627 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7628 (i386_gdb_arch_init): Likewise.
7630 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7631 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7634 * m68k-tdep.h: Tweak comments.
7635 * m68k-tdep.c: Tweak comment.
7637 2004-04-17 Randolph Chung <tausq@debian.org>
7639 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7640 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7641 (hppa_hpux_som_init_abi): Set is_elf to 0.
7642 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7643 * hppa-tdep.c (low_text_segment_address): Remove global.
7644 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7645 section offset to calculate segment address.
7646 (internalize_unwinds): Define low_text_segment_address as local and
7647 pass to record_text_segment_lowaddr for ELF targets.
7648 (hppa_gdbarch_init): Zero fill tdep structure.
7649 (hppa_dump_tdep): Print tdep structure.
7650 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7652 2004-04-17 Randolph Chung <tausq@debian.org>
7654 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7655 (hppa_gdbarch_init): Set pseudo_register_read.
7656 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7657 * regcache.c (supply_register): Remove check for
7658 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7660 2004-04-17 Randolph Chung <tausq@debian.org>
7662 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7663 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7664 (hpread_adjust_stack_address): Move to hpread.c.
7665 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7666 obj_private_struct): Move from tm-hppa.h.
7667 * hpread.c (hppa-tdep.h): Include.
7668 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7669 (hpread_read_function_type, hpread_read_doc_function_type)
7670 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7672 * pa64solib.c (hppa-tdep.h): Include.
7673 * somsolib.c (hppa-tdep.h): Include.
7674 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7675 inferior_status): Remove unused forward declarations.
7676 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7677 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7678 obj_private_struct): Move to hppa-tdep.h.
7679 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7681 2004-04-17 Randolph Chung <tausq@debian.org>
7683 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7684 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7685 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7686 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7687 Remove forward declaration and make static.
7688 (hppa_reg_struct_has_addr): Remove.
7690 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7692 * observer.sh: Move comments in sed command to first column.
7694 2004-04-16 Jason Molenda (jmolenda@apple.com)
7696 * frame.c: Minor typeo corrections in comments.
7698 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7700 * observer.c (observer_test_first_notification_function): Update
7702 (observer_test_second_notification_function): Likewise.
7703 (observer_test_third_notification_function): Likewise.
7705 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7707 From Brian Ford <ford@vss.fsi.com>:
7708 * i386-tdep.c (i386_coff_init_abi): New function.
7709 * i386-tdep.h (i386_coff_init_abi): New prototype.
7710 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7711 register number translation functions for DWARF and DWARF 2.
7713 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7715 * dwarf2read.c: Back out my previous change, it was incorrect.
7717 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7719 * dwarf2read.c: Include "hashtab.h".
7720 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7722 (struct partial_die_info): Add comments. Use bitfields to reduce
7723 memory footprint. Add scope, scope_set, has_specification,
7724 spec_offset, die_parent, die_child, and die_sibling.
7725 (peek_die_abbrev): Add prototype.
7726 (partial_read_comp_unit_head): New function, broken out from
7727 dwarf2_build_psymtabs_hard.
7728 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7729 Use partial_read_comp_unit_head. Initialize the CU and
7730 comp_unit_obstack. Update calls to read_partial_die and
7731 scan_partial_symbols. Use free_stack_comp_unit and
7733 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7734 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7735 Update calls to helper functions. Remove NAMESPACE argument.
7737 (partial_die_parent_scope, partial_die_full_name): New functions.
7738 (add_partial_symbol): Remove namespace argument. Update call to
7739 pdi_needs_namespace. Use partial_die_full_name. Handle
7740 DW_TAG_namespace. Check has_namespace_info flag.
7741 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7742 tag. Handle namespaces.
7743 (add_partial_namespace, add_partial_enumeration): Simplify.
7744 (guess_structure_name): New function, derived from
7745 add_partial_structure.
7746 (add_partial_structure): Remove.
7747 (determine_class_name): Update comment.
7748 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7749 (is_type_tag_for_partial, load_partial_dies): New functions.
7750 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7751 Record specifications instead of following them immediately.
7752 (find_partial_die_in_comp_unit, find_partial_die)
7753 (fixup_partial_die, free_stack_comp_unit)
7754 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7755 (partial_die_hash, partial_die_eq): New functions.
7756 * Makefile.in (hashtab_h): Define.
7757 (dwarf2read.o): Update dependencies.
7758 (observer_inc, observer_h): Move to the correct section.
7760 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7762 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7763 (die_is_declaration): Use the function above. Add comment.
7765 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7767 * dwarf2read.c (read_structure_scope): Identify stub types
7768 using die_is_declaration() only.
7770 2004-04-15 Roland McGrath <roland@redhat.com>
7772 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7773 argument instead of NAME.
7774 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7775 in call to symbol_file_add_with_addrs_or_offsets.
7776 (build_addr_info): New function, helper for ...
7777 (symbol_file_add_from_memory): New function.
7778 (add_symbol_file_from_memory_command): New function using that.
7779 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7780 (pre_add_symbol_hook): Add const to argument type.
7781 * symfile.h (symbol_file_add_from_memory): Declare it.
7783 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7785 * NEWS (New native configurations): Mention OpenBSD/vax.
7786 * configure.host: Add vax-*-openbsd*.
7787 * config/vax/obsd.mh: New file.
7788 * config/vax/nm-obsd.h: New file.
7790 * vax-tdep.c: Include "regset.h".
7791 (vax_supply_gregset): New function.
7792 (vax_gregset): New variable.
7793 (vax_regset_from_core_section): New function.
7794 (vax_gdbarch_init): Set regset_from_core_section.
7795 * Makefile.in (vax-tdep.o): Update dependencies.
7797 2004-04-15 Andrew Cagney <cagney@redhat.com>
7799 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7800 (observer_normal_stop_notification_stub)
7801 (observer_attach_normal_stop, observer_detach_normal_stop):
7802 Delete, replaced by #include "observer.inc".
7803 * infrun.c (normal_stop): Pass "stop_bpstat" to
7804 observer_notify_normal_stop.
7805 * Makefile.in (observer_inc): Define.
7806 (observer.o): Update dependencies.
7807 (observer.h, observer.inc): New rules.
7808 * observer.h: Delete file.
7809 * observer.sh: New file.
7811 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7813 * vax-tdep.c (vax_frame_cache): Fix typo.
7815 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7817 * NEWS (New native configurations): Mention NetBSD/vax.
7818 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7819 * config/vax/nbsdelf.mh: New file.
7820 * config/vax/nbsdaout.mh: New file.
7821 * config/vax/nm-nbsd.h: New file.
7822 * config/vax/nm-nbsdaout.h: New file.
7824 * vaxnbsd-tdep.c: New file.
7825 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7826 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7827 * config/vax/nbsd.mt: New file.
7828 * config/vax/tm-nbsd.h: New file.
7830 * Makefile.in (vaxbsd-nat.o): New dependency.
7832 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7833 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7834 struct_addr arguments. Don't push return value address.
7835 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7836 arguments to vax_store_arguments. Store return value address in
7838 (vax_store_struct_return, vax_extract_return_value)
7839 (vax_store_return_value): Remove functions.
7840 (vax_return_value): New function.
7841 (vax_gdbarch_init): Set return value. Don't set
7842 deprecated_store_struct_return, deprecated_extract_struct_return
7843 and deprecated_store_return_value.
7845 2004-04-14 Andreas Schwab <schwab@suse.de>
7847 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7849 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7851 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7853 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7854 (vax_unwind_dummy_id): New functions.
7855 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7856 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7858 (vax_fix_call_dummy): Remove function.
7859 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7860 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7861 call_dummy_location, deprecated_call_dummy_words,
7862 deprecated_sizeof_call_dummy_words,
7863 deprecated_call_dummy_breakpoint_offset,
7864 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7865 and deprecated_dummy_write_sp.
7867 2004-04-13 David Carlton <carlton@kealia.com>
7869 * MAINTAINERS: Move myself to "paper trail" section.
7871 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7873 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7875 (vax_frame_init_saved_regs): Remove function.
7876 (vax_sigtramp_saved_pc): Remove function.
7877 (vax_frame_saved_pc): Remove function.
7878 (vax_frame_args_address): Remove function.
7879 (vax_frame_num_args): Rewrite.
7880 (vax_frame_chain): Remove function.
7881 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7883 (vax_pop_frame): Likewise.
7884 (vax_saved_pc_after_call): Remove function.
7885 (struct vax_frame_cache): New structure.
7886 (vax_frame_cache): New function.
7887 (vax_frame_this_id): New function.
7888 (vax_frame_prev_register): New function.
7889 (vax_frame_unwind): New variable.
7890 (vax_frame_sniffer): New function.
7891 (vax_frame_base_address): New function.
7892 (vax_frame_args_address): New function.
7893 (vax_frame_base): New variable.
7894 (vax_unwind_pc): New function.
7895 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7896 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7897 deprecated_frame_chain, deprecated_frame_saved_pc,
7898 deprecated_frame_args_address and
7899 deprecated_frame_init_saved_regs.
7900 * Makefile.in (vax-tdep.o): Update dependencies.
7902 * vaxbsd-nat.c: New file.
7904 * vax-tdep.h: Update copyright year. Adjust comments.
7905 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7906 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7907 (vax_regnum): New enum. Replacing...
7908 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7909 (VAX_PS_REGNUM): ... these removed macros.
7910 * vax-tdep.c (vax_register_name): Remove prototype.
7911 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7912 (vax_register_byte, vax_register_raw_size,
7913 vax_register_virtual_size, vax_register_virtual_type): Remove
7915 (vax_register_type): New function.
7916 (vax_breakpoint_from_pc): Reorganize.
7917 (vax_gdbarch_init): Set register_type. Don't set
7918 deprecated_register_size, deprecated_register_bytes,
7919 deprecated_register_byte, deprecated_register_raw_size,
7920 deprecated_max_register_raw_size,
7921 deprecated_register_virtual_size,
7922 deprecated_max_register_virtual_size and
7923 deprecated_register_virtual_type. Add comment on stack direction.
7925 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7927 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7928 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7929 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7931 2004-04-10 Randolph Chung <tausq@debian.org>
7933 * MAINTAINERS (write after approval): Add myself.
7935 2004-04-07 Randolph Chung <tausq@debian.org>
7937 * hppa-tdep.c (hppa_inner_than): Remove.
7938 (is_pa_2): Remove unused static variable.
7939 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7941 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7943 * language.h (language_defn): Add new la_post_parser field.
7944 * parser-defs.h (null_post_parser): New declaration (default for
7947 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7948 insert call to that function.
7949 (parse_exp_in_context): New function, including code formerly in
7950 parse_exp_1. Calls language-dependent post-parser after
7952 (parse_expression_in_context): New exported function.
7953 (null_post_parser): New definition.
7954 * expression.h (parse_expression_in_context): Add declaration.
7956 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7957 * c-lang.c (c_language_defn): Ditto.
7958 (cplus_language_defn): Ditto.
7959 (asm_language_defn): Ditto.
7960 (minimal_language_defn): Ditto.
7961 * f-lang.c (f_language_defn): Ditto.
7962 * jv-lang.c (java_language_defn): Ditto.
7963 * language.c (unknown_language_defn): Ditto.
7964 (auto_language_defn): Ditto.
7965 (local_language_defn): Ditto.
7966 * m2-lang.c (m2_language_defn): Ditto.
7967 * scm-lang.c (scm_language_defn): Ditto.
7968 * obj-lang.c (objc_language_defn): Ditto.
7970 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7972 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7973 (amd64nbsd_mcontext_addr): New function.
7974 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7975 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7976 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7978 * corelow.c (core_xfer_partial): Fix coding standards violation.
7979 Add support for TARGET_OBJECT_WCOOKIE.
7981 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7982 deprecated_pc_in_sigtramp.
7983 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7984 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7985 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7986 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7987 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7988 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7989 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7991 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7992 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7995 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7996 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7997 (amd64_collect_fxsave): Likewise.
7999 * i386-sol2-tdep.c: Include "gdb_string.h".
8000 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8002 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8004 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8006 * i386-sol2-tdep.c: Include "solib-svr4.h".
8007 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8008 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8009 * config/i386/tm-i386sol2.h: Include :solib.h".
8010 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8011 solib-svr4.o and solib-legacy.o.
8012 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8015 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8017 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8018 whether a register is supplied by PTRACE_GETFPREGS.
8019 (store_inferior_registers): Likewise.
8020 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8021 whether a register is supplied by PT_GETFPREGS.
8022 (store_inferior_registers): Likewise.
8024 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8025 * config/i386/linux64.mt (TDEPFILES): Likewise.
8027 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8029 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8030 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8031 the program counter is in the range specified by `struct
8033 * amd64-linux-tdep.c: Include "symtab.h".
8034 (amd64_linux_pc_in_sigtramp): Remove function.
8035 (amd64_linux_sigtramp_p): New function.
8036 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8037 deprecated_pc_in_sigtramp.
8038 * amd64nbsd-tdep.c: Include "symtab.h".
8039 (amd64nbsd_sigtramp_p): New function.
8040 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8041 deprecated_pc_in_sigtramp.
8042 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8044 (amd64obsd_pc_in_sigtramp): Remove function.
8045 (amd64obsd_sigtramp_p): New function.
8046 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8047 deprecated_pc_in_sigtramp.
8048 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8049 (i386bsd_pc_ins_sigtramp): Remove prototype.
8050 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8051 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8052 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8053 the program counter is in the range specified by `struct
8055 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8056 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8057 (i386_go32_pc_in_sigtramp): Remove function.
8058 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8059 Initialize TDEP->sigtramp_p.
8060 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8061 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8062 deprecated_pc_in_sigtramp.
8063 * i386-linux-tdep.c: Adjust comments.
8064 (i386_linux_pc_in_sigtramp): Remove function.
8065 (i386_linux_sigtramp_p): New function.
8066 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8067 deprecated_pc_in_sigtramp.
8068 * i386-nto-tdep.c: Update copyright year.
8069 (i386nto_pc_in_sigtramp): Remove function.
8070 (i386nto_sigtramp_p): New function.
8071 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8073 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8074 deprecated_pc_in_sigtramp.
8075 * i386-sol2-tdep.c: Update copyright year.
8076 (i386_sol2_pc_in_sigtramp): Remove function.
8077 (i386_sol2_sigtramp_p): New function.
8078 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8079 deprecated_pc_in_sigtramp.
8080 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8081 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8082 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8083 deprecated_sigtramp_start and deprecated_sigtramp_end.
8084 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8085 (i386nbsd_pc_in_sigtramp): Remove function.
8086 (i386nbsd_sigtramp_p): New function.
8087 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8088 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8089 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8090 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8091 (i386obsd_pc_in_sigtramp): Remove function.
8092 (i386obsd_sigtramp_p): New function.
8093 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8095 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8096 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8098 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8099 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8102 * config/i386/i386aout.mt: Remove file.
8104 * configure.tgt: Remove i[34567]86-*-go32*,
8105 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8106 and i[34567]86-*-isc*. Set gdb_target to i386 for
8107 i[34567]86-*-netware* and i[34567]86-*-*.
8108 * config/i386/i386.mt: New file.
8109 * config/i386/embed.mt: Remove file.
8110 * config/i386/go32.mt: Remove file.
8111 * config/i386/i386nw.mt: Remove file.
8112 * config/i386/i386v.mt: Remove file.
8113 * config/i386/tm-go32.h: Remove file.
8115 * tui/tui-hooks.c: Include "readline/readline.h" after
8116 "gdb_curses.h" instead of before.
8117 * tui/tui-io.c: Likewise.
8119 * tui/tui.c: Fix typo in comment.
8121 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8123 2004-04-08 Andrew Cagney <cagney@redhat.com>
8125 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8126 (deprecated_exception_support_initialized): Declare.
8127 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8128 (initialize_hp_cxx_exception_support)
8129 (child_enable_exception_callback): Update.
8130 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8131 (deprecated_exception_support_initialized): Rename
8132 deprecated_exception_catchpoints_are_fragile and
8133 deprecated_exception_support_initialized.
8134 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8136 * symtab.c (deprecated_hp_som_som_object_present): Rename
8137 hp_som_som_object_present.
8138 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8139 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8140 Update. Delete extern declaration.
8141 * valops.c (hp_som_som_object_present): Ditto.
8142 * parse.c (deprecated_hp_som_som_object_present)
8143 (parse_nested_classes_for_hpacc): Ditto.
8144 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8145 * hppa-hpux-tdep.c (hp_som_som_object_present)
8146 (initialize_hp_cxx_exception_support): Ditto.
8147 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8148 * cp-valprint.c (hp_som_som_object_present)
8149 (cp_print_class_method): Ditto.
8150 * c-typeprint.c (hp_som_som_object_present):
8151 (c_type_print_base): Ditto.
8152 * c-exp.y (hp_som_som_object_present): Ditto.
8154 2004-04-08 Andrew Cagney <cagney@redhat.com>
8156 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8157 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8158 (frame_unwind_find_by_frame): Re-implement the unwind code so
8159 that it can both prepend and append sniffers. Replace
8160 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8161 * tramp-frame.c (tramp_frame_append): Use
8162 frame_unwind_prepend_unwinder.
8163 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8164 frame_unwind_register_unwinder.
8165 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8167 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8168 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8169 (mips_linux_init_abi): Update.
8171 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8173 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8174 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8177 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8179 * ia64-tdep.c (elf.h): Don't include.
8180 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8182 2004-04-07 Jason Molenda (jmolenda@apple.com)
8184 * frame.h: Typeo corrections in comments.
8186 2004-04-07 Jim Blandy <jimb@redhat.com>
8188 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8191 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8193 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8194 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8195 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8196 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8198 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8200 * config/sparc/tm-sol2.h: Update copyright year. Include
8203 * sparc-sol2-tdep.c: Update copyright year. Include
8205 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8206 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8207 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8208 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8211 2004-04-06 Andrew Cagney <cagney@redhat.com>
8213 * infttrace.c: Include "infttrace.h".
8214 * infttrace.h: Include "target.h".
8215 * Makefile.in (infttrace_h): Update.
8216 (infttrace.o): Update.
8218 2004-04-06 Andrew Cagney <cagney@redhat.com>
8220 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8221 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8222 move extern declarations from here ...
8223 * infttrace.h: ... to here.
8224 * Makefile.in (hppah-nat.o): Update dependencies.
8226 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8227 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8228 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8229 (hppa_breakpoint_from_pc): Delete.
8231 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8233 2004-04-05 Andrew Cagney <cagney@redhat.com>
8235 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8236 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8239 2004-04-06 Randolph Chung <tausq@debian.org>
8241 Committed by Andrew Cagney (mechanical change).
8242 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8243 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8244 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8245 child_enable_exception_callback, current_ex_event,
8246 null_symtab_and_line, child_get_current_exception_event,
8247 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8248 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8249 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8250 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8251 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8252 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8253 Move hpux-specific definitions ...
8254 * hppa-hpux-tdep.c: ... to here.
8256 2004-04-05 Andrew Cagney <cagney@redhat.com>
8258 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8259 skip_prologue_using_sal.
8261 2004-04-05 Andrew Cagney <cagney@redhat.com>
8263 * config/i386/tm-i386.h: Delete file.
8264 * config/i386/tm-vxworks.h: Update copyright, do not include
8266 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8267 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8268 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8269 * config/i386/ncr3000.mt (TM_FILE): Delete.
8270 * config/i386/interix.mt (TM_FILE): Delete.
8271 * config/i386/i386v.mt (TM_FILE): Delete.
8272 * config/i386/i386nw.mt (TM_FILE): Delete.
8273 * config/i386/i386gnu.mt (TM_FILE): Delete.
8274 * config/i386/i386aout.mt (TM_FILE): Delete.
8275 * config/i386/embed.mt (TM_FILE): Delete.
8277 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8279 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8280 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8281 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8282 (accg7_regnum): New constants.
8283 (last_spr_regnum, last_pseudo_regnum): Update.
8284 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8285 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8286 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8288 (frv_register_sim_regno): Update spr_map[].
8290 2004-04-04 Andrew Cagney <cagney@redhat.com>
8292 * config/mips/xm-riscos.h: Delete.
8293 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8294 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8295 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8296 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8297 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8298 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8299 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8300 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8301 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8302 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8303 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8304 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8305 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8306 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8307 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8308 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8309 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8310 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8311 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8312 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8313 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8314 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8315 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8316 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8317 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8318 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8320 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8321 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8322 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8323 * configure.host: Remove m680[01]0-sun-sunos3*,
8324 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8325 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8326 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8327 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8329 * NEWS: Mention removed systems.
8331 2004-04-04 Andrew Cagney <cagney@redhat.com>
8333 GDB 6.1 release created from 6.1 branch.
8335 2004-04-04 Andrew Cagney <cagney@redhat.com>
8337 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8338 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8339 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8341 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8342 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8343 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8345 2004-04-03 Jim Blandy <jimb@redhat.com>
8347 * MAINTAINERS: Chris Faylor has changed employers; add him to
8348 "paper trail" section, and update his E-mail address.
8350 2004-04-03 Andrew Cagney <cagney@redhat.com>
8352 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8353 generic dummy frames.
8354 * dummy-frame.c: Update copyright.
8355 (dummy_frame_sniffer): Delete check for generic dummy frames.
8357 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8358 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8359 (REG_PARM_STACK_SPACE): Delete.
8360 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8361 Inline reference to REG_PARM_STACK_SPACE.
8363 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8364 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8365 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8366 (FRAME_BASE_BEFORE_SIGTRAMP)
8367 (hppa32_hpux_frame_base_before_sigtramp)
8368 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8369 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8370 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8371 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8372 (FRAME_BASE_BEFORE_SIGTRAMP)
8373 (hppa64_hpux_frame_base_before_sigtramp)
8374 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8376 2004-04-03 Andrew Cagney <cagney@redhat.com>
8378 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8380 2004-04-02 Andrew Cagney <cagney@redhat.com>
8382 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8383 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8384 * dummy-frame.h: Delete out-of-date comments.
8385 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8386 * gdbarch.h, gdbarch.c: Re-generate.
8388 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8390 Committed by Andrew Cagney <cagney@redhat.com>.
8391 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8392 into account an instruction saving a register if we have already
8393 seen an earlier instruction saving that same register.
8395 2004-04-02 Andrew Cagney <cagney@redhat.com>
8397 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8398 * gdbarch.h, gdbarch.c: Re-generate.
8399 * frame.c (legacy_get_prev_frame): Delete references to
8400 DEPRECATED_INIT_FRAME_PC_FIRST.
8402 * infrun.c (pc_in_sigtramp): Delete function.
8403 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8406 2004-04-02 Andrew Cagney <cagney@redhat.com>
8408 * infrun.c (handle_step_into_function): Delete code conditional on
8410 (handle_inferior_event, step_over_function): Ditto.
8412 2004-04-02 Andrew Cagney <cagney@redhat.com>
8414 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8415 "previous frame inner to this frame" test.
8417 2004-04-02 Andrew Cagney <cagney@redhat.com>
8419 * frame.c (safe_frame_unwind_memory): New function.
8420 * frame.h (safe_frame_unwind_memory): Declare. Update description
8422 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8423 "next_frame". Use safe_frame_unwind_memory.
8424 (tramp_frame_sniffer): Update call to tramp_frame_start.
8426 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8428 * dwarf2read.c (dwarf2_objfile_data_key): New.
8429 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8430 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8431 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8432 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8433 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8434 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8435 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8437 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8438 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8439 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8440 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8441 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8442 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8444 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8446 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8447 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8448 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8449 (read_partial_die, read_full_die, read_indirect_string)
8450 (dwarf_decode_line_header, dwarf_decode_macros)
8451 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8452 Update uses of removed variables.
8453 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8455 (_initialize_dwarf2_read): New function.
8456 * symfile.h (dwarf2_has_info): Update prototype.
8457 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8458 * elfread.c (elf_symfile_read): Likewise.
8460 2004-04-01 Jim Blandy <jimb@redhat.com>
8462 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8463 function for register numbers on all the rs6000-derived targets.
8464 (rs6000_gdbarch_init): Don't register a separate
8465 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8466 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8469 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8472 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8474 * valarith.c: Update copyright notice.
8475 (value_add): Handle range types.
8477 (value_equal): Ditto.
8478 (value_less): Ditto.
8480 (value_complement): Ditto.
8481 (value_binop): Simplify slightly by using is_integral_type and
8482 eliminiating unnecessary COERCE_ENUMs.
8484 2004-03-31 Andrew Cagney <cagney@redhat.com>
8486 * frame.h (frame_unwind_id): Declare.
8487 * frame.c (frame_unwind_id): New function.
8488 (get_prev_frame_1): New function.
8489 (frame_debug_got_null_frame): New function.
8490 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8491 code proper to prev_frame, update description.
8492 * infrun.c (step_over_function): Use frame_unwind_id.
8494 2004-04-31 J. Brobecker <brobecker@gnat.com>
8496 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8497 (hppa64_push_dummy_call): Likewise.
8499 2004-03-30 Jim Blandy <jimb@redhat.com>
8501 From Ulrich Weigand:
8502 * utils.c (query): Do not use a va_list variable multiple times.
8504 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8506 * Makefile.in (linux_nat_h): Update dependencies.
8507 * configure.in: Check for <gnu/libc-version.h>.
8508 * configure: Regenerate.
8509 * config.in: Regenerate.
8510 * linux-nat.h: Include "target.h". Add waitstatus field to
8512 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8513 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8515 (lin_lwp_handle_extended): New function. Handle clone events.
8516 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8518 (child_wait): Handle clone events.
8519 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8520 * linux-nat.c (linux_enable_event_reporting): Turn on
8521 PTRACE_O_TRACECLONE.
8522 (linux_handle_extended_wait): Handle clone events.
8523 * thread-db.c: Include <gnu/libc-version.h>.
8524 (struct private_thread_info): Add dying flag.
8525 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8527 (attach_thread): Update comments. Handle dying threads.
8528 (detach_thread): Set the dying flag.
8529 (check_event): Always call attach_thread.
8531 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8533 * mips-tdep.c (mips_pdr_data): New.
8534 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8535 (_initialize_mips_tdep): Initialize mips_pdr_data.
8537 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8539 * minsyms.c (install_minimal_symbols): Move dropping leading
8540 char from linkage name from here...
8541 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8542 test for "__gnu_compiled*" symbols.
8544 2004-03-28 Jim Blandy <jimb@redhat.com>
8546 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8547 registers to temp register r0 and byte stores as prologue
8550 2004-03-28 Andrew Cagney <cagney@redhat.com>
8552 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8555 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8557 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8558 and switch the layout to force a display of register window.
8560 2004-02-26 J. Brobecker <brobecker@gnat.com>
8562 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8563 of the INTEGER class.
8565 2004-03-26 Jim Blandy <jimb@redhat.com>
8567 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8568 bytes long on PPC GNU/Linux.
8570 2004-03-26 David Carlton <carlton@kealia.com>
8572 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8574 2004-03-25 Andrew Cagney <cagney@redhat.com>
8576 * PROBLEMS: Add general section titles, remove references to
8579 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8581 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8583 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8584 FP_REGISTER_VIRTUAL_SIZE.
8585 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8586 of DEPRECATED_REGISTER_RAW_SIZE.
8587 (arm_register_type): Add gdbarch argument.
8588 (arm_register_raw_size, arm_register_virtual_size): Delete.
8589 (arm_register_byte, arm_extract_return_value)
8590 (arm_store_return_value, arm_get_longjmp_target): Update references
8591 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8592 (arm_gdbarch_init): Likewise. Don't set
8593 deprecated_register_raw_size, deprecated_register_virtual_size,
8594 deprecated_max_register_raw_size,
8595 deprecated_max_register_virtual_size, or
8596 deprecated_max_register_virtual_type. Do set register_type.
8597 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8598 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8599 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8600 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8601 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8602 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8604 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8605 (remote_rdp_store_register): Likewise.
8607 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8609 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8610 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8611 to after osabi initialization.
8612 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8613 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8615 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8616 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8618 (mips_linux_init_abi): Append signal trampoline unwinders.
8620 2004-03-24 Andrew Cagney <cagney@redhat.com>
8622 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8623 * tramp-frame.c: Include "gdb_assert.h".
8624 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8626 (tramp_frame_append): Validate the tramp frame's instructions.
8627 * Makefile.in (tramp-frame.o): Update dependencies.
8629 2004-03-23 Andrew Cagney <cagney@redhat.com>
8631 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8633 2004-03-23 Andrew Cagney <cagney@redhat.com>
8635 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8636 Nasser as past testsuite/lib/ (and other) maintainers.
8638 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8640 * infcmd.c (attach_command): Reread symbols if we already have
8643 2004-03-23 Andrew Cagney <cagney@redhat.com>
8645 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8647 2004-03-23 Andrew Cagney <cagney@redhat.com>
8649 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8650 * gdbarch.h, gdbarch.c: Re-generate.
8651 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8652 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8653 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8654 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8655 (DEPRECATED_SIGTRAMP_START): Update.
8656 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8657 (DEPRECATED_SIGTRAMP_START): Update.
8658 * blockframe.c (find_pc_sect_partial_function): Update.
8659 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8661 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8663 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8666 2004-03-23 Andrew Cagney <cagney@redhat.com>
8668 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8669 predicate, deprecate.
8670 * gdbarch.h, gdbarch.c: Re-generate.
8671 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8672 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8673 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8674 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8675 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8676 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8677 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8678 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8679 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8680 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8681 * blockframe.c (find_pc_partial_function): Update.
8682 * breakpoint.c (bpstat_what): Update.
8683 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8684 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8685 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8686 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8687 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8688 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8689 * i386-nto-tdep.c (i386nto_init_abi): Update.
8690 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8691 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8692 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8693 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8694 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8695 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8696 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8697 * infrun.c (pc_in_sigtramp): Update.
8698 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8699 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8700 * mips-tdep.c (mips_gdbarch_init): Update.
8701 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8702 * ppc-linux-tdep.c: Update comment.
8703 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8704 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8705 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8706 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8707 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8708 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8709 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8710 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8711 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8712 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8714 2004-03-23 Andrew Cagney <cagney@redhat.com>
8716 * tramp-frame.h, tramp-frame.h: New files.
8717 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8718 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8720 * Makefile.in: Update all dependencies.
8722 2004-03-23 Andrew Cagney <cagney@redhat.com>
8724 * Makefile.in (trad_frame_h): Add $(frame_h).
8725 * trad-frame.h: Update copyright. Include "frame.h".
8726 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8727 (trad_frame_set_id, trad_frame_get_id): Declare.
8728 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8729 * trad-frame.c: Update copyright.
8730 (struct trad_frame_cache): Define.
8731 (trad_frame_cache_zalloc): New function.
8732 (trad_frame_set_id, trad_frame_get_id): New functions.
8733 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8735 2004-03-22 Andrew Cagney <cagney@redhat.com>
8737 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8738 s390_pltstub_unwind_cache.
8739 (s390_stub_frame_unwind_cache): Rename
8740 s390_pltstub_frame_unwind_cache.
8741 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8742 (s390_stub_frame_prev_register): Rename
8743 s390_pltstub_frame_prev_register.
8744 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8745 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8747 From Ulrich Weigand:
8748 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8749 pointer calls like PLT calls.
8751 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8753 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8754 PC rather than the partial function start address. Use the start
8755 address to sanity check the found PDR.
8757 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8759 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8760 linux_handle_extended_wait.
8762 2004-03-22 Andrew Cagney <cagney@redhat.com>
8764 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8767 * frame.h (generic_pop_current_frame): Delete declaration.
8768 (deprecate_pop_dummy_frame): Deprecate
8769 generic_pop_dummy_frame.
8770 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8771 (generic_pop_current_frame): Delete function.
8772 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8773 generic_pop_current_frame.
8774 * v850-tdep.c (v850_pop_frame): Update.
8775 * mcore-tdep.c (mcore_pop_frame): Update.
8776 * sh64-tdep.c (sh64_pop_frame): Update.
8777 * h8300-tdep.c (h8300_pop_frame): Update.
8779 2004-03-22 Andrew Cagney <cagney@redhat.com>
8781 * frame.h (deprecated_pc_in_call_dummy): Rename
8782 generic_pc_in_call_dummy.
8783 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8784 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8785 generic_pc_in_call_dummy.
8786 (pc_in_dummy_frame): Make static.
8787 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8788 * gdbarch.h, gdbarch.c: Re-generate.
8789 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8790 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8791 (legacy_get_prev_frame): Ditto.
8792 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8795 2004-03-21 Andrew Cagney <cagney@redhat.com>
8797 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8798 declaration and out-of-date comment.
8799 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8801 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8802 deprecated_pc_in_call_dummy.
8804 * infrun.c (handle_inferior_event): For non legacy frames, use the
8805 frame ID and frame type to identify a signal trampoline. Update
8808 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8810 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8811 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8813 2004-03-21 Andrew Cagney <cagney@redhat.com>
8815 * frame-unwind.h: Update copyright.
8816 (struct frame_data): Add opaque declaration.
8817 (frame_sniffer_ftype): Declare.
8818 (struct frame_unwind): Add "unwind_data" and "sniffer".
8819 (frame_unwind_register_unwinder): Declare.
8820 (frame_unwind_find_by_frame): Add parameter "this_cache".
8821 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8822 (legacy_get_prev_frame, legacy_get_prev_frame)
8823 (get_frame_type): Pass the prologue_cache to
8824 frame_unwind_find_by_frame.
8825 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8827 (frame_unwind_register_unwinder): New function.
8828 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8830 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8832 * bcache.c (print_percentage): Use floating point to avoid
8833 incorrect results when portion*100 overflows.
8835 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8837 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8838 (ppc_linux_init_extra_frame_info)
8839 (ppc_linux_frameless_function_invocation)
8840 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8841 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8842 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8843 (rs6000_frame_chain): Delete declarations.
8844 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8845 (ppc_linux_init_extra_frame_info)
8846 (ppc_linux_frameless_function_invocation)
8847 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8848 (ppc_linux_init_abi): Remove registration of above deleted functions.
8849 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8850 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8851 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8852 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8853 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8854 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8855 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8856 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8857 frame management for all OSABIs.
8859 2004-03-19 Andrew Cagney <cagney@redhat.com>
8861 Committed by Kevin Buettner <kevinb@redhat.com>.
8863 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8865 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8866 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8867 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8868 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8869 unwinders. #ifdef legacy frame code.
8870 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8872 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8873 (struct rs6000_frame_cache, rs6000_frame_cache)
8874 (rs6000_frame_this_id, rs6000_frame_prev_register)
8875 (rs6000_frame_sniffer, rs6000_frame_unwind)
8876 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8877 (rs6000_frame_base): Implement a traditional frame unwinder.
8878 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8881 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8883 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8884 breakpoint address for watchpoints or the catch eventpoints.
8885 Add new paramter ``bptype''. Adjust all callers.
8887 2004-03-19 Andrew Cagney <cagney@redhat.com>
8889 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8891 * PROBLEMS: Delete note that ARM does not use frame code, problem
8894 2004-03-18 Andrew Cagney <cagney@redhat.com>
8896 * stack.c (return_command): Delete code wrapped in #ifdef
8897 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8899 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8901 2004-03-18 Andrew Cagney <cagney@redhat.com>
8903 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8904 DEPRECATED_IN_SIGTRAMP.
8905 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8906 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8907 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8908 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8909 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8910 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8911 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8912 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8913 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8914 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8916 2004-03-18 Andrew Cagney <cagney@redhat.com>
8918 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8919 (struct frame_base_table_entry): Define.
8920 (struct frame_base_table): Re-implement as a linked list.
8921 (frame_base_init): Re-implement.
8922 (frame_base_table): Delete function.
8923 (append_predicate): Delete function.
8924 (frame_base_append_sniffer): Update.
8925 (frame_base_set_default): Update.
8926 (frame_base_find_by_frame): Update.
8927 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8928 * Makefile.in (frame-base.o): Update dependencies.
8930 2004-03-17 Andrew Cagney <cagney@redhat.com>
8932 * frame.c (legacy_get_prev_frame): Pass correct frame to
8933 frame_unwind_find_by_frame.
8935 2004-03-17 David Carlton <carlton@kealia.com>
8937 * NEWS: Mention C++ nested types and namespaces
8939 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8941 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8942 and "Regressions since gdb 5.3.". Add known regressions since
8945 2004-03-16 David Carlton <carlton@kealia.com>
8947 * dwarf2read.c (process_structure_scope): Process children even
8948 when we're a declaration.
8950 2004-03-16 Andrew Cagney <cagney@redhat.com>
8952 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8953 * blockframe.c (find_pc_partial_function)
8954 (find_pc_sect_partial_function): Merge into a single
8955 find_pc_partial_function.
8957 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8959 * i386bsd-nat.c: s/regno/regnum/g.
8960 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8962 (store_inferior_registers): Likewise.
8964 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8966 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8968 (store_inferior_registers): Call i387_collect_fsave and
8969 i387_collect_fxsave instead of i387_fill_fsave and
8972 2004-03-15 Andrew Cagney <cagney@redhat.com>
8974 * Makefile.in (frame-unwind.o): Update dependencies.
8975 * frame-unwind.c: Include "gdb_obstack.h".
8976 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8978 (append_predicate): Delete function.
8979 (struct frame_unwind_table_entry): New structure.
8980 (struct frame_unwind_table): Replace "sniffer" with "head" and
8982 (frame_unwind_append_sniffer): Update.
8983 (frame_unwind_find_by_frame): Update.
8984 (_initialize_frame_unwind): Registe frame_unwind_init using
8985 gdbarch_data_register_pre_init.
8987 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8989 * i386bsd-nat.c: Update copyright year.
8990 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8991 define unconditionally.
8993 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8995 * i387-tdep.h (i387_collect_fsave): New prototype.
8996 * i387-tdep.c (i387_collect_fsave): New function containing most
8997 of the code from i387_fill_fsave.
8998 (i387_fill_fsave): Call i387_collect_fsave.
9000 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9002 * i386-linux-tdep.c: Update copyright year.
9003 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9004 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9005 svr4_ilp32_link_map_offsets instead of
9006 i386_linux_svr4_fetch_link_map_offsets.
9008 2004-03-15 David Carlton <carlton@kealia.com>
9010 Fix for PR c++/1553:
9011 * dwarf2read.c (read_structure_type): Determine type name by
9012 calling determine_class_name.
9013 (determine_class_name): New.
9014 (determine_prefix): Look at TYPE_TAG_NAME and call
9015 determine_class_name when appropriate.
9016 (determine_prefix_aux, class_name): Delete.
9017 (read_namespace): Set die->type.
9019 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9021 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9022 unused macro definition. The definition in target.h (or perhaps
9023 elsewhere) takes precedence.
9025 2004-03-15 Andrew Cagney <cagney@redhat.com>
9027 * ppc-tdep.h: Update copyright.
9028 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9029 function signatures to match "regsets.h".
9030 * ppc-linux-tdep.c: Include "regset.h".
9031 (ELF_GREGSET_SIZE): Delete.
9032 (right_supply_register): New function.
9033 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9034 using right_supply_register.
9035 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9037 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9038 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9039 (_initialize_ppc_linux_tdep): Do not register
9040 ppc_linux_regset_core_fns.
9041 (ppc_linux_regset_from_core_section): Replace
9042 fetch_core_registers.
9043 (ppc_linux_regset_core_fns): Delete.
9044 * ppc-linux-nat.c: (right_fill_reg): New function.
9045 (supply_gregset): Update call to ppc_linux_supply_gregset.
9046 (fill_gregset): Clear the register set, use right_fill_reg.
9047 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9048 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9050 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9053 2004-03-15 Andrew Cagney <cagney@redhat.com>
9055 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9056 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9057 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9058 and register_gdbarch_data.
9059 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9060 (struct gdbarch_data): Replace "init" by "pre_init" and
9062 * gdbarch.h, gdbarch.c: Re-generate.
9063 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9064 with"obstack", use OBSTACK_ZALLOC.
9065 (dwarf2_frame_ops): Delete.
9066 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9067 (dwarf2_frame_init_reg): Use gdbarch_data.
9068 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9069 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9070 (_initialize_svr4_solib): Update.
9071 * user-regs.c (_initialize_user_regs): Update.
9072 * reggroups.c (_initialize_reggroup): Update.
9073 * regcache.c (_initialize_regcache): Update.
9074 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9075 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9076 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9077 * frame-unwind.c (_initialize_frame_unwind): Update.
9078 * frame-base.c (_initialize_frame_base): Update.
9079 * user-regs.c (user_reg_add): Update.
9080 * reggroups.c (reggroup_add): Update.
9081 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9082 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9083 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9084 * frame-base.c (frame_base_table): Update.
9085 * remote.c (_initialize_remote): Update.
9086 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9088 2004-03-15 Andrew Cagney <cagney@redhat.com>
9090 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9092 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9094 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9095 * frv-linux-tdep.c: New file.
9096 * frv-tdep.c (struct gdbarch_tdep): Add new field
9097 ``sigcontext_reg_addr''.
9098 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9099 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9100 (frv_sigramp_frame_sniffer): New functions.
9101 (frv_sigtramp_frame_unwind): New static global.
9102 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9104 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9105 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9107 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9109 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9110 but not via a call to error(), when unable to read memory.
9112 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9114 * frv-tdep.c (frv_call_dummy_words): Delete.
9115 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9117 2004-03-15 Andrew Cagney <cagney@redhat.com>
9119 * infrun.c (handle_step_into_function, step_over_function): Only
9120 update and use STEP_FRAME_ID when the system is using legacy
9121 frames. Update comments.
9123 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9125 * amd64-linux-tdep.h: Remove file.
9126 * amd64-linux-tdep.c: Don't include "inferior.h" and
9127 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9128 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9129 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9130 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9131 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9133 (user_to_gdb_regmap): Remove variable.
9134 (amd64_linux_gregset_reg_offset): New variable.
9135 (amd64_core_fns): Remove variable.
9136 (fetch_core_registers): Remove function.
9137 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9139 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9140 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9141 * Makefile.in (amd64_linux_tdep_h): Remove.
9142 (amd64-linux-nat.o): Update dependencies.
9143 (amd64-linux-tdep.o): Update dependencies.
9145 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9146 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9148 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9150 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9151 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9153 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9155 * dwarf2read.c (read_structure_type): Rename from
9156 read_structure_scope. Don't create a symbol or call process_die.
9157 Return immediately if die->type is set. Call read_type_die before
9158 dwarf2_add_member_fn.
9159 (process_structure_scope): New function.
9160 (read_enumeration_type, process_enumeration_scope): New functions,
9161 broken out from read_enumeration. Don't create the enumeration
9162 type if it has already been created.
9163 (read_enumeration): Removed.
9164 (process_die): Call read_structure_type, process_structure_scope,
9165 read_enumeration_type, and process_enumeration_scope. Just call
9166 new_symbol for base and subrange types. Add a comment about other
9168 (read_type_die): Call read_enumeration_type.
9169 (add_partial_structure, new_symbol): Update comments.
9171 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9173 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9175 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9177 * tui/tui-win.h (tui_get_cmd_list): Declare.
9178 * tui/tui-win.c (tui_command): New function.
9179 (tui_get_cmd_list): New function.
9180 (_initialize_tui_win): Moved initialization of tui command in
9183 * tui/tui-data.c (init_content_element): Setup new data members.
9184 (init_win_info): Likewise.
9185 (free_content_elements): Free it.
9186 * tui/tui-data.h (struct tui_data_element): Store the register
9188 (struct tui_data_info): Keep the current register group.
9190 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9192 * tui/tui-regs.h (tui_show_registers): Update prototype.
9193 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9194 (tui_resize_all): No need to calculate anything for register window.
9195 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9196 (tui_set_register_element, tui_set_general_regs_content): Remove.
9197 (tui_set_special_regs_content): Remove.
9198 (tui_set_general_and_special_regs_content): Remove.
9199 (tui_set_float_regs_content): Remove.
9200 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9201 (tui_set_regs_content): Remove.
9202 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9203 (tui_v_show_registers_command_support): Remove.
9204 (tui_show_registers): Use a reggroup to specify the registers to show.
9205 (tui_show_register_group): New function.
9206 (tui_display_registers_from): Compute the layout of register window
9207 and refresh with new API; be sure to delete old register windows.
9208 (tui_check_register_values): Update to use tui_get_register and
9210 (tui_display_register): Just refresh the register window part.
9211 (tui_register_format): Format registers and save in tui_data_element.
9212 (tui_get_register): New to combine tui_reg_value_has_changed and
9213 tui_get_register_raw_value; fix to use the new gdb API.
9214 (tui_show_float_command): Renamed tui_reg_float_command.
9215 (tui_show_general_command): Renamed tui_reg_general_command.
9216 (tui_show_special_command): Renamed tui_reg_system_command.
9217 (_initialize_tui_regs): Remove unused commands.
9219 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9221 * NEWS (New native configurations): Mention OpenBSD/amd64.
9223 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9224 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9226 * config/i386/nm-fbsd64.h: Likewise.
9227 * config/i386/nm-obsd.h: Likewise.
9228 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9229 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9231 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9233 * frv-tdep.c (set_variant_scratch_registers): New function.
9234 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9237 From Richard Sandiford <rsandifo@redhat.com>:
9238 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9240 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9242 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9243 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9244 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9245 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9246 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9247 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9248 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9249 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9250 definitions from frv-tdep.c to frv-tdep.h.
9252 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9254 Add shared library support for FR-V FDPIC ABI:
9255 * Makefile.in (solib-frv.o): Add dependencies.
9256 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9258 (frv_push_dummy_call): Add support for FDPIC ABI.
9259 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9261 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9262 (frv_fdpic_find_canonical_descriptor): Declare.
9263 * solib-frv.c: New file.
9264 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9265 * config/frv/tm-frv.h (solib.h): Include.
9267 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9269 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9270 (frv-tdep.o): Update dependencies.
9271 * frv-tdep.h: New file.
9272 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9273 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9275 (struct gdbarch_tdep): Add new member ``frv_abi''.
9276 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9278 (new_variant): Set ``frv_abi'' field.
9279 (gdb_arch_init): Detect FDPIC executables.
9281 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9283 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9286 2004-03-11 Andrew Cagney <cagney@redhat.com>
9288 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9290 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9292 * solist.h (master_so_list): New function.
9293 * solib.c (master_so_list): Likewise.
9294 * solib-svr4.c (enable_break): Iterate over so_list entries
9295 obtained from master list instead of entries obtained directly
9296 via svr4_current_sos().
9298 2004-03-10 Ben Elliston <bje@gnu.org>
9300 * MAINTAINERS: Update my mail address.
9302 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9304 * remote-m32r-sdi.c: Support hardware watchpoint.
9306 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9308 * user-regs.c: Update copyright years.
9309 (struct user_regs): Rename to gdb_user_regs.
9310 (append_user_reg, builtin_user_regs, user_regs_init)
9311 (user_reg_add, user_reg_map_name_to_regnum)
9312 (usernum_to_user_reg): Update.
9314 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9316 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9317 (skip_children): New functions.
9318 (locate_pdi_sibling): Call skip_children.
9320 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9322 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9323 * gdbtypes.c (check_typedef): Update comments.
9325 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9327 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9328 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9329 pointer. Update comment about comp_unit_head.
9330 (struct abbrev_info): Shorten two int flags.
9331 (dwarf_alloc_abbrev): Take a CU argument.
9332 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9333 each time through the loop. Update cleanup argument.
9334 (psymtab_to_symtab_1): Update cleanup call.
9335 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9337 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9338 Just call obstack_free and clear the pointer.
9340 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9342 * infrun.c (handle_inferior_event): Remove short-circuit code for
9343 events in a different thread.
9345 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9347 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9348 print the whole transfer.
9349 (initialize_targets): Update description of "set debug target".
9351 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9353 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9355 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9357 * MAINTAINERS (write after approval): Add myself.
9359 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9361 * sh-tdep.c (sh_print_registers_info): Use for loop.
9362 Don't skip multiple registers when a float register is encountered.
9364 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9367 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9368 to official SH documentation.
9370 2004-03-07 Andrew Cagney <cagney@redhat.com>
9372 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9375 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9377 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9378 (arm_get_next_pc): Handle BX and BLX.
9380 2004-03-07 Andrew Cagney <cagney@redhat.com>
9382 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9383 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9385 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9386 (hppa_target_read_fp): Delete.
9387 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9388 register_virtual_size, max_register_raw_size,
9389 max_register_virtual_size, register_byte, register_size,
9390 target_read_fp, fp_regnum, and register_bytes. Set register_type
9391 instead of register_virtual_type.
9392 (hppa32_register_type, hppa64_register_type): Replace
9393 hppa32_register_virtual_type and hppa64_register_virtual_type.
9394 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9395 (HPPA_FP_REGNUM): Define.
9397 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9399 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9400 (pa_do_registers_info): Delete.
9401 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9402 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9403 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9405 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9406 GDB_TARGET_IS_HPPA code.
9407 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9408 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9409 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9410 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9411 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9412 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9413 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9414 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9415 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9416 (hppa_frameless_function_invocation, hppa64_store_return_value)
9417 (hppa_store_struct_return, hppa64_extract_return_value)
9418 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9419 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9420 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9421 (find_proc_framesize, deposit_21, restore_pc_queue)
9422 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9423 (rp_saved, pc_in_linker_stub): Delete.
9425 Unconditionally enable 64-bit frame and ABI code.
9426 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9427 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9428 push_dummy_frame, fix_call_dummy, push_arguments,
9429 call_dummy_location, extract_return_value, use_struct_convention,
9430 store_return_value, store_struct_return, saved_pc_after_call,
9431 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9432 frame_chain, frame_chain_valid, frameless_function_invocation,
9433 frame_saved_pc, and pop_frame.
9435 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9436 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9437 (hppa_gdbarch_init): Do not set PC_REGNUM.
9439 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9441 * config/alpha/tm-fbsd.h: Remove file.
9442 * config/alpha/fbsd.mt: Tweak comment.
9443 (TM_FILE): Set to tm-alpha.h.
9445 2004-03-05 Andrew Cagney <cagney@redhat.com>
9447 * infrun.c (step_over_function): When non-legacy code, and no
9448 step_frame_id, use the unwinder to get the caller's frame ID.
9450 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9452 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9453 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9454 bfd_arch_unknown. Adjust comment.
9456 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9457 * i386obsd-tdep.c: Correct spelling in comment.
9458 * i386nbsd-tdep.c: Correct spelling in comment.
9459 * sparc-tdep.c: Correct spelling in comments.
9461 2004-03-05 David Carlton <carlton@kealia.com>
9463 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9466 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9468 * sparc-tdep.c: Fix typo in comment.
9470 2004-03-04 J. Brobecker <brobecker@gnat.com>
9472 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9474 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9476 * dwarf2read.c: Add comment describing memory lifetimes.
9477 (struct dwarf2_pinfo): Update comment.
9478 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9479 (read_enumeration, new_symbol): Don't use obsavestring.
9481 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9483 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9484 instead of amd64_fill_fxsave.
9485 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9486 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9488 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9489 Reorganize code a bit.
9491 2004-03-04 Orjan Friberg <orjanf@axis.com>
9493 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9494 when the frame pointer is pushed. Don't set the frame pointer's
9495 address on the stack unless it's actually located there.
9496 Set the SRP's address on the stack correctly when the PC is still in
9498 (cris_return_value): New function.
9499 (cris_gdbarch_init): Clear deprecated store_return_value,
9500 extract_return_value.
9502 2004-03-02 Jim Blandy <jimb@redhat.com>
9504 * stabsread.c (reg_value_complaint): The maximum register number
9505 is one less than the number of registers.
9507 2004-03-02 Andrew Cagney <cagney@redhat.com>
9509 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9510 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9511 trailing comma and redundant assignment of I386_ST0_REGNUM.
9512 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9513 32-bit segment registers.
9515 2004-03-01 Andrew Cagney <cagney@redhat.com>
9517 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9518 use frame_relative_level and get_next_frame.
9520 2004-02-29 Andrew Cagney <cagney@redhat.com>
9522 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9523 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9524 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9527 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9529 * inflow.c (terminal_inferior): Don't give up the terminal if we
9530 previously couldn't get the inferior's terminal state.
9532 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9534 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9537 2004-02-28 Andrew Cagney <cagney@redhat.com>
9539 * NEWS: Refer to GDB 6.1.
9540 * README: Refer to GDB 6.1.
9541 * PROBLEMS: Refer to GDB 6.1.
9543 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9545 * thread-db.c (disable_thread_signals): Remove unused function.
9547 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9549 * amd64-nat.c: Include "gdb_string.h".
9550 (amd64_collect_native_gregset): Zero-extend the 32-bit
9551 general-purpose registers and %eip.
9553 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9554 * amd64-tdep.c (amd64_collect_fxsave): New function.
9555 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9557 * i387-tdep.h: Update copyright year.
9558 (i387_collect_fxsave): New prototype.
9559 * i387-tdep.c: Update copyright year.
9560 (i387_collect_fxsave): New function containing most of the code
9561 from i387_fill_fxsave.
9562 (i387_fill_fxsave): Call i387_collect_fxsave.
9564 2004-02-28 Andrew Cagney <cagney@redhat.com>
9566 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9567 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9569 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9571 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9573 2004-02-28 Andrew Cagney <cagney@redhat.com>
9575 * utils.c: Use "", instead of <>, to include readline.
9576 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9577 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9578 * source.c, solib.c, exec.c, event-top.c: Ditto.
9579 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9580 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9581 * Makefile.in: Update all dependencies.
9582 (readline_tilde_h, readline_history_h): Define.
9583 (readline_headers): Delete.
9585 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9587 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9588 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9589 "config/i386/tm-lx64.h".
9591 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9592 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9593 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9595 2004-02-28 Andrew Cagney <cagney@redhat.com>
9597 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9599 * breakpoint.c (_initialize_breakpoint): Use
9600 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9601 Add help to show command.
9603 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9605 * i386-nat.c: Reformat to be closer to coding standards.
9606 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9607 `retval'. Make variables `align' and `size' local to while-loop.
9608 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9609 (_initialize_i386_nat): New prototype.
9611 * tui/tui.c: Include <readline/readline.h> instead of
9612 "readline/readline.h". Include it after <term.h> and
9615 2004-02-27 Andrew Cagney <cagney@redhat.com>
9617 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9618 the new frame unwind code.
9619 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9620 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9623 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9624 "return_value" and "push_dummy_call".
9625 (hppa32_use_struct_convention): Delete unused function.
9626 (hppa32_store_return_value): Delete unused function.
9627 (hppa32_extract_return_value): Delete unused function.
9628 (hppa32_stack_align): Delete function.
9630 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9632 * coffread.c (enter_linenos): Don't let rawptr reference memory
9633 outside linetab[]'s limits.
9635 2004-02-27 Andrew Cagney <cagney@redhat.com>
9637 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9638 inferior stack space - the stack needs to grow upwards.
9639 (hppa32_frame_align): New function.
9640 (hppa64_frame_align): Replace hppa_frame_align.
9641 (hppa_gdbarch_init): Update.
9643 2004-02-26 Orjan Friberg <orjanf@axis.com>
9645 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9646 (dwarf2-frame.h): Include.
9647 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9648 Remove static variables related to ABI setting.
9649 (struct gdbarch_tdep): Remove cris_abi member.
9650 (struct frame_extra_info): Remove.
9651 (cris_unwind_cache, stack_item): New structs.
9652 (cris_frame_unwind, cris_frame_base): New variables.
9653 (push_stack_item, pop_stack_item)
9654 (cris_frame_unwind_cache, cris_frame_this_id)
9655 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9656 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9657 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9658 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9659 (cris_reg_struct_has_addr): New functions.
9660 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9661 (cris_frame_saved_pc, cris_saved_pc_after_call,
9662 (cris_store_struct_return, cris_frameless_function_invocation)
9663 (cris_pop_frame, cris_skip_prologue_main)
9664 (cris_abi_original_store_return_value)
9665 (cris_abi_v2_store_return_value)
9666 (cris_abi_original_extract_return_value)
9667 (cris_abi_v2_extract_return_value)
9668 (cris_abi_original_reg_struct_has_addr)
9669 (cris_abi_v2_reg_struct_has_addr)
9670 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9671 (cris_push_return_address, cris_abi_update): Remove.
9672 (_initialize_cris_tdep): Remove ABI command.
9673 (cris_dump_tdep): Ditto.
9674 (cris_gdbarch_init): Remove ABI command.
9675 Set store_return_value, extract_return_value, push_dummy_code,
9676 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9677 frame_unwind_append_sniffer, frame_base_set_default.
9678 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9679 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9680 sizeof_call_dummy_words, get_saved_register, push_return_address,
9681 pop_frame, store_struct_return, frame_init_saved_regs,
9682 init_extra_frame_info, frameless_function_invocation, frame_chain,
9683 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9686 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9688 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9689 * valprint.c (print_hex_chars): Change from static to external.
9690 (print_char_chars): New function.
9691 * printcmd.c (print_scalar_formatted): For integer and enum types
9692 that are longer than LONGEST, perform processing via appropriate
9693 print_*_chars routines.
9695 2004-02-26 Andrew Cagney <cagney@redhat.com>
9697 * Makefile.in: Update dependencies.
9698 Changes from Ulrich Weigand,
9699 * s390-tdep.c: Include "dwarf2-frame.h".
9700 (s390_dwarf2_frame_init_reg): New function.
9701 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9702 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9704 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9706 * breakpoint.c (pending_break_support): New setting variable.
9707 (break_command_1): Account for pending_break_support setting
9708 when creating pending breakpoints.
9709 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9710 (_initialize_breakpoint): Add "set breakpoint pending" and
9711 "show breakpoint pending" commands.
9713 2004-02-26 Andrew Cagney <cagney@redhat.com>
9716 * charset.c (backslashable, backslashed, represented): Remove 'e'
9717 from list of escaped characters, not part of ISO-C.
9719 2004-02-25 J. Brobecker <brobecker@gnat.com>
9721 From Peter Schauer <schauer@pdf.de>:
9722 * tui/tui.c: Move system header includes after local includes.
9723 Fixes a build failure on solaris systems.
9725 2004-02-25 J. Brobecker <brobecker@gnat.com>
9727 * configure.in: Refine the previous change.
9728 * configure: Regenerate.
9730 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9732 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9733 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9734 "amd64-tdep.h" instead of "x86-64-tdep.h".
9735 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9736 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9737 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9738 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9739 and "x86-64-tdep.c".
9740 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9741 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9742 and "x86-64-tdep.c".
9743 * amd64bsd-nat.c: Update copyright year.
9744 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9745 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9747 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9749 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9751 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9753 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9755 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9757 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9758 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9759 * Makefile.in (amd64_linux_tdep_h): Renamed from
9760 x86_64_linux_tdep_h.
9761 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9762 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9763 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9764 (amd64obsd-tdep.o): Update dependencies.
9765 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9767 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9769 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9770 amd64-linux-nat.c amd64-linux-tdep.c.
9771 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9772 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9773 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9774 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9775 amd64-tdep.o and amd64-linux-tdep.o.
9776 (TM_FILE): Set to tm-linux64.h.
9777 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9778 (NAT_FILE): Set to nm-linux64.h.
9779 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9780 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9782 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9784 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9787 2004-02-25 Roland McGrath <roland@redhat.com>
9789 * remote.c (remote_protocol_qPart_auxv): New variable.
9790 (init_all_packet_configs): Initialize it.
9791 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9792 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9793 (show_remote_cmd): Call it.
9794 (_initialize_remote): Initialize commands.
9795 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9796 service TARGET_OBJECT_AUXV requests.
9798 2004-02-25 J. Brobecker <brobecker@gnat.com>
9800 * configure.in: Make sure that the wborder function is available.
9801 Otherwise, search for it in the cur_colr library.
9802 * configure: Regenerate.
9804 2004-02-25 Andrew Cagney <cagney@redhat.com>
9806 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9808 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9810 * config/i386/tm-x86-64linux.h: Tweak comments.
9812 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9814 * MAINTAINERS: Add self to write-after-approval list.
9816 2004-02-25 Andrew Cagney <cagney@redhat.com>
9818 PR cli/1566. Problem found, and fix suggested by David Allan.
9819 * cli/cli-script.c (execute_control_command): Unconditionally
9820 install a cleanup. Default "ret" to "invalid_control". Use
9821 "break" instead of "return" to escape from the switch.
9823 2004-02-24 J. Brobecker <brobecker@gnat.com>
9825 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9826 with the lines macro defined in term.h on AiX.
9827 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9828 a collision with the label_width macro defined in term.h on AiX.
9830 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9832 Committed by Kevin Buettner <kevinb@redhat.com>.
9834 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9835 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9836 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9837 instead of ia64_write_pc().
9838 * ia64-linux-tdep.c (regcache.h): Include.
9839 (ia64_linux_write_pc): New function.
9841 2004-02-23 Roland McGrath <roland@redhat.com>
9843 * auxv.c (info_auxv_command): Fix typos in error messages.
9845 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9847 * x86-64-tdep.h: Tweak comment.
9848 (enum amd64_regnum): New.
9849 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9850 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9851 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9852 (X86_64_XMM1_REGNUM): Removed.
9853 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9854 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9855 prototypes for renamed functions.
9856 * x86-64-tdep.c: Fix typo.
9857 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9859 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9860 Use constants from `enum amd64_regnum' for register numbers.
9861 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9862 (amd64_analyze_prologue, amd64_frame_cache,
9863 amd64_sigtramp_frame_cache): Use constants from `enum
9864 amd64_regnum' for register numbers.
9865 (amd64_supply_fpregset): Adjust for renamed functions.
9866 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9867 `enum amd64_regnum' for register numbers.
9868 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9869 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9870 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9871 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9872 (amd64_linux_fill_gregset): Adjust for renamed macros.
9873 (fetch_core_registers): Adjust for renamed functions.
9874 (amd64_linux_init_abi): Adjust for renamed functions.
9875 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9877 * amd64-nat.c: Adjust for renamed macros.
9878 * amd64bsd-nat.c (fetch_inferior_registers)
9879 (store_inferior_registers): Use constants from `enum amd64_regnum'
9880 for register numbers. Adjust for renamed variables.
9881 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9883 (_initialize_amd64fbsd_nat): Use constants from `enum
9884 amd64_regnum' for register numbers.
9885 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9886 `enum amd64_regnum' for register numbers.
9887 (amd64fbsd_init_abi): Adjust for renamed functions.
9888 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9889 `enum amd64_regnum' for register numbers.
9890 (amd64nbsd_init_abi): Adjust for renamed functions.
9891 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9892 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9893 `enum amd64_regnum' for register numbers.
9894 (amd64obsd_init_abi): Adjust for renamed functions.
9895 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9897 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9899 * breakpoint.c (print_one_breakpoint): Do not output spaces
9900 after printing <PENDING> for a pending breakpoint.
9902 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9904 * printcmd.c (print_scalar_formatted): Initialize val_long
9905 to remove compiler warning message.
9907 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9909 * defs.h (nquery, yquery): New prototypes.
9910 * breakpoint.c (break_command_1): Use new nquery interface.
9911 * utils.c (defaulted_query, nquery, yquery): New functions.
9913 2004-02-23 Andrew Cagney <cagney@redhat.com>
9915 * hppa-tdep.c (hppa_frame_align): New function.
9916 (hppa32_push_dummy_call): New function.
9917 (hppa64_push_dummy_call): New function.
9918 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9921 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9922 FIX_CALL_DUMMY when push_dummy_call is available.
9923 (call_function_by_hand, push_dummy_code): Ditto.
9925 2004-02-22 Andrew Cagney <cagney@redhat.com>
9927 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9928 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9929 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9930 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9931 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9932 call_dummy_location to ON_STACK.
9934 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9936 * x86-64-linux-tdep.c: Tweak comment.
9937 (amd64_linux_supply_gregset): Renamed from
9938 x86_64_linux_supply_gresget.
9939 (amd64_linux_fill_gregset): Renamed from
9940 x86_64_linux_fill_gregset.
9941 (fetch_core_registers): Adjust for renamed functions.
9942 (amd64_core_fns): Renamed from x86_64_core_fns.
9943 (amd64_linux_sigtramp_start): Renamed from
9944 x86_64_linux_sigtramp_start.
9945 (amd64_linux_pc_in_sigtramp): Renamed from
9946 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9947 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9948 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9949 (amd64_linux_sigcontext_addr): Renamed from
9950 x86_64_linux_sigcontext_addr.
9951 (amd64_linux_sc_reg_offset): Renamed from
9952 x86_64_linux_sc_reg_offset.
9953 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9954 Adjust for renamed functions and variables.
9955 (_initialize_amd64_linux_tdep): Renamed from
9956 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9958 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9959 Adjust for renamed functions.
9961 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9962 from x86_64_linux_gregset64_reg_offset.
9963 (amd64_linux_gregset32_reg_offset): Rename from
9964 x86_64_linux_gregset64_reg_offset.
9965 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9966 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9967 (amd64_linux_dr_set_control): Renamed from
9968 x86_64_linux_dr_set_control. Adjust for renamed functions.
9969 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9970 Adjust for renamed functions.
9971 (amd64_linux_dr_reset_addr): Renamed from
9972 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9973 (amd64_linux_dr_get_status): Renamed from
9974 x86_64_linux_dr_get_status. Adjust for renamed functions.
9975 (_initialize_amd64_linux_nat): Renamed from
9976 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9978 * config/i386/nm-x86-64linux.h: Update copyright year.
9979 Adjust for renamed functions.
9981 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9982 amd64fbsd_sigtramp_start.
9983 (amd64fbsd_sigtramp_end_addr): Renamed from
9984 amd64fbsd_sigtramp_end.
9985 (amd64fbsd_init_abi): Adjust for renamed variables.
9986 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9988 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9989 amd64fbsd_sigtramp_start.
9990 (amd64fbsd_sigtramp_end_addr): Renamed from
9991 amd64fbsd_sigtramp_end.
9993 2004-02-22 Andrew Cagney <cagney@redhat.com>
9995 * hppa-tdep.c (hppa32_return_value): New function.
9996 (hppa64_return_value): New function.
9997 (hppa_gdbarch_init): Set return_value; keep disabled.
9999 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10000 struct-return and inferior function call methods.
10002 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10004 (struct hppa_frame_cache): Define.
10005 (hppa_frame_cache, hppa_frame_this_id): New functions.
10006 (hppa_frame_prev_register): New function.
10007 (hppa_frame_unwind, hppa_frame_base): New variables.
10008 (hppa_frame_unwind_sniffer): New function.
10009 (hppa_frame_base_address, hppa_unwind_pc): New function.
10010 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10011 sniffer, and frame base sniffer; keep disabled.
10012 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10013 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10015 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10016 to predicates for "seriously old code".
10018 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10021 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10023 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10025 * config/pa/tm-hppa.h: Update copyright.
10026 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10027 (deprecated_init_frame_pc_default): Delete declaration.
10028 (hppa_frame_init_saved_regs): Delete declaration.
10029 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10030 * hppa-tdep.c: Include "arch-utils.h".
10031 (hppa_gdbarch_init): Set deprecated init_frame_pc
10032 and deprecated frame_init_saved_regs.
10033 (hppa_frame_init_saved_regs): Make static.
10035 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10037 Remove old 386BSD support.
10038 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10039 * configure.host: Remove i[34567]86-*-bsd*.
10040 * configure.tgt: Remove i[34567]86-*-bsd*.
10041 * i386b-nat.c: Removed.
10042 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10043 (i386b-nat.o): Remove dependencies.
10045 * config/i386/i386bsd.mh: Removed.
10046 * config/i386/i386bsd.mt: Removed.
10047 * config/i386/nm-i386bsd.h: Removed.
10048 * config/i386/tm-i386bsd.h: Removed.
10049 * config/i386/xm-i386bsd.h: Removed.
10051 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10053 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10054 (amd64fbsd_init_abi): Set link map offsets.
10055 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10056 (amd64nbsd_init_abi): Set link map offsets.
10057 * amd64obsd-tdep.c: Include "solib-svr4.h".
10058 (amd64obsd_init_abi): Set link map offsets.
10059 * i386fbsd-tdep.c: Include "solib-svr4.h".
10060 (i386fbsd_init_abi): Set link map offsets.
10061 * i386nbsd-tdep.c: Include "solib-svr4.h".
10062 (i386nbsdelf_init_abi): Set link map offsets.
10063 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10064 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10065 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10066 solib-legacy.o and core-aout.o. Reformat.
10067 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10068 solib-svr4.o, solib-legacy.o. Reformat.
10069 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10070 * config/i386/nbsdelf.mh: Reformat.
10071 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10072 solib-svr4.o, solib-legacy.o and corelow.o.
10073 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10074 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10075 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10076 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10077 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10078 (TM_FILE): Set to tm-fbsd.h.
10079 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10080 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10082 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10084 (TM_FILE): Set to nm-nbsd.h.
10085 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10086 Simplify shared library support. Don't include "elf/common.h".
10087 (SVR4_SHARED_LIBS): Don't define.
10088 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10090 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10091 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10092 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10093 Don't include "i386/tm-i386.h". Include "solib.h".
10094 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10095 Don't include "i386/tm-i386.h".
10096 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10097 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10098 Include "i386/xm-i386.h".
10099 (HOST_LONG_DOUBLE_FORMAT): Remove.
10101 Fix OpenBSD/i386 sigtramp recognition.
10102 * i386-tdep.h: Update copyright year.
10103 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10104 (i386bsd_sigtramp_end): New prototypes.
10105 (i386fbsd_sigtramp_start_addr): Renamed from
10106 i386fbsd_sigtramp_start.
10107 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10108 (i386obsd_sigtramp_start_addr): Renamed from
10109 i386obsd_sigtramp_start.
10110 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10111 * i386bsd-tdep.c: Update copyright year.
10112 (i386bsd_pc_in_sigtramp): Make public.
10113 * i386fbsd-nat.c: Update copyright year.
10114 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10115 * i386fbsd-tdep.c: Update copyright year.
10116 (i386fbsd_sigtramp_start_addr): Renamed from
10117 i386fbsd_sigtramp_start.
10118 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10119 (i386fbsdaout_init_abi): Adjust for renamed variables.
10120 * i386obsd-nat.c: Update copyright year.
10121 (_initialize_i386obsd_nat): Adjust for renamed variables.
10122 * i386obsd-tdep.c: Include "target.h".
10123 (i386obsd_page_size): New variable.
10124 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10125 (i386obsd_sigtramp_end): New functions.
10126 (i386obsd_sigtramp_start_addr): Renamed from
10127 i386obsd_sigtramp_start.
10128 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10129 (i386obsd_init_abi): Adjust for renamed variables. Set
10130 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10131 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10133 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10134 trampoline change in OpenBSD kernel.
10136 * amd64-nat.c: Update copyright year.
10137 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10138 architecture from REGCACHE.
10140 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10141 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10143 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10145 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10146 i[34567]86-*-openbsd3.[0-3].
10147 * config/i386/obsdaout.mh: New file.
10149 * config/i386/obsd.mh (MH_FLAGS): Remove.
10152 * i386obsd-tdep.c: Update copyright years. Include
10154 (i386obsd_init_abi): Don't set regset_from_core_section here.
10155 (i386obsd_aout_init_abi): New function. Set
10156 regset_from_core_section here.
10157 (i386obsd_elf_init_abi): New function.
10158 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10159 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10160 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10161 (TM_FILE): Set to tm-nbsd.h.
10163 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10166 * solib-svr4.h: Update copyright year.
10167 (svr4_ilp32_fetch_link_map_offsets)
10168 (svr4_lp64_fetch_link_map_offsets): New prototype.
10169 * solib-svr4.c: Update copyright year.
10170 (svr4_ilp32_fetch_link_map_offsets)
10171 (svr4_lp64_fetch_link_map_offsets): New function.
10173 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10175 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10176 to the partial symbol table.
10178 2004-02-20 J. brobecker <brobecker@gnat.com>
10180 * PROBLEMS: Add description of problem documented under gdb/1560.
10182 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10184 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10186 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10188 (amd64obsd_init_abi): Reorder initializations. Use
10189 amd64obsd_r_reg_offset to initialize the general-purpose register
10190 set details. Set regset_from_core_section.
10191 (_initialize_amd64obsd_tdep): Rename from
10192 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10193 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10194 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10196 * NEWS (New native configurations): Mention OpenBSD/alpha.
10197 * configure.tgt: Add alpha*-*-openbsd*.
10198 * configure.host: Add alpha*-*-openbsd*.
10199 * alphanbsd-tdep.c: Update copyright year.
10200 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10202 2004-02-20 Andrew Cagney <cagney@redhat.com>
10205 * configure.tgt: Delete target "none-*-*".
10206 * configure.host: Delete host "none-*-*".
10207 * config/none/none.mh: Delete file.
10208 * config/none/none.mt: Delete file.
10209 * config/none/xm-none.h: Delete file.
10210 * config/none/tm-none.h: Delete file.
10211 * config/none/nm-none.h: Delete file.
10213 2004-02-19 Fred Fish <fnf@redhat.com>
10215 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10216 cache->uses_fp prior to setting it.
10218 2004-02-19 Fred Fish <fnf@redhat.com>
10220 Fix for PR breakpoint/1558.
10221 * sh-tdep.c (IS_JSR): New macro.
10222 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10224 2004-02-19 Jim Blandy <jimb@redhat.com>
10226 * findvar.c (value_from_register): Doc fix.
10228 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10230 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10231 type being greater than sizeof of host's LONGEST. Always use
10232 unpack_long() unless format 'f' chosen.
10234 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10236 Committed by Elena Zannoni <ezannoni@redhat.com>
10238 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10239 contains a symbol wich is the best, non-exact match for the given
10240 pc. Update comments.
10242 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10244 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10245 macro, which was part of the now removed Mach 3 port.
10246 * utils.c (request_quit): Ditto.
10248 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10250 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10251 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10253 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10255 Committed by Mark Kettenis <kettenis@gnu.org>.
10257 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10260 2004-02-18 Andrew Cagney <cagney@redhat.com>
10262 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10263 CONFIG_INSTALL and CONFIG_UNINSTALL.
10264 * configure: Re-generate.
10265 * interps.h (INTERP_TUI): Define.
10266 * Makefile.in: Update dependencies.
10268 (tui-main.o): Specify dependencies.
10269 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10270 * tui/tui-main.c: New file.
10272 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10274 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10275 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10277 * configure.host: Add x86_64-*-openbsd*.
10278 * configure.tgt: Add x86_64-*-openbsd*.
10279 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10281 * tui/tui.c: Don't include <malloc.h>.
10283 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10284 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10287 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10288 static. Remove extraneous whitespace.
10289 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10292 2004-02-17 Jim Blandy <jimb@redhat.com>
10294 * findvar.c (value_from_register): Doc fix.
10296 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10298 Committed by Jim Blandy <jimb@redhat.com>.
10300 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10301 CORE_ADDR as type for selectors. Correct types for GNU run time
10302 message lookup function to use double indirection.
10303 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10304 * objc-lang.h (lookup_child_selector): Adapt prototype.
10306 * s390-nat.c (SUBOFF): New macro.
10307 (supply_gregset, fill_gregset): Use it to handle debugging
10308 of 32-bit exectuables running under a 64-bit kernel.
10309 * s390-tdep.c: Include "solib-svr4.h".
10310 (s390_svr4_fetch_link_map_offset): New function.
10311 (s390x_svr_fetch_link_map_offset): Likewise.
10312 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10313 * Makefile.in (s390-tdep.o): Update dependencies.
10315 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10317 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10318 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10319 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10320 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10321 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10322 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10323 S390_SIGNAL_FRAMESIZE,
10324 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10325 (struct frame_extra_info): Remove.
10326 (s390_memset_extra_info): Remove.
10327 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10328 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10329 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10330 (is_rse): Renamed to ...
10331 (is_rsy): ... this. Support long displacements.
10332 (is_rxe): Renamed to ...
10333 (is_rxy): ... this. Support long displacements.
10334 (compute_x_addr): Support long displacements.
10335 (struct s390_prologue_data): New data type.
10336 (s390_on_stack): Change API to use struct s390_prologue_data.
10337 (s390_store): Reimplement.
10338 (s390_load): New function.
10339 (s390_get_signal_frame_info): Remove.
10340 (s390_get_frame_info): Remove, replace by ...
10341 (s390_analyze_prolog): ... this new function.
10342 (s390_check_function_end): Remove.
10343 (s390_function_start): Remove.
10344 (s390_frameless_function_invokation): Remove.
10345 (s390_is_sigreturn): Remove.
10346 (s390_init_frame_pc_first): Remove.
10347 (s390_init_frame_extra_info): Remove.
10348 (s390_frame_init_saved_regs): Remove.
10349 (s390_frame_saved_pc_nofix): Remove.
10350 (s390_frame_saved_pc): Remove.
10351 (s390_frame_chain): Remove.
10352 (s390_fp_regnum, s390_read_fp): Remove.
10353 (s390_pop_frame_regular, s390_pop_frame): Remove.
10354 (s390_saved_pc_after_call): Remove.
10355 (s390_skip_prologue): Reimplement.
10356 (s390_in_function_epilogue_p): Support long displacements.
10357 (struct s390_unwind_cache): New data structure.
10358 (s390_frame_unwind_cache): New function.
10359 (s390_prologue_frame_unwind_cache): Likewise.
10360 (s390_backchain_frame_unwind_cache): Likewise.
10361 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10362 (s390_frame_unwind): Define.
10363 (s390_frame_sniffer): New function.
10364 (struct s390_pltstub_unwind_cache): New data structure.
10365 (s390_pltstub_frame_unwind_cache): New function.
10366 (s390_pltstub_frame_this_id): Likewise.
10367 (s390_pltstub_frame_prev_register): Likewise.
10368 (s390_pltstub_frame_unwind): Define.
10369 (s390_pltstub_frame_sniffer): New function.
10370 (struct s390_sigtramp_unwind_cache): New data structure.
10371 (s390_sigtramp_frame_unwind_cache): New function.
10372 (s390_sigtramp_frame_this_id): Likewise.
10373 (s390_sigtramp_frame_prev_register): Likewise.
10374 (s390_sigtramp_frame_unwind): Define.
10375 (s390_sigtramp_frame_sniffer): New function.
10376 (s390_frame_base_address, s390_local_base_address): New functions.
10377 (s390_frame_base): Define.
10378 (s390_unwind_pc, s390_unwind_sp): New function.
10379 (s390_push_dummy_call): Use new frame base location.
10380 (s390_unwind_dummy_id): Likewise.
10381 (s390_gdbarch_init): Remove calls to:
10382 set_gdbarch_frameless_function_invocation,
10383 set_gdbarch_deprecated_init_frame_pc,
10384 set_gdbarch_deprecated_frame_chain,
10385 set_gdbarch_deprecated_frame_init_saved_regs,
10386 set_gdbarch_deprecated_pop_frame,
10387 set_gdbarch_deprecated_init_extra_frame_info,
10388 set_gdbarch_deprecated_init_frame_pc_first,
10389 set_gdbarch_deprecated_target_read_fp,
10390 set_gdbarch_deprecated_frame_saved_pc,
10391 set_gdbarch_deprecated_saved_pc_after_call,
10392 set_gdbarch_deprecated_fp_regnum.
10394 set_gdbarch_in_solib_call_trampoline,
10395 frame_unwind_append_sniffer,
10396 frame_base_set_default,
10397 set_gdbarch_unwind_pc,
10398 set_gdbarch_unwind_sp.
10399 * Makefile.in (s390-tdep.o): Update dependencies.
10401 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10402 (S390_STACK_FRAME_OVERHEAD): Remove.
10403 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10404 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10405 (s390_promote_integer_argument): Remove.
10406 (s390_cannot_extract_struct_value_address): Remove.
10407 (s390_use_struct_convention, s390_store_struct_return): Remove.
10408 (s390_extract_return_value, s390_store_return_value): Remove.
10409 (s390_return_value_convention, s390_return_value): New functions.
10410 (is_float_singleton): Handle typedefs.
10411 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10412 Remove, replace by ...
10413 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10414 s390_function_arg_integer): ... these new functions.
10415 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10416 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10417 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10420 set_gdbarch_deprecated_store_struct_return,
10421 set_gdbarch_deprecated_extract_return_value,
10422 set_gdbarch_deprecated_store_return_value,
10423 set_gdbarch_use_struct_convention,
10424 set_gdbarch_extract_struct_value_address,
10425 set_gdbarch_deprecated_pc_in_call_dummy,
10426 set_gdbarch_deprecated_push_arguments,
10427 set_gdbarch_deprecated_save_dummy_frame_tos,
10428 set_gdbarch_deprecated_push_return_address,
10429 set_gdbarch_deprecated_sizeof_call_dummy_words,
10430 set_gdbarch_deprecated_call_dummy_words,
10431 set_gdbarch_deprecated_dummy_write_sp.
10433 set_gdbarch_push_dummy_call,
10434 set_gdbarch_unwind_dummy_id,
10435 set_gdbarch_return_value.
10437 * config/s390/nm-linux.h: Update comments.
10438 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10439 (STOPPED_BY_WATCHPOINT): Redefine.
10440 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10441 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10442 (s390_stopped_by_watchpoint): Likewise.
10443 (watch_area_cnt): Remove.
10444 * s390-nat.c: Update comments.
10445 (watch_area): Remove typedef.
10446 Global replace watch_area by struct watch_area.
10447 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10448 (s390_stopped_by_watchpoint): Remove pid argument,
10449 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10450 (s390_fix_watch_points): Remove pid argument,
10451 use s390_inferior_tid. Recompute area spanned by watchpoints.
10452 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10453 argument. Reimplement.
10455 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10456 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10457 (FETCH_INFERIOR_REGISTERS): Define.
10458 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10460 * config/s390/s390x.mt: Remove.
10461 * config/s390/tm-s390.h: Remove.
10462 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10463 (TARGET_ELF64): Remove.
10464 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10465 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10466 s390*-*-* case; always set gdb_target to s390.
10467 * regformats/reg-s390.dat: Remove control registers.
10468 * regformats/reg-s390x.dat: Likewise.
10469 * s390-tdep.h: New file.
10470 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10471 Include "inferior.h" and "s390-tdep.h".
10472 Remove private definition of offsetof.
10473 (s390_register_u_addr): Remove.
10474 (regmap_gregset, regmap_fpregset): Define.
10475 (supply_gregset, fill_gregset): Reimplement.
10476 (supply_fpregset, fill_fpregset): Likewise.
10477 (s390_inferior_tid): New function.
10478 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10479 (fetch_inferior_registers, store_inferior_registers): Likewise.
10480 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10481 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10482 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10483 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10484 (struct gdbarch_tdep): Define.
10485 (struct s390_register_info): Define.
10486 (s390_register_info): New variable.
10487 (s390_register_name): Reimplement.
10488 (s390_register_type): New function.
10489 (s390_register_raw_size, s390x_register_raw_size): Remove.
10490 (s390_cannot_fetch_register): Remove.
10491 (s390_register_byte): Remove.
10492 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10493 (s390_dwarf_regmap): New variable.
10494 (s390_dwarf_reg_to_regnum): New function.
10495 (s390_stab_reg_to_regnum): Remove.
10496 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10497 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10498 (s390_convert_register_p): Likewise.
10499 (s390_register_to_value, s390_value_to_register): Likewise.
10500 (s390_register_reggroup_p): Likewise.
10501 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10502 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10503 (s390_supply_regset, s390_regset_from_core_section): New functions.
10504 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10505 (S390_FPR_SIZE): Likewise.
10506 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10507 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10508 (S390_NUM_GPRS): Move here from tm-s390.h.
10509 (S390_NUM_FPRS): Likewise.
10510 (s390_in_function_epilogue_p): New function.
10511 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10512 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10513 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10514 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10515 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10517 set_gdbarch_deprecated_max_register_raw_size,
10518 set_gdbarch_deprecated_max_register_virtual_size,
10519 set_gdbarch_deprecated_register_byte,
10520 set_gdbarch_cannot_fetch_register,
10521 set_gdbarch_cannot_store_register,
10522 set_gdbarch_deprecated_register_size,
10523 set_gdbarch_deprecated_register_raw_size,
10524 set_gdbarch_deprecated_register_virtual_size,
10525 set_gdbarch_deprecated_register_virtual_type,
10526 set_gdbarch_deprecated_register_bytes.
10528 set_gdbarch_num_pseudo_regs,
10529 set_gdbarch_register_type,
10530 set_gdbarch_convert_register_p,
10531 set_gdbarch_register_to_value,
10532 set_gdbarch_value_to_register,
10533 set_gdbarch_register_reggroup_p,
10534 set_gdbarch_regset_from_core_section,
10535 set_gdbarch_pseudo_register_read,
10536 set_gdbarch_pseudo_register_write,
10537 set_gdbarch_in_function_epilogue_p.
10538 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10539 (s390_tdep_h): New variable.
10541 2004-02-17 Jim Blandy <jimb@redhat.com>
10543 * findvar.c (value_from_register): If the type has no length, just
10544 return an acceptable value --- don't report an internal error.
10546 * stabsread.c (read_type): If we find any type numbers that are
10547 forward references, complain if the references aren't resolved by
10548 the time we're finished reading.
10549 (cleanup_undefined_types): Make error message more appropriate for
10552 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10554 * Makefile.in (defs_h): Remove dependency on progress_h.
10555 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10557 * main.c (captured_main): Delete use of START_PROGRESS and
10560 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10562 * objfiles.c (terminate_minimal_symbol_table): Add back
10563 initialization of MSYMBOL_TYPE.
10565 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10567 Committed by Andrew Cagney.
10568 * Makefile.in (ia64_tdep_h): New macro.
10569 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10570 (ia64-tdep.o): Likewise.
10571 * ia64-tdep.h: New file.
10572 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10573 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10574 (ia64_aix_sigcontext_register_address): Likewise.
10575 (ia64_linux_getunwind_table): Delete declaration.
10576 * ia64-linux-tdep.c: Likewise.
10578 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10580 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10581 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10582 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10584 2004-02-17 Andrew Cagney <cagney@redhat.com>
10586 * symtab.c (skip_prologue_using_sal): New function.
10587 * symtab.h (skip_prologue_using_sal): Declare.
10588 * frv-tdep.c: Include "symtab.h".
10589 (skip_prologue_using_sal): Delete function.
10590 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10591 * rs6000-tdep.c (refine_prologue_limit): Mention
10592 skip_prologue_using_sal.
10593 * ia64-tdep.c (refine_prologue_limit): Ditto.
10594 * Makefile.in: Update dependencies.
10596 2004-02-16 Andrew Cagney <cagney@redhat.com>
10598 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10599 START_INFERIOR_TRAPS_EXPECTED.
10600 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10601 START_INFERIOR_TRAPS_EXPECTED.
10602 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10604 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10605 macro, moved to "nm-osf.h". Update copyright.
10606 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10609 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10610 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10611 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10612 frameless_look_for_prologue.
10613 * frame.h (legacy_frameless_look_for_prologue): Rename
10614 frameless_look_for_prologue.
10615 * gdbarch.h, gdbarch.c: Re-generate.
10616 * sh64-tdep.c (sh64_gdbarch_init): Update.
10617 * sh-tdep.c (sh_gdbarch_init): Update.
10618 * s390-tdep.c (s390_gdbarch_init): Update.
10619 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10620 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10621 * m68k-tdep.c (m68k_gdbarch_init): Update.
10622 (delta68_frame_args_address): Update.
10623 * m32r-tdep.c (m32r_gdbarch_init): Update.
10624 * hppa-tdep.c (hppa_gdbarch_init): Update.
10625 * h8300-tdep.c (h8300_gdbarch_init): Update.
10626 * frv-tdep.c (frv_gdbarch_init): Update.
10627 (frv_frameless_function_invocation): Update.
10628 * cris-tdep.c (cris_gdbarch_init): Update.
10629 (cris_frameless_function_invocation): Update.
10630 * avr-tdep.c (avr_gdbarch_init): Update.
10631 * arm-tdep.c (arm_gdbarch_init): Update.
10632 * stack.c (frame_info): Update, call predicate.
10633 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10634 * frame.c (legacy_get_prev_frame): Update, call predicate..
10635 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10636 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10637 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10639 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10640 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10641 * vax-tdep.c (vax_gdbarch_init): Ditto.
10643 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10646 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10648 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10651 2004-02-16 Andrew Cagney <cagney@redhat.com>
10653 * tui/tui-windata.c: Include "gdb_string.h".
10654 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10655 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10656 * Makefile.in: Update dependencies.
10658 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10660 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10661 * infrun.c: Include "gdb_assert.h".
10662 (singlestep_ptid, saved_singlestep_ptid)
10663 (stepping_past_singlestep_breakpoint): New variables.
10664 (resume): Set singlestep_ptid. Check for singlestep thread
10666 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10667 (handle_inferior_event): Handle singlestep thread hop.
10669 2004-02-16 Andrew Cagney <cagney@redhat.com>
10671 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10672 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10673 (dwarf2_frame_init_reg): Ditto.
10675 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10676 suggested by Joshua Neuheisel
10678 * configure.in: Always check for curses, including pdcurses.
10679 Warn, instead of error, when no curses are found. Enable TUI when
10680 curses is available.
10681 * configure: Re-generate.
10683 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10685 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10686 sh_sh4_register_convert_to_virtual.
10687 (sh_register_convert_to_raw): Rename from
10688 sh_sh4_register_convert_to_raw.
10689 (sh_pseudo_register_read): Accomodate above name change.
10690 (sh_pseudo_register_write): Ditto.
10692 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10694 * sh-tdep.c (sh_generic_register_name): Remove.
10695 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10697 2004-02-15 Andrew Cagney <cagney@redhat.com>
10699 * configure.in (build_warnings): Add -Wunused-function.
10700 * configure: Re-generate.
10702 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10703 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10705 * procfs.c (procfs_init_inferior): Assume that
10706 START_INFERIOR_TRAPS_EXPECTED is defined.
10707 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10708 * config/ns32k/tm-nbsd.h: Delete file,
10709 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10711 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10712 * config/vax/tm-vax.h: Delete file.
10714 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10715 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10716 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10717 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10718 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10719 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10720 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10722 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10724 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10725 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10726 (struct dwarf2_frame_ops): New.
10727 (dwarf2_frame_default_init_reg): New function, based on
10728 dwarf2_frame_init_reg.
10729 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10730 (dwarf2_frame_init_reg): Call architecture-specific function.
10731 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10732 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10733 instead of dwarf2_frame_data.
10734 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10735 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10737 2004-02-15 Andrew Cagney <cagney@redhat.com>
10739 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10740 register_gdbarch_swap.
10741 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10742 * f-lang.c (_initialize_f_language): Update, use
10743 DEPRECATED_REGISTER_GDBARCH_SWAP.
10744 * remote.c (_initialize_remote): Ditto.
10745 * regcache.c (_initialize_regcache): Ditto.
10746 * parse.c (_initialize_parse): Ditto.
10747 * infrun.c (_initialize_infrun): Ditto.
10748 * mi/mi-main.c (_initialize_mi_main): Ditto.
10749 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10751 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10752 poking .cacheable directly.
10753 * symfile.c (symfile_bfd_open): Ditto.
10755 * Makefile.in: Update all dependencies.
10757 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10758 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10759 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10760 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10761 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10763 2004-02-14 Andrew Cagney <cagney@redhat.com>
10765 * arch-utils.c (legacy_convert_register_p): Check
10766 DEPRECATED_REGISTER_CONVERTIBLE_P.
10767 * findvar.c (value_of_register): Ditto.
10769 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10770 * gdbarch.h, gdbarch.c: Re-generate.
10771 * arch-utils.c (deprecated_register_convertible_not): Delete.
10772 * arch-utils.h (deprecated_register_convertible_not): Delete.
10773 * mi/mi-main.c (get_register): Update. Update copyright.
10774 * infcmd.c (default_print_registers_info): Update.
10776 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10777 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10778 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10779 * gdbarch.h, gdbarch.c: Re-generate.
10780 * frame.c (deprecated_get_next_frame_hack): Delete function.
10781 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10782 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10784 * infcall.c (call_function_by_hand): Update.
10786 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10788 * symfile.c (init_entry_point_info, entry_point_address): Move
10790 * objfiles.c (init_entry_point_info, entry_point_address):..to
10792 * symfile.h (init_entry_point_info, entry_point_address): Remove
10794 * objfiles.h (init_entry_point_info, entry_point_address):Add
10796 * cris-tdep.c: Remove include of symfile.h. Add include of
10798 * infcall.c: Ditto.
10799 * mcore-tdep.c: Ditto.
10800 * mn10300-tdep.c: Ditto.
10801 * sh64-tdep.c: Ditto.
10802 * v850-tdep.c: Ditto.
10803 * arm-tdep.c: Remove include of symfile.h.
10804 * blockframe.c: Ditto.
10805 * coffread.c: Ditto.
10806 * dbxread.c: Ditto.
10807 * dwarf2read.c: Ditto.
10808 * dwarfread.c: Ditto.
10809 * frv-tdep.c: Ditto.
10810 * ia64-tdep.c: Ditto.
10811 * mdebugread.c: Ditto.
10812 * mipsread.c: Ditto.
10813 * rs6000-tdep.c: Ditto.
10814 * s390-tdep.c: Ditto.
10815 * sh-tdep.c: Ditto.
10816 * xstormy16-tdep.c: Ditto.
10817 * gdbarch.sh: Remove include of symfile.h.
10818 * gdbarch.c: Regenerate.
10819 * solib-irix.c (enable_break): Use entry_point_address().
10820 Add comment about include file.
10821 * xcoffread.c: Add comment about include file.
10822 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10823 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10824 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10825 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10826 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10828 2004-02-13 Andrew Cagney <cagney@redhat.com>
10830 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10831 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10833 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10835 2004-02-12 Fred Fish <fnf@redhat.com>
10837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10838 set_gdbarch_store_return_value.
10840 2004-02-12 Andrew Cagney <cagney@redhat.com>
10842 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10843 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10844 (interrupt_query): Ditto.
10845 (ofunc): Delete unused variable.
10846 * cris-tdep.c (cris_abi): Delete unused function.
10847 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10848 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10849 (cris_get_asr_quick_shift_steps): Ditto.
10850 (cris_skip_prologue_frameless_p): Ditto.
10851 * arm-tdep.c (arm_push_return_address): Delete unused function.
10852 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10853 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10854 * s390-tdep.c (s390_function_start): Delete unused function.
10856 2004-02-12 Andrew Cagney <cagney@redhat.com>
10858 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10859 gdbarch.h, gdbarch.c: Re-generate.
10860 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10861 to generic_prologue_frameless_p.
10862 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10863 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10865 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10867 * mips-linux-tdep.c: Include "frame.h".
10868 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10869 (mips_linux_skip_resolver): New functions.
10870 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10871 and set_gdbarch_in_solib_call_trampoline.
10872 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10873 to after set_gdbarch_in_solib_return_trampoline. Only set the
10874 solib hooks to mips16 functions if the OS ABI is unknown.
10875 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10876 including "config/tm-linux.h".
10877 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10878 * Makefile.in (mips-linux-tdep.o): Update.
10880 2004-02-11 David Carlton <carlton@kealia.com>
10882 * linespec.c (decode_compound): Only look for a class symbol when
10883 considering all but the rightmost component.
10885 2004-02-11 Andrew Cagney <cagney@redhat.com>
10887 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10888 abi code are are separatly grouped.
10890 2004-02-11 Andrew Cagney <cagney@redhat.com>
10892 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10893 * gdbarch.h, gdbarch.c: Re-generate.
10894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10895 * v850-tdep.c (v850_gdbarch_init): Update.
10896 * sh64-tdep.c (sh64_gdbarch_init): Update.
10897 * sh-tdep.c (sh_gdbarch_init): Update.
10898 * s390-tdep.c (s390_gdbarch_init): Update.
10899 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10900 * mips-tdep.c (mips_gdbarch_init): Update.
10901 * mcore-tdep.c (mcore_gdbarch_init): Update.
10902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10903 * m32r-tdep.c (m32r_gdbarch_init): Update.
10904 * ia64-tdep.c (ia64_gdbarch_init): Update.
10905 * hppa-tdep.c (hppa_gdbarch_init): Update.
10906 * h8300-tdep.c (h8300_gdbarch_init): Update.
10907 * frv-tdep.c (frv_gdbarch_init): Update.
10908 * d10v-tdep.c (d10v_gdbarch_init): Update.
10909 * cris-tdep.c (cris_gdbarch_init): Update.
10910 * avr-tdep.c (avr_gdbarch_init): Update.
10911 * arm-tdep.c (arm_gdbarch_init): Update.
10912 * alpha-tdep.c (alpha_gdbarch_init): Update.
10914 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10916 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10918 (sh_sh4al_dsp_register_name): Ditto.
10920 2004-02-10 Andrew Cagney <cagney@redhat.com>
10922 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10923 (mips_init_frame_pc_first): Delete function.
10924 (mips_frame_saved_pc): Delete function.
10925 (mips_frame_chain): Delete function.
10926 (mips_init_extra_frame_info): Delete function.
10927 (mips_xfer_register): Delete unused variable "reg".
10928 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10929 (mips_n32n64_return_value): Delete unused variable "reg".
10930 (mips_n32n64_return_value): Delete unused variable "pos".
10931 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10932 (mips_o32_return_value): Delete unused variable "pos".
10933 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10934 (mips_print_fp_register): Delete unused variable "namelen"
10935 (mips_print_fp_register): Delete unused variable "flt2"
10936 (get_frame_pointer): Delete function.
10937 (cached_proc_desc): Delete static variable.
10938 (mips_pop_frame): Delete function.
10939 (mips_find_saved_regs): Delete function.
10940 (mips_get_saved_register): Delete function.
10941 (mips_saved_pc_after_call): Delete function.
10942 (SIGFRAME_BASE): Delete macro.
10943 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10944 (SIGFRAME_PC_OFF): Delete macro.
10945 (SIGFRAME_REGSAVE_OFF): Delete macro.
10946 (mips_dump_tdep): Do not print deleted macro definitions.
10948 2004-02-10 Andrew Cagney <cagney@redhat.com>
10950 * Makefile.in (SFILES): Remove explictly listed tui files.
10951 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10953 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10955 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10956 to use paddr functions to format ia64 addresses and long values.
10957 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10958 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10959 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10960 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10961 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10963 2004-02-10 Andrew Cagney <cagney@redhat.com>
10965 * defs.h: Do not include "tui.h".
10966 * gdb_curses.h: New file.
10967 * tui/tui-hooks.h: New file.
10968 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10969 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10970 (tui_initialize_io): Delete declaration.
10971 (tui_initialize_readline: Delete redundant declaration.
10972 (struct tui_point): Delete definition.
10973 * tui/tui-data.h (struct tui_point): Define.
10974 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10975 * utils.c: Include "tui/tui.h".
10976 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10977 * printcmd.c [TUI]: Include "tui/tui.h".
10978 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10979 * tui/tui-command.c: Include "gdb_curses.h".
10980 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10981 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10982 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10983 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10984 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10985 * Makefile.in: Update all dependencies.
10986 (tui_hooks_h, gdb_curses_h): Define.
10987 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10989 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10991 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10992 auxf2. Add comments about some other rarely used fields.
10994 2004-02-10 Andrew Cagney <cagney@redhat.com>
10996 * Makefile.in (init.c): Fix script removing duplicates. Problem
10997 reported by Peter Schauer.
10999 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11001 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11002 obstack_specify_allocation.
11003 * objfiles.c (allocate_objfile): Ditto.
11004 * solib-sunos.c (solib_add_common_symbols)
11005 (allocate_rt_common_objfile): Ditto.
11006 * symfile.c (reread_symbols): Ditto.
11007 * gdb_obstack.h: Add comment.
11009 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11011 * linespec.c (decode_line_1, locate_first_half)
11012 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11013 commented out code.
11015 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11017 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11020 2004-02-09 Andrew Cagney <cagney@redhat.com>
11022 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11023 fails, try find_pc_section. Fix PR c++/1267.
11024 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11025 instead of find_pc_mapped_section.
11026 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11027 not default to the section containing PC. Fix PR symtab/1519.
11029 2004-02-09 Andrew Cagney <cagney@redhat.com>
11031 * Makefile.in (mips-tdep.o): Update dependencies.
11032 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11034 (mips_unwind_pc): Return the pseudo PC register.
11035 (mips_unwind_dummy_id): New function.
11036 (mips16_fetch_instruction): New function.
11037 (mips32_fetch_instruction): New function.
11038 (struct mips_frame_cache): Define.
11039 (mips_mdebug_frame_cache): New function.
11040 (mips_mdebug_frame_this_id): New function.
11041 (mips_mdebug_frame_prev_register): New function.
11042 (mips_mdebug_frame_unwind): Define.
11043 (mips_mdebug_frame_sniffer): New function.
11044 (mips_mdebug_frame_base_address): New function.
11045 (mips_mdebug_frame_base): Define.
11046 (mips_mdebug_frame_base_sniffer): New function.
11047 (mips_gdbarch_init): Append unwind and base sniffers. Set
11050 2004-02-08 Andrew Cagney <cagney@redhat.com>
11052 * frame.c: Print both the register number and name.
11054 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11055 and a sed into a single sed. Make .c and .o patterns more robust.
11057 (INIT_FILES): Replace OBS with COMMON_OBS.
11058 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11060 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11062 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11063 the PT_WCOOKIE request.
11065 2004-02-08 Andrew Cagney <cagney@redhat.com>
11067 * mips-tdep.c (mips_unwind_pc): New function.
11068 (mips_gdbarch_init): Set mips_unwind_pc.
11070 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11071 (get_frame_id): Allow the UNKNOWN_FRAME.
11072 (frame_register_unwind, get_frame_type): Ditto.
11074 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11075 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11076 unwind_dummy_id indicates a legacy frame.
11078 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11079 * configure: Re-generate.
11081 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11084 2004-02-08 Andrew Cagney <cagney@redhat.com>
11086 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11088 * configure: Re-generate.
11089 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11090 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11091 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11092 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11093 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11094 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11095 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11096 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11097 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11098 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11100 2004-02-07 Andrew Cagney <cagney@redhat.com>
11102 * Makefile.in: Update all dependencies.
11104 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11105 * configure: Re-generate.
11106 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11107 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11108 (COMMON_OBS): Add "main.o" and "annotate.o".
11109 (ANNOTATE_OBS): Delete.
11110 (OBS): Remove ANNOTATE_OBS.
11111 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11113 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11114 against CONFIG_OBS and "main.o".
11115 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11116 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11118 * tui/tui-command.c: Include "gdb_string.h", delete register
11119 attribute, use ISO-C function signatures.
11120 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11121 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11122 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11123 * tui/tui.c: Ditto.
11125 * tui/tui-command.c: Change variable and function names to lower
11127 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11128 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11129 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11130 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11131 * tui/tui-winsource.c, tui/tui.c: Ditto.
11133 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11135 * buildsym.c (free_pending_blocks, finish_block)
11136 (record_pending_block, make_blockvector, end_symtab): Replace
11137 symbol_obstack with objfile_obstack.
11138 * coffread.c (process_coff_symbol, coff_read_struct_type)
11139 (coff_read_enum_type): Ditto.
11140 * cp-namespace.c (initialize_namespace_symtab)
11141 (check_one_possible_namespace_symbol): Ditto.
11142 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11143 (dwarf2_symbol_mark_computed): Ditto.
11144 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11145 * elfread.c (elf_symtab_read): Ditto.
11146 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11147 (hpread_read_enum_type, hpread_read_function_type)
11148 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11150 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11151 (java_link_class_type): Ditto.
11152 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11153 (new_symbol): Ditto.
11154 * minsyms.c (install_minimal_symbols): Ditto.
11155 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11156 (terminate_minimal_symbol_table): Replace symbol_obstack with
11158 (free_objfile): Remove freeing of symbol_obstack.
11159 * objfiles.h: Remove symbol_obstack field.
11160 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11162 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11164 (solib_add_common_symbols): Replace symbol_obstack with
11166 * somsolib.c (som_solib_add): Ditto.
11167 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11168 (common_block_start, common_block_end): Ditto.
11169 * symfile.c (reread_symbols): Remove freeing and init of
11171 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11172 * symfile.h: Update comment.
11173 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11175 * symtab.c (symbol_set_names): Replace symbol_obstack with
11177 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11179 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11180 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11183 2004-02-07 Andrew Cagney <cagney@redhat.com>
11185 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11186 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11187 fields and variables.
11188 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11189 (m_beInvisible): Delete macro.
11190 * tui/tui-data.h: Fix case case fields and variables.
11191 (m_genWinPtrIsNull): Delete macro.
11192 (tui_win_list): Rename winList.
11193 (TUI_SRC_WIN): Rename srcWin.
11194 (TUI_DISASM_WIN): Rename disassemWin.
11195 (TUI_DATA_WIN): Rename dataWin.
11196 (TUI_CMD_WIN): Rename cmdWin.
11197 (m_genWinPtrNotNull): Delete macro.
11198 (m_winPtrIsNull): Delete macro.
11199 (m_winPtrNotNull): Delete macro.
11200 (tui_win_is_source_type): Replace m_winIsSourceType
11201 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11202 (tui_win_has_locator): Replace m_hasLocator.
11203 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11204 m_setWinHighlightOff.
11205 * tui/tui-data.c: Update references.
11206 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11207 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11208 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11209 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11210 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11211 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11212 * tui/tui-winsource.c, tui/tui.c: Ditto.
11214 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11216 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11217 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11220 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11221 variable `i6' to `i7'.
11222 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11224 2004-02-07 Andrew Cagney <cagney@redhat.com>
11226 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11227 (TuiPoint, TuiPointPtr): Ditto.
11228 (TuiStatus, TuiStatusPtr): Ditto.
11229 (TuiWinType, TuiWinTypePtr): Ditto.
11230 (struct tui_point): Rename _TuiPoint.
11231 (tui_get_low_disassembly_address): Rename
11232 tuiGetLowDisassemblyAddress.
11233 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11234 (tuiFree): Delete declaration.
11235 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11236 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11237 * tui/tui.c (tuiFree): Delete function.
11238 * cli/cli-cmds.c (disassemble_command): Update references.
11239 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11240 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11241 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11242 * tui/tui-winsource.c: Ditto.
11244 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11246 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11247 coffstab_build_psymtabs, elfstab_build_psymtabs)
11248 (stabsect_build_psymtabs): Replace psymbol_obstack with
11250 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11251 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11253 * dwarfread.c (scan_compilation_units): Ditto.
11254 * elfread.c (elfstab_offset_sections): Ditto.
11255 * hppa-tdep.c (read_unwind_info): Ditto.
11256 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11257 (hpread_end_psymtab): Ditto.
11258 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11259 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11261 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11262 * objfiles.c (add_to_objfile_sections)
11263 (build_objfile_section_table): Ditto.
11264 (allocate_objfile): Remove init of psymbol_obstack.
11265 (free_objfile): Remove freeing of psymbol_obstack.
11266 * objfiles.h (struct objfile): Remove field
11267 psymbol_obstack. Update comments.
11268 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11269 psymbol_obstack with objfile_obstack.
11270 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11272 * somread.c (som_symfile_offsets, init_import_symbols)
11273 (init_export_symbols): Replace psymbol_obstack with
11275 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11276 * symfile.c (default_symfile_offsets, syms_from_objfile)
11277 (reread_symbols): Remove freeing and init of psymbol_obstack.
11278 (cashier_psymtab): Update comment.
11279 * symmisc.c (print_objfile_statistics): Don't report stats for
11281 * symtab.h (struct general_symbol_info, struct partial_symtab):
11283 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11284 (xcoff_symfile_offsets): Replace psymbol_obstack with
11287 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11289 * objfiles.h (struct objfile): Add objfile_obstack field.
11290 Remove type_obstack field.
11292 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11293 read_structure_scope read_enumeration, new_symbol): Replace
11294 type_obstack with objfile_obstack.
11295 * dwarfread.c (struct_type, enum_type): Ditto.
11296 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11297 (lookup_fundamental_type): Ditto.
11298 * gdbtypes.h (TYPE_ALLOC): Ditto.
11299 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11300 (hpread_read_doc_function_type, hpread_read_struct_type)
11301 (fix_static_member_physnames, hpread_read_array_type)
11302 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11303 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11304 (java_link_class_type): Ditto.
11305 * mdebugread.c (parse_type): Ditto.
11306 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11307 * solib-sunos.c (solib_add_common_symbols): Ditto.
11308 * stabsread.c (define_symbol, read_type, read_member_functions,
11309 read_cpp_abbrev, read_one_struct_field): Ditto.
11310 * symfile.c (reread_symbols): Ditto.
11311 * symmisc.c (print_objfile_statistics): Ditto.
11313 2004-02-07 Andrew Cagney <cagney@redhat.com>
11315 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11316 (tui_exec_info_content): Rename TuiExecInfoContent.
11317 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11318 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11319 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11320 (TuiList, TuiListPtr): Ditto.
11321 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11322 (TuiDataType, TuiDataTypePtr): Ditto.
11323 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11324 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11325 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11326 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11327 (TuiDataElement, TuiDataElementPtr): Ditto.
11328 (TuiWinElement, TuiWinElementPtr): Ditto.
11329 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11330 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11331 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11332 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11333 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11334 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11335 * tui/tui-command.c, tui/tui-data.c: Update references.
11336 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11337 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11338 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11339 * tui/tui-winsource.c, tui/tui.c: Ditto.
11341 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11343 * dwarf2-frame.h: Update copyright.
11344 (enum dwarf2_frame_reg_rule): New.
11345 (struct dwarf2_frame_state_reg): New.
11346 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11347 * dwarf2-frame.c: Update copyright.
11348 (enum dwarf2_reg_rule): Remove.
11349 (struct dwarf2_frame_state): Remove defenition of `struct
11350 dwarf2_frame_state_reg'.
11351 (read_reg): Call get_frame_arch to get the architecture instead of
11352 using CURRENT_GDBARCH.
11353 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11355 (dwarf2_frame_init_reg): New function.
11356 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11357 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11358 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11359 tags with DWARF2_FRAME_.
11360 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11361 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11362 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11364 2004-02-06 Andrew Cagney <cagney@redhat.com>
11366 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11367 (enum tui_data_type): Rename _TuiDataType.
11368 (struct tui_layout_def): Rename _TuiLayoutDef.
11369 (struct tui_source_element): Rename _TuiSourceElement.
11370 (struct tui_data_element): Rename _TuiDataElement.
11371 (struct tui_command_element): Rename _TuiCommandElement.
11372 (struct tui_locator_element): Rename _TuiLocatorElement.
11373 (union tui_which_element): Define.
11374 (struct tui_win_element): Rename _TuiWinElement.
11375 (struct tui_data_info): Rename _TuiDataInfo.
11376 (struct tui_source_info): Rename _TuiSourceInfo.
11377 (struct tui_command_info): Rename _TuiCommandInfo.
11378 (tui_initialize_static_data): Rename initializeStaticData.
11379 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11380 (tui_alloc_win_info): Rename allocWinInfo.
11381 (tui_init_generic_part): Rename initGenericPart.
11382 (tui_init_win_info): Rename initWinInfo.
11383 (tui_alloc_content): Rename allocContent.
11384 (tui_add_content_elements): Rename addContentElements.
11385 (tui_init_content_element): Rename initContentElement.
11386 (tui_free_window): Rename freeWindow.
11387 (tui_free_win_content): Rename freeWinContent.
11388 (tui_free_data_content): Rename freeDataContent.
11389 (tui_free_all_source_wins_content): Rename
11390 freeAllSourceWinsContent.
11391 (tui_del_window): Rename tuiDelWindow.
11392 (tui_del_data_windows): Rename tuiDelDataWindows.
11393 (tui_partial_win_by_name): Rename partialWinByName.
11394 (tui_win_name): Rename winName.
11395 (tui_current_layout): Rename currentLayout.
11396 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11397 (tui_term_height): Rename termHeight.
11398 (tui_set_term_height_to): Rename setTermHeightTo.
11399 (tui_term_width): Rename termWidth.
11400 (tui_set_term_width_to): Rename setTermWidthTo.
11401 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11402 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11403 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11404 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11405 (tui_source_windows): Rename sourceWindows.
11406 (tui_clear_source_windows): Rename clearSourceWindows.
11407 (tui_clear_source_windows_detail): Rename
11408 clearSourceWindowsDetail.
11409 (tui_clear_win_detail): Rename clearWinDetail.
11410 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11411 (tui_default_tab_len): Rename tuiDefaultTabLen.
11412 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11413 (tui_win_with_focus): Rename tuiWinWithFocus.
11414 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11415 (tui_layout_def): Rename tuiLayoutDef.
11416 (tui_win_resized): Rename tuiWinResized.
11417 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11418 (tui_next_win): Rename tuiNextWin.
11419 (tui_prev_win): Rename tuiPrevWin.
11420 (tui_add_to_source_windows): Rename addToSourceWindows.
11421 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11422 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11423 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11424 * tui/tui.c, tui/tui-data.c: Ditto.
11425 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11426 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11428 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11429 (struct symtab): Declare.
11430 (tui_set_source_content): Rename tuiSetSourceContent.
11431 (tui_show_symtab_source): Rename tuiShowSource.
11432 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11433 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11434 * tui/tui-source.c: Update copyright. Update references.
11435 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11436 * tui/tui-stack.c: Update references.
11438 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11439 (struct tui_win_info): Declare.
11440 (tui_scroll_forward): Rename tuiScrollForward.
11441 (tui_scroll_backward): Rename tuiScrollBackward.
11442 (tui_scroll_left): Rename tuiScrollLeft.
11443 (tui_scroll_right): Rename tuiScrollRight.
11444 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11445 (tui_resize_all): Rename tuiResizeAll.
11446 (tui_refresh_all_win): Rename tuiRefreshAll.
11447 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11448 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11449 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11450 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11452 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11453 (tui_erase_data_content): Rename tuiEraseDataContent.
11454 (tui_display_all_data): Rename tuiDisplayAllData.
11455 (tui_check_data_values): Rename tuiCheckDataValues.
11456 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11457 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11458 (tui_first_data_element_no_in_line): Rename
11459 tuiFirstDataElementNoInLine.
11460 (tui_delete_data_content_windows): Rename
11461 tuiDeleteDataContentWindows.
11462 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11463 (tui_display_data_from): Rename tuiDisplayDataFrom.
11464 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11465 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11466 * tui/tui-win.c, tui/tui-regs.c: Update references.
11467 * tui/tui-layout.c, tui/tui.c: Update references.
11469 * tui/tui-wingeneral.h: Update copyright.
11470 (m_allBeVisible): Delete macro.
11471 (m_allBeInvisible): Delete macro.
11472 (struct tui_gen_win_info): Declare.
11473 (struct tui_win_info): Declare.
11474 (tui_unhighlight_win): Rename unhighlightWin.
11475 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11476 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11477 (tui_make_window): Rename makeWindow.
11478 (tui_copy_win): Rename copyWin.
11479 (tui_box_win): Rename boxWin.
11480 (tui_highlight_win): Rename highlightWin.
11481 (tui_check_and_display_highlight_if_needed): Rename
11482 checkAndDisplayHighlightIfNeeded.
11483 (tui_refresh_all): Rename refreshAll.
11484 (tui_delete_win): Rename tuiDelwin.
11485 (tui_refresh_win): Rename tuiRefreshWin.
11486 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11487 (tui_make_visible, tui_make_invisible): New functions.
11488 (tui_make_all_visible, tui_make_all_invisible): New functions.
11489 (make_all_visible): Rename makeAllVisible.
11490 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11491 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11492 * tui/tui-windata.c, tui/tui-win.c: Update references.
11493 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11494 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11496 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11498 * proc-api.c (write_with_trace): Initialize local variable to
11499 silence compiler warning.
11501 2004-02-06 Andrew Cagney <cagney@redhat.com>
11503 * tui/tui-source.h: Do not include "defs.h".
11504 (struct tui_win_info): Declare.
11505 (tui_set_source_content_nil): Declare.
11506 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11507 (union tui_line_or_address): Rename _TuiLineOrAddress.
11508 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11509 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11510 (tui_update_source_window_as_is): Rename
11511 tuiUpdateSourceWindowAsIs.
11512 (tui_update_source_windows_with_addr): Rename
11513 tuiUpdateSourceWindowsWithAddr.
11514 (tui_update_source_windows_with_line): Rename
11515 tuiUpdateSourceWindowsWithLine.
11516 (tui_clear_source_content): Rename tuiClearSourceContent.
11517 (tui_erase_source_content): Rename tuiEraseSourceContent.
11518 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11519 (tui_show_source_content): Rename tuiShowSourceContent.
11520 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11521 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11522 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11523 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11524 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11525 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11526 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11527 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11528 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11529 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11530 (struct tui_win_info): Declare.
11531 * tui/tui-stack.c: Update references.
11532 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11533 * tui/tui-win.c, tui/tui-source.c: Ditto.
11534 * tui/tui.c, tui/tui-disasm.c: Ditto.
11536 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11538 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11539 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11541 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11543 * infrun.c (handle_inferior_event): Allow for breakpoint
11544 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11545 and SIGEMT. Update comments.
11546 * NEWS (Revised SPARC target): Mention support for non-executable
11549 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11551 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11552 * inftarg.c: Update copyright year.
11553 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11554 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11555 (sparc_xfer_wcookie): New function.
11556 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11557 * Makefile.in (sparc-nat.o): Update dependencies.
11558 * config/sparc/nm-nbsd.h: Include "target.h".
11559 (NATIVE_XFER_WCOOKIE): New define.
11560 (sparc_xfer_wcookie): New prototype.
11562 2004-02-04 Andrew Cagney <cagney@redhat.com>
11564 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11565 SYSCALL_TRAP function.
11566 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11568 2004-02-04 Andrew Cagney <cagney@redhat.com>
11569 Daniel Jacobowitz <drow@mvista.com>
11571 * objfiles.h: Delete comments refering to inside_entry_func and
11572 DEPRECATED_FRAME_CHAIN_VALID.
11573 * defs.h (inside_entry_func): Update prototype..
11574 * blockframe.c (inside_entry_func): Rename to
11575 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11576 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11578 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11580 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11581 outside of #ifdef SOLIB_ADD region.
11582 (do_restore_lang_radix_cleanup): Ditto.
11583 (resolve_pending_breakpoint): Ditto.
11585 2004-02-03 Andrew Cagney <cagney@redhat.com>
11587 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11588 (process_note_abi_tag_sections): Delete unused function.
11589 (ia64_read_fp): Delete unused function.
11590 (gdbarch_extract_struct_value_address): Delete declaration.
11592 2004-02-02 Andrew Cagney <cagney@redhat.com>
11594 * vax-tdep.c (vax_frame_chain): Delete call to
11595 deprecated_inside_entry_file.
11596 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11598 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11600 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11601 column that's "empty" or "same value" when eliminating REG_RA
11604 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11606 * NEWS: Add information about new pending breakpoint support.
11608 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11610 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11611 and pending fields for pending breakpoint support.
11612 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11613 (condition_command): Only parse condition if not a pending
11615 (print_one_breakpoint): Add support for pending breakpoints.
11616 (describe_other_breakpoints): Add checks to verify we are not
11617 dealing with pending breakpoints.
11618 (check_duplicates): Don't check pending breakpoints.
11619 (set_raw_breakpoint): Initialize pending flag.
11620 (do_restore_lang_radix_cleanup): New cleanup routine.
11621 (resolve_pending_breakpoint): New function.
11622 (re_enable_breakpoints_in_shlibs): Try and resolve any
11623 pending breakpoints via resolve_pending_breakpoint.
11624 (mention): Add pending breakpoint support.
11625 (parse_breakpoint_sals): Add new parameter to pass to
11626 decode_line_1 to indicate silent errors when files or functions
11627 are not found. Change all callers.
11628 (do_captured_parse_breakpoint): New function.
11629 (break_command_1): Change prototype to return an rc value and to
11630 take an optional pending breakpoint pointer. Support creating
11631 a pending breakpoint if a "not found" form of error occurs when
11632 parsing the breakpoint. Also support resolving an existing pending
11633 breakpoint and be silent if the resolution fails.
11634 (create_breakpoints): Change prototype to take pending breakpoint
11635 pointer. When resolving a pending breakpoint, use the new pointer
11636 to provide a conditional or commands added by the end-user.
11637 (delete_breakpoint): Add appropriate check for pending.
11638 (breakpoint_re_set_one): Ditto.
11639 (do_enable_breakpoint): Ditto.
11641 2004-02-02 David Carlton <carlton@kealia.com>
11643 * valops.c (enum oload_classification): New.
11644 (find_overload_match): Break implementation into separate
11645 functions; delete #if 0'd code; look for symbols within
11647 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11648 (find_oload_champ,oload_method_static,classify_oload_match): New.
11649 * cp-support.h: Add declaration for cp_func_name; update
11650 declaration for make_symbol_overload_list.
11651 * cp-support.c (cp_func_name): New.
11652 (overload_list_add_symbol): Fix comment, use
11653 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11654 (make_symbol_overload_list): Take a function name and a namespace
11655 instead of a symbol; change implementation.
11656 (make_symbol_overload_list_using): New.
11657 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11659 2004-02-02 Fred Fish <fnf@redhat.com>
11661 * main.c (gdb_stdtarg): Move definition to group with other
11662 gdb_stdtarg definitions and update copyright years.
11663 * remote-sim.c (gdb_os_write_stderr): Write output to
11664 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11665 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11666 gdb_stderr stream and update copyright years.
11668 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11670 * Makefile.in (mips-linux-nat.o): Update dependencies.
11671 * mips-linux-nat.c: Include mips-tdep.h.
11673 2004-02-01 Roland McGrath <roland@redhat.com>
11675 * sol-thread.c (sol_thread_xfer_partial): New function.
11676 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11677 (init_sol_core_ops): Likewise.
11679 * procfs.c (procfs_xfer_partial): New function.
11680 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11681 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11683 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11684 procfs_xfer_auxv function.
11686 * procfs.c (procfs_make_note_section): If we can read
11687 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11688 * linux-proc.c (linux_make_note_section): Likewise.
11690 * auxv.h: New file.
11691 * auxv.c: New file.
11692 * Makefile.in (auxv_h): New variable.
11693 (COMMON_OBS): Add auxv.o here.
11694 (auxv.o): New target.
11696 * corelow.c (core_xfer_partial): New function.
11697 (init_core_ops): Use it for core_ops.to_xfer_partial.
11699 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11700 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11701 macro if that is defined.
11703 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11705 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11706 and check the specified thread for each breakpoint.
11707 * breakpoint.h (bpstat_stop_status): Update prototype.
11708 * infrun.c (handle_inferior_event): Update calls to
11709 bpstat_stop_status.
11711 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11713 * Makefile.in (cli-cmds.o): Add $(readline_h).
11715 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11717 * cli/cli-cmds.c: Include readline.h.
11718 (complete_command): Pass the start of the last word to
11721 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11723 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11724 argument, and change first argument to a CORE_ADDR.
11725 * breakpoint.h (bpstat_stop_status): Update prototype.
11726 * infrun.c (adjust_pc_after_break): Add a new comment.
11727 (handle_inferior_event): Update calls to bpstat_stop_status.
11729 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11731 * breakpoint.h: Update copyright years.
11733 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11735 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11736 (bpstat_stop_status): Don't decrement PC.
11737 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11739 * infrun.c (adjust_pc_after_break): New function.
11740 (handle_inferior_event): Call it, early. Remove later references
11741 to DECR_PC_AFTER_BREAK.
11742 (normal_stop): Add commentary.
11744 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11746 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11747 2004-01-27 double-free fix.
11749 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11751 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11752 (sparc32_frame_prev_register): Handle StackGhost.
11753 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11755 2004-01-29 Roland McGrath <roland@redhat.com>
11757 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11758 * configure: Regenerated.
11760 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11761 * Makefile.in (procfs.o): Add dep.
11763 2004-01-28 Andrew Cagney <cagney@redhat.com>
11765 * tui/tui-stack.h: Update copyright.
11766 (struct frame_info): Add opaque declaration.
11767 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11768 (tui_show_locator_content): Rename tuiShowLocatorContent.
11769 (tui_show_frame_info): Rename tuiShowFrameInfo.
11770 * tui/tui-stack.c: Update copyright. Update references.
11771 * tui/tui-winsource.c: Update references.
11772 * tui/tui-win.c: Update references.
11773 * tui/tui-layout.c: Update references.
11774 * tui/tui-hooks.c: Update copyright, update references.
11775 * tui/tui.c: Update copyright, update references.
11776 * tui/tui-disasm.c: Update references.
11778 2004-01-28 David Carlton <carlton@kealia.com>
11780 * dwarf2read.c (add_partial_structure): Use demangled name if
11781 namespace equals "".
11783 2004-01-27 Jim Blandy <jimb@redhat.com>
11785 Clean up misapplied patch:
11786 * dwarf2read.c (determine_prefix): Change one of the two forward
11787 declarations for 'determine_prefix_aux' to a declaration for this.
11788 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11789 argument to 'die_specification'.
11791 * dwarf2read.c (read_func_scope): Re-indent comment.
11793 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11795 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11796 b->exp to NULL after freeing so that error during re-parsing or
11797 evaluation of expressions associated with breakpoint don't
11798 eventually lead to re-freeing of storage.
11799 Committed by Andrew Cagney.
11801 2004-01-27 Andrew Cagney <cagney@redhat.com>
11803 * source.c (ambiguous_line_spec): Delete undefined declaration.
11804 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11805 (m32r_set_server_address, m32r_set_download_path): Ditto.
11806 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11808 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11810 * dwarf2read.c: Update calls to changed and renamed functions, and
11811 references to moved variables.
11813 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11814 language, language_defn, list_in_scope, and ftypes members.
11815 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11816 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11817 (baseaddr): Remove globals.
11819 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11820 (set_cu_language, die_is_declaration, die_specification)
11821 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11822 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11823 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11824 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11826 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11827 cu.list_in_scope. Don't initialize cu_header_offset.
11828 (add_partial_symbol): Add local baseaddr.
11829 (psymtab_to_symtab_1): Add local baseaddr. Use
11830 objfile->section_offsets for consistency. Don't initialize
11831 cu_header_offset; do initialize cu.header.offset and
11833 (read_file_scope, read_func_scope, read_lexical_block_scope)
11834 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11836 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11838 * PROBLEMS: Add gdb/1516.
11840 2003-12-29 Robert Millan <robertmh@gnu.org>
11842 Patch committed by Andrw Cagney.
11843 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11844 * configure.tgt: Match knetbsd*-gnu.
11846 2004-01-26 Andrew Cagney <cagney@redhat.com>
11848 * breakpoint.c (catch_command_1): Delete #ifdef code.
11849 (catch_fork_command_1): Delete #ifdef wrapper.
11850 (catch_exec_command_1): Ditto.
11851 (catch_load_command_1): Ditto.
11852 (catch_unload_command_1): Ditto.
11854 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11855 (catch_breakpoint): Delete #if0ed function.
11856 (disable_catch_breakpoint): Ditto.
11857 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11858 (disable_catch, enable_catch, delete_catch): Ditto.
11860 2004-01-26 Andrew Cagney <cagney@redhat.com>
11862 * remote.c (echo_check, quit_flag): Delete variables.
11863 (cisco_kernel_mode): Delete variable.
11864 (minitelnet_return, tty_input, escape_count): Delete variables.
11865 (remote_cisco_mode): Delete variable.
11866 (remote_cisco_open, remote_cisco_close): Delete function.
11867 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11868 (init_remote_cisco_ops): Delete function.
11869 (_initialize_remote): Do not install "remote cisco" code.
11870 (read_frame): Delete cisco specific code.
11871 (remote_info_process): Delete function.
11872 (remote_wait): Delete cisco specific code.
11873 (remote_cisco_section_offsets): Delete function.
11874 (remote_cisco_objfile_relocate): Delete function.
11875 (remote_async_wait): Delete cisco specific code.
11876 (minitelnet, readtty, readsocket): Delete function.
11878 2004-01-26 Andrew Cagney <cagney@redhat.com>
11880 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11881 comments mentioning extract_returned_value_address.
11882 * infcmd.c (print_return_value): Update. Add comments on
11883 extract_returned_value_address.
11884 * stack.c (return_command): Add comments on
11885 extract_returned_value_address.
11886 * values.c: Update comment.
11887 * m32r-tdep.c: Update comment.
11888 * sparc-tdep.c: Update comment.
11889 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11891 * sh64-tdep.c (sh64_gdbarch_init): Update.
11892 * sh-tdep.c (sh_gdbarch_init): Update.
11893 * s390-tdep.c (s390_gdbarch_init): Update.
11894 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11895 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11896 * m68k-tdep.c (m68k_gdbarch_init): Update.
11897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11898 * m32r-tdep.c (m32r_gdbarch_init): Update.
11899 * ia64-tdep.c (ia64_gdbarch_init): Update.
11900 * h8300-tdep.c (h8300_gdbarch_init): Update.
11901 * frv-tdep.c (frv_gdbarch_init): Update.
11902 * arm-tdep.c (arm_gdbarch_init): Update.
11903 * alpha-tdep.c (alpha_gdbarch_init): Update.
11905 2004-01-26 Andrew Cagney <cagney@redhat.com>
11907 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11908 SYMBOL_LOCATION_FUNCS
11909 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11910 "struct symbol_ops".
11911 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11912 type to "struct symbol_ops".
11913 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11914 (struct symbol): Replace ".aux_value.loc.funcs" and
11915 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11916 (SYMBOL_OBJFILE): Delete macro.
11917 (SYMBOL_LOCATION_FUNCS): Delete macro.
11918 (SYMBOL_LOCATION_BATON): Update.
11919 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11920 intead of SYMBOL_LOCATION_FUNCS.
11921 * ax-gdb.c (gen_var_ref): Ditto.
11922 * printcmd.c (address_info): Ditto.
11923 * findvar.c (read_var_value): Ditto.
11924 (symbol_read_needs_frame): Ditto.
11926 2004-01-26 Andrew Cagney <cagney@redhat.com>
11928 * dwarf2read.c (read_func_scope): Document frame-base hack.
11930 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11932 * infcmd.c (print_return_value): Plug memory leak; delete
11933 ui_stream object. Rename argument `structure_return' to
11936 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11938 * infcmd.c (print_return_value): Wrap long lines.
11939 (finish_command_continuation, finish_command): Remove unused
11940 variable `funcaddr'. Fix some coding-standards problems.
11942 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11943 SECT_SIZE is large enough, not whether it's exactly the right size.
11944 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11945 TDEP->fpregset to zero.
11947 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11948 floating-point registers for traditional NetBSD core files.
11949 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11950 TDEP->sizeof_fpregset here.
11952 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11954 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11955 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11956 function with code split out from
11957 sparc32nbsd_sigcontext_frame_cache.
11958 (sparc32nbsd_sigcontext_frame_cache): Use
11959 sparc32nbsd_sigcontext_saved_regs.
11960 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11962 * sparcobsd-tdep.c: New file.
11963 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11964 (sparcobsd-tdep.o): New dependency.
11965 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11966 * config/sparc/obsd.mt: New file.
11968 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11969 TDEP->fpregset to be initialized to enable core file register
11972 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11974 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11975 Add opaque declarations.
11976 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11977 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11978 function with code split out from
11979 sparc64nbsd_sigcontext_frame_cache.
11980 (sparc64nbsd_sigcontext_frame_cache): Use
11981 sparc64nbsd_sigcontext_saved_regs.
11982 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11984 * sparc64obsd-tdep.c: New file.
11985 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11986 (sparc64obsd-tdep.o): New dependency.
11987 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11988 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11989 * config/sparc/obsd64.mt: New file.
11991 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11992 read the instruction at PC.
11994 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11995 value of GDB_OSABI_DEFAULT.
11996 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11997 instead of GDB_OSABI_NETBSD_AOUT.
11999 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12001 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12004 2004-01-23 Andrew Cagney <cagney@redhat.com>
12006 * printcmd.c (display_command): Replace tui_set_display call with
12007 tui_set_layout_for_display_command.
12008 * tui/tui.h (enum tui_win_type): Define.
12009 (tui_set_layout): Delete declaration.
12010 (tui_set_layout_for_display_command): Rename set_tui_layout.
12011 * tui/tui-data.h (enum tui_layout_type): Define.
12012 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12014 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12015 (tui_default_win_height): Rename tuiDefaultWinHeight.
12016 (tui_default_win_viewport_height): Rename
12017 tuiDefaultWinViewportHeight.
12018 (tui_set_layout): RenametuiSetLayout.
12019 * tui/tui-layout.c: Update references.
12020 * tui/tui.c: Update references.
12021 * tui/tui-disasm.c: Update references.
12023 2004-01-23 David Carlton <carlton@kealia.com>
12025 Partial workaround for PR c++/1511:
12026 * cp-namespace.c: Include frame.h.
12027 (cp_lookup_transparent_type): New
12028 (cp_lookup_transparent_type_loop): New.
12029 * cp-support.h: Declare cp_lookup_transparent_type.
12030 * symtab.c (basic_lookup_transparent_type): Renamed from
12031 lookup_transparent_type.
12032 (lookup_transparent_type): Replace old body by a call to
12033 current_language->la_lookup_transparent_type.
12034 * symtab.h: Update copyright. Declare
12035 basic_lookup_transparent_type.
12036 * language.h: Update copyright.
12037 (struct language_defn): Add la_lookup_transparent_type.
12038 * language.c: Update copyright.
12039 (unknown_language_defn): Add basic_lookup_transparent_type.
12040 (auto_language_defn): Add basic_lookup_transparent_type.
12041 (local_language_defn): Add basic_lookup_transparent_type.
12042 * ada-lang.c: Update copyright.
12043 (ada_language_defn): Add basic_lookup_transparent_type.
12044 * c-lang.c: Update copyright.
12045 (c_language_defn): Add basic_lookup_transparent_type.
12046 (cplus_language_defn): Add basic_lookup_transparent_type.
12047 (asm_language_defn): Add basic_lookup_transparent_type.
12048 (minimal_language_defn): Add basic_lookup_transparent_type.
12049 * f-lang.c: Update copyright.
12050 (f_language_defn): Add basic_lookup_transparent_type.
12051 * jv-lang.c: Update copyright.
12052 (java_language_defn): Add basic_lookup_transparent_type.
12053 * m2-lang.c: Update copyright.
12054 (m2_language_defn): Add basic_lookup_transparent_type.
12055 * objc-lang.c: Update copyright.
12056 (objc_language_defn): Add basic_lookup_transparent_type.
12057 * p-lang.c: Update copyright.
12058 (p_language_defn): Add basic_lookup_transparent_type.
12059 * scm-lang.c: Update copyright.
12060 (scm_language_defn): Add basic_lookup_transparent_type.
12061 * Makefile.in (cp-namespace.o): Depend on frame.h.
12063 2004-01-23 David Carlton <carlton@kealia.com>
12065 Patch for PR c++/1520:
12066 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12067 properly if we have a specification die.
12068 (determine_prefix_aux): Rename from determine_prefix.
12069 (determine_prefix): Like the old determine_prefix, but never
12072 2004-01-23 Theodore A. Roth <troth@openavr.org>
12074 * avr-tdep.c: Update copyright.
12075 (avr_iaddr_p): Delete unused function.
12076 (avr_saddr_p): Delete unused function.
12078 2004-01-23 David Carlton <carlton@kealia.com>
12080 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12081 Fix for PR symtab/1534.
12083 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12085 * NEWS (New native configurations): Mention OpenBSD/sparc and
12087 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12088 * configure.host: Likewise.
12089 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12090 handler for OpenBSD.
12091 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12093 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12095 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12096 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12098 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12099 * cli/cli-cmds.c (shell_escape): Likewise.
12101 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12102 OpenBSD .note.openbsd.ident sections.
12104 2004-01-22 David Carlton <carlton@kealia.com>
12106 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12107 get_scope_pc_bounds.
12108 (read_file_scope): Ditto.
12109 (get_scope_pc_bounds): New function, produced by extracting code
12110 from the above two functions, consolidating it, and adding support
12111 for DW_TAG_namespace.
12113 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12115 * osabi.c (MAX_NOTESZ): New define.
12116 (check_note): New function.
12117 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12120 2004-01-21 Roland McGrath <roland@redhat.com>
12122 * MAINTAINERS (write after approval): Add myself.
12124 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12126 * utils.c (init_page_info): Move declarations of `rows' and
12127 `cols' before the __GO32__-specific code. Move the closing brace
12128 outside the #ifdef __GO32__..#endif block.
12129 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12131 2004-01-21 Paul Brook <paul@codesourcery.com>
12133 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12134 BPSTAT_WHAT_CHECK_SHLIBS.
12136 2004-01-21 Paul Brook <paul@codesourcery.com>
12138 * MAINTAINERS: Add myself to write-after-approval.
12140 2004-01-20 Andrew Cagney <cagney@redhat.com>
12142 * ax-gdb.c (print_axs_value): Delete unused function.
12143 * jv-lang.c (java_lookup_type): Delete unused function.
12144 * cli/cli-dump.c (dump_filetype): Delete unused function.
12145 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12146 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12147 (mips_getstring): Delete unused function.
12148 (pmon_insert_breakpoint): Delete #if0ed function.
12149 (PMON_MAX_BP): Delete #if0ed MACRO.
12150 (mips_pmon_bp_info): Delete #if0ed variable.
12151 (pmon_remove_breakpoint): Delete #if0ed function.
12152 * monitor.c (monitor_write_even_block): Delete unused function.
12153 (monitor_write_memory_block): Delete #if0ed code.
12154 * dink32-rom.c (dink32_load): Delete unused function.
12155 (_initialize_dink32_rom): Delete #if0ed code.
12156 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12158 * tui/tui-command.c: Update references.
12159 * tui/tui-io.c: Update references.
12160 * tui/tui-command.h: Update copyright.
12161 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12163 * source.c (ambiguous_line_spec): Delete never-defined function.
12164 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12165 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12166 * cli/cli-cmds.c (validate_comname): Ditto.
12168 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12170 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12171 (tui_show_disassem): Rename tuiShowDisassem.
12172 (tui_show_disassem_and_update_source): Rename
12173 tuiVerticalDisassemScroll.
12174 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12175 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12176 * tui/tui.h: Update copyright.
12177 (enum tui_status): Define.
12178 * tui/tui-data.h (enum tui_scroll_direction): Define.
12179 * tui/tui-disasm.c: Update copyright. Update references.
12180 * tui/tui-winsource.c: Update copyright. Update references.
12181 * tui/tui-win.c: Update references.
12182 * tui/tui-layout.c: Update references.
12184 2004-01-20 Andrew Cagney <cagney@redhat.com>
12186 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12187 sym2 to start of block.
12189 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12191 * MAINTAINERS: Delete mmalloc.
12192 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12193 * NEWS: Mention removal of --with-malloc.
12194 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12195 * config.in: Regenerate.
12196 * configure: Regenerate.
12197 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12198 USE_MMALLOC, MMCHECK_FORCE.
12199 * gdbinit.in: Remove mmalloc.
12200 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12201 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12202 * config/i386/go32.mh: Likewise.
12203 * config/i386/interix.mh: Likewise.
12204 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12206 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12208 * linespec.c (decode_variable, symtab_from_filename): Call
12209 error_silent with error message instead of throwing an exception
12211 * defs.h (error_silent, error_output_message): Add prototypes.
12212 (catch_exceptions_with_msg): Ditto.
12213 * utils.c (error_silent, error_output_message): New functions.
12214 * top.c (catch_exceptions_with_msg): New function.
12216 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12218 * mi/mi-cmds.h (enum print_values): Add definition.
12220 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12221 type and value for simple data types and just the name and type
12222 for complex ones, if required.
12224 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12225 children, if required.
12227 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12229 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12230 unused declarations.
12232 2004-01-19 Andrew Cagney <cagney@redhat.com>
12234 * top.h (mapped_symbol_files): Delete declaration.
12235 * main.c (captured_main): Delete option "m" and "mapped".
12236 * objfiles.c (mapped_symbol_files): Delete variable.
12237 * symfile.c (symbol_file_command): Delete mmap code.
12238 (symbol_file_add_with_addrs_or_offsets): Ditto.
12239 (add_symbol_file_command, reread_separate_symbols): Ditto.
12240 * objfiles.h (OBJF_MAPPED): Delete.
12241 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12242 (free_objfile) [USE_MMALLOC]: Ditto.
12243 (open_existing_mapped_file): Delete function.
12244 (open_mapped_file): Delete function.
12245 (map_to_file): Delete function.
12247 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12249 * infrun.c (step_into_function): Account for possible breakpoint
12250 adjustment when computing ``stop_func_start''.
12252 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12254 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12255 the region size against the size of a pointer, not the size of
12256 a register as given by DEPRECATED_REGISTER_SIZE.
12258 2004-01-19 Andrew Cagney <cagney@redhat.com>
12260 * tui/tui-regs.h: Include "tui-data.h".
12261 (tuiFirstRegElementNoInLine): Delete declaration.
12262 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12263 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12264 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12265 (tui_calculate_regs_column_count): Rename
12266 tuiCalculateRegsColumnCount.
12267 (tui_check_register_values): Rename tuiCheckRegisterValues.
12268 (tui_show_registers): Rename tuiShowRegisters.
12269 (tui_display_registers_from_line): Rename
12270 tuiDisplayRegistersFromLine.
12271 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12272 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12273 (tui_first_reg_element_no_inline): Rename
12274 tuiFirstRegElementNoInLine.
12275 * tui/tui-data.h: Update copyright.
12276 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12277 * tui/tui-windata.c: Update copyright, update references.
12278 * tui/tui-regs.c: Update copyright, update references.
12279 * tui/tui-win.c: Update copyright, update references.
12280 * tui/tui-layout.c: Update copyright, update references.
12282 2004-01-18 Andrew Cagney <cagney@redhat.com>
12284 * tui/tui-io.c: Update copyright.
12285 (key_is_end_sequence, key_is_backspace): New functions.
12286 (key_is_command_char, key_is_start_sequence): New function.
12287 (tui_getc): Update references.
12288 * tui/tui-io.h: Update copyright.
12289 (m_tuiStartNewLine): Delete macro.
12290 (m_isBackspace, m_isDeleteChar): Delete macros.
12291 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12292 (m_isNextPage, m_isPrevPage): Delete macros.
12293 (m_isLeftArrow, m_isRightArrow): Delete macros.
12294 (m_isXdbStyleCommandChar): Delete macro.
12295 (key_is_start_sequence): Declare, replace m_isStartSequence.
12296 (key_is_end_sequence): Declare, replace m_isEndSequence.
12297 (key_is_backspace): Declare ,replace m_isBackspace.
12298 (key_is_command_char): Declare, replace m_isCommandChar.
12299 * tui/tui-command.c: Update copyright.
12300 (tuiDispatchCtrlChar): Update references.
12302 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12305 * tui/tui-command.c: Rename tui/tuiCommand.c.
12306 * tui/tui-command.h: Rename tui/tuiCommand.h.
12307 * tui/tui-data.c: Rename tui/tuiData.c.
12308 * tui/tui-data.h: Rename tui/tuiData.h.
12309 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12310 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12311 * tui/tui-io.c: Rename tui/tuiIO.c.
12312 * tui/tui-io.h: Rename tui/tuiIO.h.
12313 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12314 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12315 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12316 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12317 * tui/tui-source.c: Rename tui/tuiSource.c.
12318 * tui/tui-source.h: Rename tui/tuiSource.h.
12319 * tui/tui-stack.c: Rename tui/tuiStack.c.
12320 * tui/tui-stack.h: Rename tui/tuiStack.h.
12321 * tui/tui-win.c: Rename tui/tuiWin.c.
12322 * tui/tui-win.h: Rename tui/tuiWin.h.
12323 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12324 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12325 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12326 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12327 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12328 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12329 * tui/tui-file.c: Update includes.
12330 * tui/tui-hooks.c: Update includes.
12331 * tui/tui-interp.c: Update includes.
12332 * tui/tui.c: Update includes.
12333 * Makefile.in: Update all tui/ dependencies.
12334 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12336 * Makefile.in: Update copyright. Update dependencies.
12338 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12341 2004-01-18 Andrew Cagney <cagney@redhat.com>
12343 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12344 instead of register_gdbarch_init.
12346 * remote-sds.c (tohex): Delete unused function. Update copyright.
12347 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12348 * v850-tdep.c (v850_register_virtual_size): Ditto.
12349 * target.c (normal_target_post_startup_inferior): Ditto.
12350 * source.c (ambiguous_line_spec): Ditto.
12351 * remote.c (adapt_remote_get_threadinfo): Ditto.
12352 * mi/mi-out.c (out_field_fmt): Ditto.
12353 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12354 (output_control_change_notification): Ditto.
12355 * m68k-tdep.c (m68k_register_byte): Ditto.
12356 (m68k_remote_breakpoint_from_pc): Ditto.
12357 * ui-out.c (init_ui_out_state): Delete unused declaration.
12358 * stabsread.c (search_value): Ditto.
12359 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12360 * maint.c (print_section_table): Ditto.
12361 * infrun.c (set_follow_fork_mode_command): Ditto.
12363 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12365 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12366 DW_CFA_def_cfa_exporession. Add support for
12367 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12368 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12370 2004-01-18 Andrew Cagney <cagney@redhat.com>
12372 * ocd.c: Update copyright.
12373 (bdm_read_register_command): Delete unused function.
12374 (_initialize_remote_ocd): Delete commented out reference.
12375 (get_quoted_char, reset_packet): Delete #if0ed function.
12376 (output_packet, put_quoted_char): Delete #if0ed function.
12377 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12378 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12379 (BDM_BREAKPOINT): Delete #if0ed macro.
12380 (remote_timeout): Delete #if0ed variable.
12382 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12384 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12385 (core-sol2.o): Remove dependency.
12386 * core-sol2.c: Remove file.
12388 2004-01-17 Andrew Cagney <cagney@redhat.com>
12390 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12391 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12394 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12396 * remote.c: Update copyright years.
12398 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12400 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12402 2004-01-17 Andrew Cagney <cagney@redhat.com>
12404 * mdebugread.c: Update copyright.
12405 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12406 (parse_type, parse_procedure): Ditto.
12407 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12409 * cris-tdep.c (cris_store_struct_return): Put back accidently
12412 * gdbarch.sh: Update copyright year.
12413 * gdbarch.h, gdbarch.c: Re-generate.
12415 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12417 Suggested by George Anzinger.
12418 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12419 correct stack offset. Include unknown opcode numbers in the error
12422 2004-01-17 Andrew Cagney <cagney@redhat.com>
12424 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12425 extract_struct_value_address, i386 does not set it.
12426 * sparc64-tdep.c (sparc64_init_abi): Do not set
12427 extract_struct_value_address, never called.
12428 (sparc64_extract_struct_value_address): Delete function.
12429 * m68hc11-tdep.c: Update copyright.
12430 (m68hc11_gdbarch_init): Delete redundant assignment of
12431 extract_struct_value_address.
12432 * i386-tdep.c: Update copyright.
12433 (i386_gdbarch_init): Do not set extract_struct_value_address,
12435 (i386_extract_struct_value_address): Delete function.
12436 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12437 extract_struct_value_address, never called.
12438 (sparc32_extract_struct_value_address): #if 0 function. Add
12439 comments explaining its future.
12441 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12443 * arm-tdep.c (arm_write_pc): New function.
12444 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12446 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12448 * breakpoint.c (must_shift_inst_regs): Delete.
12449 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12450 and SHIFT_INST_REGS.
12451 * infcmd.c (step_1, step_1_continuation): Delete references to
12453 * infrun.c (keep_going): Likewise.
12454 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12455 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12457 2004-01-17 Andrew Cagney <cagney@redhat.com>
12459 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12460 * gdbarch.h, gdbarch.c: Re-generate.
12461 * infcmd.c (print_return_value): Delete reference to
12462 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12464 * cris-tdep.c (cris_gdbarch_init): Do not set
12465 deprecated_extract_struct_value_address.
12467 * xstormy16-tdep.c: Update copyright.
12468 (xstormy16_extract_struct_value_address): Update to current
12469 extract struct value address interface.
12470 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12471 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12472 current extract struct value address interface.
12473 (sh64_gdbarch_init): Set extract_struct_value_address.
12475 * cris-tdep.c: Update copyright.
12476 (cris_extract_struct_value_address): Delete function.
12477 (struct_return_address): Delete variable.
12478 (cris_store_struct_return): Do not set struct_return_address.
12480 * mcore-tdep.c: Update copyright.
12481 (mcore_extract_struct_value_address): Delete function. Update
12483 (mcore_gdbarch_init): Update.
12484 * mn10300-tdep.c: Update copyright.
12485 (mn10300_extract_struct_value_address): Delete function.
12486 (mn10300_gdbarch_init): Update.
12487 * v850-tdep.c: Update copyright.
12488 (v850_extract_struct_value_address): Delete.
12489 (v850_gdbarch_init): Update.
12490 * ns32k-tdep.c: Update copyright.
12491 (ns32k_extract_struct_value_address): Delete.
12492 (ns32k_gdbarch_init): Update.
12493 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12494 (hppa_gdbarch_init): Update.
12495 * vax-tdep.c: Update copyright.
12496 (vax_extract_struct_value_address): Delete.
12497 (vax_gdbarch_init): Update.
12499 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12500 * gdbarch.h, gdbarch.c: Re-generate.
12501 * procfs.c (procfs_fetch_registers): Delete reference to
12502 DEPRECATED_NPC_REGNUM.
12503 (procfs_store_registers): Ditto.
12504 * regcache.c (generic_target_write_pc): Simplify.
12505 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12507 * core-sol2.c (fetch_core_registers): Replace
12508 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12510 * hppa-tdep.c: Update copyright year.
12511 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12513 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12515 * mips-tdep.c (mips_write_pc): New function.
12516 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12517 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12518 (mips_find_saved_regs, mips_software_single_step: Ditto.
12519 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12520 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12522 2004-01-17 Andrew Cagney <cagney@redhat.com>
12524 * mips-tdep.c: Re-indent. Group functions by ABI.
12526 2004-01-17 Andrew Cagney <cagney@redhat.com>
12528 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12529 * gdbarch.c: Re-generate.
12530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12531 DECR_PC_AFTER_BREAK to zero.
12532 * vax-tdep.c (vax_gdbarch_init): Ditto.
12533 * v850-tdep.c (v850_gdbarch_init): Ditto.
12534 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12535 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12536 * sh-tdep.c (sh_gdbarch_init): Ditto.
12537 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12538 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12540 * mips-tdep.c (mips_gdbarch_init): Ditto.
12541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12543 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12544 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12545 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12546 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12547 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12548 * frv-tdep.c (frv_gdbarch_init): Ditto.
12549 * cris-tdep.c (cris_gdbarch_init): Ditto.
12550 * avr-tdep.c (avr_gdbarch_init): Ditto.
12551 * arm-tdep.c (arm_gdbarch_init): Ditto.
12552 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12554 2004-01-17 J. Brobecker <brobecker@gnat.com>
12556 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12557 Delete, no longer used.
12558 (read_subrange_type): New function, mostly extracted from
12560 (read_array_type): Replace extracted code by call to
12561 read_subrange_type().
12562 (dwarf2_get_attr_constant_value): New function.
12563 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12564 (add_partial_symbol): Likewise.
12565 (process_die): Likewise.
12566 (new_symbol): Likewise.
12567 (read_type_die): Likewise.
12569 2004-01-16 Andrew Cagney <cagney@redhat.com>
12571 * symfile.c: Update copyright year.
12572 (compare_symbols): Delete unused function.
12573 * stabsread.c: Update copyright year.
12574 (lrs_general_complaint): Delete unused function.
12575 (ref_search_value): Ditto.
12576 (get_substring): Delete declaration.
12577 * sh64-tdep.c: Update copyright year.
12578 (sh64_get_gdb_regnum): Delete unused function.
12579 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12580 Delete unused function.
12582 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12584 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12585 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12587 2004-01-16 Andrew Cagney <cagney@redhat.com>
12589 Changes from Peter Schauer.
12590 * rs6000-tdep.c: Update copyright year.
12591 (rs6000_push_dummy_call): Update the stack pointer before
12592 accessing the corresponding stack region.
12593 * rs6000-nat.c: Update copyright year.
12594 (set_host_arch): Set "info.abfd" to "exec_bfd".
12596 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12598 * blockframe.c: Update copyright year.
12599 (inside_entry_func): Don't treat a zero PC specially.
12601 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12603 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12605 (gcore_create_callback): Ditto. Skip any memory segment that has
12606 no permissions set.
12608 2004-01-14 David Carlton <carlton@kealia.com>
12610 Change symbols for C++ nested types to contain the fully qualified
12611 name, if possible. (At least in the DWARF-2 case.) Partial fix
12612 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12614 * c-exp.y (qualified_type): Handle types nested within classes.
12615 * cp-namespace.c: Update comments.
12616 (cp_set_block_scope): Delete #if 0.
12617 (cp_lookup_nested_type): Handle types nested within classes.
12618 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12620 (add_partial_symbol): Add the name of the enclosing namespace to
12622 (pdi_needs_namespace): New.
12623 (add_partial_namespace): Tweak comment.
12624 (add_partial_structure): New.
12625 (psymtab_to_symtab_1): Initialize processing_current_prefix
12627 (process_die): instead of here.
12628 (read_structure_scope): Try to figure out the name of the class or
12629 namespace that the structure might be defined within.
12630 (read_enumeration): Generate fully-qualified names, if possible.
12631 (read_namespace): Don't set name to NULL.
12632 (die_specification): New.
12633 (new_symbol): Generate fully-qualified names for types.
12634 (read_type_die): Determine appropriate prefix.
12635 (determine_prefix): New.
12636 (typename_concat): New.
12638 * valops.c (value_aggregate_elt): Pass NOSIDE to
12639 value_struct_elt_for_reference.
12640 (value_struct_elt_for_reference): Make static, add NOSIDE
12641 parameter, call value_maybe_namespace_elt as a last resort.
12642 (value_namespace_elt): Break out code into
12643 value_maybe_namespace_elt.
12644 (value_maybe_namespace_elt): New.
12646 2004-01-12 Andrew Cagney <cagney@redhat.com>
12648 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12649 cooked floating-point registers.
12650 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12651 and value_to_register.
12653 2004-01-13 Andrew Cagney <cagney@redhat.com>
12655 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12656 * gdbarch.c: Re-generate.
12657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12658 FUNCTION_START_OFFSET.
12659 * v850-tdep.c (v850_gdbarch_init): Ditto.
12660 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12661 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12662 * sh-tdep.c (sh_gdbarch_init): Ditto.
12663 * s390-tdep.c (s390_gdbarch_init): Ditto.
12664 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12665 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12667 * mips-tdep.c (mips_gdbarch_init): Ditto.
12668 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12669 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12671 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12672 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12673 * i386-tdep.c (i386_gdbarch_init): Ditto.
12674 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12675 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12676 * frv-tdep.c (frv_gdbarch_init): Ditto.
12677 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12678 * cris-tdep.c (cris_gdbarch_init): Ditto.
12679 * avr-tdep.c (avr_gdbarch_init): Ditto.
12680 * arm-tdep.c (arm_gdbarch_init): Ditto.
12681 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12683 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12685 * infrun.c (follow_fork_mode_ask): Remove.
12686 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12687 (follow_fork): Simplify and remove internal error for
12688 follow_fork_mode_ask.
12689 (_initialize_infrun): Update "set follow-fork-mode" help text.
12691 2004-01-13 Andrew Cagney <cagney@redhat.com>
12693 * configure.in: Update copyright year.
12694 (build_warnings): Add -Wunused-label.
12695 * configure: Re-generate.
12697 2004-01-12 Andrew Cagney <cagney@redhat.com>
12699 * exec.h (exec_ops): Make "extern".
12701 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12702 the function is void.
12703 (mips_pseudo_register_write): Ditto.
12705 2004-01-12 Andrew Cagney <cagney@redhat.com>
12707 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12708 call. Never defined.
12709 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12710 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12711 (struct sparc_gregset, struct regcache): Ditto.
12712 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12714 2004-01-12 Andrew Cagney <cagney@redhat.com>
12716 * mi/ChangeLog: Delete file. Renamed to ...
12717 * mi/ChangeLog-1999-2003: New file.
12718 * tui/ChangeLog: Delete file. Renamed to ...
12719 * tui/ChangeLog-1998-2003: New file.
12721 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12723 * sparc64nbsd-tdep.c: Include "regset.h".
12724 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12726 (fetch_core_registers): Remove function.
12727 (sparc64nbsd_core_fns): Remove variable.
12728 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12730 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12731 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12732 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12734 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12735 sparc_extract_struct_value_address.
12736 (sparc32_gdbarch_init): Set extract_struct_value_address.
12737 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12739 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12740 return_value_on_stack.
12742 * NEWS: Mention that %cs and %ss have been added to the AMD64
12745 * frame.c: Update copyright year.
12746 (get_prev_frame): Improve comment.
12748 * sparc64fbsd-tdep.c: Include "regset.h".
12749 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12751 (fetch_core_registers): Remove function.
12752 (sparc64fbsd_core_fns): Remove variable.
12753 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12755 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12756 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12757 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12759 * sparcnbsd-tdep.c: Include "regset.h".
12760 (fetch_core_registers): Remove function.
12761 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12762 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12764 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12766 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12768 * sparc-tdep.h (struct regset): Provide opaque declaration.
12769 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12770 fpregset and sizeof_fpregset members.
12771 * sparc-tdep.c (struct regset): Provide opaque declaration.
12772 (sparc_regset_from_core_section): New function.
12773 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12774 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12775 Set regset_from_core_section when appropriate.
12777 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12779 * x86-64-tdep.c (amd64_non_pod_p): New function.
12780 (amd64_classify_aggregate): Return class memory for non-POD
12781 C++ structure types.
12783 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12784 argument. Use it to reserve a register if necessary.
12785 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12786 amd64_push_arguments.
12788 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12790 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12791 register numbers in comments.
12792 * x86-64-tdep.h: Update copyright year.
12793 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12794 Adjust for addition of %cs and %ss.
12795 * amd64fbsd-nat.c: Update copyright year.
12796 (reg_offset): Add register offsets for %cs and %ss.
12797 * amd64fbsd-tdep.c: Update copyright year.
12798 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12799 (amd64fbsd_sc_reg_offset): Likewise.
12800 * x86-64-linux-nat.c: Update copyright year.
12801 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12803 * amd64nbsd-nat.c: Update copyright year.
12804 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12805 * amd64nbsd-tdep.c: Update copyright year.
12806 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12807 * x86-64-linux-tdep.c: Update copyright year.
12808 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12809 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12810 * regformats/reg-x86-64.dat: Add %cs and %ss.
12812 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12813 variables to prevent long lines. Update comments to reflect
12816 2004-01-09 David Carlton <carlton@kealia.com>
12818 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12819 * dwarf2read.c (read_namespace): Pull out name-generating code
12820 into namespace_name. Rename previous_namespace to previous_prefix
12821 and processing_current_namespace to processing_current_prefix..
12822 (namespace_name): New function.
12823 (add_partial_symbol): Substitute uses of pdi->name with
12825 * cp-support.h: Rename processing_current_namespace to
12826 processing_current_prefix.
12827 Update copyright year.
12828 * cp-namespace.c: Rename processing_current_namespace to
12829 processing_current_prefix.
12830 Update copyright year.
12832 2004-01-09 Andrew Cagney <cagney@redhat.com>
12834 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12836 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12838 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12840 (process_one_symbol): Deal with N_PATCH stabs.
12842 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12844 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12846 Update copyright year.
12848 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12850 * config/pa/tm-hppa.h: Update extern declarations for
12851 hppa32_hpux_frame_saved_pc_in_sigtramp,
12852 hppa32_hpux_frame_base_before_sigtramp, and
12853 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12855 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12857 * config/pa/tm-hppah.h: Update copyright years.
12859 2004-01-08 Andrew Cagney <cagney@redhat.com>
12861 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12862 (mips_o32_reg_struct_has_addr): Delete function.
12863 (mips_gdbarch_init): Update.
12864 (mips_extract_struct_value_address): Delete function.
12866 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12868 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12871 2004-01-07 Andrew Cagney <cagney@redhat.com>
12873 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12874 architecture's elf flags (when available).
12876 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12877 FPU to the start, check the MIPS FPU when looking for an old
12879 (set_mipsfpu_single_command): Update the architecture.
12880 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12882 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12883 (mips_mask_address_p): Add "tdep" parameter.
12884 (show_mask_address, mips_addr_bits_remove): Update.
12885 (mips_dump_tdep): Update.
12886 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12887 (MIPS_STACK_ARGSIZE): Delete macro.
12888 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12889 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12890 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12891 (mips_dump_tdep): Update.
12892 (MIPS_SAVED_REGSIZE): Delete macro.
12893 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12894 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12895 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12896 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12897 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12898 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12899 (mips_pop_frame, return_value_location): Update.
12900 (mips_n32n64_return_value, mips_dump_tdep): Update.
12902 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12905 * mips-tdep.c: Update copyright.
12906 (mips_gdbarch_init): Merge two code blocks handling the register
12907 name and number layout.
12909 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12911 * tracepoint.c (validate_actionline): Fix segv at EOF
12913 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12915 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12916 properly for static fields.
12918 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12919 Jason Molenda <jmolenda@apple.com>
12921 * disasm.c: Update copyright to include 2004.
12922 (do_mixed_source_and_assembly): For uiout asm list
12923 and tuple cleanups, initialize to null_cleanup instead of
12924 NULL and do so prior to loop. Only reset when we close off
12925 the tuple/list. Move check for whether to close off the
12926 asm tuple/list to after dump_insns call where it will be run
12927 on each loop iteration.
12929 2004-01-05 Andrew Cagney <cagney@redhat.com>
12931 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12932 should be a switch case and not a label.
12933 * mips-tdep.c (mips32_next_pc): Delete unused labels
12934 "greater_equal_branch" and "less_zero_branch".
12935 * jv-valprint.c (java_print_value_fields): Delete unused label
12938 * target.c (unpush_target): Only close a target that is in the
12941 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12943 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12944 address from [sp + 64] instead of %o2.
12946 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12947 fixes PR backtrace/1476.
12949 2004-01-05 Andrew Cagney <cagney@redhat.com>
12951 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12952 move to start of file.
12953 * i386-tdep.h (struct regcache): Add opaque declaration.
12954 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12956 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12957 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12958 * win32-nat.c (fake_create_process): Use ISO C style definition.
12959 * stabsread.c (define_symbol): Delete #ifndef
12960 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12961 stabs_argument_has_addr call, macro never defined.
12963 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12965 * op50-rom.c: Delete.
12966 * w89k-rom.c: Delete.
12967 * Makefile.in: Remove references.
12969 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12971 * x86-64-tdep.c: Update copyright year.
12972 (struct amd64_register_info): Rename from x86_64_register_info.
12973 (amd64_register_info): Rename from x86_64_register_info.
12974 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12975 (amd64_register_name): Rename from x86_64_register_name.
12976 (amd64_register_type): Rename from x86_64_register_type.
12977 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12978 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12979 (amd64_dwarf_reg_to_regnum): Rename from
12980 x86_64_dwarf_reg_to_regnum.
12981 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12982 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12983 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12984 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12985 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12986 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12987 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12988 (amd64_frame_cache): Rename from x86_64_frame_cache.
12989 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12990 (amd64_frame_prev_register): Rename from
12991 x86_64_frame_prev_register.
12992 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12993 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12994 (amd64_sigtramp_frame_cache): Rename from
12995 x86_64_sigtramp_frame_cache.
12996 (amd64_sigtramp_frame_prev_register): Rename from
12997 x86_64_sigtramp_frame_prev_register.
12998 (amd64_sigtramp_frame_unwind): Rename from
12999 x86_64_sigtramp_frame_unwind.
13000 (amd64_sigtramp_frame_sniffer): Rename from
13001 x86_64_sigtramp_frame_sniffer.
13002 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13003 (amd64_frame_base): Rename from x86_64_frame_base.
13004 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13005 (amd64_frame_align): Rename from x86_64_frame_align.
13006 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13007 (amd64_regset_from_core_section): Rename from
13008 x86_64_regset_from_core_section.
13009 (x86_64_init_abi): Update comments.
13011 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13013 * MAINTAINERS (write after approval): Add myself.
13015 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13017 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13020 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13022 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13023 such that it mentions a specific version of GCC that exhibits this
13026 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13028 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13029 structure that has a single `float' member, store it in %f1 in
13032 * sparc-sol2-nat.c: Add missing '\'.
13034 * sparc-tdep.c (sparc32_return_value): New function.
13035 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13037 (sparc32_gdbarch_init): Set return_value, don't set
13038 extract_return_value, store_return_value, use_struct_convention
13039 and return_value_on_stack.
13041 * sparc-sol2-nat.c: Add missing ')'.
13043 2004-01-03 J. Brobecker <brobecker@gnat.com>
13045 * infrun.c (handle_step_into_function): New function.
13046 (handle_inferior_event): Extract out some code into the new
13049 2004-01-03 J. Brobecker <brobecker@gnat.com>
13051 * infrun.c (handle_inferior_event): Move the declaration of
13052 real_stop_pc inside the if blocks where it is used.
13054 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13056 * sparc64-tdep.c (sparc64_16_byte_align_p)
13057 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13058 Use check_typedef to get subtypes of structures and unions.
13059 (sparc64_store_return_value): Fix calculation of the appropriate
13060 offset into VALBUF when storing a structure or union.
13061 (sparc64_return_value): New function.
13062 (sparc64_use_struct_convention): Remove function.
13063 (sparc64_init_abi): Set return_value, don't set
13064 extract_return_value, store_return_value and
13065 use_struct_convention.
13067 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13069 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13070 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13071 gdb/config/alpha/xm-alphaosf.h,
13072 gdb/config/powerpc/tm-ppcle-eabi.h,
13073 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13074 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13075 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13076 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13077 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13078 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13079 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13080 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13081 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13082 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13083 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13084 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13085 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13086 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13087 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13088 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13089 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13090 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13091 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13092 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13093 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13094 Remove lines for .cvsignore files.
13096 2004-01-03 J. Brobecker <brobecker@gnat.com>
13098 * infrun.c: Back out the previous change.
13100 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13102 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13103 sparc-*-sunos4* to the list of REMOVED configurations.
13105 * configure.tgt: Add back sparc-*-vxworks*.
13106 * remote-vxsparc.c: Remove all includes except for "defs.h",
13107 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13108 Include "sparc-tdep.h".
13109 (SPARC_R_G1): New define.
13110 (vxsparc_gregset): New variable.
13111 (ext_format_sparc): Remove extern declaration.
13112 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13113 sparc32_supply_fpregset.
13114 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13115 sparc_collect_rwindow and sparc32_collect_fpregset.
13116 * config/sparc/tm-vxworks.h: New file, based on recently removed
13118 * config/sparc/vxworks.mt: New file, based on recently removed
13121 2004-01-03 J. Brobecker <brobecker@gnat.com>
13123 * infrun.c (handle_step_into_function): New function.
13124 (handle_inferior_event): Extract out some code into the new
13127 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13129 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13130 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13131 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13132 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13133 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13134 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13135 (sparc_nat_h): New variable.
13136 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13137 (tm-sun4os4.h): Remove dependency.
13138 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13139 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13140 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13141 sparc-tdep.o): Update dependencies.
13142 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13143 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13144 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13146 * configure.host: Remove existing sparc-*-lynxos*,
13147 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13148 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13149 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13150 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13152 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13153 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13154 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13155 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13156 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13157 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13158 sparc64-*-solaris2* and sparc64-*-* triplets.
13159 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13160 "symtab.h" and "objfiles.h".
13161 (BIAS): Remove define.
13162 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13163 (X_DISP19): Remove macros.
13164 (sparc_fetch_instruction): Remove function.
13165 (struct gdbarch_tdep): Remove definition.
13166 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13167 (sparc_breakpoint_from_pc): Remove function.
13168 (struct sparc64_frame_cache): Remove definition.
13169 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13170 sparc64_unwind_pc): Remove functions.
13171 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13172 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13173 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13174 (sparc64_frame_cache): Change return type to `struct
13175 sparc_frame_cache *'. Simply call sparc_frame_cache.
13176 (sparc64_frame_this_id, sparc64_frame_prev_register,
13177 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13178 instead of `struct sparc64_frame_cache.
13179 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13180 sparc_analyze_control_transfer, sparc_software_single_step,
13181 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13182 _initialize_sparc64_tdep): Remove functions.
13183 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13184 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13186 (sparc64_supply_gregset, sparc64_collect_gregset,
13187 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13188 (sparc64_init_abi): New function.
13189 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13190 inclusion guard. Include "sparc-tdep.h".
13192 (r_tstate_offset, r_fprs_offset): New defines.
13193 (enum sparc_regnum): Remove defenition.
13194 (enum sparc64_regnum): Reformat.
13195 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13196 (sparc64_init_abi, sparc64_supply_gregset,
13197 sparc64_collect_gregset, sparc64_supply_fpregset,
13198 sparc64_collect_fpregset): New prototypes.
13199 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13200 Add extern declarations.
13201 (sparc64_sol2_init_abi): New prototype.
13202 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13203 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13205 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13207 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13209 (_initialize_sparc64fbsd_nat): Remove initialization of
13210 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13211 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13212 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13213 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13214 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13215 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13216 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13217 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13218 (sparc64fbsd_r_y_offset): Remove variables.
13219 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13220 Make static and const.
13221 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13222 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13224 (sparc64fbsd_gregset): New variable.
13225 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13226 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13227 and sparc64_supply_fpregset.
13228 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13229 (sparc64fbsd_sigtramp_frame_this_id)
13230 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13231 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13232 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13233 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13234 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13235 * sparcnbsd-tdep.c: Update copyright year. Include
13236 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13237 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13238 "value.h" and "sparcnbsd-tdep.h".
13239 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13240 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13241 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13242 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13244 (sparcnbsd_gregset): New variable.
13245 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13246 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13247 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13248 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13249 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13251 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13252 (sparc32nbsd_sigcontext_frame_this_id)
13253 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13254 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13255 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13256 (sparcnbsd_get_longjmp_target_32,
13257 sparcnbsd_get_longjmp_target_64): Remove functions.
13258 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13259 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13260 sparcnbsd_init_elf): Remove.
13261 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13262 (sparcnbsd_elf_init_abi): New functions.
13263 (_initialize_sparcnbsd_tdep): New prototype.
13264 (_initialize_sparnbsd_tdep): Update.
13265 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13266 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13267 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13268 * config/sparc/linux.mh: Update comment.
13269 (XM_FILE, HOST_IPC): Remove variables.
13270 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13272 * config/sparc/linux.mt: Update comment.
13273 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13274 * config/sparc/nbsd.mt: Reformat.
13275 * config/sparc/nbsd64.mh: Update comment.
13276 (NATDEPFILES): Add sparc-nat.o.
13277 * config/sparc/nbsd64.mt: Update comment.
13278 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13279 (TM_FILE): Set to tm-nbsd.h.
13280 * config/sparc/nbsdelf.mh: Update comment.
13281 (NATDEPFILES): Add sparc-nat.o.
13283 * config/sparc/nbsdaout.mh: Update comment.
13284 (NATDEPFILES): Add sparc-nat.o
13286 * config/sparc/nm-linux.h: Update copyright year. Don't include
13287 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13289 (KERNEL_U_SIZE): Remove define.
13290 (kernel_u_size): Remove prototype.
13291 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13292 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13294 (CHILD_PREPARE_TO_STORE): Remove define.
13295 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13296 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13297 sparcnbsd-nat.c: Rewrite files.
13298 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13299 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13300 sparcnbsd-tdep.h: Remove files.
13301 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13302 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13303 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13304 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13305 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13306 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13307 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13308 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13309 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13310 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13311 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13312 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13313 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13314 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13315 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13316 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13317 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13318 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13319 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13321 2004-01-02 Andrew Cagney <cagney@redhat.com>
13323 From 2003-12-18 Kazuhiro Inaoka:
13324 * configure.host: Add m32r-linux target.
13326 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13328 * top.c (print_gdb_version): Update year to 2004.
13330 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13332 * MAINTAINERS: Add myself to the write-after-approval category.
13334 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13336 From Bernardo Innocenti <bernie@develer.com>:
13337 * configure.tgt: Add uClinux target.
13339 2004-01-02 Andrew Cagney <cagney@redhat.com>
13341 * utils.c (do_my_cleanups): Make static, add forward declaration.
13342 * defs.h (do_my_cleanups): Delete declaration.
13344 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13346 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13347 bfd/ChangeLog-0203.
13349 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13351 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13352 in <machine/reg.h>.
13353 * configure, config.in: Regenerate.
13355 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13356 tui/ChangeLog-1998-2003.
13362 version-control: never