1 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
3 * dwarf2read.c (read_subroutine_type): Call make_function_type
4 instead of lookup_function_type.
6 2004-10-05 Jim Blandy <jimb@redhat.com>
8 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
9 (Previous change missed some uses.)
11 2004-10-05 Andrew Cagney <cagney@gnu.org>
13 * target.h (deprecated_child_ops): Rename child_ops.
14 * wince.c: Update copyright. Rename child_ops.
15 * win32-nat.c: Rename child_ops.
16 * target.c: Rename child_ops.
17 * rs6000-nat.c: Rename child_ops.
18 * linux-nat.c: Rename child_ops.
19 * infttrace.c: Rename child_ops.
20 * inftarg.c: Rename child_ops.
21 * infptrace.c: Rename child_ops.
22 * hppah-nat.c: Update copyright. Rename child_ops.
23 * hpux-thread.c: Update copyright. Rename child_ops.
25 2004-10-05 Daniel Jacobowitz <dan@debian.org>
27 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
29 2004-10-05 Andrew Cagney <cagney@gnu.org>
31 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
33 2004-10-05 Daniel Jacobowitz <dan@debian.org>
35 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
36 (die_ref_table): Remove.
37 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
38 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
39 the usage of this type.
40 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
41 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
42 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
43 (dwarf2_create_include_psymtab): Update comment.
44 (find_partial_die): Remove third argument. Remove unreachable call
46 (dwarf2_find_containing_comp_unit): Update comments. Change one
47 assertion to an error. Remove an unreachable error.
48 (dwarf2_find_comp_unit): Update comments.
49 (type_at_offset): Remove dead code.
50 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
51 (store_in_ref_table): Add CU argument.
52 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
53 inter-compilation-unit references.
54 (load_full_comp_unit, process_full_comp_unit): New functions, based
55 on psymtab_to_symtab_1.
56 (psymtab_to_symtab_1): Use them.
57 (dwarf2_add_dependence): New function.
58 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
59 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
60 (partial_die_parent_scope, guess_structure_name): Update for changes
62 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
63 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
64 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
65 (read_die_and_children): Update call to store_in_ref_table.
66 (do_free_die_list_cleanup): Remove.
67 (fixup_partial_die): Update for changes to find_partial_die.
68 (read_full_die): Handle queueing absolute references.
69 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
70 (dwarf2_attr, die_specification, die_type)
71 (die_containing_type, dwarf2_extension): Update calls to
73 (dump_die): Update DW_FORM_ref* handling.
74 (dwarf2_get_ref_die_offset): Likewise.
75 (free_one_comp_unit): Release the dies list.
76 (dwarf2_mark_helper): New function.
77 (dwarf2_mark): Use it.
79 2004-10-05 Mark Kettenis <kettenis@jive.nl>
81 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
82 when writing to memory.
84 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
86 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
87 (m32r_extract_struct_value_address): Delete function.
88 (m32r_return_value): New function.
89 (m32r_gdbarch_init): Instead of store_return_value,
90 extract_return_value, deprecated_extract_struct_value_address
91 and deprecated_use_struct_convention, set return_value.
93 2004-10-03 Daniel Jacobowitz <dan@debian.org>
95 * dwarf2read.c (read_subrange_type): Add comment for variable
98 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
100 * Makefile.in (.l.c): Modify rule for compatibility with recent
101 versions of flex, and remove most command-line options.
102 * ada-lex.l: Add %options line in place of -I -i and -s command-line
105 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
107 Turn on initial Ada support (mainly expression evaluation).
109 * Makefile.in (SFILES): Remove ada-tasks.c.
110 (HFILES_NO_SRCDIR): Add ada-lang.h.
111 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
112 (YYOBJ): Add ada-exp.o.
113 (rule .l.c): Generalize to not mention ada.
114 * symtab.c: Include ada-lang.h.
115 (symbol_natural_name, symbol_demangled_name)
116 (symbol_search_name): Add Ada case.
118 2004-10-01 Andrew Cagney <cagney@gnu.org>
120 * Makefile.in (COMMON_OBS): Add inf-child.o.
121 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
122 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
123 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
124 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
125 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
126 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
127 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
128 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
129 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
130 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
131 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
132 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
133 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
135 * target.c (xfer_using_stratum): Change return type to LONGEST.
136 On each iteration offset, readbuf and writebuf.
137 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
138 partial_length, and read/modify/write predicate, update comments.
139 Pass buffer.word to ptrace write.
141 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
143 * symfile.c (init_filename_language_table): Add extensions for
145 * defs.h (enum language): Add language_ada.
146 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
147 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
148 (add_symbols_from_enclosing_procs): Make a no-op for now.
149 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
150 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
151 (find_line_in_linetable, find_next_line_in_linetable)
152 (read_all_symtabs, is_plausible_func_for_line)
153 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
154 (is_runtime_sym_defined, check_size): Remove declaration.
155 (function_name_from_pc, ada_translate_error_message)
156 (ada_lookup_minimal_symbol): Remove definition.
157 (ada_add_block_symbols): Remove useless label.
158 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
160 (ada_is_exception_sym): Likewise.
162 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
164 Add m32r-linux support.
165 * configure.tgt: Add m32r*-*-linux*.
166 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
167 and m32r-linux-tdep.c.
168 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
169 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
170 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
172 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
173 config/m32r/linux.mh, config/m32r/linux.mt,
174 config/m32r/nm-linux.h: New files.
176 2004-09-30 Joel Brobecker <brobecker@gnat.com>
178 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
179 (mips32_fetch_instruction): Remove, unused.
181 2004-09-30 Joel Brobecker <brobecker@gnat.com>
183 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
184 conditions that will always be true.
186 2004-09-30 Mark Kettenis <kettenis@gnu.org>
188 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
189 (vaxbsd_fetch_inferior_registers): Rename from
190 fetch_inferior_registers. Make static.
191 (vaxbsd_store_inferior_registers): Rename from
192 store_inferior_registers. Make static.
193 (_initialize_vaxbsd_nat): Construct and add target vector.
194 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
195 inftarg.o. Add inf-child.o and inf-ptrace.o.
196 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
197 inftarg.o. Add inf-child.o and inf-ptrace.o.
199 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
200 inftarg.o. Add inf-child.o and inf-ptrace.o.
202 * Makefile.in (vaxbsd-nat.o): Update dependencies.
204 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
205 (m88kbsd_fetch_inferior_registers): Rename from
206 fetch_inferior_registers. Make static.
207 (m88kbsd_store_inferior_registers): Rename from
208 store_inferior_registers. Make static.
209 (_initialize_m88kbsd_nat): New prototype and function.
210 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
211 inftarg.o. Add inf-child.o and inf-ptrace.o.
213 * Makefile.in (m88kbsd-nat.o): Update dependencies.
215 2004-09-30 Andrew Cagney <cagney@gnu.org>
217 * target.c (target_xfer_partial): New function.
218 (target_read_memory_partial, target_write_memory_partial)
219 (default_xfer_partial, target_read_partial, target_write_partial)
220 (xfer_using_stratum): Use.
221 (debug_to_xfer_partial): Delete function.
222 (setup_target_debug): Do not override to_xfer_partial.
224 2004-09-30 Mark Kettenis <kettenis@chello.nl>
226 * fork-child.c: Update copyright year. Fix coding style.
228 2004-09-29 Mark Kettenis <kettenis@gnu.org>
230 * defs.h (msavestring, mstrsave): Remove prototypes.
231 * utils.c (msavestring, mstrsave): Remove functions.
232 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
233 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
235 * source.c (find_and_open_source): Use xstrdup instead of
238 2004-09-30 Andrew Cagney <cagney@gnu.org>
240 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
241 (inf_ptrace_xfer_memory): Delete.
242 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
243 (target_read_memory, target_write_memory): Use xfer_using_stratum
244 when target_xfer_partial_p.
245 (debug_target): Move to start of file.
246 (target_read_memory_partial, target_write_memory_partial): Use
247 to_xfer_partial when target_xfer_partial_p.
249 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
250 inf_ptrace_xfer_memory with equivalent code.
251 * inftarg.c (child_xfer_partial): When performing a write, pass
252 writebuf to child_xfer_memory.
254 * target.c (target_read_string): Use target_read_memory instead of
257 2004-09-29 Andrew Cagney <cagney@gnu.org>
259 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
260 the address of status.
262 * infptrace.c (ptrace_wait): Mention problem with HPUX.
263 (kill_inferior): Inline ptrace_wait call.
264 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
265 * inftarg.c (child_wait): Inline ptrace_wait call.
267 * target.h (struct target_ops): Delete field to_post_wait.
268 (target_post_wait): Delete macro.
269 (child_post_wait): Delete declaration.
270 * target.c (update_current_target, update_current_target)
271 (debug_to_post_wait, setup_target_debug): Delete functions and
273 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
274 * inftarg.c (child_post_wait): Delete.
275 (init_child_ops): Do not set to_post_wait.
276 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
277 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
278 * inf-child.c (inf_child_post_wait): Delete.
279 (inf_child_target): Do not set to_post_wait.
280 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
281 (inf_ptrace_target): Do not set to_post_wait.
283 * wince.c (child_ops): Delete.
284 * win32-nat.c (child_ops): Delete.
286 * inftarg.c (inftarg_set_find_memory_regions)
287 (inftarg_set_make_corefile_notes): Delete functions.
288 (_initialize_linux_nat): Inline calls.
290 * target.h (child_ops): Declare.
291 * inftarg.c (child_ops): Move from here ...
292 * target.c (child_ops): ... to here.
293 * wince.c (child_ops): Delete extern declaration.
294 * win32-nat.c (child_ops): Delete extern declaration.
295 * linux-nat.c (child_ops): Delete extern declaration.
296 * hpux-thread.c (child_ops): Delete extern declaration.
298 2004-09-28 Mark Kettenis <kettenis@gnu.org>
300 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
302 2004-09-28 Mark Kettenis <kettenis@gnu.org>
304 * configure.in: Only set host_makefile_frag when building a native
306 * configure: Regenerate.
308 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
311 2004-09-28 Andrew Cagney <cagney@gnu.org>
313 Problem identified by Paul Hilfinger.
314 * Makefile.in (ada_lex_c): Define.
315 (ada-lex.o): Delete rule.
317 * linux-proc.c: Delete file.
318 * Makefile.in: Update.
319 * config/sparc/linux64.mh (NATDEPFILES):
320 * config/sparc/linux.mh (NATDEPFILES): Update.
321 * config/s390/s390.mh (NATDEPFILES): Update.
322 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
323 * config/powerpc/linux.mh (NATDEPFILES): Update.
324 * config/pa/linux.mh (NATDEPFILES): Update.
325 * config/mips/linux.mh (NATDEPFILES): Update.
326 * config/m68k/linux.mh (NATDEPFILES): Update.
327 * config/ia64/linux.mh (NATDEPFILES): Update.
328 * config/i386/linux64.mh (NATDEPFILES): Update.
329 * config/i386/linux.mh (NATDEPFILES): Update.
330 * config/arm/linux.mh (NATDEPFILES): Update.
331 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
332 * linux-nat.c: Update copyright. Include <sys/param.h>,
333 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
334 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
335 (O_LARGEFILE): Possibly define.
336 (_initialize_linux_nat, linux_proc_pending_signals)
337 (add_line_to_sigset, linux_proc_xfer_memory)
338 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
339 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
340 (struct linux_corefile_thread_data)
341 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
342 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
344 2004-09-16 Andrew Cagney <cagney@gnu.org>
346 * lin-lwp.c: Delete file.
347 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
348 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
349 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
350 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
351 (linux_nat_attach, detach_callback, linux_nat_detach)
352 (resume_callback, resume_clear_callback, linux_nat_resume)
353 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
354 (stop_wait_callback, linux_nat_has_pending, flush_callback)
355 (status_callback, running_callback, count_events_callback)
356 (select_singlestep_lwp_callback, select_event_lwp_callback)
357 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
358 (child_wait, stop_and_resume_callback, linux_nat_wait)
359 (kill_callback, kill_wait_callback, linux_nat_kill)
360 (linux_nat_create_inferior, linux_nat_mourn_inferior)
361 (linux_nat_xfer_memory, linux_nat_thread_alive)
362 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
363 (_initialize_linux_nat): New functions.
364 * Makefile.in: Update all dependencies.
365 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
366 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
367 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
368 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
369 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
370 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
371 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
372 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
373 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
374 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
375 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
376 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
377 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
379 2004-09-27 Mark Kettenis <kettenis@gnu.org>
381 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
382 config/i386/obsd64.mh (NAT_FILE): Remove variable.
384 * configure.in: Don't comment out NATDEPFILES in the generated
385 Makefile if NAT_FILE is unset.
386 * configure: Regenerate.
388 2004-09-27 Andrew Cagney <cagney@gnu.org>
390 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
391 (insert_step_resume_breakpoint): Delete.
392 (insert_step_resume_breakpoint_at_frame): New function.
393 (insert_step_resume_breakpoint_at_sal): New function.
394 (handle_inferior_event, step_into_function)
395 (insert_step_resume_breakpoint): Simplify by using same.
397 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
399 2004-09-26 Mark Kettenis <kettenis@gnu.org>
401 * fbsd-proc.c: Remove file.
402 * Makefile.in (fbsd-proc.o): Remove dependency.
404 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
407 * config/i386/nm-fbsd64.h: Remove file.
408 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
410 2004-09-26 Mark Kettenis <kettenis@gnu.org>
412 * amd64-nat.h: Update copyright year.
413 (amd64bsd_target): New prototype.
414 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
415 (amd64bsd_target): New function.
416 (amd64bsd_fetch_inferior_registers): Rename from
417 fetch_inferior_registers. Make static.
418 (amd64bsd_store_inferior_registers): Rename from
419 store_inferior_registers. Make static.
420 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
421 (_initialize_amd64fbsd_nat): Construct and add target vector.
422 * amd64nbsd-nat.o: Include "target.h".
423 (_initialize_amd64nbsd_nat): Construct and add target vector.
424 * amd64obsd-nat.c: Include "target.h".
425 (_initialize_amd64obsd_nat): Construct and add target vector.
426 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
427 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
428 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
430 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
431 Remove infptrace.o and inftarg.o. Add inf-child.o and
433 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
434 (amd64obsd-nat.o): Update dependencies.
436 2004-09-25 Mark Kettenis <kettenis@gnu.org>
438 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
439 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
440 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
441 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
442 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
444 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
446 (inf_ptrace_detach): Inline detach call.
448 * configure.in: Check for waddstr instead of mvwaddstr when
449 searching for curses library. Check for wborder.
450 * configure, config.in: Regenerate.
451 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
454 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
456 2004-09-24 Robert Picco <Robert.Picco@hp.com>
458 Committed by Andrew Cagney.
459 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
460 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
462 (fetch_register_using_p): Implement 'p' packet. Based on code by
464 (remote_fetch_registers): Call fetch_register_using_p.
465 (init_all_packet_configs, show_remote_cmd)
466 (_initialize_remote): Add p-packet.
468 2004-09-24 Mark Kettenis <kettenis@gnu.org>
470 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
471 instead of call_ptrace. Call wait directly instead of
473 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
474 (inf_ptrace_wait): Inline ptrace_wait call.
476 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
478 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
481 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
483 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
484 the new argument order.
486 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
488 * MAINTAINERS: Remove "broken" from XStormy16 entry.
489 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
490 (struct gdbarch_tdep): Remove.
491 (struct xstormy16_frame_cache): New frame cache structure.
492 (xstormy16_register_byte, xstormy16_register_raw_size)
493 (xstormy16_reg_virtual_type, xstormy16_register_type)
494 (xstormy16_push_arguments, xstormy16_push_return_address)
495 (xstormy16_pop_frame, xstormy16_store_struct_return)
496 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
497 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
498 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
499 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
500 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
501 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
502 (xstormy16_use_struct_convention): Drop gcc_p parameter.
503 (xstormy16_extract_return_value, xstormy16_store_return_value):
504 Regcachify. Drop useless struct convention handling.
505 (xstormy16_register_type, xstormy16_return_value)
506 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
507 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
508 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
509 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
510 (xstormy16_unwind_sp, xstormy16_unwind_pc)
511 (xstormy16_unwind_dummy_id) : New functions.
512 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
513 of xstormy16_scan_prologue.
514 (xstormy16_frame_unwind): New frame_unwind structure.
515 (xstormy16_frame_base): New frame_base structure.
516 (xstormy16_gdbarch_init): Accomodate all of the above changes.
517 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
519 2004-09-22 Mark Kettenis <kettenis@gnu.org>
521 * language.c (language_gdbarch_post_init): Fix off-by one error.
523 2004-09-21 Daniel Jacobowitz <dan@debian.org>
525 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
526 (struct dwarf2_offset_and_type): New.
527 (set_die_type, reset_die_and_siblings_types, get_die_type)
528 (offset_and_type_hash, offset_and_type_eq): New functions.
529 (read_structure_type, read_enumeration_type, read_array_type)
530 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
531 (read_tag_reference_type, read_tag_const_type)
532 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
533 (read_typedef, read_base_type, read_subrange_type): Use
536 2004-09-20 Daniel Jacobowitz <dan@debian.org>
538 * Makefile.in (dwarf2read.o): Update dependencies.
539 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
540 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
542 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
543 mark, and has_form_ref_addr.
544 (struct dwarf2_per_cu_data): New.
545 (dwarf2_max_cache_age): New.
546 (dwarf2_build_psymtabs_hard): Free cached compilation units
547 after loading. Create and manage the list of compilation units.
548 Remove unnecessary NULL initialization. Fix indentation.
549 (psymtab_to_symtab_1): Initialize all of CU.
550 (dwarf2_read_abbrevs): Set has_form_ref_addr.
551 (find_partial_die): Use dwarf2_find_containing_comp_unit
553 (free_stack_comp_unit): Update comments. Clear the per-cu
554 pointer. Handle aging.
555 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
556 (age_cached_comp_units, free_one_cached_comp_unit)
557 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
558 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
559 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
560 (show_dwarf2_cmd): New.
561 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
562 and "maint show dwarf2 max-cache-age".
563 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
565 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
568 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
570 * dwarf2read.c (typename_concat): Change prototype to accept obstack
571 and dwarf2_cu struct pointer as arguments. Change function to use
572 obstack if provided and use dwarf2_cu to determine language-specific
574 (partial_die_parent_scope): Change comment to include java. Use
575 new version of typename_concat instead of obconcat.
576 (partial_die_full_name): Use typename_concat.
577 (read_namespace): Ditto.
578 (read_enumeration_type): Use typename_concat instead of obconcat.
580 (add_partial_symbol): Enhance tests for C++ to also test for Java.
581 (guess_structure_name): Ditto.
582 (read_subroutine_type): Ditto.
583 (read_structure_type): Ditto.
584 (is_vtable_name): Add Java support.
585 (determine_class_name): Switch to new typename_concat call.
586 (determine_prefix): Switch to new typename_concat call.
587 * jv-exp.y (FuncStart): New pattern.
588 (MethodInvocation): Add support for simple function calls. Change
589 warning message for other forms of inferior call currently not
591 * valarith.c (value_subscript): Treat an array with upper-bound
592 of -1 as unknown size.
594 2004-09-20 Daniel Jacobowitz <dan@debian.org>
596 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
597 (lookup_partial_symtab): Use symtab_to_fullname.
599 2004-09-19 Jim Blandy <jimb@redhat.com>
601 * minsyms.c (lookup_minimal_symbol): Doc fix.
603 2004-09-20 Andrew Cagney <cagney@gnu.org>
605 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
607 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
608 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
610 * infptrace.c: Update.
612 2004-09-19 Daniel Jacobowitz <dan@debian.org>
614 * symtab.c (output_source_filename): Mark first argument as const.
615 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
616 for "info sources" output.
618 2004-09-20 Mark Kettenis <kettenis@gnu.org>
620 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
622 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
623 (register_u_addr): Remove prototype.
625 2004-09-19 Mark Kettenis <kettenis@gnu.org>
627 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
628 (i386bsd_fetch_inferior_registers): Rename from
629 fetch_inferior_registers. Make static.
630 (i386bsd_store_inferior_registers): Rename from
631 store_inferior_registers. Make static.
632 (i386bsd_target): New function.
633 * i386bsd-nat.h: New file.
634 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
636 (i386fbsd_resume): Rename from child_resume. Make static.
637 (_initialize_i386fbsd_nat): Construct and add target vector.
638 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
639 (_initialize_i386nbsd_nat): Construct and add target vector.
640 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
642 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
643 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
644 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
645 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
646 (LOADLIBES): New variable.
647 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
648 inf-ptrace.o. Remove inftarg.o.
649 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
650 inf-ptrace.o. Remove inftarg.o.
651 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
652 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
653 (LOADLIBES): New variable.
654 * Makefile.in (i386bsd_nat_h): New variable.
655 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
658 * sparc64nbsd-tdep.c: Include "objfiles.h".
659 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
660 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
661 svr4_lp64_fetch_link_map_offsets.
662 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
664 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
665 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
666 svr4_lp64_fetch_link_map_offsets.
667 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
670 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
671 * fbsd-nat.h: New file.
672 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
673 (fbsd_nat_h): New variable.
674 (fbsd-nat.o): New dependency.
676 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
677 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
679 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
682 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
684 * ada-exp.y (type_int): New function to add layer of abstraction
685 around references to expression types.
687 (type_long_long): Ditto.
689 (type_double): Ditto.
690 (type_long_double): Ditto.
692 (type_system_address): Ditto.
693 (simple_exp): Use type_* functions in place of builtin_*
696 (write_var_from_name): Ditto.
697 (write_object_renaming): Ditto.
698 * ada-lang.c (ada_create_fundamental_type): Remove redundant
700 (build_ada_types): Remove, replacing with...
701 (ada_language_arch_info): New function to initialize primitive
702 type vector in language_arch_info.
703 (ada_array_length): Remove use of builtin_type_ada_int.
704 (value_pos_atr): Ditto.
705 (ada_evaluate_subexp): Ditto.
706 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
707 builtin_type_ada_long_long, builtin_type_ada_char,
708 builtin_type_ada_float, builtin_type_ada_double,
709 builtin_type_ada_long_double, builtin_type_ada_natural,
710 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
711 (ada_builtin_types): Remove.
712 (ada_language_defn): Remove entries for la_builtin_type_vector and
713 string_char_type and use ada_language_arch_info.
714 (_initialize_ada_language): Do type-vector initialization along
715 the lines of c-lang.c.
716 (ada_create_fundamental_type): Break up line.
717 (ada_dump_symtab): Remove unused function.
718 (enum ada_primitive_types): Define.
719 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
720 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
721 builtin_type_ada_float, builtin_type_ada_double,
722 builtin_type_ada_long_double, builtin_type_ada_natural,
723 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
724 * ada-lex.l: Use type_* functions in place of builtin_* variables.
726 (processReal): Ditto.
727 (name_lookup): Ditto.
728 * ada-typeprint.c (print_range): Use builtin_type_int, not
729 builtin_type_ada_int.
731 2004-09-18 Mark Kettenis <kettenis@gnu.org>
733 * i386-tdep.c (i386_register_name): Rename regno to regnum.
735 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
736 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
737 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
738 * configure.in: Improve checks for curses library by checking for
739 mvwaddstr instead of initscr. Drop HP curses in favour of
740 standard curses on HP-UX.
741 * configure: Regenerated.
743 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
745 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
746 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
747 Minor formatting changes.
748 (empty_array): Slight rewrite for formatting.
749 (emit_char,parse,ada_language_defn,build_ada_types,
750 ada_is_exception_sym, _initialize_ada_language): Move
752 (ada_dump_symtab): Remove unused definition.
753 (ada_maybe_exception_partial_symbol): Remove unused definition.
755 2004-09-16 Andrew Cagney <cagney@gnu.org>
757 * inf-child.c: Include "gdb_string.h".
758 (inf_child_core_file_to_sym_file): Delete.
759 (inf_child_target): Set to_fetch_registers and to_store_registers.
760 * inf-ptrace.c: Include "gdb_string.h".
761 * Makefile.in: Update all dependencies.
763 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
766 2004-09-14 Joel Brobecker <brobecker@gnat.com>
768 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
769 call to heuristic_proc_desc. Remove code that became redundant
771 (read_next_frame_reg): Remove special case for SP_REGNUM.
772 (set_reg_offset): Fix small typo.
773 (reset_saved_regs): New procedure.
774 (mips32_heuristic_proc_desc): No longer compute a fake
775 procedure descriptor. Compute the full frame cache instead.
776 Some minor comment reformatting.
778 2004-09-14 Andrew Cagney <cagney@gnu.org>
780 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
783 * thread-db.c (thread_db_new_objfile): Assume that there is a
786 2004-09-13 Jim Blandy <jimb@redhat.com>
788 * valops.c (value_assign): Move 'buffer' to the enclosing block,
789 so that its storage isn't referenced after its lifetime ends.
791 * valops.c (value_assign): 'use_buffer' is initialized to zero,
792 and never assigned to. Delete it, and the 'if (use_buffer)'
793 clauses. Delete 'raw_buffer', since it is now unused.
795 2004-09-13 Andrew Cagney <cagney@gnu.org>
797 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
798 * configure: Re-generate.
799 * nlm/Makefile.in (TAGS): Update.
800 * Makefile.in (TAGS): Update.
801 * config/vax/nbsd.mt (TM_FILE): Update.
802 * config/sparc/vxworks.mt (TM_FILE): Update.
803 * config/sparc/sol2.mt (TM_FILE): Update.
804 * config/sparc/sol2-64.mt (TM_FILE): Update.
805 * config/sparc/obsd64.mt (TM_FILE): Update.
806 * config/sparc/obsd.mt (TM_FILE): Update.
807 * config/sparc/nbsd64.mt (TM_FILE): Update.
808 * config/sparc/nbsd.mt (TM_FILE): Update.
809 * config/sparc/linux64.mt (TM_FILE): Update.
810 * config/sparc/linux.mt (TM_FILE): Update.
811 * config/sparc/fbsd.mt (TM_FILE): Update.
812 * config/sh/wince.mt (TM_FILE): Update.
813 * config/sh/nbsd.mt (TM_FILE): Update.
814 * config/sh/linux.mt (TM_FILE): Update.
815 * config/sh/embed.mt (TM_FILE): Update.
816 * config/s390/s390.mt (TM_FILE): Update.
817 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
818 * config/rs6000/rs6000.mt (TM_FILE): Update.
819 * config/rs6000/aix4.mt (TM_FILE): Update.
820 * config/powerpc/vxworks.mt (TM_FILE): Update.
821 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
822 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
823 * config/powerpc/obsd.mt (TM_FILE): Update.
824 * config/powerpc/nbsd.mt (TM_FILE): Update.
825 * config/powerpc/linux.mt (TM_FILE): Update.
826 * config/powerpc/aix.mt (TM_FILE): Update.
827 * config/pa/obsd.mt (TM_FILE): Update.
828 * config/pa/linux.mt (TM_FILE): Update.
829 * config/pa/hppahpux.mt (TM_FILE): Update.
830 * config/pa/hppa64.mt (TM_FILE): Update.
831 * config/pa/hppa.mt (TM_FILE): Update.
832 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
833 * config/mips/wince.mt (TM_FILE): Update.
834 * config/mips/vxmips.mt (TM_FILE): Update.
835 * config/mips/nbsd.mt (TM_FILE): Update.
836 * config/mips/linux.mt (TM_FILE): Update.
837 * config/mips/irix6.mt (TM_FILE): Update.
838 * config/mips/irix5.mt (TM_FILE): Update.
839 * config/mips/embed.mt (TM_FILE): Update.
840 * config/m68k/vxworks68.mt (TM_FILE): Update.
841 * config/m68k/st2000.mt (TM_FILE): Update.
842 * config/m68k/os68k.mt (TM_FILE): Update.
843 * config/m68k/obsd.mt (TM_FILE): Update.
844 * config/m68k/nbsd.mt (TM_FILE): Update.
845 * config/m68k/monitor.mt (TM_FILE): Update.
846 * config/m68k/linux.mt (TM_FILE): Update.
847 * config/m68k/cisco.mt (TM_FILE): Update.
848 * config/ia64/linux.mt (TM_FILE): Update.
849 * config/ia64/aix.mt (TM_FILE): Update.
850 * config/ia64/ia64.mt (TM_FILE): Update.
851 * config/i386/vxworks.mt (TM_FILE): Update.
852 * config/i386/obsd64.mt (TM_FILE): Update.
853 * config/i386/obsd.mt (TM_FILE): Update.
854 * config/i386/nto.mt (TM_FILE): Update.
855 * config/i386/nbsd64.mt (TM_FILE): Update.
856 * config/i386/nbsd.mt (TM_FILE): Update.
857 * config/i386/linux64.mt (TM_FILE): Update.
858 * config/i386/linux.mt (TM_FILE): Update.
859 * config/i386/i386sol2.mt (TM_FILE): Update.
860 * config/i386/i386lynx.mt (TM_FILE): Update.
861 * config/i386/fbsd64.mt (TM_FILE): Update.
862 * config/i386/fbsd.mt (TM_FILE): Update.
863 * config/i386/cygwin.mt (TM_FILE): Update.
864 * config/h8300/h8300.mt (TM_FILE): Update.
865 * config/frv/frv.mt (TM_FILE): Update.
866 * config/cris/cris.mt (TM_FILE): Update.
867 * config/arm/wince.mt (TM_FILE): Update.
868 * config/arm/nbsd.mt (TM_FILE): Update.
869 * config/arm/linux.mt (TM_FILE): Update.
870 * config/arm/embed.mt (TM_FILE): Update.
871 * config/alpha/nbsd.mt (TM_FILE): Update.
872 * config/alpha/fbsd.mt (TM_FILE): Update.
873 * config/alpha/alpha.mt (TM_FILE): Update.
874 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
875 * config/alpha/alpha-linux.mt (TM_FILE): Update.
877 Eliminate event_loop_p, always has the value 1.
878 * defs.h (event_loop_p): Delete macro.
879 * breakpoint.c (until_break_command): Simplify.
880 * utils.c (prompt_for_continue): Simplify.
881 * tracepoint.c (read_actions): Simplify.
882 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
883 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
884 (set_prompt, init_main): Simplify.
885 (init_signals, disconnect): Delete, unused.
886 * remote.c (remote_async_resume)
887 (extended_remote_async_create_inferior): Simplify.
888 * mi/mi-interp.c (mi_input): Delete, unused.
889 (mi_interpreter_resume, mi_command_loop): Simplify.
890 * interps.c (current_interp_command_loop): Simplify.
891 * infrun.c (proceed): Simplify.
892 * infcmd.c (run_command, continue_command, step_1, jump_command)
893 (until_command, advance_command, finish_command)
894 (interrupt_target_command): Simplify.
895 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
897 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
898 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
899 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
900 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
901 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
902 * mips-tdep.c (mips_dump_tdep): Do not print same.
904 2004-09-12 Andrew Cagney <cagney@gnu.org>
906 * valprint.c (print_longest): Use fputs_filtered. Make "val"
908 * Makefile.in (valprint.o): Delete explict rule.
910 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
911 reported by Dave Anderson.
913 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
915 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
917 2004-09-12 Salvador E. Tropea <set@users.sf.net>
918 Andrew Cagney <cagney@gnu.org>
920 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
921 (mi_cmd_data_list_register_values)
922 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
923 the register number computation.
925 2004-09-12 Andrew Cagney <cagney@gnu.org>
927 * ppcnbsd-nat.c: Include "inf-ptrace.h".
928 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
929 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
930 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
932 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
933 inf-ptrace.o and inf-child.o.
934 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
935 * Makefile.in: Update dependencies.
937 2004-09-11 Andrew Cagney <cagney@gnu.org>
939 * language.c (hex_string, hex_string_custom): Move from here ...
940 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
941 (CELLSIZE): Increase to 50.
942 * language.h (hex_string, hex_string_custom): Move from here ...
943 * defs.h: ... to here.
944 * Makefile.in: Update all dependencies.
946 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
948 * language.c (local_hex_format_custom): Remove.
949 (local_hex_string): Rename to hex_string, use C format, and move to
951 (local_hex_string_custom): Rename to hex_string_custom and change
952 interface. Now uses C format. Move to utils.c
953 (local_octal_format_custom): Remove.
954 (local_decimal_format_custom): Remove.
955 (unknown_language_defn): Remove language-specific number
957 (auto_language_defn): Ditto.
958 (local_language_defn): Ditto.
959 * language.h (struct language_format_info): Delete declaration.
960 (struct language_defn): Remove language_format_info fields
961 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
962 (local_binary_format): Remove macro.
963 (local_binary_format_prefix): Remove macro.
964 (local_binary_format_specifier): Remove macro.
965 (local_binary_format_suffix): Remove macro.
966 (local_octal_format): Remove macro.
967 (local_octal_format_prefix): Remove macro.
968 (local_octal_format_specifier): Remove macro.
969 (local_octal_format_suffix): Remove macro.
970 (local_decimal_format): Remove macro.
971 (local_decimal_format_prefix): Remove macro.
972 (local_decimal_format_specifier): Remove macro.
973 (local_decimal_format_suffix): Remove macro.
974 (local_hex_format): Remove macro.
975 (local_hex_format_prefix): Remove macro.
976 (local_hex_format_specifier): Remove macro.
977 (local_hex_format_suffix): Remove macro.
978 (local_decimal_format_custom): Remove.
979 (local_octal_format_custom): Remove.
980 (local_hex_format_custom): Remove.
981 (local_hex_string): Rename to hex_string and move to defs.h.
982 (local_hex_string_custom): Rename to hex_string_custom, change
983 interface, and move to defs.h.
984 * utils.c: (int_string): New function.
985 (hex_string): New function (from language.c).
986 (hex_string_custom): New function (from language.c).
987 (octal2str): New function.
988 (decimal2str): Add width parameter.
989 (paddr_u): Use new decimal2str interface.
991 * defs.h (hex_string): Declare.
992 (hex_string_custom): Declare.
993 (int_string): Declare.
994 * printcmd.c (print_scalar_formatted): Remove localized binary
996 * valprint.c (print_longest): Use int_string.
997 (print_floating): Use C hex format.
998 (print_hex_chars): Ditto.
999 (print_binary_chars): Remove language-specific formatting.
1000 (print_octal_chars): Use C octal format.
1001 (print_decimal_chars): Delocalize format.
1002 (print_decimal): Remove.
1003 * ada-lang.c (ada_language_defn): Remove language-specific number
1005 * p-lang.c (pascal_language_defn): Ditto.
1006 * c-lang.c (c_language_defn): Ditto.
1007 (cplus_language_defn): Ditto.
1008 (asm_language_defn): Ditto.
1009 (minimal_language_defn): Ditto.
1010 * f-lang.c (f_language_defn): Ditto.
1011 * jv-lang.c (java_language_defn): Ditto.
1012 * m2-lang.c (m2_language_defn): Ditto.
1013 * scm-lang.c (scm_language_defn): Ditto.
1014 * objc-lang.c (objc_language_defn): Ditto.
1015 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1017 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1018 * ui-out.c (ui_out_field_core_addr): Ditto.
1019 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1020 * exec.c (print_section_info): Ditto.
1021 * i387-tdep.c (print_i387_status_word): Ditto.
1022 (print_i387_control_word): Ditto.
1023 (i387_print_float_info): Ditto.
1024 * maint.c (maint_print_section_info): Ditto.
1025 * solib.c (info_sharedlibrary_command): Ditto.
1026 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1027 * symtab.c (print_msymbol_info): Ditto.
1028 * tracepoint.c (tracepoints_info): Ditto.
1029 * solib-frv.c (lm_base): Ditto.
1030 (frv_current_sos): Ditto.
1031 (enable_break2): Ditto.
1032 (enable_break): Ditto.
1033 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1034 (process_one_symbol): Ditto.
1035 * infcmd.c (program_info): Ditto.
1036 * mdebugread.c (parse_partial_symbols): Ditto.
1037 * symfile.c (add_symbol_file_command): Ditto.
1038 * cli/cli-cmds.c (edit_command): Ditto.
1039 (list_command): Ditto.
1040 * infcall.c (call_function_by_hand): Ditto.
1041 * remote-vx.c (vx_run_files_info): Ditto.
1046 * aix-thread.c (pdc_symbol_addrs): Ditto.
1047 (pdc_read_regs): Ditto.
1048 (pdc_write_regs): Ditto.
1049 (pdc_read_data): Ditto.
1050 (pdc_write_data): Ditto.
1051 * d10v-tdep.c (display_trace): Ditto.
1052 * rs6000-nat.c (find_toc_address): Ditto.
1053 * aix-thread.c: Don't include language.h.
1054 * buildsym.c: Ditto.
1056 * mdebugread.c: Ditto.
1057 * rs6000-nat.c: Ditto.
1058 * buildsym.c (make_blockvector): Use renamed hex_string.
1060 2004-09-10 Jason Molenda (jmolenda@apple.com)
1062 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1063 chars after 'if' or 'while' commands in user-defined commands.
1065 2004-09-08 Jim Blandy <jimb@redhat.com>
1067 Fix bug reported and analyzed by Olivier Crete:
1068 * symfile.c (copy_section_addr_info): New function.
1069 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1070 original set of address arguments, instead of handwritten code
1071 that uses one length to allocate and a different length to
1072 initialize. Use make_cleanup_free_section_addr_info.
1073 * symfile.h (copy_section_addr_info): New declaration.
1074 * utils.c: #include "symfile.h".
1075 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1077 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1078 * Makefile.in (utils.o): Update dependencies.
1080 2004-09-08 Andrew Cagney <cagney@gnu.org>
1082 * thread-db.c (keep_thread_db): Delete.
1083 (thread_db_new_objfile, thread_db_create_inferior)
1084 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1086 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1088 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1089 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1090 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1091 (i386_frameless_signal_p): Remove prototype.
1092 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1093 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1095 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1096 instead of FP0_REGNUM.
1097 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1098 of FP0_REGNUM and FPC_REGNUM.
1100 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1101 (sunos_solib_create_inferior_hook): Don't call
1102 sunos_relocate_main_executable.
1104 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1105 solib_svr4_fetch_link_map_offsets to
1106 svr4_ilp32_fetch_link_map_offsets.
1107 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1108 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1109 svr4_ilp32_fetch_link_map_offsets.
1110 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1112 2004-09-07 Jim Blandy <jimb@redhat.com>
1114 * frame.h (frame_register): Doc fix.
1116 2004-09-07 Andrew Cagney <cagney@gnu.org>
1118 * vx-share/wait.h: Delete #ifdef USG.
1119 * utils.c (request_quit): Ditto.
1120 * tui/tui.c (tui_reset): Ditto.
1122 * remote-sds.c: Ditto.
1123 * remote-rdi.c: Ditto.
1124 * mdebugread.c: Ditto.
1125 * m68klinux-nat.c: Ditto.
1126 * infttrace.c: Ditto.
1127 * infptrace.c: Ditto.
1128 * i386v-nat.c: Ditto.
1131 * core-aout.c: Ditto.
1133 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1135 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1136 heuristic_proc_desc.
1137 (mips_insn32_frame_cache): Likewise.
1139 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1141 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1142 left behind by error.
1144 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1146 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1147 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1149 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1151 * config/rs6000/xm-aix4.h: Remove this file.
1152 * config/rs6000/aix4.mh (XM_FILE): Delete.
1154 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1156 * config/rs6000/xm-rs6000.h: Remove this file.
1157 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1159 2004-09-03 Andrew Cagney <cagney@gnu.org>
1161 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1162 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1165 * mips-tdep.c (temp_saved_regs): Delete.
1166 (set_reg_offset): Replace saved_regs parameter with this_cache.
1167 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1168 (mips32_heuristic_proc_desc): Add this_cache parameter.
1169 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1170 (after_prologue): Pass a NULL this_cache.
1172 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1173 non-kernel trap prologues.
1175 * mips-tdep.c (find_proc_desc): Delete function.
1176 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1178 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1179 mips_insn32_frame_cache.
1181 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1182 Simplify as NEXT_FRAME is NULL.
1183 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1185 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1187 (mips_skip_prologue): Update.
1189 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1190 "cur_frame" parameter.
1191 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1192 (mips_insn32_frame_cache, find_proc_desc): Update
1194 * config/vax/nm-obsd.h: Delete file.
1195 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1196 * config/vax/nm-nbsd.h: Delete file.
1197 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1198 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1199 * config/sh/nm-nbsd.h: Delete file.
1200 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1201 * config/rs6000/nm-rs6000ly.h: Delete file.
1202 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1203 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1204 * config/powerpc/nm-obsd.h: Delete file.
1205 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1206 * config/powerpc/nm-nbsd.h: Delete file.
1207 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1208 * config/pa/nm-obsd.h: Delete file.
1209 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1210 * config/mips/nm-nbsd.h: Delete file.
1211 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1212 * config/m88k/nm-obsd.h: Delete file.
1213 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1214 * config/m68k/nm-nbsd.h: Delete file.
1215 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1216 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1217 * config/i386/nm-nbsd.h: Delete file.
1218 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1219 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1220 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1221 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1222 * config/i386/nm-i386lynx.h: Delete file.
1223 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1224 * config/arm/nm-nbsd.h: Delete file.
1225 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1226 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1228 * config/i386/tm-fbsd.h: Delete file.
1229 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1230 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1232 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1233 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1234 * config/rs6000/aix4.mt (TM_FILE): Set to
1235 config/rs6000/tm-rs6000.h.
1236 * config/powerpc/tm-ppc-aix.h: Delete file.
1237 * config/powerpc/aix.mt (TM_FILE): Set to
1238 config/rs6000/tm-rs6000.h.
1239 * config/m68k/tm-linux.h: Delete file.
1240 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1241 * config/i386/tm-linux64.h: Delete file.
1242 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1243 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1245 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1246 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1247 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1248 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1249 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1250 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1251 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1252 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1253 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1255 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1258 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1260 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1261 Minor reformatting. Some code factoring.
1263 2004-09-02 Andrew Cagney <cagney@gnu.org>
1265 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1266 * config/vax/tm-nbsd.h: Delete file.
1267 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1268 * config/sparc/tm-vxworks.h: Delete file.
1269 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1270 * config/sparc/tm-nbsd.h: Delete file.
1271 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1272 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1273 * config/sparc/tm-linux.h: Delete file.
1274 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1275 * config/s390/tm-linux.h: Delete file.
1276 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1277 * config/pa/tm-bsd.h: Delete file.
1278 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1279 * config/m68k/tm-obsd.h: Delete file.
1280 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1281 * config/m68k/tm-nbsd.h: Delete file.
1282 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1283 * config/i386/tm-vxworks.h: Delete file.
1284 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1285 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1286 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1287 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1288 * config/i386/tm-nbsd.h: Delete file.
1289 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1290 * config/i386/tm-i386lynx.h: Delete file.
1291 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1292 * config/cris/tm-cris.h: Delete file.
1294 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1295 * configure: Re-generate.
1296 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1297 * config/arm/tm-nbsd.h: Delete file.
1299 * config/powerpc/tm-ppcle-sim.h: Delete.
1300 * config/powerpc/tm-ppcle-eabi.h: Delete.
1301 * config/powerpc/tm-nbsd.h: Delete.
1302 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1303 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1306 * config/i386/nto.mh (NAT_FILE): Delete.
1307 * config/i386/nm-nto.h: Delete.
1309 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1310 * config/m68k/tm-os68k.h: Ditto.
1311 * config/m68k/tm-monitor.h: Ditto.
1312 * config/m68k/tm-cisco.h: Ditto.
1313 * config/m68k/st2000.mt (TM_FILE): Delete.
1314 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1315 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1316 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1317 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1319 * config/m68k/tm-st2000.h: Delete.
1320 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1321 * config/sparc/fbsd.mt (TM_FILE): Delete.
1322 * config/sparc/tm-fbsd.h: Delete.
1324 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1325 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1326 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1328 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1329 GDB_TM_FILE and GDB_XM_FILE.
1330 * gdbarch.c: Re-generate.
1331 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1332 quotes in macro definition.
1333 * configure.in: Re-generate.
1335 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1336 validating architecture methods.
1337 * gdbarch.c: Re-generate.
1339 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1340 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1341 GDB_MULTI_ARCH_PARTIAL.
1342 * gdbarch.h: Re-generate.
1344 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1345 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1346 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1347 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1348 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1349 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1350 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1351 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1352 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1353 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1354 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1355 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1357 2004-09-01 Andrew Cagney <cagney@gnu.org>
1359 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1360 and main_func_highpc.
1361 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1362 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1363 * nlmread.c (nlm_symfile_read): Update.
1365 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1367 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1368 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1369 (find_proc_desc): Remove dead code.
1371 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1373 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1375 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1377 * observer.sh: Add struct so_list declaration.
1378 * Makefile.in: Add dependencies on observer.h for solib.c and
1380 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1382 (_initialize_breakpoint): Register
1383 disable_breakpoints_in_unloaded_shlib as an observer of the
1384 "solib unloaded" observation event.
1385 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1386 call decode_line_1 so unfound breakpoint errors are silent.
1387 * solib.c (update_solib_list): When a solib is discovered to have
1388 been unloaded by the program, notify all observers of the
1389 "solib unloaded" observation event.
1391 2004-09-01 Andrew Cagney <cagney@gnu.org>
1393 * frame.c: Include "objfiles.h".
1394 (inside_main_func): New function.
1395 (get_prev_frame): Use new inside_main_func.
1396 * Makefile.in (frame.o): Update dependencies.
1397 * defs.h (inside_main_func): Delete declaration.
1398 * blockframe.c (inside_main_func): Delete function.
1400 2004-08-31 Jim Blandy <jimb@redhat.com>
1402 * dwarf2read.c (is_vtable_name): New function, based on logic from
1403 read_structure_type, but passing the correct length to strncmp,
1404 and using 'sizeof' instead of 'strlen'.
1405 (read_structure_type): Call it.
1407 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1409 * config/powerpc/aix.mh: Add comment.
1411 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1413 * MAINTAINERS: Add self to Write-After-Approval.
1415 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1417 * MAINTAINERS: Add self to Write-After-Approval.
1419 2004-08-30 Andrew Cagney <cagney@gnu.org>
1421 Fix PR breakpoints/1757.
1422 * infrun.c (struct execution_control_state): Replace
1423 remove_breakpoints_on_following_step with
1424 step_after_step_resume_breakpoint.
1425 (init_execution_control_state): Update.
1426 (handle_inferior_event): For signals, when stepping off a
1427 breakpoint, set step_after_step_resume_breakpoint. When
1428 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1429 (keep_going): Delete code handling
1430 remove_breakpoints_on_following_step.
1432 2004-08-29 David Lecomber <david@streamline-computing.com>
1435 * language.h (enum array_ordering): New enum.
1436 * language.h (struct language_defn): New la_array_ordering
1438 * language.c (unknown_language_defn, auto_language_defn)
1439 (local_language_defn): Ditto.
1440 * ada-lang.c (ada_language_defn): Ditto.
1441 * c-lang.c (c_language_defn, cplus_language_defn)
1442 (asm_language_defn, minimal_language_defn): Ditto.
1443 * f-lang.c (f_language_defn): Ditto.
1444 * jv-lang.c (java_language_defn): Ditto.
1445 * m2-lang.c (f_language_defn): Ditto.
1446 * objc-lang.c (objc_language_defn): Ditto.
1447 * p-lang.c (pascal_language_defn): Ditto.
1448 * scm-lang.c (scm_language_defn): Ditto.
1449 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1450 oriented large to small in type structure.
1451 * dwarf2read.c (read_array_order): New function.
1452 (read_array_type): Use read_array_order to check row/column
1455 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1457 * target.c (target_resize_to_sections): Check
1458 current_target.to_sections for an old value when updating.
1460 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1462 * procfs.c (dbx_link_bpt_addr): New static global variable.
1463 (dbx_link_shadow_contents): New static global variable.
1464 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1465 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1467 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1468 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1470 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1471 after the inferior has been forked.
1472 (remove_dbx_link_breakpoint): New function.
1473 (dbx_link_addr): New function.
1474 (insert_dbx_link_bpt_in_file): New function.
1475 (insert_dbx_link_bpt_in_region): New function.
1476 (insert_dbx_link_breakpoint): New function.
1477 (proc_trace_syscalls_1): New function, extracted from
1478 proc_trace_syscalls.
1479 (proc_trace_syscalls): Replace extract code by call to
1480 proc_trace_syscalls_1.
1481 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1484 2004-08-25 Jim Blandy <jimb@redhat.com>
1486 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1488 2004-08-25 Andrew Cagney <cagney@gnu.org>
1490 * infrun.c (struct execution_control_state): Delete field
1491 "stepping_through_sigtramp".
1492 (init_execution_control_state): Do not set same.
1493 (context_switch): Do not pass same to save_infrun_state and
1495 * gdbthread.h (struct thread_info): Delete field
1496 stepping_through_sigtramp.
1497 (save_infrun_state, load_infrun_state): Delete parameter
1498 stepping_through_sigtramp.
1499 * thread.c (load_infrun_state, save_infrun_state): Update.
1501 * infrun.c: Re-indent. Move expression operators to the beginning
1502 of the line. Remove long disabled #if 0 code.
1504 2004-08-24 Andrew Cagney <cagney@gnu.org>
1506 * doublest.h (floatformat_ieee_quad): Rename
1507 floatformat_ia64_quad.
1508 * doublest.c (floatformat_ieee_quad): Rename
1509 floatformat_ia64_quad.
1510 (_initialize_doublest): Update.
1512 2004-08-24 Jim Blandy <jimb@redhat.com>
1514 * dwarf2expr.h (struct dwarf_expr_context): New members
1515 'num_pieces' and 'pieces', for returning the result of an
1516 expression that uses DW_OP_piece.
1517 (struct dwarf_expr_piece): New struct type.
1518 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1520 (free_dwarf_expr_context): Free pieces, if any.
1521 (add_piece): New function.
1522 (execute_stack_op): Implement DW_OP_piece.
1523 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1524 expression is a list of pieces, print an error message.
1525 (dwarf2_loc_desc_needs_frame): If the expression yields
1526 pieces, and any piece is in a register, then we need a frame.
1528 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1529 the stack until we've decided what sort of result the evaluation
1530 has produced. Use separate variables, with more specific names.
1532 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1534 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1535 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1536 (arm_netbsd_init_abi_common): Register them.
1538 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1540 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1542 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1543 safe_frame_unwind_memory instead of target_read_memory.
1545 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1547 (fetch_register, store_register): Remove prototypes.
1548 (child_resume): Reorganize code and comments such that it is
1549 grouped a bit more logically.
1550 (attach): Explicitly compare errno against 0.
1551 (detach): Likewise. Use perror_with_name instead of
1553 * Makefile.in (infptrace.o): Update dependencies.
1555 * ia64-linux-nat.c: Update copyright year.
1556 (fetch_debug_register, store_debug_register)
1557 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1559 * config/ia64/nm-linux.h: Update copyright year.
1560 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1562 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1563 from CORE_ADDR to struct frame_info *. Use
1564 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1565 (amd64_linux_sigtramp_p): Adjust for changed signature of
1566 and64_linux_sigtramp_start
1568 * gdb_ptrace.h: GNU/Linux.
1570 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1573 * infptrace.c: Include "gdb_assert.h".
1574 (PTRACE_XFER_TYPE): Remove define.
1575 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1576 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1578 (fetch_inferior_registers, store_inferior_registers): Remove
1579 redundant culry braces. Tweak comment. s/regno/regnum.
1580 * Makefile.in (infptrace.o): Update dependencies.
1582 * configure.in: Change test for return type of ptrace to default
1583 to `long' instead of `int'.
1584 * configure: Regenerate.
1586 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1588 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1590 * configure.in: Check for ttrace function.
1591 * configure, config.in: Regenerate.
1593 * gdb_ptrace.h: New file.
1594 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1596 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1597 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1598 (attach): Don't define PT_ATTACH.
1599 (detach): Don't define PT_DETACH.
1600 * Makefile.in (gdb_ptrace_h): New variable.
1601 (infptrace.o): Update dependencies.
1603 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1605 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1606 instead of `int' if not already defined.
1607 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1609 * infptrace.c (call_ptrace): Revert change that replaced
1610 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1612 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1614 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1617 * linux-nat.c (kill_inferior): Add missing third and fourth
1618 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1620 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1623 * proc-why.c (proc_prettyfprint_why): Fix format string.
1625 * solib-osf.c (osf_current_sos): Remove unsused label.
1627 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1629 * configure, config.in: Regenerate.
1630 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1631 <ncurses/ncurses.h>.
1633 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1634 * config/nm-nbsd.h: Update copyright year.
1635 (PTRACE_ARG3_TYPE): Remove define.
1637 * sparc-nat.c (fetch_inferior_registers)
1638 (store_inferior_registers, sparc_xfer_wcookie):
1639 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1641 * alphabsd-nat.c (fetch_inferior_registers):
1642 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1644 * amd64bsd-nat.c (fetch_inferior_registers)
1645 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1647 * armnbsd-nat.c: Update copyright year.
1648 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1649 (store_register, store_regs, store_fp_register, store_fp_regs):
1650 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1651 * hppabsd-nat.c (fetch_inferior_registers)
1652 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1654 * i386bsd-nat.c (fetch_inferior_registers)
1655 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1656 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1657 * m68kbsd-nat.c (fetch_inferior_registers)
1658 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1660 * m88kbsd-nat.c (fetch_inferior_registers)
1661 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1663 * mipsnbsd-nat.c: Update copyright year.
1664 (fetch_inferior_registers, store_inferior_registers):
1665 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1666 * ns32knbsd-nat.c: Update copyright year.
1667 (fetch_inferior_registers, store_inferior_registers):
1668 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1669 * ppcnbsd-nat.c (fetch_inferior_registers):
1670 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1672 * ppcobsd-nat.c (fetch_inferior_registers):
1673 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1675 * shnbsd-nat.c: Update copyright year.
1676 (fetch_inferior_registers, store_inferior_registers):
1677 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1678 * vaxbsd-nat.c (fetch_inferior_registers)
1679 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1682 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1684 * infptrace.c (call_ptrace, child_resume, attach, detach)
1685 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1686 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1687 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1690 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1692 * defs.h: Remove out-of-date comment.
1693 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1694 [!GETENV_PROVIDED] (getenv): Remove prototype.
1696 * standalone.c: Remove file.
1697 * Makefile.in (standalone.o): Remove dependency.
1699 * i386-linux-nat.c (dummy_sse_values): Remove function and
1701 (i386_linux_dr_get): Fix typo in comment.
1702 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1704 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1706 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1708 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1711 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1713 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1714 parenthesis in definition.
1715 * configure: Regenerated.
1717 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1719 * PROBLEMS: Mention build/1411.
1721 2004-08-09 Robert Millan <robertmh@gnu.org>
1723 Committed by Nathanael Nerode.
1724 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1725 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1727 2004-08-12 Andrew Cagney <cagney@gnu.org>
1729 * NEWS: Mention fixes in GDB 6.2.1.
1730 * PROBLEMS: Remove mention of mips-irix.
1732 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1734 * config/powerpc/xm-aix.h: Delete.
1735 * config/powerpc/aix.mh (MH_FILE): Remove.
1736 * config/powerpc/aix432.mh (MH_FILE): Remove.
1738 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1740 * config/powerpc/aix.mh: Remove obsolete comment.
1741 * config/powerpc/aix432.mh: Likewise.
1743 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1745 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1747 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1749 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1750 this file is now empty.
1751 * config/xm-aix4.h: Remove, this file is no longer included
1754 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1756 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1757 that file is now empty.
1758 (termdef): Remove prototype, function no longer used.
1760 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1762 * doc/gdbint.texinfo (Host Definition): Remove documentation
1763 for USE_O_NOCTTY, no longer used.
1764 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1765 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1767 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1769 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1770 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1771 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1773 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1775 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1776 instead of FIVE_ARG_PTRACE.
1778 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1779 (new_tty): Use O_NOCTTY unconditionally.
1781 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1783 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1784 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1787 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1789 * xcoff_symfile_finish: Replace last call to xmfree by call
1792 2004-08-10 Andrew Cagney <cagney@gnu.org>
1794 * main.c (captured_main): Delete call to init_malloc.
1795 * defs.h (init_malloc): Delete declaration.
1796 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1797 (init_malloc): Delete functions.
1799 * defs.h (xmfree): Delete.
1800 * utils.c (xmfree): Delete function.
1801 (xfree): Inline calls to xmfree and mfree.
1802 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1803 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1804 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1805 * somread.c (som_symfile_finish): Ditto.
1806 * objfiles.c (allocate_objfile, free_objfile):
1807 * nlmread.c (nlm_symfile_finish): Ditto.
1808 * hpread.c (hpread_symfile_finish): Ditto.
1809 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1810 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1811 * coffread.c (coff_symfile_finish): Ditto.
1813 * defs.h (xmcalloc): Delete declaration.
1814 * utils.c (xmcalloc): Delete.
1815 (xcalloc): Inline calls to xmcalloc and mcalloc.
1816 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1818 * symtab.c (create_demangled_names_hash): Ditto.
1820 * defs.h (xmrealloc): Delete.
1821 * utils.c (xmrealloc): Delete.
1822 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1823 * symmisc.c (extend_psymbol_list): Use xrealloc.
1824 * source.c (find_source_lines): Ditto.
1825 * hpread.c (hpread_lookup_type): Ditto.
1826 * dbxread.c (add_bincl_to_list): Ditto.
1828 * utils.c (xmmalloc): Delete.
1829 (xmalloc): Inline xmmalloc and mmalloc calls.
1830 (msavestring): Use xmalloc.
1831 * defs.h (xmmalloc): Delete declaration.
1832 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1834 * symmisc.c (extend_psymbol_list): Ditto.
1835 * symfile.c (init_psymbol_list): Ditto.
1836 * source.c (find_source_lines): Ditto.
1837 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1838 * elfread.c (elf_symtab_read): Ditto.
1839 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1840 * coffread.c (coff_symfile_init): Ditto.
1842 2004-08-10 David Carlton <carlton@bactrian.org>
1844 * MAINTAINERS: Remove David Carlton from c++ testsuite
1847 2004-08-10 Jerome Guitton <guitton@gnat.com>
1849 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1850 print a line feed before the prompt.
1852 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1854 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1856 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1858 General cleanup of the AIX xm include file:
1859 * config/xm-aix4.h (fd_set): Remove undefine.
1860 Remove include of <sys/select.h>.
1861 (HAVE_TERMIO): Remove define.
1863 (NULL): Remove redefine.
1864 (alloca): Remove #pragma.
1865 (vfork): Remove define.
1867 (SIGWINCH_HANDLER): Remove.
1868 (SIGWINCH_HANDLER_BODY): Remove.
1870 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1872 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1873 GDB_OSABI_OPENBSD_ELF.
1875 2004-08-07 Robert Millan <robertmh@gnu.org>
1877 * bsd-kvm.c: Check for nlist.h before including it.
1879 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1881 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1882 sigcontext' offset consistency checks for ancient BSD.
1884 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1886 * configure.in: Check for <sys/types.h>. Check return and
1887 argument types of ptrace.
1888 * configure, config.in: Regenerate.
1890 2004-08-09 Jim Blandy <jimb@redhat.com>
1892 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1893 rs6000_register_sim_regno): Doc fixes.
1895 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1897 * mips-tdep.c: Include "floatformat.h".
1898 (n32n64_floatformat_always_valid): New function.
1899 (floatformat_n32n64_long_double_big): New constant.
1900 (mips_gdbarch_init): Set size and format of long double
1901 for N32 and N64 ABIs.
1902 * Makefile.in (mips-tdep.o): Update dependencies.
1904 2004-08-08 Andrew Cagney <cagney@gnu.org>
1906 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1907 print. Improve script's error messages.
1908 * gdbarch.h: Re-generate.
1910 * gdbarch.sh (pformat): New function.
1911 (float_format, double_format, long_double_format): List with bit
1912 members. Use pformat when printing.
1913 * gdbarch.c, gdbarch.h: Re-generate.
1915 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1917 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1918 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1919 (ppcnbsd_supply_pcb): New function.
1920 (_initialize_ppcnbsd_nat): New prototype and function.
1921 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1922 (LOADLIBES): New variable.
1923 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1925 2004-08-08 Andrew Cagney <cagney@gnu.org>
1927 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1928 (builtin_type_ieee_double, builtin_type_ia64_quad)
1929 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1930 BE/LE floating-point types.
1931 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1932 (builtin_type_ieee_double, builtin_type_ia64_quad)
1933 (builtin_type_ia64_spill): Declare.
1934 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1935 (floatformat_ieee_double, floatformat_arm_ext)
1936 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1937 of LE/BE floatformats.
1938 * doublest.h: (struct floatformat, floatformat_ieee_single)
1939 (floatformat_ieee_double, floatformat_arm_ext)
1940 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1942 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1944 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1946 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1947 instead of regcache_raw_supply when storing the registers.
1949 * i386gnu-nat.c: Update copyright year.
1950 (gnu_store_registers): Don't use deprecated_registers and
1951 deprecated_registers_valid. Use regcache_valid_p and
1952 regcache_raw_supply instead.
1954 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1957 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1958 variables. Incapitalized "process".
1960 * configure.in: Add cursesX to the list of possible curses libs.
1961 Add cursesX.h to the list of possible curses headers.
1962 * configure, config.in: Regenerate.
1964 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1966 * configure.in: Test for struct lwp in <sys/lwp.h>.
1967 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1968 the offset of l_addr in struct lwp.
1970 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1972 * bsd-kvm.c: Include "gdbcore.h"
1973 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1975 2004-08-07 Andrew Cagney <cagney@gnu.org>
1977 * gdbtypes.c (build_flt, build_complex): New functions.
1978 (gdbtypes_post_init): Use.
1980 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1982 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1983 through to builtin_type_uint128.
1985 * c-exp.y: Use builtin_type function to obtain builtin types.
1987 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1989 * gdbtypes.c (gdbtypes_post_init): Update.
1990 (build_gdbtypes): Move initialization of builtin_type_int0
1991 through to builtin_type_uint128 from here ...
1992 (_initialize_gdbtypes): ... to here.
1993 * d10v-tdep.c (d10v_register_type): Update.
1995 * doublest.c: Update copyright.
1996 (floatformat_from_length): Call error when floatformat is NULL.
1997 (extract_floating_by_length): Remove NULL fmt check.
1998 (store_floating_by_length): Ditto.
2000 2004-08-07 Andrew Cagney <cagney@gnu.org>
2002 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2003 that the register is valid.
2005 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2007 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2008 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2009 struct frame_info *. Use safe_frame_unwind_memory instead of
2010 deprecated_read_memory_nobpt.
2011 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2012 changed signature of i386_linux_sigtramp_start and
2013 i386_linux_rt_sigtramp_start.
2015 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2016 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2017 instead of deprecated_read_memory_nobpt.
2018 (i386nbsd_sigtramp_p): Adjust for changed signature of
2019 i386nbsd_sigtramp_offset.
2021 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2022 safe_frame_unwind_memory instead of target_read_memory.
2024 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2026 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2027 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2028 (_initialize_kernel_u_addr): Remove prototype and function.
2029 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2031 * xcoffread.c: Likewise.
2033 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2035 * vax-nat.c: New file.
2036 * vaxbsd-nat.c: Tweak comment.
2037 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2039 (vax-nat.o): New dependency.
2040 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2041 (vax-*-ultrix2*): Remove.
2042 * config/vax/vax.mh: New file.
2043 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2044 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2045 (vax_register_u_addr): New prototype.
2046 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2047 * config/vax/vaxult2.mh: Remove file.
2048 * config/vax/vaxult.mh: Remove file.
2049 * config/vax/vaxbsd.mh: Remove file.
2050 * config/vax/vax.mt (TM_FILE): Remove.
2051 * config/vax/tm-vaxbsd.h: Remove file.
2053 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2055 * aix-thread.c (get_signaled_thread): New function.
2056 (iter_trap): Delete, no longer used.
2057 (iter_tid): New function.
2058 (pd_update): Find the thread that received the SIGTRAP signal
2059 by first locating the kernel thread, and then finding its
2062 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2064 * lin-lwp.c (child_wait): Continue inferior after processing
2065 PTRACE_EVENT_CLONE event.
2067 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2069 * MAINTAINERS: Add self to Write-After-Approval.
2071 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2073 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2074 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2076 2004-08-05 Andrew Cagney <cagney@gnu.org>
2078 * config/xm-sysv4.h: Delete file.
2079 * config/mips/xm-irix5.h: Delete file.
2080 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2081 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2082 * config/ia64/xm-aix.h: Delete file.
2083 * config/ia64/aix.mh (XM_FILE): Delete.
2084 * config/pa/xm-hppah.h: Delete file.
2085 * config/pa/hpux11w.mh (XM_FILE): Delete.
2086 * config/pa/hpux11.mh (XM_FILE): Delete.
2087 * config/pa/hpux1020.mh (XM_FILE): Delete.
2088 * config/pa/hppahpux.mh (XM_FILE): Delete.
2090 * config/alpha/xm-alphalinux.h: Delete file.
2091 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2092 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2093 * config/alpha/xm-alphaosf.h: Delete file.
2094 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2095 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2096 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2097 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2099 * config/i386/xm-i386v.h: Delete file.
2100 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2101 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2102 * config/i386/xm-i386sco.h: Delete file.
2103 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2104 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2105 * config/i386/xm-i386v4.h: Delete file.
2106 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2107 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2108 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2109 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2111 * config/vax/xm-vax.h: Delete file.
2112 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2113 * config/vax/xm-vaxult2.h: Delete file.
2114 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2115 * config/vax/vaxult2.mh (XM_FILE): Delete.
2116 * config/vax/xm-vaxult.h: Delete file.
2117 * config/vax/vaxult.mh (XM_FILE): Delete.
2118 * config/vax/xm-vaxbsd.h: Delete file.
2119 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2121 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2122 * gdbarch.h, gdbarch.c: Re-generate.
2123 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2124 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2125 * frame.h: Delete deprecated_read_fp from comments.
2126 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2127 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2129 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2131 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2132 trampoline in OpenBSD 3.5-current.
2134 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2137 * Makefile.in: Remove embedded page breaks.
2139 2004-08-04 Jim Blandy <jimb@redhat.com>
2141 * regcache.c (regcache_raw_read): Assert that, after calling
2142 target_fetch_registers, the register we're reading is cached.
2144 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2145 a call to 'internal_error', with a more helpful error message.
2146 * rs6000-tdep.c (e500_pseudo_register_read,
2147 e500_pseudo_register_write, rs6000_store_return_value): Same.
2149 2004-08-04 Andrew Cagney <cagney@gnu.org>
2151 * Makefile.in: Update dependencies.
2153 2004-08-04 Jim Blandy <jimb@redhat.com>
2155 Change the layout of the PowerPC E500 raw register cache to allow
2156 the lower 32-bit halves of the GPRS to be their own raw registers,
2157 not pseudoregisters.
2158 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2159 add ppc_ev0_upper_regnum flag.
2160 * rs6000-tdep.c: #include "reggroups.h".
2161 (spe_register_p): Recognize the ev upper half registers as SPE
2163 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2165 (e500_move_ev_register): New function.
2166 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2167 vector registers are the pseudo-registers now, formed by splicing
2168 together the gprs and the upper-half registers.
2169 (e500_register_reggroup_p): New function.
2171 (P8, A4): New macro.
2172 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2173 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2175 (registers_e500): Rearrange register set so that the raw register
2176 set contains 32-bit GPRs and upper-half registers, and the SPE
2177 vector registers become pseudo-registers.
2178 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2179 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2180 register numbers are now the same for the E500 as they are for
2181 other PowerPC variants. Register e500_register_reggroup_p as the
2182 register group function for the E500.
2183 * Makefile.in (rs6000-tdep.o): Update dependencies.
2185 Adapt PPC E500 native support to the new raw regcache layout.
2186 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2187 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2188 (fetch_spe_register, store_spe_register): Handle fetching/storing
2189 all the SPE registers at once, if regno == -1. These now take
2190 over the job of fetch_spe_registers and store_spe_registers.
2191 (fetch_spe_registers, store_spe_registers): Deleted.
2192 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2193 unconditionally; they're always raw. Fetch/store SPE upper half
2194 registers, if present, instead of ev registers.
2195 (fetch_register, store_register): Remove sanity checks: gprs are
2196 never pseudo-registers now, so we never need to even mention any
2197 registers that are ever pseudoregisters.
2199 Use a fixed register numbering when communicating with the PowerPC
2201 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2202 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2203 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2205 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2206 init_sim_regno_table.
2207 * Makefile.in (gdb_sim_ppc_h): New variable.
2208 (rs6000-tdep.o): Update dependencies.
2210 2004-08-02 Andrew Cagney <cagney@gnu.org>
2212 * cris-tdep.c (cris_register_size): Restore function, still used
2215 * gdbarch.sh (deprecated_target_read_fp)
2216 (deprecated_frame_locals_address, deprecated_frame_args_address)
2217 (deprecated_frame_chain_valid, deprecated_frame_chain)
2218 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2219 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2220 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2221 * gdbarch.h, gdbarch.c: Re-generate.
2222 * regcache.c (deprecated_read_fp): Do not call
2223 DEPRECATED_TARGET_READ_FP_P.
2224 * infcmd.c (default_print_registers_info): Do not call
2225 DEPRECATED_DO_REGISTERS_INFO.
2226 * frame-base.c (default_frame_locals_address): Do not call
2227 DEPRECATED_FRAME_LOCALS_ADDRESS.
2228 (default_frame_args_address): Do not call
2229 DEPRECATED_FRAME_ARGS_ADDRESS.
2231 * gdbarch.sh (deprecated_register_raw_size)
2232 (deprecated_register_virtual_size:int): Delete.
2233 * gdbarch.h, gdbarch.c: Re-generate.
2234 * cris-tdep.c (cris_register_size): Delete.
2235 (cris_gdbarch_init): Update.
2236 * alpha-tdep.c (alpha_register_raw_size)
2237 (alpha_register_virtual_size): Delete.
2238 (alpha_gdbarch_init): Update.
2240 * gdbarch.sh (deprecated_register_virtual_type)
2241 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2242 (deprecated_dummy_write_sp): Delete.
2243 * gdbarch.h, gdbarch.c: Re-generate.
2245 * gdbarch.sh (deprecated_register_bytes): Delete.
2246 * gdbarch.h, gdbarch.c: Re-generate.
2247 * regcache.c (deprecated_register_bytes): New function.
2248 * regcache.h (deprecated_register_bytes): Declare.
2249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2250 * v850-tdep.c (v850_gdbarch_init): Update.
2251 * sh64-tdep.c (sh64_gdbarch_init): Update.
2252 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2253 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2254 * mcore-tdep.c (mcore_gdbarch_init): Update.
2255 * cris-tdep.c (cris_gdbarch_init): Update.
2256 * arm-tdep.c (arm_gdbarch_init): Update.
2257 * remote.c (init_remote_state): Update.
2258 * remote-vx.c (vx_prepare_to_store): Update.
2259 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2260 * irix5-nat.c (fetch_core_registers): Update.
2261 * cris-tdep.c (cris_register_bytes_ok): Update.
2262 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2264 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2265 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2266 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2267 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2268 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2269 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2270 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2271 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2272 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2273 with mips_insn16 and mips_insn32.
2275 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2276 * rs6000-tdep.c (rs6000_push_dummy_call)
2277 (rs6000_extract_return_value): Use register_size.
2278 * xstormy16-tdep.c (xstormy16_get_saved_register)
2279 (xstormy16_extract_return_value): Ditto.
2280 * valops.c (value_assign): Ditto.
2281 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2282 * v850-tdep.c (v850_extract_return_value): Ditto.
2283 * tracepoint.c (collect_symbol): Ditto.
2284 * target.c (debug_print_register): Ditto.
2285 * stack.c (frame_info): Ditto.
2286 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2287 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2288 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2289 (store_register_using_P): Ditto.
2290 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2291 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2292 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2293 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2294 * regcache.c (deprecated_read_register_bytes)
2295 (deprecated_write_register_bytes, read_register)
2296 (write_register): Ditto.
2297 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2298 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2299 * monitor.c (monitor_supply_register, monitor_fetch_register)
2300 (monitor_store_register): Ditto.
2301 * mn10300-tdep.c (mn10300_pop_frame_regular)
2302 (mn10300_print_register): Ditto.
2303 * mipsv4-nat.c (fill_fpregset): Ditto.
2304 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2305 (mips64_fill_fpregset): Ditto.
2306 * mi/mi-main.c (register_changed_p, get_register)
2307 (mi_cmd_data_write_register_values): Ditto.
2308 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2309 * irix5-nat.c (fill_gregset, fetch_core_registers):
2310 * infrun.c (write_inferior_status_register): Ditto.
2311 * infptrace.c (fetch_register, store_register): Ditto.
2312 * infcmd.c (default_print_registers_info): Ditto.
2313 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2314 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2315 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2316 * hpux-thread.c (hpux_thread_fetch_registers)
2317 (hpux_thread_store_registers): Ditto.
2318 * hppah-nat.c (store_inferior_registers, fetch_register):
2319 * findvar.c (value_from_register): Ditto.
2320 * dve3900-rom.c (fetch_bitmapped_register):
2321 * cris-tdep.c (cris_gdbarch_init): Ditto.
2322 * alpha-tdep.h: Ditto.
2323 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2325 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2326 DEPRECATED_REGISTER_RAW_SIZE from comments.
2327 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2328 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2329 DEPRECATED_REGISTER_RAW_SIZE.
2330 * findvar.c (value_of_register): Simplify by assuming that the
2331 registers raw and virtual sizes are identical.
2332 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2334 * arch-utils.c (generic_register_size): Simplify by assuming
2337 * regcache.c (legacy_read_register_gen, real_register)
2338 (legacy_write_register_gen): Delete, not used.
2340 * regcache.c (struct regcache_descr): Delete legacy_p.
2341 (init_legacy_regcache_descr): Delete function.
2342 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2343 Do not use deprecated register functions.
2344 (regcache_raw_read, deprecated_write_register_gen):
2345 (deprecated_read_register_gen, regcache_raw_write): Delete code
2346 predicated on legacy_p.
2347 (register_size): Delete check against register raw size.
2349 * cris-tdep.c (cris_register_type): Replace
2350 cris_register_virtual_type.
2351 (cris_gdbarch_init): Update, set register_type.
2353 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2354 * gdbarch.h, gdbarch.c: Re-generate.
2355 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2356 (arm_gdbarch_init) Do not set frameless function invocation.
2357 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2358 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2359 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2360 (frv_gdbarch_init): Do not set frameless function invocation.
2361 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2362 * sh-tdep.c (sh_gdbarch_init): Ditto.
2363 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2364 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2365 * avr-tdep.c (avr_gdbarch_init): Ditto.
2367 * blockframe.c (legacy_frame_chain_valid): Delete function.
2369 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2370 and pc. Update comments.
2371 (pc_in_dummy_frame): Delete function.
2372 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2374 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2375 call_hi, top and pc, use the id.
2376 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2378 * dummy-frame.c: Include "gdb_string.h".
2379 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2380 (generic_save_dummy_frame_tos): Delete.
2381 (dummy_frame_push): New function, replaces above.
2382 * dummy-frame.h: Update copyright.
2383 (dummy_frame_push): Declare.
2384 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2385 (generic_save_call_dummy_addr): Delete declarations.
2386 * infcall.c: Include "dummy-frame.h".
2387 (call_function_by_hand): Add locals caller_regcache,
2388 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2389 with call to frame_save_as_regcache plus cleanup. Delete calls to
2390 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2391 Move clear_proceed_status to just before the resume, add call to
2392 dummy_frame_push (discard cleanup).
2393 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2394 (dummy-frame.o): Add $(gdb_string_h).
2396 2004-08-01 Andrew Cagney <cagney@gnu.org>
2398 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2399 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2400 * dummy-frame.c (find_dummy_frame): Delete.
2401 (struct dummy_frame_cache, dummy_frame_sniffer)
2402 (dummy_frame_prev_register, dummy_frame_this_id)
2403 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2404 frame unwinder using a dummy_frame_cache.
2406 2004-08-01 Andrew Cagney <cagney@gnu.org>
2408 * frame.h (frame_save_as_regcache): Declare.
2409 * frame.c (frame_save_as_regcache): New function.
2410 (do_frame_read_register): Replace do_frame_unwind_register.
2411 (frame_pop): Use frame_save_as_regcache.
2412 * dummy-frame.c (generic_push_dummy_frame): Use
2413 frame_save_as_regcache.
2415 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2417 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2418 file as included until we record the first line in the linetable.
2420 2004-08-01 Andrew Cagney <cagney@gnu.org>
2422 * frame.h (deprecated_pop_dummy_frame)
2423 (deprecated_read_register_dummy)
2424 (deprecated_generic_find_dummy_frame): Delete.
2425 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2426 (deprecated_read_register_dummy)
2427 (deprecated_find_dummy_frame_regcache)
2428 (discard_innermost_dummy)
2429 (deprecated_pop_dummy_frame): Delete.
2430 (dummy_frame_this_id): Simplify.
2431 (struct dummy_frame): Delete "fp" and "sp".
2432 (find_dummy_frame): Simplify.
2433 (generic_push_dummy_frame): Do not set "fp" or "sp".
2434 (fprint_dummy_frames): Do not print "fp" and "sp"
2436 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2438 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2439 (struct i386_insn): New structure.
2440 (i386_match_insn): New function.
2441 (i386_frame_setup_skip_insns): New variable.
2442 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2443 array i386_frame_setup_insns of instructions that should be
2444 skipped inside the frame setup sequence.
2446 2004-08-01 Andrew Cagney <cagney@gnu.org>
2448 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2449 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2450 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2451 * stack.c (frame_info): Delete references to
2452 DEPRECATED_FRAME_INIT_SAVED_REGS and
2453 deprecated_get_frame_saved_regs.
2454 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2455 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2456 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2457 (frame_unwind_register_signed)
2458 (frame_unwind_register_unsigned)
2459 (frame_unwind_unsigned_register): Use register_size.
2460 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2461 (deprecated_frame_xmalloc_with_cleanup)
2462 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2463 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2465 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2466 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2467 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2468 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2470 * infcall.c (call_function_by_hand): Do not use
2471 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2472 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2473 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2474 DEPRECATED_STACK_ALIGN.
2476 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2478 Committed by Andrew Cagney.
2479 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2481 2004-08-01 Andrew Cagney <cagney@gnu.org>
2483 * mips-tdep.c (mips16_frame_cache)
2484 (mips16_frame_this_id, mips16_frame_prev_register)
2485 (mips16_frame_unwind, mips16_frame_sniffer)
2486 (mips16_frame_base_address, mips16_frame_base)
2487 (mips16_frame_base_sniffer, mips32_frame_cache)
2488 (mips32_frame_this_id, mips32_frame_prev_register)
2489 (mips32_frame_unwind, mips32_frame_sniffer)
2490 (mips32_frame_base_address, mips32_frame_base)
2491 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2492 separate heuristic mips16 and mips32 unwinders.
2493 (mips_stub_frame_cache, mips_stub_frame_this_id)
2494 (mips_stub_frame_prev_register)
2495 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2496 (mips_stub_frame_base_address, mips_stub_frame_base)
2497 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2498 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2499 match true mdebug frames.
2500 (non_heuristic_proc_desc): Add forward declaration.
2502 2004-08-01 Andrew Cagney <cagney@gnu.org>
2504 * config/mips/tm-irix6.h: Delete file.
2505 * config/mips/tm-irix5.h: Delete file.
2506 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2507 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2509 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2510 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2511 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2512 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2513 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2514 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2515 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2516 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2517 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2518 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2519 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2520 (TARGET_SIGNAL_RAW_VALUES): Delete.
2521 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2523 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2524 (TARGET_HW_WATCH_LIMIT): Delete.
2525 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2526 * minimon.h: Delete file.
2528 * trad-frame.c (trad_frame_get_this_base)
2529 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2531 * trad-frame.h (trad_frame_set_this_base)
2532 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2534 2004-07-31 Andrew Cagney <cagney@gnu.org>
2536 * trad-frame.c (trad_frame_get_prev_register): Rename
2537 trad_frame_get_prev_register.
2538 * vax-tdep.c (vax_frame_prev_register): Update.
2539 * trad-frame.h: Update.
2540 * trad-frame.c (trad_frame_get_register): Update.
2541 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2542 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2544 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2545 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2547 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2549 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2551 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2553 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2555 * s390-tdep.c (s390_frame_prev_register)
2556 (s390_stub_frame_prev_register)
2557 (s390_sigtramp_frame_prev_register): Update.
2558 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2559 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2560 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2561 * m88k-tdep.c (m88k_frame_prev_register)
2562 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2563 * m32r-tdep.c (m32r_frame_prev_register): Update.
2564 * hppa-tdep.c (hppa_frame_prev_register_helper)
2565 * frv-tdep.c (frv_frame_prev_register): Update.
2566 * d10v-tdep.c (d10v_frame_prev_register): Update.
2567 * cris-tdep.c (cris_frame_prev_register): Update.
2568 * avr-tdep.c (avr_frame_prev_register): Update.
2569 * arm-tdep.c (arm_prologue_prev_register)
2570 (arm_sigtramp_prev_register): Update.
2572 2004-07-31 Andrew Cagney <cagney@gnu.org>
2574 * frame.h (legacy_saved_regs_unwind)
2575 (legacy_frame_chain_valid, legacy_frame_p)
2576 (enum frame_type): Delete UNKNOWN_FRAME.
2577 * dummy-frame.c (dummy_frame_this_id): Simplify.
2578 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2579 * frame.c (struct frame_info): Delete the field "type".
2580 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2581 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2582 (legacy_saved_regs_unwind, legacy_frame_p)
2583 (frame_type_from_pc): Delete.
2584 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2585 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2587 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2589 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2592 * mips-nat.c: Remove file.
2593 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2594 (mips-nat.o): Remove dependency.
2596 * infptrace.c: Update copyright year.
2597 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2598 explicitly setting the buffer to all zeroes.
2600 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2601 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2603 2004-07-30 Andrew Cagney <cagney@gnu.org>
2605 * GDB 6.2 released from gdb_6_2-branch.
2607 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2609 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2611 * exec.c (exec_file_attach):
2612 * nto-tdep.c (nto_find_and_open_solib):
2613 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2614 * solib.c (solib_open):
2615 * somsolib.c (som_solib_sizeof_symbol_table):
2616 * source.c (is_regular_file, openp, open_source_file):
2617 * symfile.c (symfile_bfd_open):
2618 * wince.c (upload_to_device): Differentiate between the search for
2619 binary and source files.
2621 2004-07-30 Andrew Cagney <cagney@gnu.org>
2623 * complaints.c (_initialize_complaints): Pass NULL to
2624 add_setshow_zinteger_cmd for help_doc.
2625 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2627 2004-07-30 Andrew Cagney <cagney@gnu.org>
2630 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2631 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2632 $(PACKAGE).pot and update-po.
2633 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2634 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2635 (update-po): New rules.
2636 (localedir): Define using autoconf.
2637 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2638 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2639 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2640 * configure.in: Generate CATALOGS and LINGUAS from contents of
2641 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2642 * configure: Re-generate.
2643 * po/gdbtext: New file
2645 2004-07-30 Jerome Guitton <guitton@gnat.com>
2647 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2650 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2652 * dwarf2read.c (read_file_scope): Set producer if attribute
2654 (struct dwarf2_cu): Added new member producer.
2656 2004-07-30 Jerome Guitton <guitton@gnat.com>
2658 * inflow.c (kill_command): release file handles in BFD.
2659 * exec.c (exec_file_attach): Ditto.
2660 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2662 2004-07-29 Andrew Cagney <cagney@gnu.org>
2664 * PROBLEMS (mips-irix): Note that it is broken.
2666 2004-07-29 Andrew Cagney <cagney@gnu.org>
2668 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2669 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2671 * config/xm-nbsd.h: Delete file.
2672 * config/arm/xm-nbsd.h: Delete file.
2673 * config/i386/xm-nbsd.h: Delete file.
2674 * config/ns32k/xm-nbsd.h: Delete file.
2675 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2676 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2677 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2678 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2679 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2681 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2682 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2683 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2684 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2685 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2686 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2688 * config/powerpc/xm-linux.h: Delete empty file.
2689 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2690 * config/powerpc/linux.mh (XM_FILE): Delete.
2691 * config/m68k/xm-linux.h: Delete empty file.
2692 * config/m68k/linux.mh (XM_FILE): Delete.
2693 * config/ia64/xm-linux.h: Delete empty file.
2694 * config/ia64/linux.mh (XM_FILE): Delete.
2695 * config/arm/xm-linux.h: Delete empty file.
2696 * config/arm/linux.mh (XM_FILE): Delete.
2698 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2699 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2700 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2701 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2702 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2703 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2704 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2705 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2707 * config/m68k/xm-m68k.h: Delete file.
2708 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2710 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2711 * config/pa/xm-linux.h: Delete empty file.
2712 * config/pa/linux.mh (XM_FILE): Delete.
2713 * config/i386/xm-i386.h: Delete empty file.
2714 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2716 * config/i386/obsdaout.mh (XM_FILE): Delete.
2717 * config/i386/obsd64.mh (XM_FILE): Delete.
2718 * config/i386/fbsd64.mh (XM_FILE): Delete.
2719 * config/i386/nto.mh (XM_FILE): Delete.
2720 * config/i386/obsd.mh (XM_FILE): Delete.
2721 * config/i386/linux64.mh (XM_FILE): Delete.
2722 * config/i386/linux.mh (XM_FILE): Delete.
2723 * config/i386/i386sol2.mh (XM_FILE): Delete.
2724 * config/i386/i386gnu.mh (XM_FILE): Delete.
2725 * config/i386/fbsd.mh (XM_FILE): Delete.
2726 * config/i386/nbsd64.mh (XM_FILE): Delete.
2728 2004-07-29 Andrew Cagney <cagney@gnu.org>
2730 * config/pa/xm-linux.h: Do not include "floatformat.h".
2731 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2732 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2733 * config/i386/xm-i386.h: Do not include "floatformat.h".
2734 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2735 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2736 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2737 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2738 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2739 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2740 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2741 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2742 * configure, config.in: Regenerate.
2743 * configure.host (gdb_host_float_format, gdb_host_double_format)
2744 (gdb_host_long_double_format): Set according to the host.
2746 2004-07-29 Andrew Cagney <cagney@gnu.org>
2748 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2750 2004-07-28 Andrew Cagney <cagney@gnu.org>
2752 * PROBLEMS: Mention threads/1650.
2753 * NEWS: Mention the NPTL fix.
2755 2004-07-28 Andrew Cagney <cagney@gnu.org>
2757 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2758 (add_setshow_cmd_full): Make static.
2759 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2760 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2761 * cli/cli-decode.c (add_setshow_filename_cmd)
2762 (add_setshow_string_cmd): New functions.
2763 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2764 * mips-tdep.c (_initialize_mips_tdep): Update.
2765 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2766 * cli/cli-logging.c (_initialize_cli_logging): Update.
2767 * complaints.c (_initialize_complaints): Update.
2768 * remote.c (_initialize_remote): Update.
2770 2004-07-28 Andrew Cagney <cagney@gnu.org>
2772 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2773 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2774 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2775 print parameters. Make string parameters constant.
2776 * command.h: Update. Update copyright.
2777 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2778 * observer.c (_initialize_observer): Ditto.
2779 * frame.c (_initialize_frame): Ditto.
2780 * complaints.c (_initialize_complaints): Ditto.
2781 * maint.c (_initialize_maint_cmds): Ditto.
2782 * target.c (initialize_targets): Ditto.
2783 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2784 * infcall.c (_initialize_infcall): Ditto.
2785 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2786 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2787 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2788 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2789 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2791 2004-07-28 Andrew Cagney <cagney@gnu.org>
2793 * gdbtypes.c (lookup_primitive_typename): Delete function.
2794 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2795 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2796 * gdbtypes.c (lookup_typename): Ditto.
2797 * f-exp.y (yylex): Ditto.
2798 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2800 * scm-lang.c (c_builtin_types): Delete extern declaration.
2801 (scm_language_defn): Replace
2802 string_char_type and primitive_type_vector with
2803 la_language_arch_info.
2804 * jv-lang.c (java_language_defn): Replace
2805 string_char_type and primitive_type_vector with
2806 la_language_arch_info.
2807 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2808 c_builtin_types in comment.
2809 * c-lang.h (struct language_arch_info): Declare opaque.
2810 (c_language_arch_info): Declare.
2811 (c_builtin_types): Delete declaration.
2812 * c-lang.c (c_language_arch_info): Set string_char_type to
2813 builtin_char, not builtin_true_char. Make global.
2814 (c_builtin_types): Delete array.
2815 (asm_language_defn, minimal_language_defn): Replace
2816 string_char_type and primitive_type_vector with
2817 la_language_arch_info.
2819 2004-07-28 Andrew Cagney <cagney@gnu.org>
2821 * gdbtypes.h (struct builtin_type): Rename true_char to
2823 * gdbtypes.c (gdbtypes_post_init): Update.
2824 * c-lang.c (arch_info): New function.
2825 (enum c_primitive_types): New enum.
2826 (c_language_defn): Instead of string_char_type and
2827 primitive_type_vector set la_language_arch_info.
2829 2004-07-28 Andrew Cagney <cagney@gnu.org>
2831 * language.h (struct language_arch_info): Fix typo
2832 s/primative/primitive/.
2833 * gdbtypes.c (lookup_primitive_typename): Ditto.
2834 * language.c (language_lookup_primitive_type_by_name)
2835 (unknown_language_arch_info): Ditto.
2837 2004-07-27 Andrew Cagney <cagney@gnu.org>
2839 * defs.h (enum language): Add nr_languages.
2840 * language.h (struct language_arch_info): Define.
2841 (struct language_defn): Add la_language_arch_info.
2842 (language_lookup_primative_type_by_name): Declare.
2843 (language_string_char_type): Declare.
2844 * language.c (_initialize_language, language_gdbarch_post_init)
2845 (struct language_gdbarch, language_gdbarch_data): Implement
2846 per-architecture language information.
2847 (unknown_language_arch_info, language_string_char_type)
2848 (language_lookup_primative_type_by_name): New functions.
2849 (unknown_language_defn, auto_language_defn)
2850 (local_language_defn): Set la_language_arch_info to
2851 unknown_language_arch_info.
2852 (unknown_builtin_types): Delete.
2853 * gdbtypes.c (lookup_primitive_typename): Use
2854 language_lookup_primative_type_by_name.
2855 (create_string_type): Use language_string_char_type.
2856 * values.c (value_from_string): Use language_string_char_type.
2857 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2858 * p-lang.c (pascal_language_defn): Ditto.
2859 * m2-lang.c (m2_language_defn): Ditto.
2860 * jv-lang.c (java_language_defn): Ditto.
2861 * objc-lang.c (objc_language_defn): Ditto.
2862 * f-lang.c (f_language_defn): Ditto.
2863 * c-lang.c (c_language_defn, cplus_language_defn)
2864 (asm_language_defn, minimal_language_defn): Ditto.
2866 2004-07-27 Andrew Cagney <cagney@gnu.org>
2868 * gdbtypes.h (struct builtin_type): Declare.
2869 (builtin_type): Declare.
2870 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2871 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2872 (gdbtypes_post_init): New function.
2873 (builtin_type): New function.
2875 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2877 * remote-m32r-sdi.c: Fix breakpoint bug.
2878 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2879 recv_char_data, recv_long_data): New functions to replace communication
2882 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2884 Document PR threads/1650.
2885 * PROBLEMS (Threads): Document problem with many threads
2887 2004-07-26 Andrew Cagney <cagney@gnu.org>
2889 * gdb-mi.el: Move from here ...
2890 * mi/gdb-mi.el: ... to here.
2892 2004-07-26 Andrew Cagney <cagney@gnu.org>
2894 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2895 * main.c (captured_main): When in batch mode always detach.
2897 2004-07-26 Andrew Cagney <cagney@gnu.org>
2899 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2900 and h8300 as broken.
2901 * NEWS: END-OF-LIFE frame compatibility module.
2902 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2905 2004-07-26 Andrew Cagney <cagney@gnu.org>
2907 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2908 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2909 * wince.c (_initialize_wince): Update.
2910 * win32-nat.c (_initialize_win32_nat): Update.
2911 * varobj.c (_initialize_varobj): Update.
2912 * valops.c (_initialize_valops): Update.
2913 * utils.c (initialize_utils, initialize_utils): Update.
2914 * tui/tui-win.c (_initialize_tui_win): Update.
2915 * top.c (init_main): Update.
2916 * symfile.c (_initialize_symfile): Update.
2917 * source.c (_initialize_source): Update.
2918 * somsolib.c (_initialize_som_solib): Update.
2919 * solib.c (_initialize_solib): Update.
2920 * solib-frv.c (_initialize_frv_solib): Update.
2921 * serial.c (_initialize_serial): Update.
2922 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2923 * remote.c (_initialize_remote, _initialize_remote): Update.
2924 * remote-vx.c (_initialize_vx): Update.
2925 * remote-utils.c (_initialize_sr_support): Update.
2926 * remote-sds.c (_initialize_remote_sds): Update.
2927 * remote-mips.c (_initialize_remote_mips): Update.
2928 * remote-e7000.c (_initialize_remote_e7000): Update.
2929 * proc-api.c (_initialize_proc_api): Update.
2930 * printcmd.c: Update.
2931 * parse.c (_initialize_parse): Update.
2932 * pa64solib.c (_initialize_pa64_solib): Update.
2933 * p-valprint.c (_initialize_pascal_valprint): Update.
2934 * monitor.c (_initialize_remote_monitors): Update.
2935 * mips-tdep.c (_initialize_mips_tdep): Update.
2936 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2937 * maint.c (_initialize_maint_cmds): Update.
2938 * lin-lwp.c (_initialize_lin_lwp): Update.
2939 * language.c (_initialize_language): Update.
2940 * kod.c (_initialize_kod): Update.
2941 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2942 * i386-tdep.c (_initialize_i386_tdep): Update.
2943 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2944 * gdbarch.sh: Update.
2945 * gdbarch.c: Re-generate.
2946 * gdb-events.sh: Update.
2947 * gdb-events.c: Re-generate.
2948 * frame.c (_initialize_frame): Update.
2950 * demangle.c (_initialize_demangler): Update.
2951 * dcache.c (_initialize_dcache): Update.
2952 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2953 * cp-valprint.c (_initialize_cp_valprint): Update.
2954 * corefile.c (_initialize_core): Update.
2955 * command.h: Update.
2956 * cli/cli-decode.h: Update.
2957 * cli/cli-cmds.c (init_cli_cmds): Update.
2958 * charset.c (_initialize_charset): Update.
2959 * breakpoint.c (_initialize_breakpoint): Update.
2960 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2961 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2962 * aix-thread.c (_initialize_aix_thread): Update.
2964 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2966 Partial fix for PR backtrace/1718.
2967 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2968 that GCC migrates into the prolugue. Don't handle any
2969 instructions that clobber %ebx.
2971 2004-07-23 Andrew Cagney <cagney@gnu.org>
2973 Use regcache_raw_collect instead of regcache_collect.
2974 * regcache.h (regcache_collect): Delete declaration.
2975 * regcache.c (regcache_colect): Delete function.
2976 * win32-nat.c (do_child_store_inferior_registers): Update.
2977 * sol-thread.c (sol_thread_store_registers): Update.
2978 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2979 * rs6000-nat.c (store_register): Update.
2980 * remote.c (store_register_using_P, remote_store_registers): Update.
2981 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2982 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2983 (fill_vrregset, store_spe_registers, fill_gregset)
2984 (fill_gregset): Update.
2985 * nto-procfs.c (procfs_store_registers): Update.
2986 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2987 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2988 * m68klinux-nat.c (store_register, fill_gregset): Update.
2989 * m68k-tdep.c (fill_gregset): Update.
2990 * infptrace.c (store_register): Update.
2991 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2992 * i386-linux-nat.c (store_register, fill_gregset): Update.
2993 * hppa-linux-nat.c (fill_gregset): Update.
2994 * go32-nat.c (store_register): Update.
2995 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2996 (store_fp_regs): Update.
2997 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2998 (store_nwfpe_extended, store_fpregister, store_fpregs)
2999 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3000 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3001 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3002 (store_regs_user_thread, store_regs_kernel_thread): Update.
3004 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3006 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3007 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3009 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3010 member of `struct comp_unit'.
3012 2004-07-23 Andrew Cagney <cagney@gnu.org>
3014 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3015 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3017 2004-07-23 Martin Hunt <hunt@redhat.com>
3018 Kevin Buettner <kevinb@redhat.com>
3020 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3021 alignment was being added to the offset instead of multiplied.
3023 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3025 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3026 changed signal trampoline in OpenBSD 3.5-current.
3028 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3029 <machine/pcb.h> and "bsd-kvm.h".
3030 (sparc64nbsd_supply_pcb): New function.
3031 (_initialize_sparc64nbsd_nat): Renamed from
3032 _initialize_sparcnbsd_nat. Enable libkvm interface.
3033 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3034 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3035 (LOADLIBES): New variable.
3037 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3039 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3041 2004-07-21 Andrew Cagney <cagney@gnu.org>
3043 Use regcache_raw_supply instead of supply_register.
3044 * regcache.h (supply_register): Delete declaration.
3045 * regcache.c (supply_register): Delete function.
3046 * wince.c (do_child_fetch_inferior_registers): Update.
3047 * win32-nat.c (do_child_fetch_inferior_registers)
3048 (fetch_elf_core_registers): Update.
3049 * v850ice.c (v850ice_fetch_registers): Update.
3050 * thread-db.c (thread_db_store_registers): Update.
3051 * sol-thread.c (sol_thread_store_registers): Update.
3052 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3053 * rs6000-nat.c (fetch_register): Update.
3054 * rom68k-rom.c (rom68k_supply_one_register): Update.
3055 * remote.c (remote_wait, remote_async_wait): Update.
3056 * remote-st.c (get_hex_regs): Update.
3057 * remote-sim.c (gdbsim_fetch_register): Update.
3058 * remote-sds.c (sds_fetch_registers): Update.
3059 * remote-rdp.c (remote_rdp_fetch_register): Update.
3060 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3061 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3062 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3063 * remote-hms.c (init_hms_cmds): Update.
3064 * remote-est.c (init_est_cmds): Update.
3065 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3066 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3067 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3068 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3069 (fetch_register, supply_vrregset, supply_vrregset)
3070 (fetch_spe_registers): Update.
3071 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3072 * monitor.c (monitor_supply_register): Update.
3073 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3074 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3075 (mipsnbsd_supply_fpreg): Update.
3076 * mips-nat.c (fetch_inferior_registers)
3077 (fetch_core_registers): Update.
3078 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3079 (supply_fpregset, mips64_supply_gregset)
3080 (mips64_supply_fpregset): Update.
3081 * m68klinux-nat.c (fetch_register, supply_gregset)
3082 (supply_fpregset): Update.
3083 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3084 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3085 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3086 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3087 * infptrace.c (fetch_register): Update.
3088 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3089 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3090 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3091 (gnu_fetch_registers, gnu_store_registers): Update.
3092 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3093 * i386-linux-nat.c (fetch_register, supply_gregset)
3094 (dummy_sse_values): Update.
3095 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3096 * hppah-nat.c (fetch_register): Update.
3097 * hppa-linux-nat.c (fetch_register, supply_gregset)
3098 (supply_fpregset): Update.
3099 * go32-nat.c (fetch_register): Update.
3100 * dve3900-rom.c (fetch_bitmapped_register)
3101 (_initialize_r3900_rom): Update.
3102 * cris-tdep.c (supply_gregset): Update.
3103 * abug-rom.c (init_abug_cmds): Update.
3104 * core-aout.c (fetch_core_registers): Update.
3105 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3106 (fetch_register, fetch_fp_register): Update.
3107 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3108 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3109 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3110 * alphanbsd-tdep.c (fetch_core_registers): Update.
3111 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3112 * alpha-nat.c (fetch_osf_core_registers)
3113 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3114 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3115 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3117 2004-07-21 Andrew Cagney <cagney@gnu.org>
3119 * PROBLEMS: Mention breakpoints/1702.
3120 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3121 that is known to work.
3123 2004-07-21 Andrew Cagney <cagney@gnu.org>
3125 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3126 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3127 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3128 (handle_inferior_event): Wrap call to deprecated
3129 IGNORE_HELPER_CALL in #ifdef.
3130 * config/mips/tm-nbsd.h: Update.
3132 2004-07-20 Jim Blandy <jimb@redhat.com>
3134 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3135 bfd_mach_ppc has no segment registers.
3137 Include PowerPC SPR numbers for special-purpose registers.
3138 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3139 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3140 new member in initializer.
3141 (S, S4, SN4, S64): New macros for defining special-purpose
3143 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3144 registers_403, registers_403GC, registers_505, registers_860,
3145 registers_601, registers_602, registers_603, registers_604,
3146 registers_750, registers_e500): Use them.
3148 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3149 replace references with expression used to initialize variable.
3151 2004-07-20 Andrew Cagney <cagney@gnu.org>
3153 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3155 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3156 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3157 (s390_sigtramp_frame_sniffer): Update.
3158 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3159 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3160 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3161 (mips32_fetch_instruction): Update.
3162 * mcore-tdep.c (get_insn): Update.
3163 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3164 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3165 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3166 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3167 (i386_linux_rt_sigtramp_start): Update.
3168 * i386-linux-nat.c (child_resume): Update.
3169 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3170 * hppa-linux-tdep.c (insns_match_pattern): Update.
3171 * gdbcore.h: Update.
3172 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3173 * frame.c (safe_frame_unwind_memory): Update.
3174 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3175 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3176 * alpha-tdep.c (alpha_read_insn): Update.
3178 2004-07-20 Andrew Cagney <cagney@gnu.org>
3180 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3181 containing both bytes and mask. Add "frame_type".
3182 * tramp-frame.c (tramp_frame_start): Update.
3183 (tramp_frame_prepend_unwinder): Update.
3184 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3185 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3186 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3187 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3189 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3191 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3192 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3193 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3194 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3196 2004-07-17 Andrew Cagney <cagney@gnu.org>
3198 * NEWS, PROBLEMS: Update for 6.2.
3200 * README: Update to 6.2.
3202 * utils.c (xvasprintf): Call xstrvprintf.
3204 * parse.c: Update copyright.
3205 (null_post_parser): Eliminate ARGSUSED.
3207 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3208 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3209 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3211 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3212 * ppc-linux-nat.c: Use "Linux kernel".
3213 * hppa-linux-tdep.c: Use GNU/Linux.
3214 * hppa-linux-nat.c: Use GNU/Linux.
3215 * dwarfread.c: Add [sic] to use of Linux.
3217 * hppa-linux-nat.c: Do not include <string.h>.
3218 (supply_fpregset): Remove "register" attribute.
3220 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3222 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3224 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3225 * configure, config.in: Regenerated.
3227 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3229 (vaxbsd_supply_pcb): New function.
3230 (_initialize_vaxbsd_nat): New prototype and function.
3231 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3233 (LOADLIBES): New variable.
3234 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3235 (LOADLIBES): New variable.
3236 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3237 (LOADLIBES): New variable.
3238 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3240 2004-07-16 Andrew Cagney <cagney@gnu.org>
3242 * defs.h (event_loop_p): Replace variable declaration with macro,
3244 * main.c (captured_main): Delete options "-async" and "-noasync".
3245 (event_loop_p): Delete variable.
3246 * NEWS: Mention that "-async" and "-noasync" were removed.
3248 2004-07-16 Andrew Cagney <cagney@gnu.org>
3250 * remote-m32r-sdi.c: Re-indent.
3252 2004-07-16 Jim Blandy <jimb@redhat.com>
3254 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3255 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3256 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3257 missing MPC823 SPRs.
3258 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3259 incorrect. (This was corrected in GDB's register name tables on
3262 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3263 should be "esasrr" ("ESA Save and Restore Register").
3265 2004-07-16 Andrew Cagney <cagney@gnu.org>
3267 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3268 calls, no longer applicable. Update comments and rename parameter
3269 "step_frame" to "return_frame".
3271 2004-07-16 Andrew Cagney <cagney@gnu.org>
3273 * frame.c (fprint_field): New function.
3274 (fprint_frame_id): Use fprint_field.
3276 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3278 * ada-lang.c (ada_language_defn): Remove commented out code.
3280 2004-07-15 Jim Blandy <jimb@redhat.com>
3282 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3283 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3285 2004-07-14 Jim Blandy <jimb@redhat.com>
3287 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3289 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3291 * ppc-tdep.h (ppc_num_srs): New enum constant.
3293 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3294 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3295 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3296 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3297 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3298 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3299 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3300 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3301 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3302 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3303 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3304 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3305 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3306 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3307 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3308 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3309 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3310 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3311 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3312 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3313 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3314 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3315 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3316 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3317 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3318 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3319 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3320 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3321 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3322 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3323 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3324 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3325 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3326 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3327 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3328 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3329 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3330 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3331 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3332 special-purpose register numbers.
3334 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3335 manual mentions 'md_twb', but many mention 'm_twb', and at that
3336 point in the register list.)
3338 2004-07-14 Andrew Cagney <cagney@gnu.org>
3340 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3341 instead of "internal-error".
3343 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3345 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3346 that was inserted inside a comment.
3348 2004-07-10 Randolph Chung <tausq@debian.org>
3350 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3352 (hppa_hpux_push_dummy_code): New function.
3353 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3354 Set find_global_pointer method.
3356 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3358 * NEWS: Mention BSD libkvm interface.
3360 2004-07-10 Michael Snyder <msnyder@redhat.com>
3362 * symfile.c (generic_load): Comment typo.
3363 * stack.c (get_selected_block): Ditto.
3364 * regcache.c (regcache_cooked_read): Ditto.
3365 * monitor.c (monitor_debug): Ditto.
3366 * mips-tdep.c (mips_read_pc): Ditto.
3367 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3368 * gdb_mbuild.sh: Ditto.
3369 * gdbarch.sh: Ditto.
3372 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3374 * ada-tasks.c: Remove file.
3376 Remove ARI problems:
3378 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3381 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3383 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3384 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3385 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3386 (UMIN_OF_SIZE): Remove.
3387 (max_of_type): New function to replace orphan macro in gdbtypes.h
3388 (min_of_type): Ditto.
3389 (discrete_type_high_bound): Use max_of_type.
3390 (discrete_type_low_bound): Use min_of_type.
3391 (possible_user_operator_p): Move operator to beginning of line.
3392 (ada_is_variant_part): Ditto.
3393 (ensure_lval): Rewrite to avoid deprecated operations.
3394 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3395 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3396 (ada_enum_name): Remove assignments in 'if' statements.
3397 (build_ada_types): Add gdbarch parameter.
3398 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3399 with gdbarch_data_register_post_init.
3400 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3403 * ada-valprint.c (inspect_it): Remove declaration.
3404 (repeat_count_threshold): Remove declaration.
3405 (ada_print_floating): Remove assignments in 'if' statements.
3406 (print_str): Move operator to beginning of line.
3408 2004-07-08 Jim Blandy <jimb@redhat.com>
3410 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3412 2004-07-08 Bob Rossi <bob@brasko.net>
3414 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3416 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3418 * language.h (struct_language_defn): Add new function pointer:
3419 la_class_name_from_physname. Also add new prototype for
3420 language_class_name_from_physname.
3421 * language.c (language_class_name_from_physname): New function.
3422 (unk_lang_class_name): Ditto.
3423 (unknown_language_defn, auto_language_defn): Change
3424 to add unk_lang_class_name function pointer for
3425 la_class_name_from_physname.
3426 (local_language_defn): Ditto.
3427 * dwarf2read.c (guess_structure_name): Change to call
3428 language_class_name_from_physname.
3429 (determine_class_name): Ditto.
3430 * cp-support.c (class_name_from_physname): Renamed.
3431 (cp_class_name_from_physname): New name of function.
3432 * cp-support.h: Ditto.
3433 * c-lang.c (c_language_defn): Change to add NULL
3434 for class_name_from_physname function pointer.
3435 (cplus_language_defn): Change to add cp_class_name_from_physname.
3436 * jv-lang.c (java_class_name_physname): New function.
3437 (java_find_last_component): New static routine.
3438 (java_language_defn): Add java_class_name_from_physname pointer.
3439 * ada-lang.c (ada_language_defn): Change to add NULL
3440 for class_name_from_physname function pointer.
3441 * f-lang.c (f_language_defn): Ditto.
3442 * m2-lang.c (m2_language_defn): Ditto.
3443 * objc-lang.c (objc_language_defn): Ditto.
3444 * p-lang.c (pascal_language_defn): Ditto.
3445 * scm-lang.c (scm_language_defn): Ditto.
3447 2004-07-06 Andrew Cagney <cagney@gnu.org>
3449 Patch from Bart Robinson.
3450 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3451 (O_LARGEFILE): Define to 0, if not defined.
3453 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3455 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3456 <machine/pcb.h> and "bsd-kvm.h".
3457 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3458 (m68kbsd_supply_pcb): New function.
3459 (_initialize_m68kbsd_nat): New prototype and function.
3460 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3461 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3462 (LOADLIBES): New variable.
3463 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3464 (LOADLIBES): New variable.
3466 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3468 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3470 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3472 (bsd_kvm_cmdlist): New variable.
3473 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3474 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3475 command and "kvm proc" command.
3476 * Makefile.in (bsd-kvm.o): Update dependencies.
3478 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3480 * osabi.c: Update copyright year.
3481 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3482 notes if EI_OSABI is set to ELFOSABI_HPUX.
3484 2004-07-01 Michael Snyder <msnyder@redhat.com>
3486 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3487 that seems to have gotten whacked out of line.
3489 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3491 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3494 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3496 * ada-lang.c (decode_packed_array): Minor change to comment.
3497 (ada_value_slice_ptr): New function.
3498 (ada_value_slice): New function.
3499 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3500 test. Don't know why it is there.
3501 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3502 to avoid dereferencing huge arrays from which one is slicing.
3503 (empty_array): Correct to return an array rather than
3505 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3506 on empty arrays (let'em use 'FIRST instead).
3508 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3510 Address complaints from gdb_ari.sh:
3512 * ada-exp.y: Include gdb_string.h rather than string.h.
3513 (convert_char_literal): Reformat declaration.
3514 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3515 * ada-lex.l: Change use of free to xfree (the macro would do so
3516 anyway, but this is harmless).
3517 Include gdb_string.h rather than string.h.
3518 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3520 * ada-lang.c (parse): Remove K&Rism in parameter list.
3521 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3523 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3525 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3528 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3530 * alphabsd-nat.c: Update copyright year.
3531 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3533 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3535 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3536 (i386_cygwin_in_solib_call_trampoline): New function.
3537 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3538 and skip_trampoline_code gdbarch methods.
3540 2004-06-29 Jim Blandy <jimb@redhat.com>
3542 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3543 name actually used in the dependency lists.
3545 2004-06-29 Randolph Chung <tausq@debian.org>
3547 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3549 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3551 * win32-nat.c (child_pid_to_exec_file): New function.
3552 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3555 2004-06-28 Andrew Cagney <cagney@gnu.org>
3557 * defs.h (xstrvprintf): Declare.
3558 * utils.c (xstrvprintf): New function.
3559 (internal_vproblem, xstrprintf, xasprintf)
3560 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3561 * serial.c (serial_printf): Ditto.
3562 * complaints.c (vcomplaint): Ditto.
3564 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3566 * infcmd.c (attach_command): Move call to target_terminal_inferior
3567 behind loading symbol table.
3569 2004-06-28 Andrew Cagney <cagney@gnu.org>
3571 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3572 change - add back extern deprecated_ui_loop_hook declaration.
3574 2004-06-28 Andrew Cagney <cagney@gnu.org>
3576 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3578 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3579 (c_value_of_variable): Ditto.
3580 * utils.c (internal_vproblem): Ditto.
3581 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3582 * remote.c (add_packet_config_cmd): Ditto.
3583 * remote-rdp.c (rdp_set_command_line): Ditto.
3584 * regcache.c (regcache_dump): Ditto.
3585 * frv-tdep.c (new_variant, new_variant): Ditto.
3586 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3587 (fbsd_find_memory_regions): Ditto.
3588 * breakpoint.c (create_thread_event_breakpoint)
3589 (create_breakpoints): Ditto.
3590 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3591 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3593 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3595 * ada-lang.c: Re-indent file, with some massaging to help indent
3596 a bit when the result is otherwise really too ugly.
3598 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3600 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3601 code_addr_p and special_addr_p to 'unsigned int'.
3603 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3605 * i386v4-nat.c: Update copyright year and tweak comment.
3606 (regmap): Remove trailing comma.
3607 (supply_gregset): Rename local variable i to regnum. Call
3608 regcache_raw_supply instead of supply_register.
3609 (fill_gregset): Rename argument regno to regnum. Call
3610 regcache_raw_collect instead of regcache_collect.
3612 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3614 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3616 (frame_id_build, frame_id_build_special): Update comments.
3617 (frame_id_build_wild): New prototype.
3618 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3619 struct frame_id fields.
3620 (frame_id_build_wild): New function.
3621 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3623 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3625 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3628 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3630 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3632 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3634 * ada-lang.c: Re-indent file.
3636 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3638 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3639 (no_symtab_msg): Likewise.
3641 2004-06-27 Andreas Schwab <schwab@suse.de>
3643 * source.c: Fix whitespace.
3645 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3647 * configure.in: Include <sys/param.h> for td_pcb test.
3648 * configure: Regenerated.
3650 * i386nbsd-nat.c: New file.
3651 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3652 i386obsd-nat.c and i386obsd-tdep.c.
3653 (i386nbsd-nat.o): New dependency.
3654 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3656 (LOADLIBES): New variable.
3657 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3659 (LOADLIBES): New variable.
3661 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3662 (LOADLIBES): New variable.
3664 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3665 fetching from BSD_KVM_PADDR. Correctly lookup address for
3668 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3670 (amd64fbsd_supply_pcb): New funcion.
3671 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3673 2004-06-27 <david@streamline-computing.com>
3675 Partial fix for PR cli/1056.
3676 * valarith.c: Check for zero in division and remainder
3679 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3681 * i387-tdep.c: Remove excessive whitespace.
3683 2004-06-26 Andrew Cagney <cagney@gnu.org>
3685 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3686 * gdb-events.h, gdb-events.c: Re-generate.
3687 * tui/tui-hooks.c (tui_install_hooks): Update.
3688 (tui_remove_hooks): Update.
3689 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3691 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3693 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3694 (gregset_t, fpregset_t): Remove typedefs.
3695 (REG_OFFSET): Rename argument.
3696 (amd64bsd_r_reg_offset): Rename from reg_offset.
3697 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3699 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3701 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3703 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3705 * vax-tdep.c: Tweak comment.
3707 Add OpenBSD/hppa support.
3708 * NEWS (New native configurations): Mention OpenBSD/hppa.
3709 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3710 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3712 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3713 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3714 * configure.host: Add hppa*-*-openbsd*.
3715 * configure.tgt: Add hppa*-*-openbsd*.
3717 2004-06-25 Andrew Cagney <cagney@gnu.org>
3719 * defs.h (deprecated_ui_loop_hook): Deprecated.
3720 * wince.c (child_wait): Update.
3721 * win32-nat.c (child_wait): Update.
3722 * v850ice.c (v850ice_wait): Update.
3723 * top.c (deprecated_ui_loop_hook): Update.
3725 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3726 (do_unix_readchar): Update.
3727 * ser-tcp.c (net_open): Update.
3728 * remote-sim.c (gdb_os_poll_quit): Update.
3729 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3731 2004-06-24 Andrew Cagney <cagney@gnu.org>
3733 * defs.h (deprecated_pre_add_symbol_hook)
3734 (deprecated_post_add_symbol_hook): Deprecated.
3735 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3736 (symbol_file_add_with_addrs_or_offsets): Update references.
3738 2004-06-24 Andrew Cagney <cagney@gnu.org>
3740 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3741 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3742 * wince.c (ui_loop_hook): Delete extern declaration.
3743 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3744 * v850ice.c (ui_loop_hook): Delete extern declaration..
3745 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3746 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3747 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3748 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3749 ui_loop_hook declaration.
3751 2004-06-24 Andrew Cagney <cagney@gnu.org>
3753 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3754 entry_func_highpc fields.
3755 * objfiles.c (init_entry_point_info): Do not clear
3756 entry_func_lowpc and entry_func_highpc.
3757 (objfile_relocate): Do not relocate entry_func_lowpc and
3759 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3761 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3763 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3764 entry_func_lowpc and entry_func_highpc with call to
3767 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3769 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3770 quad-precision floating point arguments in registers.
3772 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3774 From Michael Mueller <m.mueller99@kay-mueller.de>:
3775 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3778 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3780 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3782 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3783 untriggered watchpoints to a separate if clause. Update function
3784 comment regarding STOPPED_BY_WATCHPOINT argument.
3786 2004-06-22 Jim Blandy <jimb@redhat.com>
3788 * gdbarch.sh: Doc fix.
3790 2004-06-21 Martin Hunt <hunt@redhat.com>
3791 Kevin Buettner <kevinb@redhat.com>
3793 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3794 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3795 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3796 to set_gdbarch_sp_regnum(). Use cooked register number.
3797 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3799 2004-06-21 Andrew Cagney <cagney@gnu.org>
3801 * gdbarch.sh: When the macro field is empty, do not generate a
3802 macro definition. When the macro field is "=", generate the macro
3803 name from the upper-case function name.
3804 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3805 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3806 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3807 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3808 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3809 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3810 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3811 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3812 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3813 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3814 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3815 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3816 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3817 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3818 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3819 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3820 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3821 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3822 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3823 (DEPRECATED_USE_STRUCT_CONVENTION)
3824 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3825 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3826 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3827 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3828 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3829 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3830 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3831 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3832 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3833 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3834 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3835 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3836 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3837 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3838 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3839 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3840 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3841 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3843 2004-06-21 Andrew Cagney <cagney@gnu.org>
3845 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3846 macro name, and the function rather than macro value. Only wrap
3847 macro print statements in #ifdef. Move format logic to where it
3849 * gdbarch.c: Re-generate.
3851 * gdbarch.sh (read): Delete "print_p" and "description", add
3852 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3853 Delete references to print_p.
3854 (TARGET_ARCHITECTURE): Delete print predicate.
3855 * gdbarch.c: Re-generate.
3857 * gdbarch.sh: Check that multi-arch methods do not provide a
3859 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3860 (print_registers_info, print_float_info, print_vector_info)
3861 (adjust_breakpoint_address, remote_translate_xfer_address)
3862 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3863 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3864 name from the multi-arch definition.
3866 2004-06-20 Andrew Cagney <cagney@gnu.org>
3868 * gdbarch.sh: Sort by the function, instead of macro name.
3869 * gdbarch.c: Re-generate.
3871 2004-06-20 Andrew Cagney <cagney@gnu.org>
3873 * gdbarch.sh: Use the function, instead of macro name in
3874 errors and the log file.
3875 (return_value): Remove stray ":" in spec.
3877 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3878 * gdbarch.h, gdbarch.c: Re-generate.
3879 * Makefile.in (arch-utils.o): Update dependencies.
3880 * values.c (using_struct_return): Move code calling
3881 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3882 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3883 to legacy_return_value, simplify.
3884 * infcmd.c (print_return_value): Move code calling
3885 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3886 to legacy_return_value, simplify.
3887 * infcall.c (call_function_by_hand): Move code calling
3888 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3889 * arch-utils.c: Update copyright. Include "gdbcore.h".
3890 (legacy_return_value): New function.
3891 * arch-utils.h: Update copyright.
3892 (legacy_return_value): Declare.
3894 2004-06-20 Andrew Cagney <cagney@gnu.org>
3896 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3897 * gdbarch.h, gdbarch.c: Re-generate.
3898 * values.c (using_struct_return): Update call.
3899 * mcore-tdep.c: Update comment.
3900 * infcall.c (call_function_by_hand): Update comment.
3901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3902 * arch-utils.h (always_use_struct_convention): Update.
3903 * v850-tdep.c (v850_gdbarch_init): Update.
3904 * sh64-tdep.c (sh64_gdbarch_init): Update.
3905 * sh-tdep.c (sh_gdbarch_init): Update.
3906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3907 * mips-tdep.c (mips_gdbarch_init): Update.
3908 * mcore-tdep.c (mcore_gdbarch_init): Update.
3909 * m32r-tdep.c (m32r_gdbarch_init): Update.
3910 * ia64-tdep.c (ia64_gdbarch_init): Update.
3911 * h8300-tdep.c (h8300_gdbarch_init): Update.
3912 * frv-tdep.c (frv_gdbarch_init): Update.
3913 * cris-tdep.c (cris_gdbarch_init): Update.
3914 * arm-tdep.c (arm_gdbarch_init): Update.
3915 * alpha-tdep.c (alpha_gdbarch_init): Update.
3917 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3919 * PROBLEMS: Add more specific information, and a work-around,
3922 2004-06-18 Andrew Cagney <cagney@gnu.org>
3924 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3925 * gdbarch.h, gdbarch.c: Re-generate.
3926 * ada-lang.c (ada_finish_decode_line_1): Update.
3927 * infrun.c (handle_inferior_event): Update.
3928 * infcall.c (find_function_addr): Update.
3929 * linespec.c (minsym_found): Update.
3930 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3932 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3933 * cli/cli-cmds.c (disassemble_command): Update.
3934 * vax-tdep.c (vax_gdbarch_init): Update.
3936 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3938 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3940 2004-06-17 Andrew Cagney <cagney@gnu.org>
3942 GDB 6.1.1 released from the GDB 6.1 branch.
3943 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3946 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3949 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3950 operation as a uleb128. Found by Michael Coulter.
3952 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3954 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3956 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3957 to ada-lang.h; this is needed to be able to implement the kill command
3960 (task_entry): Ditto.
3962 (ada_build_task_list): Ditto.
3964 * ada-lang.c: Conditionalize routines and data structures related
3965 to breakpoints, exceptions, completion, and symbol caching on
3966 GNAT_GDB, since these are not yet used in the submitted public sources.
3967 (ada_main_name): Editorial: Move definition out of exception-related
3970 2004-06-15 Andrew Cagney <cagney@gnu.org>
3972 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3973 deprecated_pc_in_call_dummy.
3975 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3977 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3978 bfd_get_section_size_before_reloc or _raw_size.
3979 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3980 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3981 (dwarf2_read_section): Likewise.
3982 * elfread.c (elf_locate_sections): Likewise.
3983 * gcore.c (derive_heap_segment): Likewise.
3984 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3985 * remote-e7000.c (e7000_load): Likewise.
3986 * remote-m32r-sdi.c (m32r_load): Likewise.
3987 * remote-mips.c (mips_load_srec): Likewise.
3988 (pmon_load_fast): Likewise.
3989 * remote.c (compare_sections_command): Likewise.
3990 * symfile.c (add_section_size_callback): Likewise.
3991 (load_section_callback): Likewise.
3992 (pc_in_unmapped_range): Likewise.
3993 (pc_in_mapped_range): Likewise.
3994 (sections_overlap): Likewise.
3995 (list_overlays_command): Likewise.
3996 (simple_overlay_update_1): Likewise.
3997 (simple_overlay_update): Likewise.
3998 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3999 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4001 2004-06-14 Randolph Chung <tausq@debian.org>
4003 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4004 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4006 (hppa_hpux_inferior_created): New function.
4007 (hppa_hpux_init_abi): Register observer.
4008 * symfile.c (hp_cxx_exception_support_initialized)
4009 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4010 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4012 2004-06-14 Randolph Chung <tausq@debian.org>
4014 * MAINTAINERS (Write After Approval): Alphabetize my entry
4017 2004-06-14 Andrew Cagney <cagney@gnu.org>
4019 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4020 testsuite maintainer.
4022 2004-06-13 Andrew Cagney <cagney@gnu.org>
4024 * infcmd.c (print_return_value): Fix logic, allow
4025 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4027 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4028 defining any macros.
4029 * gdbarch.h: Re-generate.
4031 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4032 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4033 * gdbarch.h: Re-generate.
4035 * values.c (generic_use_struct_convention): Don't check gcc_p.
4037 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4038 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4039 * gdbarch.h, gdbarch.c: Regenerate.
4040 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4041 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4043 deprecated_max_register_raw_size and
4044 deprecated_max_register_virtual_size.
4045 * v850-tdep.c (v850_gdbarch_init): Ditto.
4046 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4047 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4048 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4049 * cris-tdep.c (cris_gdbarch_init): Ditto.
4051 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4052 * gdbarch.h, gdbarch.c: Re-generate.
4053 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4054 (m68hc11_use_struct_convention): Delete function.
4055 (m68hc11_extract_struct_value_address): Delete function.
4056 (m68hc11_return_value): New function.
4057 (m68hc11_gdbarch_init): Instead of store_return_value,
4058 extract_return_value, return_value_on_stack,
4059 deprecated_extract_struct_value_address and use_struct_convention,
4061 * values.c (using_struct_return): Do not call
4062 RETURN_VALUE_ON_STACK.
4063 * arch-utils.h (generic_return_value_on_stack_not): Delete
4065 * arch-utils.c (generic_return_value_on_stack_not): Delete
4068 2004-06-12 Andrew Cagney <cagney@gnu.org>
4070 * values.c (register_value_being_returned): Delete function.
4071 * infcmd.c (legacy_return_value): Delete function.
4072 * infcall.c (call_function_by_hand): Inline
4073 "register_value_being_returned", simplify.
4074 * values.c (using_struct_return): Update comment, refer to
4075 print_return_value instead of register_value_being_returned.
4076 * infcmd.c (print_return_value): Inline calls to
4077 register_value_being_returned and legacy_return_value. Simplify.
4079 2004-06-11 Randolph Chung <tausq@debian.org>
4081 * somread.c (som_symtab_read): Exclude gcc local symbols.
4083 2004-06-11 Randolph Chung <tausq@debian.org>
4085 * infrun.c (handle_inferior_event): Handle the case when a
4086 trampoline ends up in the runtime resolver, and if the trampoline
4087 has no name. Rearrange the code so that all the trampoline
4088 processing happens before other step-out-of-range handling.
4090 2004-06-11 Martin Hunt <hunt@redhat.com>
4092 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4095 2004-06-10 Andrew Cagney <cagney@gnu.org>
4097 * blockframe.c (legacy_inside_entry_func): Delete.
4098 (legacy_frame_chain_valid): Inline call to
4099 legacy_inside_entry_func, simplify.
4101 2004-06-10 Bob Rossi <bob@brasko.net>
4103 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4104 * dwarf2read.c (partial_die_info): Add dirname field.
4105 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4106 (read_partial_die): Save away DW_AT_comp_dir.
4107 * defs.h (symtab_to_filename): Removed.
4108 * source.c (find_and_open_source): Added.
4109 (open_source_file): Just calls find_and_open_source.
4110 (symtab_to_filename): Removed.
4111 (symtab_to_fullname, psymtab_to_fullname): Added.
4112 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4113 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4115 * symtab.h (partial_symtab): Add dirname field.
4116 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4117 (mi_cmd_file_list_exec_source_file): Call new function
4118 symtab_to_fullname to find fullname.
4119 (mi_cmd_file_list_exec_source_files): Added.
4120 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4121 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4123 2004-06-10 Andrew Cagney <cagney@gnu.org>
4125 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4126 to generic_use_struct_convention, the default value.
4128 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4131 * ns32k-tdep.c (ns32k_push_arguments): New function.
4132 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4133 * infcall.c (call_function_by_hand): Call error instead of
4134 legacy_push_arguments.
4135 * value.h (legacy_push_arguments): Delete declaration.
4136 * valops.c (legacy_push_arguments): Delete function.
4137 (value_push): Delete function.
4139 2004-06-10 Brian Ford <ford@vss.fsi.com>
4141 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4142 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4144 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4146 2004-06-10 Andrew Cagney <cagney@gnu.org>
4148 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4149 * gdbarch.h, gdbarch.c: Re-generate.
4150 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4152 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4153 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4154 deprecated_pc_in_call_dummy instead of
4155 DEPRECATED_PC_IN_CALL_DUMMY.
4156 (arm_skip_prologue): Ditto.
4157 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4158 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4159 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4160 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4162 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4163 (sh64_init_extra_frame_info, sh64_get_saved_register)
4164 (sh64_pop_frame): Ditto.
4165 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4166 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4167 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4168 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4169 (h8300_pop_frame): Ditto.
4170 * blockframe.c (legacy_inside_entry_func)
4171 (legacy_frame_chain_valid): Ditto.
4172 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4173 to deprecated_pc_in_call_dummy.
4175 2004-06-09 Andrew Cagney <cagney@gnu.org>
4177 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4178 provide a default value.
4179 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4180 * gdbarch.h, gdbarch.c: Re-generate.
4181 * arch-utils.c (generic_convert_register_p): Rename
4182 legacy_convert_register_p
4183 (legacy_register_to_value, legacy_value_to_register): Delete
4185 * arch-utils.h (generic_convert_register_p): Rename
4186 legacy_convert_register_p.
4187 (legacy_register_to_value, legacy_value_to_register): Delete
4190 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4191 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4192 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4193 * gdbarch.h, gdbarch.c: Re-generate.
4194 * infcmd.c (default_print_registers_info): Simplify.
4195 * findvar.c (value_of_register): Simplify.
4196 * mi/mi-main.c (get_register): Simplify.
4197 * arch-utils.c (legacy_convert_register_p): Always return 0.
4198 (legacy_register_to_value, legacy_value_to_register): Always call
4201 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4202 #ifdef CLEAR_INSN_CACHE code.
4203 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4204 Delete #ifdef CLEAR_DEFERRED_STORES code.
4206 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4208 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4210 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4212 * config/mips/mipsv4.mh: Delete file.
4214 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4216 (hpread_adjust_stack_address): Delete declaration.
4218 2004-06-08 Andrew Cagney <cagney@gnu.org>
4220 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4221 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4222 PTRACE_ATTACH / PTRACE_DETACH available call error.
4223 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4224 * infttrace.c (update_thread_state_after_attach, attach, detach):
4225 Remove #ifdef wrappers.
4226 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4227 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4228 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4229 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4230 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4231 * config/nm-linux.h (ATTACH_DETACH): Delete.
4232 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4233 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4234 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4235 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4236 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4238 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4240 * configure.in: Set $configdir to the right OS specific value.
4241 Use value when setting $tcldir and $tkdir.
4242 * configure: Regenerate.
4244 2004-06-06 Paul Brook <paul@codesourcery.com>
4246 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4249 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4251 * ada-lang.c (lookup_symbol_in_language): New function to allow
4252 re-use of another language's symbol lookup code. (Placed here
4253 temporarily while Ada support is being integrated into the public
4255 (restore_language): New auxiliary function for
4256 lookup_symbol_in_language.
4257 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4258 temporarily while Ada support is being integrated into the public
4261 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4263 * Makefile.in (check//%): New.
4265 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4266 (mn10300_store_return_value): Rewrite.
4267 (mn10300_type_align): New.
4268 (mn10300_use_struct_convention): Rewrite.
4269 (mn10300_return_value): New, using all of the above.
4270 (mn10300_pop_frame_regular): Add saved_regs_size.
4271 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4273 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4274 regs if PC is on movm.
4276 2004-06-07 Jim Blandy <jimb@redhat.com>
4278 Add native Linux support for the PowerPC E500.
4279 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4280 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4281 all architectures except the E500.
4282 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4284 (struct gdb_evrregset_t): New type.
4285 (have_ptrace_getsetevrregs): New variable.
4286 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4287 fetch_spe_registers): New functions.
4288 (fetch_register): Call fetch_spe_register as appropriate.
4289 Assert that we're only passed raw register numbers.
4290 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4291 Don't fetch gprs if they're pseudoregisters.
4292 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4293 store_spe_registers): New functions.
4294 (store_register): Call store_spe_register as appropriate.
4295 Assert that we're only passed raw register numbers.
4296 (store_ppc_registers): Call store_spe_registers as appropriate.
4297 Don't store gprs if they're pseudoregisters.
4299 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4301 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4302 struct if one exists, even if we are dealing with a zombie thread.
4304 2004-06-07 Andrew Cagney <cagney@gnu.org>
4306 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4307 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4308 Rename PC_REQUIRES_RUN_BEFORE_USE.
4309 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4312 2004-06-07 Randolph Chung <tausq@debian.org>
4314 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4315 unwinding after sp has been saved to the stack but before the end
4316 of the prologue, and after the fp has been modified but before it has
4317 been saved to the stack.
4318 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4319 Remove superfluous definitions.
4320 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4322 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4324 Committed by Randolph Chung.
4325 * hppa-linux-nat.c: Include the correct version of the header file
4326 depending on the kernel version.
4328 2004-06-06 Randolph Chung <tausq@debian.org>
4330 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4331 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4333 2004-06-06 Randolph Chung <tausq@debian.org>
4335 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4336 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4337 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4338 * hppa-tdep.c (hppa_symbol_address): New function definition.
4339 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4341 2004-06-06 Randolph Chung <tausq@debian.org>
4343 * hppa-tdep.h (struct value): Forward declaration.
4344 (gdbarch_tdep): Define tdep find_global_pointer method.
4345 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4346 associated with the function we are trying to call, and write it
4348 (hppa32_convert_from_funct_ptr_addr): New function.
4349 (hppa_find_global_pointer): New function.
4350 (hppa_gdbarch_init): Set default find_global_pointer method; set
4351 convert_from_func_ptr_addr method.
4352 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4353 (hppa_linux_init_abi): Set find_global_pointer method.
4354 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4356 2004-06-06 Randolph Chung <tausq@debian.org>
4358 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4359 to struct value *function.
4360 * gdbarch.c: Regenerate.
4361 * gdbarch.h: Likewise.
4362 * infcall.c (call_function_by_hand): Pass entire function value
4365 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4366 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4367 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4368 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4369 * arm-tdep.c (arm_push_dummy_call): Likewise.
4370 * avr-tdep.c (avr_push_dummy_call): Likewise.
4371 * cris-tdep.c (cris_push_dummy_call): Likewise.
4372 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4373 * frv-tdep.c (frv_push_dummy_call): Likewise.
4374 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4375 * hppa-tdep.c (hppa32_push_dummy_call)
4376 (hppa64_push_dummy_call): Likewise.
4377 * i386-tdep.c (i386_push_dummy_call): Likewise.
4378 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4379 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4380 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4381 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4382 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4383 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4384 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4385 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4386 (ppc64_sysv_abi_push_dummy_call): Likewise.
4387 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4388 (ppc64_sysv_abi_push_dummy_call): Likewise.
4389 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4390 * s390-tdep.c (s390_push_dummy_call): Likewise.
4391 * sh-tdep.c (sh_push_dummy_call_fpu)
4392 (sh_push_dummy_call_nofpu): Likewise.
4393 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4394 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4395 * vax-tdep.c (vax_push_dummy_call): Likewise.
4397 2004-06-04 Jim Blandy <jimb@redhat.com>
4399 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4400 gdbarch argument to register_size.
4402 * rs6000-tdep.c (rs6000_store_return_value): Use
4403 regcache_cooked_write_part instead of
4404 deprecated_write_register_bytes.
4405 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4406 not gdbarch_deprecated_store_return_value.
4408 * ppc-linux-nat.c (store_register, fetch_register): Remove
4409 incorrect assertions. Simplify and generalize handling of
4410 transfers whose sizes are not multiples of, or less than, sizeof
4413 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4415 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4416 as a new thread event.
4417 * thread-db.c (thread_get_info_callback): If the thread is a
4418 zombie, return TD_THR_ZOMBIE.
4419 (thread_from_lwp): If thread_get_info_callback returns
4420 TD_THR_ZOMBIE, check if the thread is still on the thread list
4421 and return a -1 ptid if not found.
4422 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4423 change the status to TARGET_WAITKIND_SPURIOUS.
4425 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4427 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4428 double values in little endian mode.
4430 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4432 Committed by Andrew Cagney.
4433 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4434 after last enum constant to avoid error from IBM C
4437 2004-06-02 Jim Blandy <jimb@redhat.com>
4439 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4440 to 'message', and make it local to the lone block that uses it.
4442 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4444 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4446 * ada-exp.y: Update copyright notice.
4449 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4450 SPECIAL_VARIABLE and unify the treatment of these cases.
4452 (write_attribute_call0): Remove.
4453 (write_attribute_call1): Remove.
4454 (write_attribute_calln): Remove.
4455 (save_qualifier): Add missing semicolon.
4457 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4458 temporarily disabled to allow compilation with FSF head version.
4460 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4461 use individual operators (OP_*) for all attributes.
4462 (exp syntax): Use write_int.
4463 Handle STRING literals with OP_STRING.
4464 (variable syntax): Add limit parameter to calls to
4465 write_object_renaming.
4467 (temp_parse_space): New definition to hold entities that need
4468 only live until the next call to ada_parse.
4469 (string_to_operator): Rename fields of ada_opname_table entries.
4471 (write_var_from_sym): Record block.
4472 (write_var_from_name): Minor reformatting.
4473 Make sure saved name is properly encoded in the case of multiple
4474 matches, and set its language to Ada.
4476 Modify to indicate unresolved name as symbol in the UNRESOLVED
4477 namespace, allocated in temp_parse_space.
4478 (write_int): New function.
4480 (write_object_renaming): Add max_depth parameter to limit
4481 chains of object renamings.
4482 Handle case where root of renaming expression is itself a renaming.
4483 Use temp_parse_space for temporary name buffer.
4484 Handle renamings to dereferenced pointers (___XEXA suffices).
4486 (ada_parse, yyerror, string_to_operator,
4487 write_var_from_sym, write_var_from_name, write_attribute_call0,
4488 write_attribute_call1, write_attribute_calln,
4489 write_object_renaming): Protoize.
4491 (_initialize_ada_exp): New function.
4493 * ada-lang.c: Update copyright notice.
4494 General terminology change to conform to GNAT compiler usage:
4495 mangle => encode, demangle => decode
4496 Include gdb_obstack.h.
4505 (ADA_RETAIN_DOTS): Make sure this is defined.
4506 (TRUNCATION_TOWARDS_ZERO): Define.
4507 (struct string_vector): Define.
4508 (unresolved_names): Remove definition.
4509 (xnew_string_vector): New function.
4510 (string_vector_append): New function.
4511 (extract_string): Make static.
4512 (ada_unqualified_name): New function.
4513 (add_angle_brackets): New function.
4514 (function_name_from_pc): New function.
4515 (place_on_stack): Rename to ensure_lval.
4517 (ensure_lval): Renamed from place_on_stack.
4518 Make identity on lvals.
4520 (is_nonfunction): New interface.
4521 Only symbols in LOC_CONST class can be enumerals.
4522 (fill_in_ada_prototype): Remove; now independent of language.
4523 (add_defn_to_vec): Add obstack and symtab arguments.
4524 Use obstack to hold collected definitions.
4525 (num_defns_collected): New function.
4526 (defns_collected): New function.
4527 (ada_resolve_subexp): Rename to resolve_subexp.
4528 (resolve_subexp): Renamed from ada_resolve_subexp.
4529 (ada_op_name): Return non-const result.
4530 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4533 (to_fixed_array_type): Add declaration.
4534 (coerce_unspec_val_to_type): Remove offset parameter.
4535 (find_sal_from_funcs_and_line): New interface.
4536 (find_line_in_linetable): Ditto.
4538 (all_sals_for_line): Rename to ada_sals_for_line and make
4540 Add new parameter. When set, do not ask the user to choose the
4541 instance, but use the first one found instead.
4542 Use given line number in returned sals.
4544 Skip the prologue if funfirstline is set.
4545 Correct for memory leak when 0 lines found.
4547 (value_pos_atr): Use pos_atr.
4548 (pos_atr): New function.
4549 (standard_lookup): Add block parameter.
4551 (makeTimeStart): Remove declaration and uses.
4552 (makeTimeStop): Remove declaration and uses.
4554 (ada_completer_word_break_characters): Allow for VMS.
4555 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4556 (raise_sym_name): New constant.
4557 (raise_unhandled_sym_name): New constant.
4558 (raise_assert_sym_name): New constant.
4559 (process_raise_exception_name): New constant.
4560 (longest_exception_template): New constant.
4561 (warning_limit): New variable to limit warnings during expression
4563 (warnings_issued): New variable to keep track of warnings issued.
4564 (known_runtime_file_name_patterns): New constant.
4565 (known_auxiliary_function_name_patterns): New constant.
4566 (symbol_list_obstack): New variable.
4568 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4569 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4570 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4571 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4572 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4573 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4574 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4575 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4578 (ada_get_field_index): New function.
4579 (lim_warning): New function.
4580 (ada_translate_error_message): New function.
4581 (MAX_OF_SIZE): New function.
4582 (MIN_OF_SIZE): New function.
4583 (UMAX_OF_SIZE): New function.
4584 (UMIN_OF_SIZE): New function.
4585 (discrete_type_high_bound): New function.
4586 (discrete_type_low_bound): New function.
4587 (base_type): New function.
4588 (do_command): Remove.
4590 (ada_update_initial_language): Use language_ada, not language_unknown.
4591 (ada_encode): Renamed from ada_mangle.
4592 Obey ADA_RETAIN_DOTS.
4593 (ada_decode): Renamed from ada_demangle.
4594 Update coding conventions.
4595 (decoded_names_store): New hash table.
4596 (ada_decode_symbol): New function.
4597 (ada_la_decode): New function.
4599 (modify_general_field): Correct computations of offset and bit
4601 (desc_base_type): Handle ref types, too.
4602 (ada_is_direct_array_type): New function.
4604 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4605 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4606 (ada_is_bogus_array_descriptor,ada_type_of_array,
4607 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4608 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4609 ada_is_array_descriptor_type.
4611 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4612 (ada_is_packed_array_type): Handle pointers or
4613 references to packed arrays as well.
4614 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4615 (decode_packed_array_type): Search for the packed array type
4616 symbol in the currently selected block and associated
4618 Use lookup_symbol again.
4620 (decode_packed_array): Handle pointers and references.
4621 Update call to coerce_unspec_val_to_type.
4622 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4623 (ada_value_primitive_packed_val): Improve comment.
4625 (ada_index_type): Substitute int type for "undefined".
4626 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4627 ada_array_langth, ada_is_string_type): Use renamed
4628 ada_is_simple_array_type.
4629 (empty_array): New function.
4631 (ada_resolve): Rename to resolve.
4632 (resolve): Make static.
4633 Call renamed resolve_subexp.
4635 (ada_resolve_subexp): Rename to resolve_subexp.
4636 (resolve_subexp): Update comment.
4637 Decomment disabled code.
4638 Add LOC_COMPUTED* cases.
4639 Modify to use temporary struct symbols (marked as being in
4640 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4641 OP_UNRESOLVED_VALUE.
4642 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4645 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4646 Use new ada_lookup_symbol_list interface.
4647 Use new ada_resolve_function interface.
4648 Remove OP_TYPE case.
4650 (ada_args_match): Idiot proof against null actuals.
4651 Use intermediate variables to clarify.
4652 (ada_resolve_function): Update comment and interface.
4653 (mangled_ordered_before): Rename to encoded_ordered_before and
4655 (sort_choices): Update comment and interface.
4656 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4657 (user_select_syms): New interface.
4658 Use new sort_choices interface.
4659 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4660 (possible_user_operator_p): Idiot-proof against null values.
4661 (ada_simple_renamed_entity): Don't make cleanup; rely on
4662 caller to free result string.
4663 Remove const from return type.
4664 (make_array_descriptor): Rename uses of place_on_stack to
4666 Make sure that arrays are on stack.
4668 (HASH_SIZE): Define.
4669 (struct cache_entry): Define.
4670 (cache_space): Define.
4672 (clear_ada_sym_cache): New function.
4673 (find_entry): New function.
4674 (lookup_cached_symbol): New function.
4675 (defn_vector_size): Define.
4676 (cache_symbol): New function.
4677 (defn_symbols): Remove.
4679 (standard_lookup): Use lookup_symbol_in_language to get effect of
4683 (symbol_completion_match): New function.
4684 (symbol_completion_add): New function.
4685 (ada_make_symbol_completion_list): New function.
4687 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4688 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4689 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4690 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4692 (ada_lookup_simple_minsym): New function.
4693 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4695 (add_symbols_from_enclosing_procs): New interface.
4696 Conditionalize more helpfully.
4697 Don't bother if program isn't running.
4698 Use new interface to get_frame_block.
4699 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4701 (remove_extra_symbols): New interface.
4702 (xget_renaming_scope): New function.
4703 (is_package_name): New function.
4704 (renaming_is_visible): New function.
4705 (remove_out_of_scope_renamings): New function.
4707 (ada_lookup_symbol_list): New interface.
4708 Properly reinitialize the symbol list obstack.
4709 Don't call add_symbols_from_enclosing_procs if we start from a
4710 static or global block.
4711 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4712 add_symbols_from_enclosing_procs.
4713 Add symtab data to cached entries.
4714 Handle symbols prefixed with
4715 "standard__" specially; strip prefix and don't look in local symbols.
4716 Do not include out of scope renaming symbols in list of
4718 Add const to block parameter.
4719 Move check for non-local, non-global symbols earlier.
4720 Remove timing stuff.
4721 (ada_lookup_symbol): New interface.
4722 Find symtab as well.
4723 (ada_lookup_symbol_nonlocal): New function.
4725 (is_name_suffix): Enhance suffix detection to recognize
4726 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4727 (is_dot_digits_suffix): New function.
4728 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4730 (ada_add_block_symbols): New interface. Use obstack to return results
4731 in a vector of struct ada_symbol_infos. Add symtab argument.
4732 Use new interface to add_defn_to_vec.
4733 Remove calls to fill_in_ada_prototype.
4734 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4736 (ada_finish_decode_line_1): Add const qualification to local to fix
4738 Start looking in static block for functions to avoid attempts
4739 to search frame chain for up-level variables.
4740 Adapt to new ada_sals_for_line interface.
4741 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4742 Handle quoting of the function name inside the spec string.
4743 Skip prologue when funfirstline is set and update the
4744 function documentation to that effect.
4746 (debug_print_lines, debug_print_block, debug_print_blocks,
4747 debug_print_symtab): Remove.
4749 (ada_main_name): New function.
4750 (ada_exception_breakpoint_type): New function.
4751 (is_known_support_routine): New function.
4752 (ada_find_printable_frame): Renamed from find_printable_frame and made
4754 Remove level parameter.
4755 Use new interface to select_frame.
4757 (begin_command): Remove.
4758 (ada_adjust_exception_stop): New function.
4759 (ada_print_exception_stop): New function.
4760 (exception_name_from_cond): New function.
4761 (ada_report_exception_break): Replace disabled code with
4762 conditionalization on GNAT_GDB.
4763 Get the exception name from the condition string.
4764 Remove and move functionality into new functions
4765 ada_print_exception_breakpoint_task and
4766 ada_print_exception_breakpoint_nontask.
4767 (error_breakpoint_runtime_sym_not_found): New function.
4768 (is_runtime_sym_defined): New function.
4769 (ada_breakpoint_rewrite): Uncomment suppressed code.
4770 Use symbolic error-message and runtime-symbol names.
4771 Surround runtime symbol names in quotes.
4772 Allow non-specific breakpoints on exceptions and assertions before
4775 (ada_is_tagged_type): Add parameter.
4776 (ada_is_tag_type): New function.
4777 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4778 (ada_variant_discrim_type): Ditto.
4779 (value_tag_from_contents_and_address): New function.
4780 (type_from_tag): New function.
4781 (struct tag_args): New structure used to communicate with
4783 (ada_tag_name_1): New function.
4784 (ada_tag_name): New function.
4786 (ada_scan_number): Update comment.
4787 (find_struct_field): New function.
4788 (ada_search_struct_field): Make static.
4789 (ada_value_struct_elt): New version that returns references when
4790 given pointers or references to structs.
4791 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4792 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4794 (ada_value_ind): Use new ada_to_fixed_value interface.
4795 (ada_coerce_ref): Ditto.
4796 (field_offset): Remove.
4798 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4799 (ada_find_renaming_symbol): New function.
4800 (ada_prefer_type): Prefer named types over unnamed ones.
4801 (variant_field_index): New function.
4802 (contains_variant_part): Removed: subsumed by variant_field_index.
4803 (ada_template_to_fixed_record_type): New function, mostly from
4804 template_to_fixed_record_type.
4805 (template_to_fixed_record_type):
4806 Do not scan the type fields beyond the last one; prevents a
4808 Handle case where variant field is listed BEFORE discriminant it
4810 Fix calculation of record length when bit length is
4811 not evenly divisible by char length.
4812 Move code to ada_template_to_fixed_record_type and call it.
4814 (template_to_static_fixed_type): Revise comment.
4815 Modify to work on ordinary record types as well as templates,
4816 so as to handle fields that use ___XVE or ___XVU encodings.
4817 (to_record_with_fixed_variant_part): Fill out comment.
4818 Initialize C++ stuff in right type.
4819 Allow case where DVAL is null.
4820 Handle case where variant field is not last.
4821 Fix typo concerning record length.
4822 (to_fixed_record_type): Decomment disabled code.
4823 (to_fixed_record_type): Use variant_field_index instead of
4824 contains_variant_part.
4825 (to_fixed_variant_branch_type): Ditto.
4826 (to_fixed_array_type): Decomment disabled code.
4827 (ada_to_fixed_type): Convert tagged types to the specific type.
4828 Deactivate the size-check for array types in order to avoid
4829 some false size alarms.
4830 (to_static_fixed_type): Decomment disabled code.
4831 Modify to call template_to_static_fixed_type
4832 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4833 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4834 Remove valaddr argument, as it is never really used.
4835 (ada_to_fixed_value): Change interface to act on single struct value*
4837 (adjust_pc_past_prologue): New function.
4838 (ada_attribute_name): Modify to take enum exp_opcode argument.
4840 (ada_enum_name): Recognize new homonym-distinguishing convention.
4841 Adjust local variable's type to remove compiler warning.
4842 Fix a small problem in the part that unqualifies the enumeration name.
4843 (ada_value_binop): New function.
4844 (ada_value_equal): New function.
4846 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4847 Don't give error message when not doing normal evaluation
4848 and a tagged type doesn't seem to contain a structure member.
4849 Give error message for packed arrays.
4850 For indexing arrays, handle pointers to packed arrays correctly.
4851 Handle case of 'first and 'last attributes of bare integral type
4852 without encoded subtype info.
4853 Remove some unnecessary casts.
4854 Fix uninitialized value of type in computing 'first, 'last, or 'length
4856 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4857 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4859 Attributes are now exp_opcode values.
4860 Correct treatment of 'modulus.
4861 Better error message for taking 'length of wrong kind of type;
4863 Change EVAL_NORMAL to noside for consistency.
4864 Use ada_value_binop for DIV, MOD, REM.
4865 Make special case out of array of length 0, since an argument
4866 of 0 upsets some platforms' malloc.
4867 Use OP_STRING instead of OP_ARRAY.
4868 For slice, add check that we have an array type before extracting
4869 a slice out of it. Avoids a SEGV.
4870 When evaluating an array slice, if the array type is a reference to
4871 an aligner type, then replace the aligner type by the actual type.
4872 Decomment disabled code.
4873 Remove some dead code.
4874 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4875 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4876 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4877 and UNOP_MBR to UNOP_IN_RANGE.
4878 If an array type has a parallel ___XVE type, then use it.
4879 Turn arrays into pointers for lvalue arrays.
4880 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4881 bounds error and handle 0-length slices.
4883 When selecting fields, apply ada_to_fixed_value (because the fields
4884 might have ___XVU or ___XVE encodings even if not dynamic.)
4885 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4886 (ada_is_system_address_type): New function.
4888 (get_var_value): Use new interface to ada_lookup_symbol_list.
4889 (get_int_var_value): New interface.
4890 (to_fixed_range_type): Allow unknown bound, with warning.
4891 (ada_is_modular_type): Decomment disabled code.
4892 (ADA_OPERATORS): New definition.
4893 (ada_operator_length): New function.
4894 (ada_expr_op_name): New function.
4895 (ada_forward_operator_length): New function.
4896 (ada_dump_subexp_body): New function.
4897 (ada_print_subexp): New function.
4898 (ada_exp_descriptor): New constant.
4899 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4900 (ada_language_defn): Add ada_exp_descriptor entry.
4901 Change ada_parse => parse.
4902 Add post-parser entry.
4903 Use ada-specific non-local symbol lookup.
4904 Don't use C-style arrays.
4905 String lower-bound is 1.
4906 Decomment disabled code.
4907 (parse): New function.
4908 New fields ada_translate_error_message, ada_lookup_symbol,
4909 ada_lookup_minimal_symbol.
4911 * ada-lang.h: Update copyright dates.
4912 Replace the mangle/demangle terminology throughout by the
4913 more appropriate encode/decode one.
4914 Include breakpoint.h.
4915 Forward declare struct partial_symbol, struct block.
4916 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4917 (EXTRACT_ADDRESS): Remove.
4918 (EXTRACT_INT): Remove.
4919 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4920 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4921 (MAX_RENAMING_CHAIN_LENGTH): Define.
4922 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4924 (enum task_states): Remove.
4925 ada_task_states: Remove.
4926 (fat_string): Remove.
4927 (struct entry_call): Remove.
4928 (struct task_fields): Remove.
4929 (struct task_entry): Remove.
4931 (struct ada_symbol_info): Define.
4932 (enum ada_attribute): Remove.
4933 (enum ada_operator): Define.
4935 (ada_get_field_index): Declare.
4936 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4937 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4938 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4939 (ada_lookup_symbol_list): New interface.
4940 (ada_decode_symbol): Declare.
4941 (ada_decode): Declare.
4942 (ada_lookup_symbol): New interface.
4943 (ada_update_initial_language): Declare.
4944 (ada_lookup_simple_minsym): Declare.
4945 (user_select_syms): New interface.
4946 (ada_sals_for_line): Declare.
4947 (ada_is_tagged_type): New interface.
4948 (ada_tag_name): Declare.
4949 (ada_lookup_struct_elt_type): Remove declaration.
4950 (ada_search_struct_field): Remove declaration.
4951 (ada_attribute_name): New interface.
4952 (ada_is_system_address_type): Declare.
4953 (ada_to_fixed_value): Remove declaration.
4954 (ada_template_to_fixed_record_type_1): Declare.
4955 (get_int_var_value): New interface.
4956 (ada_find_any_symbol): Declare.
4957 (ada_find_renaming_symbol): Declare.
4958 (ada_mangle): Rename to ada_encode.
4959 (ada_simple_renamed_entity): Remove const.
4960 (ada_main_name): Declare.
4961 (get_current_task): Rename to ada_get_current_task.
4962 (get_entry_number): Remove declaration.
4963 (ada_report_exception_break): Remove declaration.
4964 (ada_print_exception_breakpoint_nontask): Declare.
4965 (ada_print_exception_breakpoint_task): Declare.
4966 (ada_find_printable_frame): Declare.
4968 * ada-lex.l: Update copyright notices.
4969 Use xmalloc and xfree instead of malloc and free.
4970 Use new interface to name_lookup.
4971 Use new interface to
4972 ada_mangle=>ada_encode.
4973 Redo handling of '$...' variable to parallel current treatment
4975 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4976 digit_to_int, strtoulst, processInt, processReal, processId,
4977 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4980 (processInt): Use cast to remove harmless warning.
4981 (processReal): Modify to get rid of compiler warning on scan formats.
4983 (processId): Replace xmalloc with obstack_alloc for name and remove
4984 call to ada_name_string_cleanup.
4985 Remove obsolete disabled code.
4986 (name_lookup): Ditto.
4988 Use obsavestring on temp_parse_space instead of savestring
4989 on name, and remove call to ada_name_string_cleanup.
4990 Free string returned from ada_simple_renamed_entity.
4991 Use new interface to ada_lookup_symbol_list.
4992 Decomment disabled code.
4993 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4995 When a type name lookup succeeds as a result of
4996 lookup_primitive_typename, check for regular type entry that has not
4998 Limit length of chain of renamed symbols we are willing to follow.
4999 Do not break names beginning with "standard__" into segments.
5000 (block_lookup): Use new interface to ada_lookup_symbol_list.
5002 * ada-typeprint.c: Update copyright notice.
5003 (demangled_type_name): Rename to decoded_type_name.
5004 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5005 (print_range_bound): Correct handling of negative
5006 bounds that make the index type looked unsigned under STABS.
5007 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5008 (print_range_type_named): Use the builtin int type if no type
5009 corresponding to the given type name could be found.
5010 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5011 Add some bullet-proofing.
5012 (print_variant_clauses): Allow for variant branches with ___XVU
5013 encodings that are not dynamic fields.
5014 Use new interface to ada_is_tagged_type.
5015 (print_record_type): Allow for fields with ___XVE encodings that
5016 are not dynamic fields.
5017 Use new interface to ada_is_tagged_type.
5018 (ada_print_type): ada_is_array_descriptor =>
5019 ada_is_array_descriptor_type.
5021 * ada-valprint.c: Update copyright notice.
5022 Include gdb_string.h
5024 (ui_memcpy): New function.
5025 (ada_print_floating): New function.
5026 (ada_print_str): Order arguments correctly.
5027 Correct handling of empty arrays and arrays of 0-length items.
5028 ada_is_array_descriptor => ada_is_array_descriptor_type
5029 Print values of type System.Address in hexadecimal format.
5030 Use ada_print_floating to print floating-point numbers in Ada format.
5031 Print class tag values with type names.
5032 No longer print the address of reference values. Avoids
5033 a potential confusion.
5034 (ada_value_print): Stop printing the object type for reference
5035 values, but preserve that behavior for access types. Avoids
5036 a potential confusion.
5037 Simplify one conditional expression, as the first part is now
5039 ada_is_array_descriptor => ada_is_array_descriptor_type
5040 Add check for arrays for null records, and print them by hand.
5042 2004-06-01 Jim Blandy <jimb@redhat.com>
5044 * ppc-tdep.h: Delete unused 'regoff' member.
5045 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5047 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5050 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5051 (hpread_read_struct_type): Likewise.
5053 2004-06-01 Andrew Cagney <cagney@gnu.org>
5055 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5056 instead of xasprintf.
5057 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5058 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5059 (mi_cmd_data_list_register_names)
5060 (mi_cmd_data_list_changed_registers)
5061 (mi_cmd_data_list_register_values)
5062 (get_register, mi_cmd_data_write_register_values)
5063 (mi_cmd_data_write_register_values)
5064 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5065 (mi_cmd_target_download, mi_cmd_target_select)
5066 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5067 (mi_execute_cli_command, mi_execute_async_cli_command)
5068 (mi_execute_async_cli_command): Ditto.
5069 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5070 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5072 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5073 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5074 error_last_message instead of mi_error_last_message.
5075 * mi/mi-main.c (mi_error_last_message): Delete function.
5077 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5078 "invalid number of columns" error. Delete redundant "out of
5081 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5083 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5084 (gregset_t, fpregset_t): Remove typedefs.
5085 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5086 (REG_OFFSET): Rename argument.
5087 (i386bsd_r_reg_offset): Rename from reg_offset.
5088 (REG_ADDR): Remove macro.
5089 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5091 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5092 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5093 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5094 instead of supply_gregset.
5095 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5096 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5097 instead of fill_gregset.
5098 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5100 * i386bsd-nat.c: Don't include "gregset.h".
5101 (supply_gregset, fill_gregset): Make static.
5102 (supply_fpregset, fill_fpregset): Remove.
5103 * Makefile.in (i386bsd-nat.o): Update dependencies.
5105 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5107 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5108 "gdb_assert.h". Con't include "gregset.h".
5109 (fbsd_make_corefile_notes): Use regset-based core file support
5110 instead off fill_gregset and fill_fpregset.
5111 * Makefile.in (fbsd-proc.o): Update dependencies.
5113 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5115 (m88k_frame_prev_register): Simplify code a bit.
5117 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5118 (amd64_collect_fpregset): New function.
5119 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5121 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5123 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5124 (i386_collect_gregset): New function.
5125 (i386_supply_fpregset): Adjust comment.
5126 (i386_collect_fpregset): New function.
5127 (i386_regset_from_core_section): Use i386_collect_gregset and
5128 i386_collect_fpregset.
5130 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5131 handle VALUEP being null.
5133 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5135 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5137 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5139 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5140 assembler in OpenBSD 3.5-current.
5141 (amd64obsd_sigcontext_addr): Likewise.
5143 2004-05-28 Jim Blandy <jimb@redhat.com>
5145 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5146 register set, so our regcache isn't declared "legacy" and our E500
5147 pseudoregister read and write functions aren't ignored.
5148 (rs6000_register_byte, rs6000_register_raw_size,
5149 rs6000_register_virtual_type, rs6000_register_convertible,
5150 rs6000_register_convert_to_virtual,
5151 rs6000_register_convert_to_raw): Deleted.
5152 (rs6000_register_type, rs6000_convert_register_p,
5153 rs6000_register_to_value, rs6000_value_to_register): New
5155 (rs6000_gdbarch_init): Don't register
5156 gdbarch_deprecated_register_size,
5157 gdbarch_deprecated_register_bytes,
5158 gdbarch_deprecated_register_byte,
5159 gdbarch_deprecated_register_raw_size,
5160 gdbarch_deprecated_register_virtual_type,
5161 gdbarch_deprecated_register_convertible,
5162 gdbarch_deprecated_register_convert_to_virtual, or
5163 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5164 register gdbarch_register_type, gdbarch_convert_register_p,
5165 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5167 2004-05-26 Jim Blandy <jimb@redhat.com>
5169 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5170 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5171 functions, updated to match the register numberings used in GCC.
5172 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5173 rs6000_dwarf2_reg_to_regnum as register number conversions
5174 functions for STABS and Dwarf2.
5176 2004-05-26 Randolph Chung <tausq@debian.org>
5178 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5181 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5183 * NEWS: Document new "start" command.
5185 2004-05-25 Randolph Chung <tausq@debian.org>
5187 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5190 2004-05-25 Randolph Chung <tausq@debian.org>
5192 * hppa-hpux-tdep.c (offsetof): Define.
5193 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5194 (hppa32_hpux_frame_base_before_sigtramp)
5195 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5196 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5197 (hppa64_hpux_frame_base_before_sigtramp)
5198 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5200 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5201 (hppa_hpux_sigtramp_frame_unwind_cache)
5202 (hppa_hpux_sigtramp_frame_this_id)
5203 (hppa_hpux_sigtramp_frame_prev_register)
5204 (hppa_hpux_sigtramp_frame_unwind)
5205 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5206 (hppa_hpux_init_abi): Register sigtramp unwinder.
5207 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5209 2004-05-25 Randolph Chung <tausq@debian.org>
5211 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5212 and multiple stack unwinds.
5213 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5215 2004-05-25 Andrew Cagney <cagney@gnu.org>
5217 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5218 * symfile-mem.h: Delete file.
5219 * symfile-mem.c: Do not include "symfile-mem.h".
5220 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5221 "struct bfd_section". When an error do not bother returning NULL.
5222 (add_symbol_file_from_memory_command): Use "struct bfd" and
5223 "struct bfd_section".
5224 * Makefile.in (symfile_mem_h): Delete.
5225 (symfile-mem.o): Update dependencies.
5227 2004-05-25 Nick Roberts <nickrob@gnu.org>
5229 * gdb-mi.el: New file.
5231 2004-05-25 Andrew Cagney <cagney@gnu.org>
5233 * inftarg.c: Include "observer.h".
5234 (child_attach, child_create_inferior): Notify inferior_created.
5235 * corelow.c: Include "observer.h".
5236 (core_open): Notify inferior_created.
5237 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5239 2004-05-25 Andrew Cagney <cagney@gnu.org>
5241 * target.h (struct target_ops): Add from_tty to
5243 (target_create_inferior, find_default_create_inferior): Update.
5244 * infcmd.c (run_command): Update.
5245 * wince.c (child_create_inferior): Update.
5246 * win32-nat.c (child_create_inferior): Update.
5247 * uw-thread.c (uw_thread_create_inferior): Update.
5248 * thread-db.c (thread_db_create_inferior): Update.
5249 * target.c (debug_to_create_inferior)
5250 (find_default_create_inferior): Update.
5251 (maybe_kill_then_create_inferior): Update.
5252 * sol-thread.c (sol_thread_create_inferior): Update.
5253 * remote.c (extended_remote_async_create_inferior)
5254 (extended_remote_create_inferior): Update.
5255 * remote-vx.c (vx_create_inferior): Update.
5256 * remote-st.c (st2000_create_inferior): Update.
5257 * remote-sim.c (gdbsim_create_inferior): Update.
5258 * remote-sds.c (sds_create_inferior): Update.
5259 * remote-rdp.c (remote_rdp_create_inferior): Update.
5260 * remote-rdi.c (arm_rdi_create_inferior): Update.
5261 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5262 * remote-e7000.c (e7000_create_inferior): Update.
5263 * procfs.c (procfs_create_inferior): Update.
5264 * ocd.c (ocd_create_inferior): Update.
5265 * ocd.h (ocd_create_inferior): Update.
5266 * nto-procfs.c (procfs_create_inferior): Update.
5267 * monitor.c (monitor_create_inferior): Update.
5268 * lin-lwp.c (lin_lwp_create_inferior): Update.
5269 * inftarg.c (child_create_inferior): Update.
5270 * hpux-thread.c (hpux_thread_create_inferior): Update.
5271 * gnu-nat.c (gnu_create_inferior): Update.
5273 2004-05-25 Andrew Cagney <cagney@gnu.com>
5275 * MAINTAINERS: Update e-mail address.
5277 2004-05-24 Randolph Chung <tausq@debian.org>
5279 * thread.c (info_threads_command, thread_apply_all_command)
5280 (thread_apply_command, thread_command, do_captured_thread_select):
5281 Remove HPUXHPPA-specific code.
5283 2004-05-24 Randolph Chung <tausq@debian.org>
5285 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5287 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5290 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5292 * infcmd.c (kill_if_already_running): New function, extracted
5294 (run_command): Replace extracted code by call to
5295 kill_if_already_running().
5296 (start_command): New function.
5297 (_initialize_infcmd): Add "start" command.
5299 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5301 Add OpenBSD/m88k support.
5302 * NEWS (New native configurations): Mention OpenBSD/m88k.
5303 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5304 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5305 * Makefile.in (m88k_tdep_h): New variable.
5306 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5307 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5308 * configure.host: Add m88*-*-openbsd*.
5309 * configure.tgt: Add m88*-*-openbsd*.
5311 2004-05-24 Jim Blandy <jimb@redhat.com>
5313 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5316 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5318 * symtab.c (fixup_section): Search section table when lookup by
5321 2004-05-24 Randolph Chung <tausq@debian.org>
5323 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5326 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5328 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5329 register number in regcache_raw_collect call.
5330 (m68kbsd_collect_fpregset): Likewise.
5331 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5333 * regset.h (struct regset): Add back `regset' member.
5335 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5337 * configure.in: Check for td_pcb in `struct thread'.
5338 * configure, config.in: Regenerated.
5340 * dpx2-nat.c: Remove file.
5341 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5342 (dpx2-nat.o): Remove dependencies.
5344 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5345 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5346 (amd64obsd_supply_pcb): New function.
5347 (_initialize_amd64obsd_nat): Enable libkvm interface.
5348 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5349 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5350 (LOADLIBES): New variable.
5352 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5353 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5354 (sparc32nbsd_supply_pcb): New function.
5355 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5356 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5357 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5358 (LOADLIBES): New variable.
5360 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5362 * bsd-kvm.c, bsd-kvm.h: New files.
5363 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5365 (i386fbsd_supply_pcb): New function.
5366 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5367 (i386fbsd-nat.o): Update dependencies.
5368 (bsd_kvm_h): New variable.
5369 (bsd-kvm.o): New dependency.
5370 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5371 (LOADLIBES): New variable.
5373 * regset.c: Tweak comment.
5374 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5376 * regset.h: Update copyright year.
5377 (struct regset): Remove `descr' member, add `gdbarch' member.
5378 (regset_alloc): Adjust prototype and comment.
5379 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5380 (i386_supply_fpregset): Likewise.
5381 (i386_regset_from_core_section): Update call to regset_alloc.
5382 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5384 (i386obsd_aout_regset_from_core_section): Update call to
5386 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5388 (i386nbsd_aout_regset_from_core_section): Update call to
5390 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5392 (amd64_regset_from_core_section): Update call to regset_alloc.
5393 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5395 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5396 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5397 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5398 (sparc32nbsd_init_abi): Update call to regset_alloc.
5399 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5400 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5401 (sparc64obsd_init_abi): Update call to regset_alloc.
5402 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5403 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5404 (sparc64nbsd_init_abi): Update call to regset_alloc.
5405 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5406 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5407 (sparc64fbsd_init_abi): Update call to regset_alloc.
5409 2004-05-22 Jim Blandy <jimb@redhat.com>
5411 * ppc-tdep.h (spe_register_p): New declaration.
5412 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5414 * rs6000-tdep.c (spe_register_p): New function.
5415 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5417 (rs6000_gdbarch_init): Initialize the new members of the tdep
5420 2004-05-21 Jim Blandy <jimb@redhat.com>
5422 * ppc-linux-nat.c (fetch_register): Move code back to be next
5423 to the comment that describes it. (Moved code, instead of
5424 comment, for symmetry with store_register.)
5426 Allocate regset structures in the gdbarch's obstack, not using
5428 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5429 Add 'arch' argument. Allocate the regset on arch's obstack, not
5431 * regset.h (regset_alloc): Update declaration.
5432 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5434 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5435 * i386-tdep.c (i386_regset_from_core_section): Same.
5436 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5437 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5438 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5439 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5440 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5441 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5443 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5445 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5447 2004-05-21 Jim Blandy <jimb@redhat.com>
5449 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5450 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5452 2004-05-20 Jim Blandy <jimb@redhat.com>
5454 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5456 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5458 * regset.h: Make prototype const-correct.
5459 * regset.c (regset_xmalloc): Make const-correct.
5461 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5463 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5464 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5465 (symbol_search_name): Declare.
5467 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5468 (iter_name_next_hashed): Ditto.
5469 (iter_name_next_linear): Ditto.
5470 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5472 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5473 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5474 (symbol_search_name): New function.
5476 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5478 * minsyms.c (build_minimal_symbol_hash_tables): Change
5479 test for adding to demangled hash table to check for difference
5480 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5482 2004-05-19 Jim Blandy <jimb@redhat.com>
5484 Use a constructor function to create regset structures.
5485 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5486 (struct regset): Use supply_regset_ftype. Add new
5487 'collect_regset' member.
5488 (regset_xmalloc): New declaration.
5489 * regset.c: New file.
5490 * am64-tdep.c (amd64_regset_from_core_section): Use
5491 regset_xmalloc to construct regset structures.
5492 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5493 * i386-tdep.c (i386_regset_from_core_section): Same.
5494 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5495 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5496 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5497 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5498 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5499 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5500 * Makefile.in (COMMON_OBS): Add regset.o.
5501 (regset.o): New rule.
5503 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5505 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5506 and pthread_cond_wait.c.
5508 2004-05-18 Jim Blandy <jimb@redhat.com>
5510 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5511 before the mach-specific switch, and then let the individual cases
5512 override the defaults, rather than leaving them uninitialized
5513 until the switch and then setting them in each case.
5515 2004-05-18 Randolph Chung <tausq@debian.org>
5517 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5518 millicode functions.
5520 2004-05-18 Randolph Chung <tausq@debian.org>
5522 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5523 references to dld_flags_buffer consistent.
5525 2004-05-18 Randolph Chung <tausq@debian.org>
5527 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5528 it for unwinding the stack.
5530 2004-05-18 Randolph Chung <tausq@debian.org>
5532 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5533 Undefine these so we can overide them using gdbarch.
5535 2004-05-18 Randolph Chung <tausq@debian.org>
5537 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5538 handling for 64-bit HPUX (elf).
5540 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5542 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5544 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5545 * ia64-tdep.c (examine_prologue): Likewise.
5546 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5547 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5549 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5551 * vax-tdep.c (vax_return_value): Implement
5552 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5554 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5556 * vax-tdep.c (vax_return_value): Fix typo.
5558 2004-05-17 Andrew Cagney <cagney@redhat.com>
5560 * MAINTAINERS: Mark Salter was also responsible for
5563 * NEWS: Mention signal fixes.
5565 2004-05-17 Randolph Chung <tausq@debian.org>
5567 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5568 check to see if we are unwinding an export stub. Export stubs clobber
5569 the %rp in the call path and stores the original rp in a stack slot.
5571 2004-05-17 Jim Blandy <jimb@redhat.com>
5573 * MAINTAINERS: Update address for J.T. Conklin.
5575 2004-05-17 Randolph Chung <tausq@debian.org>
5577 * hppa-tdep.c: Remove superfluous #include's.
5578 * Makefile.in (hppa-tdep.o): Update dependencies.
5580 2004-05-17 Randolph Chung <tausq@debian.org>
5582 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5583 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5584 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5585 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5586 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5587 Remove static function declarations.
5589 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5591 * alphabsd-nat.c: Update copyright year.
5592 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5594 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5597 * m68k-tdep.c (m68k_svr4_return_value): Implement
5598 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5600 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5602 * sol-thread.c Update copyright year. Fix various coding
5603 standards violations. Tweak a few comments.
5604 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5607 2004-05-15 Randolph Chung <tausq@debian.org>
5609 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5610 as pointer instead of array reference since HPUX compiler does
5611 not accept unsized array arguments.
5612 * somsolib.c (dld_flags_buffer): Use constant array size.
5614 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5616 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5617 offset with decimal offset.
5618 (amd64obsd_sigcontext_addr): Return correct address for entire
5621 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5622 instead of get_frame_base.
5624 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5625 (fill_gregset): Use regcache_raw_collect.
5627 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5630 * config/sparc/tm-nbsd64.h: Remove file.
5631 * config/tm-sunos.h: Remove file.
5633 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5635 * rs6000-tdep.c (store_param_on_stack_p): New function,
5636 an improved version of some code extracted from skip_prologue().
5637 (skip_prologue): Use store_param_on_stack_p() to detect
5638 instructions saving a parameter on the stack. Detect when r0
5639 is used to save a parameter.
5640 Do not mark "li rx, SIMM" instructions as part of the prologue,
5641 unless the following instruction is also part of the prologue.
5643 2004-05-14 Andrew Cagney <cagney@redhat.com>
5645 * infrun.c (handle_inferior_event): Simplify
5646 STEP_OVER_UNDEBUGGABLE.
5648 * infrun.c (handle_step_into_function): Delete function.
5649 (handle_inferior_event): Inline calls to
5650 handle_step_into_function.
5652 2004-05-14 Jerome Guitton <guitton@gnat.com>
5654 * rs6000-nat.c: Fix a comment.
5656 2004-05-12 David Anderson <davea@sgi.com>
5658 Committed by Jim Blandy <jimb@redhat.com>:
5659 * regcache.c (struct regcache_descr): fix comment spelling.
5661 2004-05-13 J. Brobecker <brobecker@gnat.com>
5663 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5664 Fixes a link link failure.
5666 2004-05-13 J. Brobecker <brobecker@gnat.com>
5668 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5669 error that was causing the build to fail.
5671 2004-05-13 J. Brobecker <brobecker@gnat.com>
5673 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5674 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5676 2004-05-13 Andrew Cagney <cagney@redhat.com>
5678 * infrun.c (handle_inferior_event): Check for
5679 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5680 calls. Update comments.
5682 2004-05-13 Jim Blandy <jimb@redhat.com>
5684 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5685 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5686 (store_regs_user_thread, store_regs_kernel_thread): Use
5687 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5688 * ppc-linux-nat.c (fill_gregset): Same.
5689 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5690 (ppc_linux_sigtramp_cache): Same.
5691 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5692 (ppcnbsd_sigtramp_cache_init): Same.
5693 * rs6000-nat.c (fetch_core_registers): Same.
5694 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5695 (rs6000_frame_cache): Same.
5697 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5698 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5699 of assuming that the gprs are numbered starting with zero.
5700 * ppc-linux-nat.c (fill_gregset): Same.
5701 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5702 * ppcnbsd-nat.c (getregs_supplies): Same.
5703 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5704 * rs6000-nat.c (fetch_core_registers): Same.
5705 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5707 2004-05-07 Michael Snyder <msnyder@redhat.com>
5709 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5710 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5712 2004-05-13 Andrew Cagney <cagney@redhat.com>
5714 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5716 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5718 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5719 base_address for shared libraries.
5721 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5723 * MAINTAINERS (write after approval): Add myself.
5725 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5727 * breakpoint.c (bpstat_stop_status): Add new argument
5728 STOPPED_BY_WATCHPOINT. Use it instead of testing
5729 target_stopped_data_address agaist 0 to check whether
5730 or not we stopped due to a hardware watchpoint.
5731 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5732 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5735 2004-05-12 Jim Blandy <jimb@redhat.com>
5737 * configure.in: When checking whether we should use the -bbigtoc
5738 option, don't forget to restore the original value of LDFLAGS.
5739 * configure: Regenerated.
5741 2004-05-12 Andrew Cagney <cagney@redhat.com>
5743 * thread.c (load_infrun_state): Delete step_sp.
5744 * infrun.c (context_switch): Ditto.
5745 * inferior.h (step_sp): Ditto.
5746 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5747 * gdbthread.h (struct thread_info, save_infrun_state)
5748 (restore_infrun_state): Ditto.
5750 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5752 * MAINTAINERS (write after approval): Add myself.
5754 2004-05-12 Andrew Cagney <cagney@redhat.com>
5756 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5757 eliminate reference to step_sp.
5758 (struct execution_control_state, init_execution_control_state)
5759 (handle_inferior_event, keep_going): Delete update_step_sp and
5761 * infcmd.c (step_sp): Note that variable is unused.
5763 2004-05-11 Andrew Cagney <cagney@redhat.com>
5765 * infrun.c (step_over_function): Delete function.
5766 (handle_step_into_function): Use insert_step_resume_breakpoint.
5767 (insert_step_resume_breakpoint): Fix assertion.
5769 2004-05-11 Nick Roberts <nickrob@gnu.org>
5771 * utils.c (defaulted_query): Just use the normal query input type
5772 when printing the annotations.
5774 2004-05-11 Andrew Cagney <cagney@redhat.com>
5776 * infrun.c (handle_inferior_event): Simplify code handling
5777 step-into or return-from a signal trampoline.
5779 2004-05-11 Andrew Cagney <cagney@redhat.com>
5781 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5782 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5784 2004-05-10 Jim Blandy <jimb@redhat.com>
5786 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5787 with a call to internal_error.
5789 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5790 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5791 processor variant lacks those registers.
5792 (ppc_floating_point_unit_p): Change description to make it clear
5793 that this returns info about the ISA, not the ABI.
5794 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5795 return true or false by checking tdep->ppc_fp0_regnum and
5796 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5797 arch/mach switching done in rs6000_gdbarch_init; it's better to
5798 keep that logic there, and just check the results here.
5799 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5800 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5801 floating-point registers.
5802 (ppc_supply_fpregset, ppc_collect_fpregset)
5803 (rs6000_push_dummy_call, rs6000_extract_return_value)
5804 (rs6000_store_return_value): Assert that we have floating-point
5806 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5807 (rs6000_frame_cache): Don't note the locations at which
5808 floating-point registers were saved if we have no fprs.
5809 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5811 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5812 (store_regs_user_thread, store_regs_kernel_thread): Only call
5813 supply_fprs / fill_fprs if we actually have floating-point
5815 (special_register_p): Check ppc_fpscr_regnum before matching
5817 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5818 supply / collect fpscr if we don't have it.
5819 * ppc-bdm.c: #include "gdb_assert.h".
5820 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5821 have floating-point registers, since I can't test this code on
5822 FP-free systems to adapt it.
5823 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5824 fpscr and floating point register numbers if they don't exist.
5825 (fetch_register): Assert that we have floating-point registers
5826 before we reach the code that handles them.
5827 (store_register): Same. And use tdep instead of calling
5829 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5831 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5832 fprs and fpscr if we don't have them.
5833 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5835 * ppcnbsd-nat.c: #include "gdb_assert.h".
5836 (getfpregs_supplies): Assert that we have floating-point registers.
5837 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5838 * ppcobsd-tdep.c: #include "gdb_assert.h".
5839 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5840 have floating-point registers.
5841 * rs6000-nat.c (regmap): Don't match against the fpscr and
5842 floating point register numbers if they don't exist.
5843 (fetch_inferior_registers, store_inferior_registers,
5844 fetch_core_registers): Only fetch / store / supply the
5845 floating-point registers and the fpscr if we have them.
5846 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5847 (ppcobsd-tdep.o): Update dependencies.
5849 2004-05-10 Andrew Cagney <cagney@redhat.com>
5851 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5852 (context_switch): Do not switch through_sigtramp_breakpoint.
5853 * gdbthread.h (save_infrun_state, load_infrun_state)
5854 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5855 and structure member.
5856 * thread.c (load_infrun_state, save_infrun_state): Update.
5858 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5860 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5862 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5864 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5866 * aclocal.m4: Regenerate.
5868 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5870 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5872 2004-05-10 Andrew Cagney <cagney@redhat.com>
5874 * infrun.c (check_sigtramp2): Delete function.
5875 (handle_inferior_event): When single stepping, and taking a
5876 signal, set a breakpoint at the signal return address. Delete
5877 redundant calls to check_sigtramp2.
5878 (insert_step_resume_breakpoint): New function.
5879 (through_sigtramp_breakpoint, handle_inferior_event)
5880 (follow_exec, wait_for_inferior, fetch_inferior_event)
5881 (currently_stepping, keep_going): Delete most uses of
5882 through_sigtramp_breakpoint, not that it should be deleted.
5883 (delete_breakpoint_current_contents): Delete function.
5885 2004-05-10 Randolph Chung <tausq@debian.org>
5887 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5889 * config/pa/tm-linux.h: New file.
5891 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5893 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5894 of prefixes. Don't print the prefix twice in the CLI.
5896 2004-05-10 Jim Blandy <jimb@redhat.com>
5898 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5899 collect all the gprs.
5901 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5902 loop collecting gprs.
5904 2004-05-09 Andrew Cagney <cagney@redhat.com>
5906 * remote-vx.c (net_step): Delete step-range code.
5907 * remote.c (remote_resume, init_all_packet_configs)
5908 (set_remote_protocol_E_packet_cmd)
5909 (show_remote_protocol_E_packet_cmd)
5910 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5911 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5912 (show_remote_protocol_e_packet_cmd): Ditto.
5914 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5916 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5918 * hppa-tdep.h: Update copyright year.
5919 (struct trad_frame_saved_reg): Add opaque declaration.
5921 * amd64-tdep.c (amd64_return_value): Implement
5922 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5924 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5925 (m68k_value_to_register): New functions.
5926 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5929 * defs.h (enum return_value_convention): Add
5930 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5931 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5932 * infcmd.c (legacy_return_value): New function.
5933 (print_return_value): Rwerite to implement
5934 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5935 * values.c (using_struct_return): Check for inequality to
5936 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5937 RETURN_VALUE_STRUCT_CONVENTION.
5938 * i386-tdep.c (i386_return_value): Implement
5939 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5941 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5942 include "symtab.h", "opcode/vax.h" and "inferior.h".
5943 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5944 to read_memory_unsigned_integer.
5945 (vax_gdbarch_init): Reorder.
5946 (_initialize_vax_tdep): Spell out prototype.
5947 * Makefile.in (vax-tdep.o): Update dependencies.
5949 2004-05-08 Andrew Cagney <cagney@redhat.com>
5951 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5952 * target.c (target_detach, target_disconnect): Ditto.
5954 * infcall.c (call_function_by_hand): When no
5955 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5956 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5957 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5958 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5959 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5961 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5962 * gdbarch.h, gdbarch.c: Re-generate.
5963 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5964 deprecated_fix_call_dummy.
5965 * v850-tdep.c (v850_gdbarch_init): Ditto.
5966 * infcall.c (call_function_by_hand): Do not call
5967 DEPRECATED_FIX_CALL_DUMMY.
5969 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5970 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5971 * gdbarch.h, gdbarch.c: Re-generate.
5972 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5973 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5974 deprecated_sizeof_call_dummy_words.
5975 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5976 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5977 * v850-tdep.c (v850_gdbarch_init): Ditto.
5978 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5979 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5980 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5981 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5982 * arch-utils.h (legacy_call_dummy_words)
5983 (legacy_sizeof_call_dummy_words): Delete declarations.
5984 * arch-utils.c (legacy_call_dummy_words)
5985 (legacy_sizeof_call_dummy_words): Delete variables.
5987 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5988 * gdbarch.h, gdbarch.c: Re-generate.
5989 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5990 * infcall.c (call_function_by_hand): Eliminate call to
5991 DEPRECATED_PUSH_DUMMY_FRAME.
5992 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5994 (ns32k_push_dummy_frame): Delete function.
5996 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5997 deprecated_call_dummy_breakpoint_offset or
5998 deprecated_call_dummy_start_offset.
5999 * dummy-frame.c, arm-tdep.c: Update comments.
6000 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6001 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6002 * gdbarch.h, gdbarch.c: Re-generate.
6004 * infcall.c (legacy_push_dummy_code): Delete function.
6005 (push_dummy_code): Delete call.
6007 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6008 * gdbarch.h, gdbarch.c: Re-generate.
6009 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6010 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6011 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6012 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6014 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6015 (struct frame_info): Delete opaque declaration.
6016 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6017 * frame.c (get_frame_type): Delete call.
6019 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6021 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6022 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6024 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6026 * alphanbsd-tdep.c: Include "gdb_string.h".
6027 * armnbsd-tdep.c: Update copyright year.
6028 Include "gdb_string.h".
6029 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6032 * delta68-nat.c: Remove file.
6033 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6034 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6035 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6036 (delta68-nat.o): Remove dependency.
6038 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6040 (m68k_gdbarch_init): Don't set
6041 deprecated_frameless_function_invocation.
6043 2004-05-07 Randolph Chung <tausq@debian.org>
6045 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6046 read_memory_nobpt for code reading when doing frame unwinding.
6047 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6049 2004-05-07 Randolph Chung <tausq@debian.org>
6051 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6052 instead of sp, handle sigaltstack case.
6053 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6054 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6055 signal handler and not that of the caller.
6056 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6057 hppa_linux_sigtramp_find_sigcontext.
6059 2004-05-07 Randolph Chung <tausq@debian.org>
6061 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6063 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6064 * hppa-linux-nat.c (fetch_register, store_register): Define.
6065 (fetch_inferior_registers, store_inferior_registers): Define.
6066 (supply_gregset): Add comment and clean up some unneeded code.
6067 (fill_gregset): Add comment and fix so that it saves registers in
6068 the right place in the gregset.
6069 (fill_fpregset): Fix buffer overrun problem.
6070 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6072 2004-05-07 Randolph Chung <tausq@debian.org>
6074 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6075 do common handling of the pcoqt register.
6076 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6077 to use helper function.
6078 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6079 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6080 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6081 generic fallback unwinder when all else fails.
6082 (hppa_gdbarch_init): Add fallback sniffer.
6083 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6084 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6085 to use helper function.
6087 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6089 * config/djgpp/fnchange.lst: Add translation rules for
6090 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6092 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6094 * frame.c (get_prev_frame_1): Work around GCC bug.
6095 * frame.h: Add comment about GCC bug.
6097 2004-05-07 Andrew Cagney <cagney@redhat.com>
6099 * observer.c: Include "commands.h" and "gdbcmd.h".
6100 (observer_debug, _initialize_observer): Add the
6101 command "set/show debug observer".
6102 * observer.sh: When observer debugging, log notify calls.
6103 * Makefile.in (observer.o): Update dependencies.
6105 2004-05-07 Jason Molenda (jmolenda@apple.com)
6107 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6109 2004-05-07 Jim Blandy <jimb@redhat.com>
6111 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6112 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6113 to recognize gpr regnums, instead of assuming that
6114 tdep->ppc_fp0_regnum marks the end of the general-purpose
6117 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6118 the given architecture has floating-point registers.
6120 2004-05-07 Andrew Cagney <cagney@redhat.com>
6122 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6124 * gdbarch.h, gdbarch.c: Re-generate.
6125 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6126 deprecated_use_generic_dummy_frames.
6128 2004-05-07 Brian Ford <ford@vss.fsi.com>
6130 * NEWS: Mention Cygwin DWARF 2 support.
6132 2004-05-07 Andrew Cagney <cagney@redhat.com>
6134 * objfiles.h (struct entry_info): Delete unused fields
6135 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6136 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6137 * mipsread.c (mipscoff_symfile_read): Update.
6138 * mdebugread.c (parse_partial_symbols): Update.
6139 * dwarfread.c (read_file_scope): Update.
6140 * dwarf2read.c (read_file_scope): Update.
6141 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6142 * coffread.c (complete_symtab): Update.
6144 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6146 * infcall.c (_initialize_infcall): Fix typo.
6148 2004-05-07 Andrew Cagney <cagney@redhat.com>
6150 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6151 * command.h (add_setshow_zinteger_cmd): Declare.
6153 2004-05-06 Randolph Chung <tausq@debian.org>
6155 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6156 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6157 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6158 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6159 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6160 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6161 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6163 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6164 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6165 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6166 (hppa64_hpux_frame_find_saved_regs_in_sig)
6167 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6168 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6169 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6170 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6171 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6172 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6173 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6174 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6175 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6176 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6177 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6178 (hppa32_register_type, hppa_cannot_store_register)
6179 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6180 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6181 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6182 * pa64solib.c (pa64_solib_have_load_event)
6183 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6184 (pa64_solib_unloaded_library_pathname): Likewise.
6185 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6186 (som_solib_library_pathname): Likewise.
6188 2004-05-05 Jim Ingham <jingham@apple.com>
6190 * breakpoint.c (create_breakpoints): Copy the ignore count and
6191 thread id over from the pended breakpoint to the actual
6194 2004-05-05 Andrew Cagney <cagney@redhat.com>
6196 * gdbarch.sh (PARM_BOUNDARY): Delete.
6197 gdbarch.h, gdbarch.c: Re-generate.
6198 * valops.c (PARM_BOUNDARY): Delete macro.
6199 (value_push): Delete PARM_BOUNDARY code.
6200 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6202 2004-05-04 Jim Blandy <jimb@redhat.com>
6204 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6205 Don't assume that the gprs, fprs, and UISA sprs are
6206 contiguous, start at register number zero, and end with fpscr.
6207 Instead, use the numbers from the tdep structure.
6209 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6210 should no longer be used in code specific to the RS6000 and its
6212 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6213 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6214 tdep->ppc_fp0_regnum.
6215 (ppc_supply_fpregset, ppc_collect_fpregset)
6216 (rs6000_push_dummy_call, rs6000_extract_return_value)
6217 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6218 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6220 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6221 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6223 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6224 bdm_ppc_store_registers): Same.
6225 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6226 (store_register, fill_fpregset): Same.
6227 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6228 (ppc_linux_supply_fpregset): Same.
6229 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6230 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6232 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6233 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6234 ppc64_sysv_abi_return_value): Same.
6235 * rs6000-nat.c (regmap, fetch_inferior_registers)
6236 (store_inferior_registers, fetch_core_registers): Same.
6238 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6240 * m68knbsd-nat.c: Remove file.
6241 * m68knbsd-tdep.c: Remove file.
6242 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6244 * configure.host: Add m68k-*-netbsdelf*.
6245 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6246 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6247 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6249 * config/m68k/nbsdelf.mh: New file.
6250 * config/m68k/nbsd.mt: New file.
6251 * config/m68k/nbsdaout.mt: Remove file.
6252 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6253 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6254 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6255 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6256 (use_struct_convention): Remove prototype.
6257 (USE_STRUCT_CONVENTION): Remove define.
6258 * config/m68k/xm-nbsd.h: Remove file.
6260 2004-05-04 Michael Snyder <msnyder@redhat.com>
6262 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6263 reg_struct_return method (as gcc usually does for cross targets).
6265 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6267 Committed by Andrew Cagney.
6268 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6269 alignment padding when accessing ucontext struct members.
6271 2004-05-04 Jim Blandy <jimb@redhat.com>
6273 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6274 'ppc_gplast_regnum' member.
6275 (ppc_num_gprs): New enum constant.
6276 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6277 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6278 * rs6000-nat.c (regmap, fetch_inferior_registers,
6279 store_inferior_registers): Same.
6280 * rs6000-tdep.c (e500_pseudo_register_read)
6281 (e500_pseudo_register_write): Same.
6282 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6284 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6285 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6286 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6287 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6289 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6291 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6292 * rs6000-nat.c (regmap, fetch_inferior_registers)
6293 (store_inferior_registers): Same.
6295 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6298 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6300 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6301 failure detected by recent versions of GCC.
6302 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6303 to be consistent with the usage in dwarf2_create_include_psymtab.
6305 2004-05-03 Michael Snyder <msnyder@redhat.com>
6307 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6308 (heuristic_proc_start): Whitespace cleanup.
6310 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6312 * sun3-nat.c: Remove file.
6313 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6315 (ALLDEPFILES): Remove sun3-nat.c.
6316 (sun3-nat.o): Remove dependencies.
6318 * i386-interix-nat.c, i386-interix-tdep.c,
6319 config/i386/nm-interix.h, config/i386/interix.mh,
6320 config/i386/interix.mt: Remove files.
6321 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6324 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6326 * m68k-tdep.h (struct gdbarch_tdep): Add member
6327 struct_value_regnum.
6328 (m68k_svr4_init_abi): New prototype.
6329 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6330 different calling conventions.
6331 (m68k_extract_return_value): Remove code dealing with single-field
6333 (m68k_store_return_value): Remove code dealing with single-field
6334 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6335 (m68k_extract_struct_value_address): Remove function.
6336 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6337 (m68k_reg_struct_return_p, m68k_return_value)
6338 (m68k_svr4_return_value): New functions.
6339 (m68k_use_struct_convention): Remove function.
6340 (m68k_push_dummy_call): Use new struct_value_regnum member of
6341 `struct gdbarch_tdep' instead of hardcoded register number to
6343 (m68k_svr4_init_abi): New function.
6344 (m68k_gdbarch_init): Don't set extract_return_value,
6345 store_return_values, deprecated_extract_struct_value_address and
6346 use_struct_convention. Set return_value instead. Initialize new
6347 struct_value_regnum member of `struct gdbarch_tdep'.
6348 * m68klinux-tdep.c: Update copyright year.
6349 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6350 (m68k_linux_extract_struct_value_address): Remove function.
6351 (m68k_linux_init_abi): Don't set extract_return_value,
6352 store_return_values, deprecated_extract_struct_value_address and
6353 use_struct_convention. Call m68k_svr4_init_abi but override the
6354 new struct_value_regnum member of `struct gdbarch_tdep'.
6355 * Makefile.in (m68k-tdep.o): Update dependencies.
6357 2004-05-03 J. Brobecker <brobecker@gnat.com>
6359 * dwarf2read.c (line_header): Add new included_p field in
6361 (partial_die_info): New field has_stmt_list. New field line_offset.
6362 (dwarf2_create_include_psymtab): New function.
6363 (dwarf2_build_include_psymtabs): New function.
6364 (add_file_name): Add forward declaration. Initialize new field.
6365 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6366 to be able to determine the list of files included by the
6367 given unit, and build their associated psymtabs.
6368 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6370 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6371 (read_file_scope): Update call to dwarf_decode_lines.
6372 (read_partial_die): Handle DW_AT_stmt_list attributes.
6374 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6377 * configure.in: Revert special case for osf5.*.
6378 * configure: Regenerate.
6380 2004-05-02 Jim Blandy <jimb@redhat.com>
6382 Move the symbol-file-from-memory functions into their own file.
6383 * symfile-mem.c, symfile-mem.h: New files.
6384 * symfile.c (symbol_file_add_from_bfd): New function.
6385 (symbol_file_add): Call symbol_file_add_from_bfd.
6386 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6387 Moved to symfile-mem.c.
6388 (_initialize_symfile): Move definition of
6389 add-symbol-file-from-memory command to symfile-mem.c.
6390 * symfile.h (symbol_file_add_from_bfd): New declaration.
6391 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6392 * config/powerpc/linux.mt (TDEPFILES): Same.
6393 * Makefile.in (SFILES): Add symfile-mem.c.
6394 (symfile_mem_h): New variable.
6395 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6396 (symfile-mem.o): New rule.
6398 2004-05-01 Andrew Cagney <cagney@redhat.com>
6400 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6401 frame_find_by_id instead of frame_relative_level.
6402 (do_enable_breakpoint): Ditto.
6403 * thread.c: Update copyright.
6404 (info_threads_command): Ditto, simplify.
6406 * frame.c (deprecated_generic_get_saved_register): Delete
6407 function, moved to "xstormy16-tdep.c".
6408 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6409 deprecated_generic_get_saved_register from "frame.c".
6410 (xstormy16_frame_saved_register): Call
6411 xstormy16_get_saved_register.
6412 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6414 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6415 * frame.h (deprecated_generic_get_saved_register): Delete.
6417 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6419 * dwarfread.c: Update documentation on the state of dwarf-1.
6421 2004-05-01 Andrew Cagney <cagney@redhat.com>
6423 * stack.c (select_frame_command): Delete call to
6424 frame_relative_level.
6425 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6427 (frame_info): Do not print FRAMELESS.
6428 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6429 (catch_info): Delete #if0 code.
6431 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6432 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6433 of frame_relative_level.
6434 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6436 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6437 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6438 frame_relative_level.
6440 * frame.h (deprecated_set_frame_type): Delete declaration.
6441 * frame.c (deprecated_set_frame_type): Delete function, update
6444 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6445 * gdbarch.h, gdbarch.c: Re-generate.
6446 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6447 (shnbsd_pc_in_sigtramp): Delete.
6448 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6450 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6452 * frame.h: Update comments.
6453 * ppc-linux-tdep.c: Update comments.
6454 * breakpoint.c (bpstat_what): Update comments.
6456 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6457 m68klinux-tdep.o's dependencies, were previously added to
6460 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6461 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6462 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6463 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6464 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6466 * Makefile.in (m68klinux-nat.o): Update dependencies.
6467 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6468 (m68k_linux_sigtramp_frame_cache)
6469 (m68k_linux_sigtramp_frame_this_id)
6470 (m68k_linux_sigtramp_frame_prev_register)
6471 (m68k_linux_sigtramp_frame_unwind)
6472 (m68k_linux_sigtramp_frame_sniffer)
6473 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6474 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6475 names, use trad-frame.h.
6476 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6477 (struct m68k_sigtramp_info): Delete.
6478 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6479 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6480 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6481 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6484 * infrun.c (check_sigtramp2): Delete check for
6485 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6487 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6489 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6491 2004-05-01 Andrew Cagney <cagney@redhat.com>
6493 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6494 (frv_linux_sigtramp_frame_cache)
6495 (frv_linux_sigtramp_frame_this_id)
6496 (frv_linux_sigtramp_frame_prev_register)
6497 (frv_linux_sigtramp_frame_unwind)
6498 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6499 include "linux" in function and variable names, directly call
6500 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6501 the latest trad-frame code.
6502 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6503 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6504 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6505 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6506 * frv-tdep.c (frv_sigtramp_frame_cache)
6507 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6508 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6510 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6511 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6512 (frv_set_sigcontext_reg_addr): Delete function.
6514 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6515 (DEPRECATED_SIGTRAMP_END): Delete.
6516 * gdbarch.h, gdbarch.c: Re-generate.
6517 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6518 * config/vax/tm-vaxbsd.h: Update copyright.
6519 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6520 (DEPRECATED_IN_SIGTRAMP): Define.
6521 * config/m68k/tm-nbsd.h: Update copyright.
6522 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6523 (DEPRECATED_IN_SIGTRAMP): Define.
6525 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6527 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6528 encondings. Fixes PR gdb/1628.
6530 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6531 DW_CFA_restore state without a matching DW_CFA_remember_state
6532 instead of aborting. Fixes PR backtrace/1589.
6534 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6536 * MAINTAINERS: Add self as AIX maintainer.
6537 Update my e-mail address in write-after-approval section.
6539 2004-04-30 Andrew Cagney <cagney@redhat.com>
6541 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6542 (legacy_get_prev_frame): Ditto.
6544 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6545 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6546 * mipsread.c (sigtramp_address): Delete extern variable.
6547 (mipscoff_new_init): Delete reference.
6548 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6549 (fixup_sigtramp): Delete function.
6550 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6551 (fixup_sigtramp): Delete declarations.
6553 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6554 deprecated_pc_in_sigtramp.
6555 (ppcnbsd_pc_in_sigtramp): Delete function.
6557 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6559 * config/m68k/nm-nbsd.h: Tweak comments.
6560 * config/m68k/nm-nbsdaout.h: Likewise.
6562 2004-04-30 Andrew Cagney <cagney@redhat.com>
6564 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6565 legacy_pc_in_sigtramp.
6566 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6568 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6570 Add OpenBSD/m68k support.
6571 * NEWS (New native configurations): Mention OpenBSD/m68k.
6572 * m68kbsd-tdep.c: New file.
6573 * m68kbsd-nat.c: New file.
6574 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6575 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6576 * configure.host: Add m68k-*-openbsd.
6577 * configure.tgt: Add m68k-*-openbsd.
6578 * config/m68k/tm-obsd.h: New file.
6579 * config/m68k/obsd.mt: New file.
6580 * config/m68k/obsd.mh: New file.
6581 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6584 2004-04-30 Andrew Cagney <cagney@redhat.com>
6586 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6587 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6589 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6591 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6592 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6594 2004-04-30 Brian Ford <ford@vss.fsi.com>
6596 Revert 2004-04-16 change.
6597 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6598 (i386_coff_init_abi): Remove.
6599 * i386-tdep.h (i386_coff_init_abi): Remove.
6600 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6602 2004-04-30 Andrew Cagney <cagney@redhat.com>
6604 * blockframe.c (find_pc_partial_function): Delete use of
6605 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6606 DEPRECATED_SIGTRAMP_END.
6608 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6609 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6610 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6611 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6612 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6614 * defs.h (deprecated_inside_entry_file): Delete declaration.
6615 * blockframe.c (deprecated_inside_entry_file): Delete function.
6616 (legacy_frame_chain_valid): Delete call.
6617 * sh64-tdep.c (sh64_frame_chain): Delete call.
6618 * objfiles.h: Update comments.
6619 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6621 * frame.c (get_prev_frame): Delete call, update comments.
6623 2004-04-30 Brian Ford <ford@vss.fsi.com>
6625 * MAINTAINERS (Write After Approval): Add myself.
6627 2004-04-30 Andrew Cagney <cagney@redhat.com>
6629 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6630 * gdbarch.h, gdbarch.c: Re-generate.
6631 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6634 2004-04-30 Andrew Cagney <cagney@redhat.com>
6636 * gdb-events.sh (selected_thread_changed)
6637 (selected_frame_level_changed, target_changed): Delete.
6638 * gdb-events.h, gdb-events.c: Re-generate.
6639 * valops.c (value_assign): Update.
6640 * stack.c (select_frame_command, up_silently_base)
6641 (down_silently_base): Update.
6643 2004-04-29 Andrew Cagney <cagney@redhat.com>
6645 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6646 registers correctly.
6647 (print_gp_register_row, mips32_heuristic_proc_desc)
6648 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6649 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6650 references to mips_isa_regsize.
6652 2004-04-29 Andrew Cagney <cagney@redhat.com>
6654 * mips-tdep.c (struct gdbarch_tdep): Delete
6655 mips_fp_register_double.
6656 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6658 (mips_gdbarch_init): Do not set mips_fp_register_double.
6659 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6661 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6663 Committed by Andrew Cagney.
6664 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6667 2004-04-29 Andrew Cagney <cagney@redhat.com>
6669 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6670 gdbarch, use mips_abi, update callers.
6671 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6672 mips_abi_regsize, update callers.
6673 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6674 mips_default_abi_regsize.
6675 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6676 mips_default_abi_regsize.
6678 2004-04-29 Andrew Cagney <cagney@redhat.com>
6680 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6681 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6682 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6683 mips_default_abi_regsize.
6684 (mips_isa_regsize): Rename mips_regisze.
6685 * mipsnbsd-tdep.c: Update.
6686 * mips-linux-tdep.c: Update.
6687 * irix5-nat.c: Update.
6688 * mips-tdep.h (mips_isa_regsize): Update.
6690 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6691 Delete all disabled code.
6692 * gdb-events.h, gdb-events.c: Re-generate.
6694 2004-04-19 Jerome Guitton <guitton@gnat.com>
6695 Mark Kettenis <kettenis@gnu.org>
6697 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6698 the function begins with a branch instruction.
6700 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6702 * i386-tdep.c: Fix spelling mistakes.
6704 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6705 Andrew Cagney <cagney@redhat.com>
6707 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6709 * acconfig.h: Provide default _KMEMUSER value.
6710 * config.in, configure: Re-generate.
6711 * NEWS: Mention fix.
6713 2004-04-24 Randolph Chung <tausq@debian.org>
6715 * configure.host (hppa*-*-linux*): New target.
6716 * configure.tgt (hppa*-*-linux*): Likewise.
6717 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6718 gdbarch_init_osabi() call earlier so that osabi-specific frame
6719 unwinders can be registered first.
6720 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6722 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6723 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6724 * config/pa/linux.mh: New file.
6725 * config/pa/linux.mt: New file.
6726 * config/pa/nm-linux.h: New file.
6727 * config/pa/xm-linux.h: New file.
6728 * hppa-linux-nat.c: New file.
6729 * hppa-linux-tdep.c: New file.
6731 2004-04-28 Randolph Chung <tausq@debian.org>
6733 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6735 (hppa32_push_dummy_call): Fix small struct and floating point argument
6736 passing, and make sure the stack frame is properly aligned.
6738 2004-04-28 Andrew Cagney <cagney@redhat.com>
6740 * stack.c (print_stack_frame): Fix description.
6742 * NEWS: Mention gdb/gdbserver/configure execute permission
6743 changed. PR server/519.
6745 2004-04-28 Andrew Cagney <cagney@redhat.com>
6747 * stack.c (print_stack_frame_stub): Delete declaration.
6748 (struct print_stack_frame_args, print_stack_frame)
6749 (print_frame_info, print_frame): Replace "source" with print what.
6750 Replace "print" with "print_level". Replace "args" with
6752 * frame.h (show_and_print_stack_frame, print_stack_frame)
6753 (print_frame_info): Update declarations.
6754 * stack.c (select_and_print_frame, frame_command)
6755 (current_frame_command, up_command, down_command): Update calls -
6756 use get_selected_frame, pass "enum print_what" for source, do not
6757 call frame_relative_level.
6758 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6759 * remote-rdp.c (remote_rdp_open): Ditto.
6760 * remote-mips.c (common_open): Ditto.
6761 * remote-e7000.c (e7000_start_remote): Ditto.
6762 * ocd.c (ocd_start_remote): Ditto.
6763 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6764 * infrun.c (normal_stop): Ditto.
6765 * inflow.c (kill_command): Ditto.
6766 * infcmd.c (finish_command): Ditto.
6767 * corelow.c (core_open): Ditto.
6768 * tracepoint.c (finish_tfind_command): Ditto.
6769 * thread.c (info_threads_command, info_threads_command)
6770 (restore_current_thread, do_captured_thread_select): Ditto.
6771 * ada-tasks.c (task_command): Ditto.
6773 2004-04-26 Orjan Friberg <orjanf@axis.com>
6775 * frame.c: Include "observer.h".
6776 (frame_observer_target_changed): New function.
6777 (_initialize_frame): Attach target_changed observer.
6778 * regcache.c: Include "observer.h".
6779 (regcache_observer_target_changed): New function.
6780 (_initialize_regcache): Attach target_changed observer.
6781 * valops.c: Include "observer.h".
6782 (value_assign): Notify target_changed event when modifying register.
6783 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6785 2004-04-26 Orjan Friberg <orjanf@axis.com>
6787 From Paul Koning <pkoning@equallogic.com>:
6788 * breakpoint.c (free_valchain): New function.
6789 (insert_bp_location, delete_breakpoint): Use free_valchain.
6790 (remove_breakpoint): Do not remove the valchain.
6791 (bpstat_stop_status): If not stopped by watchpoint, skip
6792 watchpoints when generating stop status list.
6793 * infrun.c (handle_inferior_event): Make
6794 stepped_after_stopped_by_watchpoint a global variable.
6795 * remote.c (remote_stopped_data_address): Return watch data
6796 address rather than zero if stepped_after_stopped_by_watchpoint is
6799 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6802 * configure.in: Check for curses after termcap.
6803 On osf5.*, do not check for ncurses.
6804 * configure: Regenerate.
6806 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6808 * ppcobsd-nat.c: Include "ppc-tdep.h".
6809 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6811 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6812 Fixes PR tdep/1623 and PR tdep/1624.
6814 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6816 * xmodem.h, xmodem.c: Remove files.
6817 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6819 2004-04-23 Randolph Chung <tausq@debian.org>
6821 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6822 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6823 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6824 for handling stackless frames.
6825 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6827 2004-04-23 Randolph Chung <tausq@debian.org>
6829 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6830 starts at a pc before the frame is created.
6832 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6834 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6836 2004-04-23 Jerome Guitton <guitton@gnat.com>
6838 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6839 use convert_typed_floating to get the appropriate format.
6841 2004-04-22 Randolph Chung <tausq@debian.org>
6843 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6844 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6845 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6846 (hppa_sign_extend): Add prototype.
6847 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6848 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6849 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6850 hppa targets will also use these functions.
6851 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6852 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6853 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6854 (hppa_gdbarch_init): Remove gdbarch setting of
6855 skip_trampoline_code, in_solib_call_trampoline and
6856 in_solib_return_trampoline.
6857 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6858 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6859 hppa_in_solib_call_trampoline.
6860 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6861 Moved from hppa-tdep.c.
6862 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6863 in_solib_call_trampoline and in_solib_return_trampoline.
6865 2004-04-22 Randolph Chung <tausq@debian.org>
6867 * hppa-tdep.c (hppa_debug): New variable.
6868 (find_unwind_entry, hppa_frame_cache): Add debug output.
6869 (_initialize_hppa_tdep): Add command to set debug flag.
6871 2004-04-22 Andrew Cagney <cagney@redhat.com>
6873 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6875 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6876 signal trampoline unwinder.
6877 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6879 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6881 Add OpenBSD/powerpc support.
6882 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6883 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6884 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6885 (ppc_collect_fpregset): New prototypes.
6886 * ppcobsd-nat.c: New file.
6887 * ppcobsd-tdep.c: New file.
6888 * ppcobsd-tdep.h: New file.
6889 * rs6000-tdep.c: Include "regset.h".
6890 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6891 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6893 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6894 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6895 (rs6000-tdep.o): Update dependencies.
6896 * configure.host: Add powerpc-*-openbsd.
6897 * configure.tgt: Add powerpc-*-openbsd.
6898 * config/powerpc/obsd.mh: New file.
6899 * config/powerpc/nm-obsd.h: New file.
6900 * config/powerpc/obsd.mt: New file.
6902 2004-04-22 Andrew Cagney <cagney@redhat.com>
6904 * frame.h (show_frame_info): Delete declaration.
6906 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6907 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6908 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6909 * frv-tdep.c (frv_frame_this_id): Ditto.
6910 * avr-tdep.c (avr_frame_this_id): Ditto.
6912 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6914 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6916 2004-04-22 Jim Blandy <jimb@redhat.com>
6918 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6919 register number zero.
6921 2004-04-21 Michael Snyder <msnyder@redhat.com>
6923 * mips-tdep.c (heuristic_proc_start):
6924 Warning() already prefixes "Warning: ".
6926 2004-04-21 Andrew Cagney <cagney@redhat.com>
6928 * annotate.h (deprecated_annotate_starting_hook)
6929 (deprecated_annotate_stopped_hook)
6930 (deprecated_annotate_exited_hook)
6931 (deprecated_annotate_signal_hook)
6932 (deprecated_annotate_signalled_hook): Deprecate.
6933 * tracepoint.h (deprecated_create_tracepoint_hook)
6934 (deprecated_delete_tracepoint_hook)
6935 (deprecated_modify_tracepoint_hook)
6936 (deprecated_trace_find_hook)
6937 (deprecated_trace_start_stop_hook): Deprecate.
6938 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6939 * remote.h (deprecated_target_resume_hook)
6940 (deprecated_target_wait_loop_hook): Deprecate.
6941 * gdbcore.h (deprecated_exec_file_display_hook)
6942 (deprecated_file_changed_hook): Deprecate.
6943 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6944 * defs.h (deprecated_modify_breakpoint_hook)
6945 (deprecated_command_loop_hook, deprecated_show_load_progress)
6946 (deprecated_print_frame_info_listing_hook)
6947 (deprecated_query_hook, deprecated_warning_hook)
6948 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6949 (deprecated_delete_breakpoint_hook)
6950 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6951 (deprecated_readline_begin_hook, deprecated_readline_hook)
6952 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6953 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6954 (deprecated_context_hook, deprecated_target_wait_hook)
6955 (deprecated_attach_hook, deprecated_detach_hook)
6956 (deprecated_call_command_hook, deprecated_set_hook)
6957 (deprecated_error_hook, deprecated_error_begin_hook)
6958 (deprecated_ui_load_progress_hook): Deprecate.
6959 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6960 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6961 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6962 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6963 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6964 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6965 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6966 * annotate.c, aix-thread.c: Update.
6968 2004-04-21 Andrew Cagney <cagney@redhat.com>
6970 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6971 * vaxnbsd-tdep.c: Include "gdb_string.h".
6973 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6974 (add_symbol_file_from_memory_command): #if 0 function body, call
6977 2004-04-21 Andrew Cagney <cagney@redhat.com>
6979 * gdbcore.h: Update copyright.
6980 (deprecated_add_core_fns): Rename add_core_fns.
6981 * win32-nat.c (_initialize_core_win32): Update.
6982 * sun3-nat.c (_initialize_core_sun3): Update.
6983 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6984 * rs6000-nat.c (_initialize_core_rs6000): Update.
6985 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6986 * nto-tdep.c (_initialize_nto_tdep): Update.
6987 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6988 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6989 * mips-nat.c (_initialize_core_mips): Update.
6990 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6991 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6992 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6993 * lynx-nat.c (_initialize_core_lynx): Update.
6994 * irix5-nat.c (_initialize_core_irix5): Update.
6995 * i386-interix-nat.c (_initialize_core_interix): Update.
6996 * cris-tdep.c (_initialize_cris_tdep): Update.
6997 * corelow.c (deprecated_add_core_fns): Update.
6998 * core-regset.c (_initialize_core_regset): Update.
6999 * core-aout.c (_initialize_core_aout): Update.
7000 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7001 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7002 * alpha-nat.c (_initialize_core_alpha): Update.
7004 2004-04-21 Jim Blandy <jimb@redhat.com>
7006 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7008 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7010 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7012 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7013 (read_attribute_value): Update calls to dwarf_alloc_block.
7014 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7016 (psymtab_to_symtab_1): Likewise. Clean up using
7017 free_stack_comp_unit.
7018 (add_to_cu_func_list): Use the comp_unit_obstack.
7020 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7022 * dwarf2read.c (dwarf2_flag_true_p): New function.
7023 (die_is_declaration): Use the function above. Add some comments.
7025 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7027 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7028 architecture when registering sparcnbsd_core_osabi_sniffer.
7031 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7033 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7036 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7037 * i386-tdep.c: Correct register numbering scheme comments
7039 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7040 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7041 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7042 (i386_gdb_arch_init): Likewise.
7044 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7045 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7048 * m68k-tdep.h: Tweak comments.
7049 * m68k-tdep.c: Tweak comment.
7051 2004-04-17 Randolph Chung <tausq@debian.org>
7053 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7054 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7055 (hppa_hpux_som_init_abi): Set is_elf to 0.
7056 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7057 * hppa-tdep.c (low_text_segment_address): Remove global.
7058 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7059 section offset to calculate segment address.
7060 (internalize_unwinds): Define low_text_segment_address as local and
7061 pass to record_text_segment_lowaddr for ELF targets.
7062 (hppa_gdbarch_init): Zero fill tdep structure.
7063 (hppa_dump_tdep): Print tdep structure.
7064 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7066 2004-04-17 Randolph Chung <tausq@debian.org>
7068 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7069 (hppa_gdbarch_init): Set pseudo_register_read.
7070 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7071 * regcache.c (supply_register): Remove check for
7072 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7074 2004-04-17 Randolph Chung <tausq@debian.org>
7076 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7077 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7078 (hpread_adjust_stack_address): Move to hpread.c.
7079 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7080 obj_private_struct): Move from tm-hppa.h.
7081 * hpread.c (hppa-tdep.h): Include.
7082 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7083 (hpread_read_function_type, hpread_read_doc_function_type)
7084 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7086 * pa64solib.c (hppa-tdep.h): Include.
7087 * somsolib.c (hppa-tdep.h): Include.
7088 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7089 inferior_status): Remove unused forward declarations.
7090 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7091 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7092 obj_private_struct): Move to hppa-tdep.h.
7093 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7095 2004-04-17 Randolph Chung <tausq@debian.org>
7097 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7098 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7099 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7100 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7101 Remove forward declaration and make static.
7102 (hppa_reg_struct_has_addr): Remove.
7104 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7106 * observer.sh: Move comments in sed command to first column.
7108 2004-04-16 Jason Molenda (jmolenda@apple.com)
7110 * frame.c: Minor typeo corrections in comments.
7112 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7114 * observer.c (observer_test_first_notification_function): Update
7116 (observer_test_second_notification_function): Likewise.
7117 (observer_test_third_notification_function): Likewise.
7119 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7121 From Brian Ford <ford@vss.fsi.com>:
7122 * i386-tdep.c (i386_coff_init_abi): New function.
7123 * i386-tdep.h (i386_coff_init_abi): New prototype.
7124 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7125 register number translation functions for DWARF and DWARF 2.
7127 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7129 * dwarf2read.c: Back out my previous change, it was incorrect.
7131 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7133 * dwarf2read.c: Include "hashtab.h".
7134 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7136 (struct partial_die_info): Add comments. Use bitfields to reduce
7137 memory footprint. Add scope, scope_set, has_specification,
7138 spec_offset, die_parent, die_child, and die_sibling.
7139 (peek_die_abbrev): Add prototype.
7140 (partial_read_comp_unit_head): New function, broken out from
7141 dwarf2_build_psymtabs_hard.
7142 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7143 Use partial_read_comp_unit_head. Initialize the CU and
7144 comp_unit_obstack. Update calls to read_partial_die and
7145 scan_partial_symbols. Use free_stack_comp_unit and
7147 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7148 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7149 Update calls to helper functions. Remove NAMESPACE argument.
7151 (partial_die_parent_scope, partial_die_full_name): New functions.
7152 (add_partial_symbol): Remove namespace argument. Update call to
7153 pdi_needs_namespace. Use partial_die_full_name. Handle
7154 DW_TAG_namespace. Check has_namespace_info flag.
7155 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7156 tag. Handle namespaces.
7157 (add_partial_namespace, add_partial_enumeration): Simplify.
7158 (guess_structure_name): New function, derived from
7159 add_partial_structure.
7160 (add_partial_structure): Remove.
7161 (determine_class_name): Update comment.
7162 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7163 (is_type_tag_for_partial, load_partial_dies): New functions.
7164 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7165 Record specifications instead of following them immediately.
7166 (find_partial_die_in_comp_unit, find_partial_die)
7167 (fixup_partial_die, free_stack_comp_unit)
7168 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7169 (partial_die_hash, partial_die_eq): New functions.
7170 * Makefile.in (hashtab_h): Define.
7171 (dwarf2read.o): Update dependencies.
7172 (observer_inc, observer_h): Move to the correct section.
7174 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7176 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7177 (die_is_declaration): Use the function above. Add comment.
7179 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7181 * dwarf2read.c (read_structure_scope): Identify stub types
7182 using die_is_declaration() only.
7184 2004-04-15 Roland McGrath <roland@redhat.com>
7186 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7187 argument instead of NAME.
7188 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7189 in call to symbol_file_add_with_addrs_or_offsets.
7190 (build_addr_info): New function, helper for ...
7191 (symbol_file_add_from_memory): New function.
7192 (add_symbol_file_from_memory_command): New function using that.
7193 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7194 (pre_add_symbol_hook): Add const to argument type.
7195 * symfile.h (symbol_file_add_from_memory): Declare it.
7197 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7199 * NEWS (New native configurations): Mention OpenBSD/vax.
7200 * configure.host: Add vax-*-openbsd*.
7201 * config/vax/obsd.mh: New file.
7202 * config/vax/nm-obsd.h: New file.
7204 * vax-tdep.c: Include "regset.h".
7205 (vax_supply_gregset): New function.
7206 (vax_gregset): New variable.
7207 (vax_regset_from_core_section): New function.
7208 (vax_gdbarch_init): Set regset_from_core_section.
7209 * Makefile.in (vax-tdep.o): Update dependencies.
7211 2004-04-15 Andrew Cagney <cagney@redhat.com>
7213 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7214 (observer_normal_stop_notification_stub)
7215 (observer_attach_normal_stop, observer_detach_normal_stop):
7216 Delete, replaced by #include "observer.inc".
7217 * infrun.c (normal_stop): Pass "stop_bpstat" to
7218 observer_notify_normal_stop.
7219 * Makefile.in (observer_inc): Define.
7220 (observer.o): Update dependencies.
7221 (observer.h, observer.inc): New rules.
7222 * observer.h: Delete file.
7223 * observer.sh: New file.
7225 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7227 * vax-tdep.c (vax_frame_cache): Fix typo.
7229 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7231 * NEWS (New native configurations): Mention NetBSD/vax.
7232 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7233 * config/vax/nbsdelf.mh: New file.
7234 * config/vax/nbsdaout.mh: New file.
7235 * config/vax/nm-nbsd.h: New file.
7236 * config/vax/nm-nbsdaout.h: New file.
7238 * vaxnbsd-tdep.c: New file.
7239 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7240 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7241 * config/vax/nbsd.mt: New file.
7242 * config/vax/tm-nbsd.h: New file.
7244 * Makefile.in (vaxbsd-nat.o): New dependency.
7246 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7247 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7248 struct_addr arguments. Don't push return value address.
7249 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7250 arguments to vax_store_arguments. Store return value address in
7252 (vax_store_struct_return, vax_extract_return_value)
7253 (vax_store_return_value): Remove functions.
7254 (vax_return_value): New function.
7255 (vax_gdbarch_init): Set return value. Don't set
7256 deprecated_store_struct_return, deprecated_extract_struct_return
7257 and deprecated_store_return_value.
7259 2004-04-14 Andreas Schwab <schwab@suse.de>
7261 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7263 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7265 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7267 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7268 (vax_unwind_dummy_id): New functions.
7269 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7270 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7272 (vax_fix_call_dummy): Remove function.
7273 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7274 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7275 call_dummy_location, deprecated_call_dummy_words,
7276 deprecated_sizeof_call_dummy_words,
7277 deprecated_call_dummy_breakpoint_offset,
7278 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7279 and deprecated_dummy_write_sp.
7281 2004-04-13 David Carlton <carlton@kealia.com>
7283 * MAINTAINERS: Move myself to "paper trail" section.
7285 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7287 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7289 (vax_frame_init_saved_regs): Remove function.
7290 (vax_sigtramp_saved_pc): Remove function.
7291 (vax_frame_saved_pc): Remove function.
7292 (vax_frame_args_address): Remove function.
7293 (vax_frame_num_args): Rewrite.
7294 (vax_frame_chain): Remove function.
7295 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7297 (vax_pop_frame): Likewise.
7298 (vax_saved_pc_after_call): Remove function.
7299 (struct vax_frame_cache): New structure.
7300 (vax_frame_cache): New function.
7301 (vax_frame_this_id): New function.
7302 (vax_frame_prev_register): New function.
7303 (vax_frame_unwind): New variable.
7304 (vax_frame_sniffer): New function.
7305 (vax_frame_base_address): New function.
7306 (vax_frame_args_address): New function.
7307 (vax_frame_base): New variable.
7308 (vax_unwind_pc): New function.
7309 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7310 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7311 deprecated_frame_chain, deprecated_frame_saved_pc,
7312 deprecated_frame_args_address and
7313 deprecated_frame_init_saved_regs.
7314 * Makefile.in (vax-tdep.o): Update dependencies.
7316 * vaxbsd-nat.c: New file.
7318 * vax-tdep.h: Update copyright year. Adjust comments.
7319 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7320 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7321 (vax_regnum): New enum. Replacing...
7322 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7323 (VAX_PS_REGNUM): ... these removed macros.
7324 * vax-tdep.c (vax_register_name): Remove prototype.
7325 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7326 (vax_register_byte, vax_register_raw_size,
7327 vax_register_virtual_size, vax_register_virtual_type): Remove
7329 (vax_register_type): New function.
7330 (vax_breakpoint_from_pc): Reorganize.
7331 (vax_gdbarch_init): Set register_type. Don't set
7332 deprecated_register_size, deprecated_register_bytes,
7333 deprecated_register_byte, deprecated_register_raw_size,
7334 deprecated_max_register_raw_size,
7335 deprecated_register_virtual_size,
7336 deprecated_max_register_virtual_size and
7337 deprecated_register_virtual_type. Add comment on stack direction.
7339 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7341 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7342 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7343 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7345 2004-04-10 Randolph Chung <tausq@debian.org>
7347 * MAINTAINERS (write after approval): Add myself.
7349 2004-04-07 Randolph Chung <tausq@debian.org>
7351 * hppa-tdep.c (hppa_inner_than): Remove.
7352 (is_pa_2): Remove unused static variable.
7353 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7355 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7357 * language.h (language_defn): Add new la_post_parser field.
7358 * parser-defs.h (null_post_parser): New declaration (default for
7361 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7362 insert call to that function.
7363 (parse_exp_in_context): New function, including code formerly in
7364 parse_exp_1. Calls language-dependent post-parser after
7366 (parse_expression_in_context): New exported function.
7367 (null_post_parser): New definition.
7368 * expression.h (parse_expression_in_context): Add declaration.
7370 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7371 * c-lang.c (c_language_defn): Ditto.
7372 (cplus_language_defn): Ditto.
7373 (asm_language_defn): Ditto.
7374 (minimal_language_defn): Ditto.
7375 * f-lang.c (f_language_defn): Ditto.
7376 * jv-lang.c (java_language_defn): Ditto.
7377 * language.c (unknown_language_defn): Ditto.
7378 (auto_language_defn): Ditto.
7379 (local_language_defn): Ditto.
7380 * m2-lang.c (m2_language_defn): Ditto.
7381 * scm-lang.c (scm_language_defn): Ditto.
7382 * obj-lang.c (objc_language_defn): Ditto.
7384 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7386 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7387 (amd64nbsd_mcontext_addr): New function.
7388 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7389 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7390 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7392 * corelow.c (core_xfer_partial): Fix coding standards violation.
7393 Add support for TARGET_OBJECT_WCOOKIE.
7395 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7396 deprecated_pc_in_sigtramp.
7397 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7398 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7399 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7400 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7401 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7402 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7403 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7405 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7406 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7409 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7410 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7411 (amd64_collect_fxsave): Likewise.
7413 * i386-sol2-tdep.c: Include "gdb_string.h".
7414 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7416 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7418 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7420 * i386-sol2-tdep.c: Include "solib-svr4.h".
7421 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7422 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7423 * config/i386/tm-i386sol2.h: Include :solib.h".
7424 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7425 solib-svr4.o and solib-legacy.o.
7426 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7429 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7431 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7432 whether a register is supplied by PTRACE_GETFPREGS.
7433 (store_inferior_registers): Likewise.
7434 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7435 whether a register is supplied by PT_GETFPREGS.
7436 (store_inferior_registers): Likewise.
7438 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7439 * config/i386/linux64.mt (TDEPFILES): Likewise.
7441 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7443 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7444 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7445 the program counter is in the range specified by `struct
7447 * amd64-linux-tdep.c: Include "symtab.h".
7448 (amd64_linux_pc_in_sigtramp): Remove function.
7449 (amd64_linux_sigtramp_p): New function.
7450 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7451 deprecated_pc_in_sigtramp.
7452 * amd64nbsd-tdep.c: Include "symtab.h".
7453 (amd64nbsd_sigtramp_p): New function.
7454 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7455 deprecated_pc_in_sigtramp.
7456 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7458 (amd64obsd_pc_in_sigtramp): Remove function.
7459 (amd64obsd_sigtramp_p): New function.
7460 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7461 deprecated_pc_in_sigtramp.
7462 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7463 (i386bsd_pc_ins_sigtramp): Remove prototype.
7464 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7465 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7466 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7467 the program counter is in the range specified by `struct
7469 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7470 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7471 (i386_go32_pc_in_sigtramp): Remove function.
7472 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7473 Initialize TDEP->sigtramp_p.
7474 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7475 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7476 deprecated_pc_in_sigtramp.
7477 * i386-linux-tdep.c: Adjust comments.
7478 (i386_linux_pc_in_sigtramp): Remove function.
7479 (i386_linux_sigtramp_p): New function.
7480 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7481 deprecated_pc_in_sigtramp.
7482 * i386-nto-tdep.c: Update copyright year.
7483 (i386nto_pc_in_sigtramp): Remove function.
7484 (i386nto_sigtramp_p): New function.
7485 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7487 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7488 deprecated_pc_in_sigtramp.
7489 * i386-sol2-tdep.c: Update copyright year.
7490 (i386_sol2_pc_in_sigtramp): Remove function.
7491 (i386_sol2_sigtramp_p): New function.
7492 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7493 deprecated_pc_in_sigtramp.
7494 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7495 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7496 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7497 deprecated_sigtramp_start and deprecated_sigtramp_end.
7498 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7499 (i386nbsd_pc_in_sigtramp): Remove function.
7500 (i386nbsd_sigtramp_p): New function.
7501 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7502 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7503 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7504 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7505 (i386obsd_pc_in_sigtramp): Remove function.
7506 (i386obsd_sigtramp_p): New function.
7507 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7509 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7510 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7512 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7513 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7516 * config/i386/i386aout.mt: Remove file.
7518 * configure.tgt: Remove i[34567]86-*-go32*,
7519 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7520 and i[34567]86-*-isc*. Set gdb_target to i386 for
7521 i[34567]86-*-netware* and i[34567]86-*-*.
7522 * config/i386/i386.mt: New file.
7523 * config/i386/embed.mt: Remove file.
7524 * config/i386/go32.mt: Remove file.
7525 * config/i386/i386nw.mt: Remove file.
7526 * config/i386/i386v.mt: Remove file.
7527 * config/i386/tm-go32.h: Remove file.
7529 * tui/tui-hooks.c: Include "readline/readline.h" after
7530 "gdb_curses.h" instead of before.
7531 * tui/tui-io.c: Likewise.
7533 * tui/tui.c: Fix typo in comment.
7535 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7537 2004-04-08 Andrew Cagney <cagney@redhat.com>
7539 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7540 (deprecated_exception_support_initialized): Declare.
7541 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7542 (initialize_hp_cxx_exception_support)
7543 (child_enable_exception_callback): Update.
7544 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7545 (deprecated_exception_support_initialized): Rename
7546 deprecated_exception_catchpoints_are_fragile and
7547 deprecated_exception_support_initialized.
7548 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7550 * symtab.c (deprecated_hp_som_som_object_present): Rename
7551 hp_som_som_object_present.
7552 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7553 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7554 Update. Delete extern declaration.
7555 * valops.c (hp_som_som_object_present): Ditto.
7556 * parse.c (deprecated_hp_som_som_object_present)
7557 (parse_nested_classes_for_hpacc): Ditto.
7558 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7559 * hppa-hpux-tdep.c (hp_som_som_object_present)
7560 (initialize_hp_cxx_exception_support): Ditto.
7561 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7562 * cp-valprint.c (hp_som_som_object_present)
7563 (cp_print_class_method): Ditto.
7564 * c-typeprint.c (hp_som_som_object_present):
7565 (c_type_print_base): Ditto.
7566 * c-exp.y (hp_som_som_object_present): Ditto.
7568 2004-04-08 Andrew Cagney <cagney@redhat.com>
7570 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7571 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7572 (frame_unwind_find_by_frame): Re-implement the unwind code so
7573 that it can both prepend and append sniffers. Replace
7574 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7575 * tramp-frame.c (tramp_frame_append): Use
7576 frame_unwind_prepend_unwinder.
7577 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7578 frame_unwind_register_unwinder.
7579 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7581 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7582 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7583 (mips_linux_init_abi): Update.
7585 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7587 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7588 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7591 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7593 * ia64-tdep.c (elf.h): Don't include.
7594 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7596 2004-04-07 Jason Molenda (jmolenda@apple.com)
7598 * frame.h: Typeo corrections in comments.
7600 2004-04-07 Jim Blandy <jimb@redhat.com>
7602 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7605 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7607 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7608 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7609 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7610 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7612 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7614 * config/sparc/tm-sol2.h: Update copyright year. Include
7617 * sparc-sol2-tdep.c: Update copyright year. Include
7619 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7620 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7621 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7622 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7625 2004-04-06 Andrew Cagney <cagney@redhat.com>
7627 * infttrace.c: Include "infttrace.h".
7628 * infttrace.h: Include "target.h".
7629 * Makefile.in (infttrace_h): Update.
7630 (infttrace.o): Update.
7632 2004-04-06 Andrew Cagney <cagney@redhat.com>
7634 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7635 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7636 move extern declarations from here ...
7637 * infttrace.h: ... to here.
7638 * Makefile.in (hppah-nat.o): Update dependencies.
7640 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7641 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7642 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7643 (hppa_breakpoint_from_pc): Delete.
7645 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7647 2004-04-05 Andrew Cagney <cagney@redhat.com>
7649 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7650 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7653 2004-04-06 Randolph Chung <tausq@debian.org>
7655 Committed by Andrew Cagney (mechanical change).
7656 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7657 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7658 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7659 child_enable_exception_callback, current_ex_event,
7660 null_symtab_and_line, child_get_current_exception_event,
7661 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7662 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7663 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7664 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7665 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7666 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7667 Move hpux-specific definitions ...
7668 * hppa-hpux-tdep.c: ... to here.
7670 2004-04-05 Andrew Cagney <cagney@redhat.com>
7672 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7673 skip_prologue_using_sal.
7675 2004-04-05 Andrew Cagney <cagney@redhat.com>
7677 * config/i386/tm-i386.h: Delete file.
7678 * config/i386/tm-vxworks.h: Update copyright, do not include
7680 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7681 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7682 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7683 * config/i386/ncr3000.mt (TM_FILE): Delete.
7684 * config/i386/interix.mt (TM_FILE): Delete.
7685 * config/i386/i386v.mt (TM_FILE): Delete.
7686 * config/i386/i386nw.mt (TM_FILE): Delete.
7687 * config/i386/i386gnu.mt (TM_FILE): Delete.
7688 * config/i386/i386aout.mt (TM_FILE): Delete.
7689 * config/i386/embed.mt (TM_FILE): Delete.
7691 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7693 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7694 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7695 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7696 (accg7_regnum): New constants.
7697 (last_spr_regnum, last_pseudo_regnum): Update.
7698 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7699 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7700 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7702 (frv_register_sim_regno): Update spr_map[].
7704 2004-04-04 Andrew Cagney <cagney@redhat.com>
7706 * config/mips/xm-riscos.h: Delete.
7707 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7708 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7709 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7710 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7711 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7712 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7713 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7714 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7715 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7716 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7717 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7718 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7719 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7720 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7721 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7722 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7723 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7724 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7725 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7726 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7727 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7728 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7729 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7730 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7731 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7732 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7734 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7735 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7736 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7737 * configure.host: Remove m680[01]0-sun-sunos3*,
7738 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7739 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7740 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7741 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7743 * NEWS: Mention removed systems.
7745 2004-04-04 Andrew Cagney <cagney@redhat.com>
7747 GDB 6.1 release created from 6.1 branch.
7749 2004-04-04 Andrew Cagney <cagney@redhat.com>
7751 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7752 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7753 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7755 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7756 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7757 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7759 2004-04-03 Jim Blandy <jimb@redhat.com>
7761 * MAINTAINERS: Chris Faylor has changed employers; add him to
7762 "paper trail" section, and update his E-mail address.
7764 2004-04-03 Andrew Cagney <cagney@redhat.com>
7766 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7767 generic dummy frames.
7768 * dummy-frame.c: Update copyright.
7769 (dummy_frame_sniffer): Delete check for generic dummy frames.
7771 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7772 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7773 (REG_PARM_STACK_SPACE): Delete.
7774 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7775 Inline reference to REG_PARM_STACK_SPACE.
7777 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7778 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7779 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7780 (FRAME_BASE_BEFORE_SIGTRAMP)
7781 (hppa32_hpux_frame_base_before_sigtramp)
7782 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7783 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7784 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7785 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7786 (FRAME_BASE_BEFORE_SIGTRAMP)
7787 (hppa64_hpux_frame_base_before_sigtramp)
7788 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7790 2004-04-03 Andrew Cagney <cagney@redhat.com>
7792 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7794 2004-04-02 Andrew Cagney <cagney@redhat.com>
7796 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7797 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7798 * dummy-frame.h: Delete out-of-date comments.
7799 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7800 * gdbarch.h, gdbarch.c: Re-generate.
7802 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7804 Committed by Andrew Cagney <cagney@redhat.com>.
7805 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7806 into account an instruction saving a register if we have already
7807 seen an earlier instruction saving that same register.
7809 2004-04-02 Andrew Cagney <cagney@redhat.com>
7811 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7812 * gdbarch.h, gdbarch.c: Re-generate.
7813 * frame.c (legacy_get_prev_frame): Delete references to
7814 DEPRECATED_INIT_FRAME_PC_FIRST.
7816 * infrun.c (pc_in_sigtramp): Delete function.
7817 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7820 2004-04-02 Andrew Cagney <cagney@redhat.com>
7822 * infrun.c (handle_step_into_function): Delete code conditional on
7824 (handle_inferior_event, step_over_function): Ditto.
7826 2004-04-02 Andrew Cagney <cagney@redhat.com>
7828 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7829 "previous frame inner to this frame" test.
7831 2004-04-02 Andrew Cagney <cagney@redhat.com>
7833 * frame.c (safe_frame_unwind_memory): New function.
7834 * frame.h (safe_frame_unwind_memory): Declare. Update description
7836 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7837 "next_frame". Use safe_frame_unwind_memory.
7838 (tramp_frame_sniffer): Update call to tramp_frame_start.
7840 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7842 * dwarf2read.c (dwarf2_objfile_data_key): New.
7843 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7844 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7845 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7846 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7847 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7848 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7849 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7851 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7852 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7853 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7854 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7855 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7856 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7858 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7860 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7861 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7862 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7863 (read_partial_die, read_full_die, read_indirect_string)
7864 (dwarf_decode_line_header, dwarf_decode_macros)
7865 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7866 Update uses of removed variables.
7867 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7869 (_initialize_dwarf2_read): New function.
7870 * symfile.h (dwarf2_has_info): Update prototype.
7871 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7872 * elfread.c (elf_symfile_read): Likewise.
7874 2004-04-01 Jim Blandy <jimb@redhat.com>
7876 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7877 function for register numbers on all the rs6000-derived targets.
7878 (rs6000_gdbarch_init): Don't register a separate
7879 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7880 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7883 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7886 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7888 * valarith.c: Update copyright notice.
7889 (value_add): Handle range types.
7891 (value_equal): Ditto.
7892 (value_less): Ditto.
7894 (value_complement): Ditto.
7895 (value_binop): Simplify slightly by using is_integral_type and
7896 eliminiating unnecessary COERCE_ENUMs.
7898 2004-03-31 Andrew Cagney <cagney@redhat.com>
7900 * frame.h (frame_unwind_id): Declare.
7901 * frame.c (frame_unwind_id): New function.
7902 (get_prev_frame_1): New function.
7903 (frame_debug_got_null_frame): New function.
7904 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7905 code proper to prev_frame, update description.
7906 * infrun.c (step_over_function): Use frame_unwind_id.
7908 2004-04-31 J. Brobecker <brobecker@gnat.com>
7910 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7911 (hppa64_push_dummy_call): Likewise.
7913 2004-03-30 Jim Blandy <jimb@redhat.com>
7915 From Ulrich Weigand:
7916 * utils.c (query): Do not use a va_list variable multiple times.
7918 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7920 * Makefile.in (linux_nat_h): Update dependencies.
7921 * configure.in: Check for <gnu/libc-version.h>.
7922 * configure: Regenerate.
7923 * config.in: Regenerate.
7924 * linux-nat.h: Include "target.h". Add waitstatus field to
7926 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7927 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7929 (lin_lwp_handle_extended): New function. Handle clone events.
7930 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7932 (child_wait): Handle clone events.
7933 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7934 * linux-nat.c (linux_enable_event_reporting): Turn on
7935 PTRACE_O_TRACECLONE.
7936 (linux_handle_extended_wait): Handle clone events.
7937 * thread-db.c: Include <gnu/libc-version.h>.
7938 (struct private_thread_info): Add dying flag.
7939 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7941 (attach_thread): Update comments. Handle dying threads.
7942 (detach_thread): Set the dying flag.
7943 (check_event): Always call attach_thread.
7945 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7947 * mips-tdep.c (mips_pdr_data): New.
7948 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7949 (_initialize_mips_tdep): Initialize mips_pdr_data.
7951 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7953 * minsyms.c (install_minimal_symbols): Move dropping leading
7954 char from linkage name from here...
7955 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7956 test for "__gnu_compiled*" symbols.
7958 2004-03-28 Jim Blandy <jimb@redhat.com>
7960 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7961 registers to temp register r0 and byte stores as prologue
7964 2004-03-28 Andrew Cagney <cagney@redhat.com>
7966 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7969 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7971 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7972 and switch the layout to force a display of register window.
7974 2004-02-26 J. Brobecker <brobecker@gnat.com>
7976 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7977 of the INTEGER class.
7979 2004-03-26 Jim Blandy <jimb@redhat.com>
7981 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7982 bytes long on PPC GNU/Linux.
7984 2004-03-26 David Carlton <carlton@kealia.com>
7986 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7988 2004-03-25 Andrew Cagney <cagney@redhat.com>
7990 * PROBLEMS: Add general section titles, remove references to
7993 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7995 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7997 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7998 FP_REGISTER_VIRTUAL_SIZE.
7999 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8000 of DEPRECATED_REGISTER_RAW_SIZE.
8001 (arm_register_type): Add gdbarch argument.
8002 (arm_register_raw_size, arm_register_virtual_size): Delete.
8003 (arm_register_byte, arm_extract_return_value)
8004 (arm_store_return_value, arm_get_longjmp_target): Update references
8005 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8006 (arm_gdbarch_init): Likewise. Don't set
8007 deprecated_register_raw_size, deprecated_register_virtual_size,
8008 deprecated_max_register_raw_size,
8009 deprecated_max_register_virtual_size, or
8010 deprecated_max_register_virtual_type. Do set register_type.
8011 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8012 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8013 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8014 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8015 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8016 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8018 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8019 (remote_rdp_store_register): Likewise.
8021 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8023 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8024 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8025 to after osabi initialization.
8026 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8027 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8029 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8030 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8032 (mips_linux_init_abi): Append signal trampoline unwinders.
8034 2004-03-24 Andrew Cagney <cagney@redhat.com>
8036 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8037 * tramp-frame.c: Include "gdb_assert.h".
8038 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8040 (tramp_frame_append): Validate the tramp frame's instructions.
8041 * Makefile.in (tramp-frame.o): Update dependencies.
8043 2004-03-23 Andrew Cagney <cagney@redhat.com>
8045 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8047 2004-03-23 Andrew Cagney <cagney@redhat.com>
8049 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8050 Nasser as past testsuite/lib/ (and other) maintainers.
8052 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8054 * infcmd.c (attach_command): Reread symbols if we already have
8057 2004-03-23 Andrew Cagney <cagney@redhat.com>
8059 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8061 2004-03-23 Andrew Cagney <cagney@redhat.com>
8063 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8064 * gdbarch.h, gdbarch.c: Re-generate.
8065 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8066 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8067 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8068 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8069 (DEPRECATED_SIGTRAMP_START): Update.
8070 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8071 (DEPRECATED_SIGTRAMP_START): Update.
8072 * blockframe.c (find_pc_sect_partial_function): Update.
8073 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8075 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8077 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8080 2004-03-23 Andrew Cagney <cagney@redhat.com>
8082 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8083 predicate, deprecate.
8084 * gdbarch.h, gdbarch.c: Re-generate.
8085 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8086 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8087 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8088 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8089 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8090 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8091 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8092 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8093 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8094 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8095 * blockframe.c (find_pc_partial_function): Update.
8096 * breakpoint.c (bpstat_what): Update.
8097 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8098 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8099 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8100 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8101 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8102 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8103 * i386-nto-tdep.c (i386nto_init_abi): Update.
8104 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8105 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8106 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8107 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8108 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8109 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8110 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8111 * infrun.c (pc_in_sigtramp): Update.
8112 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8113 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8114 * mips-tdep.c (mips_gdbarch_init): Update.
8115 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8116 * ppc-linux-tdep.c: Update comment.
8117 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8118 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8119 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8120 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8121 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8122 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8123 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8124 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8125 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8126 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8128 2004-03-23 Andrew Cagney <cagney@redhat.com>
8130 * tramp-frame.h, tramp-frame.h: New files.
8131 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8132 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8134 * Makefile.in: Update all dependencies.
8136 2004-03-23 Andrew Cagney <cagney@redhat.com>
8138 * Makefile.in (trad_frame_h): Add $(frame_h).
8139 * trad-frame.h: Update copyright. Include "frame.h".
8140 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8141 (trad_frame_set_id, trad_frame_get_id): Declare.
8142 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8143 * trad-frame.c: Update copyright.
8144 (struct trad_frame_cache): Define.
8145 (trad_frame_cache_zalloc): New function.
8146 (trad_frame_set_id, trad_frame_get_id): New functions.
8147 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8149 2004-03-22 Andrew Cagney <cagney@redhat.com>
8151 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8152 s390_pltstub_unwind_cache.
8153 (s390_stub_frame_unwind_cache): Rename
8154 s390_pltstub_frame_unwind_cache.
8155 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8156 (s390_stub_frame_prev_register): Rename
8157 s390_pltstub_frame_prev_register.
8158 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8159 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8161 From Ulrich Weigand:
8162 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8163 pointer calls like PLT calls.
8165 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8167 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8168 PC rather than the partial function start address. Use the start
8169 address to sanity check the found PDR.
8171 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8173 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8174 linux_handle_extended_wait.
8176 2004-03-22 Andrew Cagney <cagney@redhat.com>
8178 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8181 * frame.h (generic_pop_current_frame): Delete declaration.
8182 (deprecate_pop_dummy_frame): Deprecate
8183 generic_pop_dummy_frame.
8184 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8185 (generic_pop_current_frame): Delete function.
8186 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8187 generic_pop_current_frame.
8188 * v850-tdep.c (v850_pop_frame): Update.
8189 * mcore-tdep.c (mcore_pop_frame): Update.
8190 * sh64-tdep.c (sh64_pop_frame): Update.
8191 * h8300-tdep.c (h8300_pop_frame): Update.
8193 2004-03-22 Andrew Cagney <cagney@redhat.com>
8195 * frame.h (deprecated_pc_in_call_dummy): Rename
8196 generic_pc_in_call_dummy.
8197 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8198 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8199 generic_pc_in_call_dummy.
8200 (pc_in_dummy_frame): Make static.
8201 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8202 * gdbarch.h, gdbarch.c: Re-generate.
8203 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8204 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8205 (legacy_get_prev_frame): Ditto.
8206 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8209 2004-03-21 Andrew Cagney <cagney@redhat.com>
8211 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8212 declaration and out-of-date comment.
8213 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8215 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8216 deprecated_pc_in_call_dummy.
8218 * infrun.c (handle_inferior_event): For non legacy frames, use the
8219 frame ID and frame type to identify a signal trampoline. Update
8222 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8224 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8225 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8227 2004-03-21 Andrew Cagney <cagney@redhat.com>
8229 * frame-unwind.h: Update copyright.
8230 (struct frame_data): Add opaque declaration.
8231 (frame_sniffer_ftype): Declare.
8232 (struct frame_unwind): Add "unwind_data" and "sniffer".
8233 (frame_unwind_register_unwinder): Declare.
8234 (frame_unwind_find_by_frame): Add parameter "this_cache".
8235 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8236 (legacy_get_prev_frame, legacy_get_prev_frame)
8237 (get_frame_type): Pass the prologue_cache to
8238 frame_unwind_find_by_frame.
8239 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8241 (frame_unwind_register_unwinder): New function.
8242 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8244 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8246 * bcache.c (print_percentage): Use floating point to avoid
8247 incorrect results when portion*100 overflows.
8249 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8251 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8252 (ppc_linux_init_extra_frame_info)
8253 (ppc_linux_frameless_function_invocation)
8254 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8255 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8256 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8257 (rs6000_frame_chain): Delete declarations.
8258 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8259 (ppc_linux_init_extra_frame_info)
8260 (ppc_linux_frameless_function_invocation)
8261 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8262 (ppc_linux_init_abi): Remove registration of above deleted functions.
8263 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8264 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8265 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8266 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8267 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8268 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8269 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8270 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8271 frame management for all OSABIs.
8273 2004-03-19 Andrew Cagney <cagney@redhat.com>
8275 Committed by Kevin Buettner <kevinb@redhat.com>.
8277 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8279 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8280 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8281 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8282 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8283 unwinders. #ifdef legacy frame code.
8284 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8286 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8287 (struct rs6000_frame_cache, rs6000_frame_cache)
8288 (rs6000_frame_this_id, rs6000_frame_prev_register)
8289 (rs6000_frame_sniffer, rs6000_frame_unwind)
8290 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8291 (rs6000_frame_base): Implement a traditional frame unwinder.
8292 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8295 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8297 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8298 breakpoint address for watchpoints or the catch eventpoints.
8299 Add new paramter ``bptype''. Adjust all callers.
8301 2004-03-19 Andrew Cagney <cagney@redhat.com>
8303 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8305 * PROBLEMS: Delete note that ARM does not use frame code, problem
8308 2004-03-18 Andrew Cagney <cagney@redhat.com>
8310 * stack.c (return_command): Delete code wrapped in #ifdef
8311 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8313 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8315 2004-03-18 Andrew Cagney <cagney@redhat.com>
8317 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8318 DEPRECATED_IN_SIGTRAMP.
8319 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8320 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8321 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8322 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8323 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8324 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8325 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8326 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8327 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8328 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8330 2004-03-18 Andrew Cagney <cagney@redhat.com>
8332 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8333 (struct frame_base_table_entry): Define.
8334 (struct frame_base_table): Re-implement as a linked list.
8335 (frame_base_init): Re-implement.
8336 (frame_base_table): Delete function.
8337 (append_predicate): Delete function.
8338 (frame_base_append_sniffer): Update.
8339 (frame_base_set_default): Update.
8340 (frame_base_find_by_frame): Update.
8341 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8342 * Makefile.in (frame-base.o): Update dependencies.
8344 2004-03-17 Andrew Cagney <cagney@redhat.com>
8346 * frame.c (legacy_get_prev_frame): Pass correct frame to
8347 frame_unwind_find_by_frame.
8349 2004-03-17 David Carlton <carlton@kealia.com>
8351 * NEWS: Mention C++ nested types and namespaces
8353 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8355 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8356 and "Regressions since gdb 5.3.". Add known regressions since
8359 2004-03-16 David Carlton <carlton@kealia.com>
8361 * dwarf2read.c (process_structure_scope): Process children even
8362 when we're a declaration.
8364 2004-03-16 Andrew Cagney <cagney@redhat.com>
8366 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8367 * blockframe.c (find_pc_partial_function)
8368 (find_pc_sect_partial_function): Merge into a single
8369 find_pc_partial_function.
8371 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8373 * i386bsd-nat.c: s/regno/regnum/g.
8374 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8376 (store_inferior_registers): Likewise.
8378 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8380 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8382 (store_inferior_registers): Call i387_collect_fsave and
8383 i387_collect_fxsave instead of i387_fill_fsave and
8386 2004-03-15 Andrew Cagney <cagney@redhat.com>
8388 * Makefile.in (frame-unwind.o): Update dependencies.
8389 * frame-unwind.c: Include "gdb_obstack.h".
8390 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8392 (append_predicate): Delete function.
8393 (struct frame_unwind_table_entry): New structure.
8394 (struct frame_unwind_table): Replace "sniffer" with "head" and
8396 (frame_unwind_append_sniffer): Update.
8397 (frame_unwind_find_by_frame): Update.
8398 (_initialize_frame_unwind): Registe frame_unwind_init using
8399 gdbarch_data_register_pre_init.
8401 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8403 * i386bsd-nat.c: Update copyright year.
8404 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8405 define unconditionally.
8407 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8409 * i387-tdep.h (i387_collect_fsave): New prototype.
8410 * i387-tdep.c (i387_collect_fsave): New function containing most
8411 of the code from i387_fill_fsave.
8412 (i387_fill_fsave): Call i387_collect_fsave.
8414 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8416 * i386-linux-tdep.c: Update copyright year.
8417 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8418 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8419 svr4_ilp32_link_map_offsets instead of
8420 i386_linux_svr4_fetch_link_map_offsets.
8422 2004-03-15 David Carlton <carlton@kealia.com>
8424 Fix for PR c++/1553:
8425 * dwarf2read.c (read_structure_type): Determine type name by
8426 calling determine_class_name.
8427 (determine_class_name): New.
8428 (determine_prefix): Look at TYPE_TAG_NAME and call
8429 determine_class_name when appropriate.
8430 (determine_prefix_aux, class_name): Delete.
8431 (read_namespace): Set die->type.
8433 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8435 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8436 unused macro definition. The definition in target.h (or perhaps
8437 elsewhere) takes precedence.
8439 2004-03-15 Andrew Cagney <cagney@redhat.com>
8441 * ppc-tdep.h: Update copyright.
8442 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8443 function signatures to match "regsets.h".
8444 * ppc-linux-tdep.c: Include "regset.h".
8445 (ELF_GREGSET_SIZE): Delete.
8446 (right_supply_register): New function.
8447 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8448 using right_supply_register.
8449 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8451 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8452 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8453 (_initialize_ppc_linux_tdep): Do not register
8454 ppc_linux_regset_core_fns.
8455 (ppc_linux_regset_from_core_section): Replace
8456 fetch_core_registers.
8457 (ppc_linux_regset_core_fns): Delete.
8458 * ppc-linux-nat.c: (right_fill_reg): New function.
8459 (supply_gregset): Update call to ppc_linux_supply_gregset.
8460 (fill_gregset): Clear the register set, use right_fill_reg.
8461 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8462 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8464 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8467 2004-03-15 Andrew Cagney <cagney@redhat.com>
8469 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8470 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8471 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8472 and register_gdbarch_data.
8473 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8474 (struct gdbarch_data): Replace "init" by "pre_init" and
8476 * gdbarch.h, gdbarch.c: Re-generate.
8477 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8478 with"obstack", use OBSTACK_ZALLOC.
8479 (dwarf2_frame_ops): Delete.
8480 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8481 (dwarf2_frame_init_reg): Use gdbarch_data.
8482 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8483 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8484 (_initialize_svr4_solib): Update.
8485 * user-regs.c (_initialize_user_regs): Update.
8486 * reggroups.c (_initialize_reggroup): Update.
8487 * regcache.c (_initialize_regcache): Update.
8488 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8489 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8490 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8491 * frame-unwind.c (_initialize_frame_unwind): Update.
8492 * frame-base.c (_initialize_frame_base): Update.
8493 * user-regs.c (user_reg_add): Update.
8494 * reggroups.c (reggroup_add): Update.
8495 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8496 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8497 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8498 * frame-base.c (frame_base_table): Update.
8499 * remote.c (_initialize_remote): Update.
8500 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8502 2004-03-15 Andrew Cagney <cagney@redhat.com>
8504 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8506 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8508 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8509 * frv-linux-tdep.c: New file.
8510 * frv-tdep.c (struct gdbarch_tdep): Add new field
8511 ``sigcontext_reg_addr''.
8512 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8513 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8514 (frv_sigramp_frame_sniffer): New functions.
8515 (frv_sigtramp_frame_unwind): New static global.
8516 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8518 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8519 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8521 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8523 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8524 but not via a call to error(), when unable to read memory.
8526 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8528 * frv-tdep.c (frv_call_dummy_words): Delete.
8529 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8531 2004-03-15 Andrew Cagney <cagney@redhat.com>
8533 * infrun.c (handle_step_into_function, step_over_function): Only
8534 update and use STEP_FRAME_ID when the system is using legacy
8535 frames. Update comments.
8537 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8539 * amd64-linux-tdep.h: Remove file.
8540 * amd64-linux-tdep.c: Don't include "inferior.h" and
8541 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8542 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8543 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8544 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8545 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8547 (user_to_gdb_regmap): Remove variable.
8548 (amd64_linux_gregset_reg_offset): New variable.
8549 (amd64_core_fns): Remove variable.
8550 (fetch_core_registers): Remove function.
8551 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8553 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8554 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8555 * Makefile.in (amd64_linux_tdep_h): Remove.
8556 (amd64-linux-nat.o): Update dependencies.
8557 (amd64-linux-tdep.o): Update dependencies.
8559 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8560 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8562 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8564 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8565 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8567 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8569 * dwarf2read.c (read_structure_type): Rename from
8570 read_structure_scope. Don't create a symbol or call process_die.
8571 Return immediately if die->type is set. Call read_type_die before
8572 dwarf2_add_member_fn.
8573 (process_structure_scope): New function.
8574 (read_enumeration_type, process_enumeration_scope): New functions,
8575 broken out from read_enumeration. Don't create the enumeration
8576 type if it has already been created.
8577 (read_enumeration): Removed.
8578 (process_die): Call read_structure_type, process_structure_scope,
8579 read_enumeration_type, and process_enumeration_scope. Just call
8580 new_symbol for base and subrange types. Add a comment about other
8582 (read_type_die): Call read_enumeration_type.
8583 (add_partial_structure, new_symbol): Update comments.
8585 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8587 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8589 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8591 * tui/tui-win.h (tui_get_cmd_list): Declare.
8592 * tui/tui-win.c (tui_command): New function.
8593 (tui_get_cmd_list): New function.
8594 (_initialize_tui_win): Moved initialization of tui command in
8597 * tui/tui-data.c (init_content_element): Setup new data members.
8598 (init_win_info): Likewise.
8599 (free_content_elements): Free it.
8600 * tui/tui-data.h (struct tui_data_element): Store the register
8602 (struct tui_data_info): Keep the current register group.
8604 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8606 * tui/tui-regs.h (tui_show_registers): Update prototype.
8607 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8608 (tui_resize_all): No need to calculate anything for register window.
8609 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8610 (tui_set_register_element, tui_set_general_regs_content): Remove.
8611 (tui_set_special_regs_content): Remove.
8612 (tui_set_general_and_special_regs_content): Remove.
8613 (tui_set_float_regs_content): Remove.
8614 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8615 (tui_set_regs_content): Remove.
8616 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8617 (tui_v_show_registers_command_support): Remove.
8618 (tui_show_registers): Use a reggroup to specify the registers to show.
8619 (tui_show_register_group): New function.
8620 (tui_display_registers_from): Compute the layout of register window
8621 and refresh with new API; be sure to delete old register windows.
8622 (tui_check_register_values): Update to use tui_get_register and
8624 (tui_display_register): Just refresh the register window part.
8625 (tui_register_format): Format registers and save in tui_data_element.
8626 (tui_get_register): New to combine tui_reg_value_has_changed and
8627 tui_get_register_raw_value; fix to use the new gdb API.
8628 (tui_show_float_command): Renamed tui_reg_float_command.
8629 (tui_show_general_command): Renamed tui_reg_general_command.
8630 (tui_show_special_command): Renamed tui_reg_system_command.
8631 (_initialize_tui_regs): Remove unused commands.
8633 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8635 * NEWS (New native configurations): Mention OpenBSD/amd64.
8637 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8638 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8640 * config/i386/nm-fbsd64.h: Likewise.
8641 * config/i386/nm-obsd.h: Likewise.
8642 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8643 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8645 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8647 * frv-tdep.c (set_variant_scratch_registers): New function.
8648 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8651 From Richard Sandiford <rsandifo@redhat.com>:
8652 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8654 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8656 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8657 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8658 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8659 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8660 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8661 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8662 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8663 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8664 definitions from frv-tdep.c to frv-tdep.h.
8666 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8668 Add shared library support for FR-V FDPIC ABI:
8669 * Makefile.in (solib-frv.o): Add dependencies.
8670 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8672 (frv_push_dummy_call): Add support for FDPIC ABI.
8673 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8675 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8676 (frv_fdpic_find_canonical_descriptor): Declare.
8677 * solib-frv.c: New file.
8678 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8679 * config/frv/tm-frv.h (solib.h): Include.
8681 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8683 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8684 (frv-tdep.o): Update dependencies.
8685 * frv-tdep.h: New file.
8686 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8687 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8689 (struct gdbarch_tdep): Add new member ``frv_abi''.
8690 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8692 (new_variant): Set ``frv_abi'' field.
8693 (gdb_arch_init): Detect FDPIC executables.
8695 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8697 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8700 2004-03-11 Andrew Cagney <cagney@redhat.com>
8702 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8704 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8706 * solist.h (master_so_list): New function.
8707 * solib.c (master_so_list): Likewise.
8708 * solib-svr4.c (enable_break): Iterate over so_list entries
8709 obtained from master list instead of entries obtained directly
8710 via svr4_current_sos().
8712 2004-03-10 Ben Elliston <bje@gnu.org>
8714 * MAINTAINERS: Update my mail address.
8716 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8718 * remote-m32r-sdi.c: Support hardware watchpoint.
8720 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8722 * user-regs.c: Update copyright years.
8723 (struct user_regs): Rename to gdb_user_regs.
8724 (append_user_reg, builtin_user_regs, user_regs_init)
8725 (user_reg_add, user_reg_map_name_to_regnum)
8726 (usernum_to_user_reg): Update.
8728 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8730 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8731 (skip_children): New functions.
8732 (locate_pdi_sibling): Call skip_children.
8734 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8736 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8737 * gdbtypes.c (check_typedef): Update comments.
8739 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8741 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8742 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8743 pointer. Update comment about comp_unit_head.
8744 (struct abbrev_info): Shorten two int flags.
8745 (dwarf_alloc_abbrev): Take a CU argument.
8746 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8747 each time through the loop. Update cleanup argument.
8748 (psymtab_to_symtab_1): Update cleanup call.
8749 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8751 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8752 Just call obstack_free and clear the pointer.
8754 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8756 * infrun.c (handle_inferior_event): Remove short-circuit code for
8757 events in a different thread.
8759 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8761 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8762 print the whole transfer.
8763 (initialize_targets): Update description of "set debug target".
8765 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8767 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8769 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8771 * MAINTAINERS (write after approval): Add myself.
8773 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8775 * sh-tdep.c (sh_print_registers_info): Use for loop.
8776 Don't skip multiple registers when a float register is encountered.
8778 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8781 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8782 to official SH documentation.
8784 2004-03-07 Andrew Cagney <cagney@redhat.com>
8786 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8789 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8791 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8792 (arm_get_next_pc): Handle BX and BLX.
8794 2004-03-07 Andrew Cagney <cagney@redhat.com>
8796 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8797 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8799 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8800 (hppa_target_read_fp): Delete.
8801 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8802 register_virtual_size, max_register_raw_size,
8803 max_register_virtual_size, register_byte, register_size,
8804 target_read_fp, fp_regnum, and register_bytes. Set register_type
8805 instead of register_virtual_type.
8806 (hppa32_register_type, hppa64_register_type): Replace
8807 hppa32_register_virtual_type and hppa64_register_virtual_type.
8808 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8809 (HPPA_FP_REGNUM): Define.
8811 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8813 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8814 (pa_do_registers_info): Delete.
8815 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8816 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8817 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8819 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8820 GDB_TARGET_IS_HPPA code.
8821 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8822 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8823 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8824 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8825 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8826 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8827 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8828 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8829 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8830 (hppa_frameless_function_invocation, hppa64_store_return_value)
8831 (hppa_store_struct_return, hppa64_extract_return_value)
8832 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8833 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8834 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8835 (find_proc_framesize, deposit_21, restore_pc_queue)
8836 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8837 (rp_saved, pc_in_linker_stub): Delete.
8839 Unconditionally enable 64-bit frame and ABI code.
8840 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8841 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8842 push_dummy_frame, fix_call_dummy, push_arguments,
8843 call_dummy_location, extract_return_value, use_struct_convention,
8844 store_return_value, store_struct_return, saved_pc_after_call,
8845 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8846 frame_chain, frame_chain_valid, frameless_function_invocation,
8847 frame_saved_pc, and pop_frame.
8849 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8850 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8851 (hppa_gdbarch_init): Do not set PC_REGNUM.
8853 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8855 * config/alpha/tm-fbsd.h: Remove file.
8856 * config/alpha/fbsd.mt: Tweak comment.
8857 (TM_FILE): Set to tm-alpha.h.
8859 2004-03-05 Andrew Cagney <cagney@redhat.com>
8861 * infrun.c (step_over_function): When non-legacy code, and no
8862 step_frame_id, use the unwinder to get the caller's frame ID.
8864 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8866 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8867 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8868 bfd_arch_unknown. Adjust comment.
8870 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8871 * i386obsd-tdep.c: Correct spelling in comment.
8872 * i386nbsd-tdep.c: Correct spelling in comment.
8873 * sparc-tdep.c: Correct spelling in comments.
8875 2004-03-05 David Carlton <carlton@kealia.com>
8877 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8880 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8882 * sparc-tdep.c: Fix typo in comment.
8884 2004-03-04 J. Brobecker <brobecker@gnat.com>
8886 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8888 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8890 * dwarf2read.c: Add comment describing memory lifetimes.
8891 (struct dwarf2_pinfo): Update comment.
8892 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8893 (read_enumeration, new_symbol): Don't use obsavestring.
8895 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8897 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8898 instead of amd64_fill_fxsave.
8899 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8900 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8902 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8903 Reorganize code a bit.
8905 2004-03-04 Orjan Friberg <orjanf@axis.com>
8907 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8908 when the frame pointer is pushed. Don't set the frame pointer's
8909 address on the stack unless it's actually located there.
8910 Set the SRP's address on the stack correctly when the PC is still in
8912 (cris_return_value): New function.
8913 (cris_gdbarch_init): Clear deprecated store_return_value,
8914 extract_return_value.
8916 2004-03-02 Jim Blandy <jimb@redhat.com>
8918 * stabsread.c (reg_value_complaint): The maximum register number
8919 is one less than the number of registers.
8921 2004-03-02 Andrew Cagney <cagney@redhat.com>
8923 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8924 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8925 trailing comma and redundant assignment of I386_ST0_REGNUM.
8926 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8927 32-bit segment registers.
8929 2004-03-01 Andrew Cagney <cagney@redhat.com>
8931 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8932 use frame_relative_level and get_next_frame.
8934 2004-02-29 Andrew Cagney <cagney@redhat.com>
8936 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8937 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8938 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8941 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8943 * inflow.c (terminal_inferior): Don't give up the terminal if we
8944 previously couldn't get the inferior's terminal state.
8946 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8948 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8951 2004-02-28 Andrew Cagney <cagney@redhat.com>
8953 * NEWS: Refer to GDB 6.1.
8954 * README: Refer to GDB 6.1.
8955 * PROBLEMS: Refer to GDB 6.1.
8957 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8959 * thread-db.c (disable_thread_signals): Remove unused function.
8961 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8963 * amd64-nat.c: Include "gdb_string.h".
8964 (amd64_collect_native_gregset): Zero-extend the 32-bit
8965 general-purpose registers and %eip.
8967 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8968 * amd64-tdep.c (amd64_collect_fxsave): New function.
8969 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8971 * i387-tdep.h: Update copyright year.
8972 (i387_collect_fxsave): New prototype.
8973 * i387-tdep.c: Update copyright year.
8974 (i387_collect_fxsave): New function containing most of the code
8975 from i387_fill_fxsave.
8976 (i387_fill_fxsave): Call i387_collect_fxsave.
8978 2004-02-28 Andrew Cagney <cagney@redhat.com>
8980 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8981 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8983 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8985 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8987 2004-02-28 Andrew Cagney <cagney@redhat.com>
8989 * utils.c: Use "", instead of <>, to include readline.
8990 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8991 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8992 * source.c, solib.c, exec.c, event-top.c: Ditto.
8993 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8994 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8995 * Makefile.in: Update all dependencies.
8996 (readline_tilde_h, readline_history_h): Define.
8997 (readline_headers): Delete.
8999 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9001 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9002 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9003 "config/i386/tm-lx64.h".
9005 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9006 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9007 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9009 2004-02-28 Andrew Cagney <cagney@redhat.com>
9011 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9013 * breakpoint.c (_initialize_breakpoint): Use
9014 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9015 Add help to show command.
9017 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9019 * i386-nat.c: Reformat to be closer to coding standards.
9020 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9021 `retval'. Make variables `align' and `size' local to while-loop.
9022 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9023 (_initialize_i386_nat): New prototype.
9025 * tui/tui.c: Include <readline/readline.h> instead of
9026 "readline/readline.h". Include it after <term.h> and
9029 2004-02-27 Andrew Cagney <cagney@redhat.com>
9031 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9032 the new frame unwind code.
9033 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9034 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9037 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9038 "return_value" and "push_dummy_call".
9039 (hppa32_use_struct_convention): Delete unused function.
9040 (hppa32_store_return_value): Delete unused function.
9041 (hppa32_extract_return_value): Delete unused function.
9042 (hppa32_stack_align): Delete function.
9044 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9046 * coffread.c (enter_linenos): Don't let rawptr reference memory
9047 outside linetab[]'s limits.
9049 2004-02-27 Andrew Cagney <cagney@redhat.com>
9051 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9052 inferior stack space - the stack needs to grow upwards.
9053 (hppa32_frame_align): New function.
9054 (hppa64_frame_align): Replace hppa_frame_align.
9055 (hppa_gdbarch_init): Update.
9057 2004-02-26 Orjan Friberg <orjanf@axis.com>
9059 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9060 (dwarf2-frame.h): Include.
9061 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9062 Remove static variables related to ABI setting.
9063 (struct gdbarch_tdep): Remove cris_abi member.
9064 (struct frame_extra_info): Remove.
9065 (cris_unwind_cache, stack_item): New structs.
9066 (cris_frame_unwind, cris_frame_base): New variables.
9067 (push_stack_item, pop_stack_item)
9068 (cris_frame_unwind_cache, cris_frame_this_id)
9069 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9070 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9071 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9072 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9073 (cris_reg_struct_has_addr): New functions.
9074 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9075 (cris_frame_saved_pc, cris_saved_pc_after_call,
9076 (cris_store_struct_return, cris_frameless_function_invocation)
9077 (cris_pop_frame, cris_skip_prologue_main)
9078 (cris_abi_original_store_return_value)
9079 (cris_abi_v2_store_return_value)
9080 (cris_abi_original_extract_return_value)
9081 (cris_abi_v2_extract_return_value)
9082 (cris_abi_original_reg_struct_has_addr)
9083 (cris_abi_v2_reg_struct_has_addr)
9084 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9085 (cris_push_return_address, cris_abi_update): Remove.
9086 (_initialize_cris_tdep): Remove ABI command.
9087 (cris_dump_tdep): Ditto.
9088 (cris_gdbarch_init): Remove ABI command.
9089 Set store_return_value, extract_return_value, push_dummy_code,
9090 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9091 frame_unwind_append_sniffer, frame_base_set_default.
9092 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9093 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9094 sizeof_call_dummy_words, get_saved_register, push_return_address,
9095 pop_frame, store_struct_return, frame_init_saved_regs,
9096 init_extra_frame_info, frameless_function_invocation, frame_chain,
9097 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9100 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9102 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9103 * valprint.c (print_hex_chars): Change from static to external.
9104 (print_char_chars): New function.
9105 * printcmd.c (print_scalar_formatted): For integer and enum types
9106 that are longer than LONGEST, perform processing via appropriate
9107 print_*_chars routines.
9109 2004-02-26 Andrew Cagney <cagney@redhat.com>
9111 * Makefile.in: Update dependencies.
9112 Changes from Ulrich Weigand,
9113 * s390-tdep.c: Include "dwarf2-frame.h".
9114 (s390_dwarf2_frame_init_reg): New function.
9115 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9116 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9118 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9120 * breakpoint.c (pending_break_support): New setting variable.
9121 (break_command_1): Account for pending_break_support setting
9122 when creating pending breakpoints.
9123 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9124 (_initialize_breakpoint): Add "set breakpoint pending" and
9125 "show breakpoint pending" commands.
9127 2004-02-26 Andrew Cagney <cagney@redhat.com>
9130 * charset.c (backslashable, backslashed, represented): Remove 'e'
9131 from list of escaped characters, not part of ISO-C.
9133 2004-02-25 J. Brobecker <brobecker@gnat.com>
9135 From Peter Schauer <schauer@pdf.de>:
9136 * tui/tui.c: Move system header includes after local includes.
9137 Fixes a build failure on solaris systems.
9139 2004-02-25 J. Brobecker <brobecker@gnat.com>
9141 * configure.in: Refine the previous change.
9142 * configure: Regenerate.
9144 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9146 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9147 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9148 "amd64-tdep.h" instead of "x86-64-tdep.h".
9149 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9150 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9151 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9152 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9153 and "x86-64-tdep.c".
9154 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9155 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9156 and "x86-64-tdep.c".
9157 * amd64bsd-nat.c: Update copyright year.
9158 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9159 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9161 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9163 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9165 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9167 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9169 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9171 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9172 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9173 * Makefile.in (amd64_linux_tdep_h): Renamed from
9174 x86_64_linux_tdep_h.
9175 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9176 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9177 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9178 (amd64obsd-tdep.o): Update dependencies.
9179 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9181 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9183 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9184 amd64-linux-nat.c amd64-linux-tdep.c.
9185 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9186 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9187 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9188 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9189 amd64-tdep.o and amd64-linux-tdep.o.
9190 (TM_FILE): Set to tm-linux64.h.
9191 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9192 (NAT_FILE): Set to nm-linux64.h.
9193 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9194 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9196 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9198 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9201 2004-02-25 Roland McGrath <roland@redhat.com>
9203 * remote.c (remote_protocol_qPart_auxv): New variable.
9204 (init_all_packet_configs): Initialize it.
9205 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9206 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9207 (show_remote_cmd): Call it.
9208 (_initialize_remote): Initialize commands.
9209 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9210 service TARGET_OBJECT_AUXV requests.
9212 2004-02-25 J. Brobecker <brobecker@gnat.com>
9214 * configure.in: Make sure that the wborder function is available.
9215 Otherwise, search for it in the cur_colr library.
9216 * configure: Regenerate.
9218 2004-02-25 Andrew Cagney <cagney@redhat.com>
9220 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9222 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9224 * config/i386/tm-x86-64linux.h: Tweak comments.
9226 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9228 * MAINTAINERS: Add self to write-after-approval list.
9230 2004-02-25 Andrew Cagney <cagney@redhat.com>
9232 PR cli/1566. Problem found, and fix suggested by David Allan.
9233 * cli/cli-script.c (execute_control_command): Unconditionally
9234 install a cleanup. Default "ret" to "invalid_control". Use
9235 "break" instead of "return" to escape from the switch.
9237 2004-02-24 J. Brobecker <brobecker@gnat.com>
9239 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9240 with the lines macro defined in term.h on AiX.
9241 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9242 a collision with the label_width macro defined in term.h on AiX.
9244 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9246 Committed by Kevin Buettner <kevinb@redhat.com>.
9248 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9249 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9250 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9251 instead of ia64_write_pc().
9252 * ia64-linux-tdep.c (regcache.h): Include.
9253 (ia64_linux_write_pc): New function.
9255 2004-02-23 Roland McGrath <roland@redhat.com>
9257 * auxv.c (info_auxv_command): Fix typos in error messages.
9259 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9261 * x86-64-tdep.h: Tweak comment.
9262 (enum amd64_regnum): New.
9263 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9264 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9265 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9266 (X86_64_XMM1_REGNUM): Removed.
9267 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9268 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9269 prototypes for renamed functions.
9270 * x86-64-tdep.c: Fix typo.
9271 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9273 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9274 Use constants from `enum amd64_regnum' for register numbers.
9275 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9276 (amd64_analyze_prologue, amd64_frame_cache,
9277 amd64_sigtramp_frame_cache): Use constants from `enum
9278 amd64_regnum' for register numbers.
9279 (amd64_supply_fpregset): Adjust for renamed functions.
9280 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9281 `enum amd64_regnum' for register numbers.
9282 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9283 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9284 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9285 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9286 (amd64_linux_fill_gregset): Adjust for renamed macros.
9287 (fetch_core_registers): Adjust for renamed functions.
9288 (amd64_linux_init_abi): Adjust for renamed functions.
9289 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9291 * amd64-nat.c: Adjust for renamed macros.
9292 * amd64bsd-nat.c (fetch_inferior_registers)
9293 (store_inferior_registers): Use constants from `enum amd64_regnum'
9294 for register numbers. Adjust for renamed variables.
9295 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9297 (_initialize_amd64fbsd_nat): Use constants from `enum
9298 amd64_regnum' for register numbers.
9299 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9300 `enum amd64_regnum' for register numbers.
9301 (amd64fbsd_init_abi): Adjust for renamed functions.
9302 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9303 `enum amd64_regnum' for register numbers.
9304 (amd64nbsd_init_abi): Adjust for renamed functions.
9305 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9306 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9307 `enum amd64_regnum' for register numbers.
9308 (amd64obsd_init_abi): Adjust for renamed functions.
9309 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9311 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9313 * breakpoint.c (print_one_breakpoint): Do not output spaces
9314 after printing <PENDING> for a pending breakpoint.
9316 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9318 * printcmd.c (print_scalar_formatted): Initialize val_long
9319 to remove compiler warning message.
9321 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9323 * defs.h (nquery, yquery): New prototypes.
9324 * breakpoint.c (break_command_1): Use new nquery interface.
9325 * utils.c (defaulted_query, nquery, yquery): New functions.
9327 2004-02-23 Andrew Cagney <cagney@redhat.com>
9329 * hppa-tdep.c (hppa_frame_align): New function.
9330 (hppa32_push_dummy_call): New function.
9331 (hppa64_push_dummy_call): New function.
9332 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9335 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9336 FIX_CALL_DUMMY when push_dummy_call is available.
9337 (call_function_by_hand, push_dummy_code): Ditto.
9339 2004-02-22 Andrew Cagney <cagney@redhat.com>
9341 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9342 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9343 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9344 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9345 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9346 call_dummy_location to ON_STACK.
9348 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9350 * x86-64-linux-tdep.c: Tweak comment.
9351 (amd64_linux_supply_gregset): Renamed from
9352 x86_64_linux_supply_gresget.
9353 (amd64_linux_fill_gregset): Renamed from
9354 x86_64_linux_fill_gregset.
9355 (fetch_core_registers): Adjust for renamed functions.
9356 (amd64_core_fns): Renamed from x86_64_core_fns.
9357 (amd64_linux_sigtramp_start): Renamed from
9358 x86_64_linux_sigtramp_start.
9359 (amd64_linux_pc_in_sigtramp): Renamed from
9360 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9361 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9362 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9363 (amd64_linux_sigcontext_addr): Renamed from
9364 x86_64_linux_sigcontext_addr.
9365 (amd64_linux_sc_reg_offset): Renamed from
9366 x86_64_linux_sc_reg_offset.
9367 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9368 Adjust for renamed functions and variables.
9369 (_initialize_amd64_linux_tdep): Renamed from
9370 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9372 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9373 Adjust for renamed functions.
9375 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9376 from x86_64_linux_gregset64_reg_offset.
9377 (amd64_linux_gregset32_reg_offset): Rename from
9378 x86_64_linux_gregset64_reg_offset.
9379 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9380 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9381 (amd64_linux_dr_set_control): Renamed from
9382 x86_64_linux_dr_set_control. Adjust for renamed functions.
9383 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9384 Adjust for renamed functions.
9385 (amd64_linux_dr_reset_addr): Renamed from
9386 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9387 (amd64_linux_dr_get_status): Renamed from
9388 x86_64_linux_dr_get_status. Adjust for renamed functions.
9389 (_initialize_amd64_linux_nat): Renamed from
9390 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9392 * config/i386/nm-x86-64linux.h: Update copyright year.
9393 Adjust for renamed functions.
9395 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9396 amd64fbsd_sigtramp_start.
9397 (amd64fbsd_sigtramp_end_addr): Renamed from
9398 amd64fbsd_sigtramp_end.
9399 (amd64fbsd_init_abi): Adjust for renamed variables.
9400 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9402 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9403 amd64fbsd_sigtramp_start.
9404 (amd64fbsd_sigtramp_end_addr): Renamed from
9405 amd64fbsd_sigtramp_end.
9407 2004-02-22 Andrew Cagney <cagney@redhat.com>
9409 * hppa-tdep.c (hppa32_return_value): New function.
9410 (hppa64_return_value): New function.
9411 (hppa_gdbarch_init): Set return_value; keep disabled.
9413 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9414 struct-return and inferior function call methods.
9416 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9418 (struct hppa_frame_cache): Define.
9419 (hppa_frame_cache, hppa_frame_this_id): New functions.
9420 (hppa_frame_prev_register): New function.
9421 (hppa_frame_unwind, hppa_frame_base): New variables.
9422 (hppa_frame_unwind_sniffer): New function.
9423 (hppa_frame_base_address, hppa_unwind_pc): New function.
9424 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9425 sniffer, and frame base sniffer; keep disabled.
9426 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9427 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9429 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9430 to predicates for "seriously old code".
9432 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9435 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9437 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9439 * config/pa/tm-hppa.h: Update copyright.
9440 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9441 (deprecated_init_frame_pc_default): Delete declaration.
9442 (hppa_frame_init_saved_regs): Delete declaration.
9443 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9444 * hppa-tdep.c: Include "arch-utils.h".
9445 (hppa_gdbarch_init): Set deprecated init_frame_pc
9446 and deprecated frame_init_saved_regs.
9447 (hppa_frame_init_saved_regs): Make static.
9449 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9451 Remove old 386BSD support.
9452 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9453 * configure.host: Remove i[34567]86-*-bsd*.
9454 * configure.tgt: Remove i[34567]86-*-bsd*.
9455 * i386b-nat.c: Removed.
9456 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9457 (i386b-nat.o): Remove dependencies.
9459 * config/i386/i386bsd.mh: Removed.
9460 * config/i386/i386bsd.mt: Removed.
9461 * config/i386/nm-i386bsd.h: Removed.
9462 * config/i386/tm-i386bsd.h: Removed.
9463 * config/i386/xm-i386bsd.h: Removed.
9465 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9467 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9468 (amd64fbsd_init_abi): Set link map offsets.
9469 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9470 (amd64nbsd_init_abi): Set link map offsets.
9471 * amd64obsd-tdep.c: Include "solib-svr4.h".
9472 (amd64obsd_init_abi): Set link map offsets.
9473 * i386fbsd-tdep.c: Include "solib-svr4.h".
9474 (i386fbsd_init_abi): Set link map offsets.
9475 * i386nbsd-tdep.c: Include "solib-svr4.h".
9476 (i386nbsdelf_init_abi): Set link map offsets.
9477 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9478 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9479 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9480 solib-legacy.o and core-aout.o. Reformat.
9481 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9482 solib-svr4.o, solib-legacy.o. Reformat.
9483 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9484 * config/i386/nbsdelf.mh: Reformat.
9485 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9486 solib-svr4.o, solib-legacy.o and corelow.o.
9487 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9488 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9489 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9490 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9491 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9492 (TM_FILE): Set to tm-fbsd.h.
9493 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9494 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9496 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9498 (TM_FILE): Set to nm-nbsd.h.
9499 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9500 Simplify shared library support. Don't include "elf/common.h".
9501 (SVR4_SHARED_LIBS): Don't define.
9502 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9504 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9505 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9506 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9507 Don't include "i386/tm-i386.h". Include "solib.h".
9508 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9509 Don't include "i386/tm-i386.h".
9510 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9511 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9512 Include "i386/xm-i386.h".
9513 (HOST_LONG_DOUBLE_FORMAT): Remove.
9515 Fix OpenBSD/i386 sigtramp recognition.
9516 * i386-tdep.h: Update copyright year.
9517 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9518 (i386bsd_sigtramp_end): New prototypes.
9519 (i386fbsd_sigtramp_start_addr): Renamed from
9520 i386fbsd_sigtramp_start.
9521 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9522 (i386obsd_sigtramp_start_addr): Renamed from
9523 i386obsd_sigtramp_start.
9524 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9525 * i386bsd-tdep.c: Update copyright year.
9526 (i386bsd_pc_in_sigtramp): Make public.
9527 * i386fbsd-nat.c: Update copyright year.
9528 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9529 * i386fbsd-tdep.c: Update copyright year.
9530 (i386fbsd_sigtramp_start_addr): Renamed from
9531 i386fbsd_sigtramp_start.
9532 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9533 (i386fbsdaout_init_abi): Adjust for renamed variables.
9534 * i386obsd-nat.c: Update copyright year.
9535 (_initialize_i386obsd_nat): Adjust for renamed variables.
9536 * i386obsd-tdep.c: Include "target.h".
9537 (i386obsd_page_size): New variable.
9538 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9539 (i386obsd_sigtramp_end): New functions.
9540 (i386obsd_sigtramp_start_addr): Renamed from
9541 i386obsd_sigtramp_start.
9542 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9543 (i386obsd_init_abi): Adjust for renamed variables. Set
9544 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9545 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9547 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9548 trampoline change in OpenBSD kernel.
9550 * amd64-nat.c: Update copyright year.
9551 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9552 architecture from REGCACHE.
9554 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9555 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9557 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9559 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9560 i[34567]86-*-openbsd3.[0-3].
9561 * config/i386/obsdaout.mh: New file.
9563 * config/i386/obsd.mh (MH_FLAGS): Remove.
9566 * i386obsd-tdep.c: Update copyright years. Include
9568 (i386obsd_init_abi): Don't set regset_from_core_section here.
9569 (i386obsd_aout_init_abi): New function. Set
9570 regset_from_core_section here.
9571 (i386obsd_elf_init_abi): New function.
9572 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9573 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9574 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9575 (TM_FILE): Set to tm-nbsd.h.
9577 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9580 * solib-svr4.h: Update copyright year.
9581 (svr4_ilp32_fetch_link_map_offsets)
9582 (svr4_lp64_fetch_link_map_offsets): New prototype.
9583 * solib-svr4.c: Update copyright year.
9584 (svr4_ilp32_fetch_link_map_offsets)
9585 (svr4_lp64_fetch_link_map_offsets): New function.
9587 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9589 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9590 to the partial symbol table.
9592 2004-02-20 J. brobecker <brobecker@gnat.com>
9594 * PROBLEMS: Add description of problem documented under gdb/1560.
9596 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9598 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9600 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9602 (amd64obsd_init_abi): Reorder initializations. Use
9603 amd64obsd_r_reg_offset to initialize the general-purpose register
9604 set details. Set regset_from_core_section.
9605 (_initialize_amd64obsd_tdep): Rename from
9606 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9607 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9608 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9610 * NEWS (New native configurations): Mention OpenBSD/alpha.
9611 * configure.tgt: Add alpha*-*-openbsd*.
9612 * configure.host: Add alpha*-*-openbsd*.
9613 * alphanbsd-tdep.c: Update copyright year.
9614 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9616 2004-02-20 Andrew Cagney <cagney@redhat.com>
9619 * configure.tgt: Delete target "none-*-*".
9620 * configure.host: Delete host "none-*-*".
9621 * config/none/none.mh: Delete file.
9622 * config/none/none.mt: Delete file.
9623 * config/none/xm-none.h: Delete file.
9624 * config/none/tm-none.h: Delete file.
9625 * config/none/nm-none.h: Delete file.
9627 2004-02-19 Fred Fish <fnf@redhat.com>
9629 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9630 cache->uses_fp prior to setting it.
9632 2004-02-19 Fred Fish <fnf@redhat.com>
9634 Fix for PR breakpoint/1558.
9635 * sh-tdep.c (IS_JSR): New macro.
9636 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9638 2004-02-19 Jim Blandy <jimb@redhat.com>
9640 * findvar.c (value_from_register): Doc fix.
9642 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9644 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9645 type being greater than sizeof of host's LONGEST. Always use
9646 unpack_long() unless format 'f' chosen.
9648 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9650 Committed by Elena Zannoni <ezannoni@redhat.com>
9652 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9653 contains a symbol wich is the best, non-exact match for the given
9654 pc. Update comments.
9656 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9658 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9659 macro, which was part of the now removed Mach 3 port.
9660 * utils.c (request_quit): Ditto.
9662 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9664 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9665 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9667 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9669 Committed by Mark Kettenis <kettenis@gnu.org>.
9671 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9674 2004-02-18 Andrew Cagney <cagney@redhat.com>
9676 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9677 CONFIG_INSTALL and CONFIG_UNINSTALL.
9678 * configure: Re-generate.
9679 * interps.h (INTERP_TUI): Define.
9680 * Makefile.in: Update dependencies.
9682 (tui-main.o): Specify dependencies.
9683 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9684 * tui/tui-main.c: New file.
9686 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9688 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9689 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9691 * configure.host: Add x86_64-*-openbsd*.
9692 * configure.tgt: Add x86_64-*-openbsd*.
9693 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9695 * tui/tui.c: Don't include <malloc.h>.
9697 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9698 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9701 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9702 static. Remove extraneous whitespace.
9703 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9706 2004-02-17 Jim Blandy <jimb@redhat.com>
9708 * findvar.c (value_from_register): Doc fix.
9710 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9712 Committed by Jim Blandy <jimb@redhat.com>.
9714 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9715 CORE_ADDR as type for selectors. Correct types for GNU run time
9716 message lookup function to use double indirection.
9717 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9718 * objc-lang.h (lookup_child_selector): Adapt prototype.
9720 * s390-nat.c (SUBOFF): New macro.
9721 (supply_gregset, fill_gregset): Use it to handle debugging
9722 of 32-bit exectuables running under a 64-bit kernel.
9723 * s390-tdep.c: Include "solib-svr4.h".
9724 (s390_svr4_fetch_link_map_offset): New function.
9725 (s390x_svr_fetch_link_map_offset): Likewise.
9726 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9727 * Makefile.in (s390-tdep.o): Update dependencies.
9729 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9731 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9732 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9733 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9734 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9735 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9736 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9737 S390_SIGNAL_FRAMESIZE,
9738 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9739 (struct frame_extra_info): Remove.
9740 (s390_memset_extra_info): Remove.
9741 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9742 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9743 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9744 (is_rse): Renamed to ...
9745 (is_rsy): ... this. Support long displacements.
9746 (is_rxe): Renamed to ...
9747 (is_rxy): ... this. Support long displacements.
9748 (compute_x_addr): Support long displacements.
9749 (struct s390_prologue_data): New data type.
9750 (s390_on_stack): Change API to use struct s390_prologue_data.
9751 (s390_store): Reimplement.
9752 (s390_load): New function.
9753 (s390_get_signal_frame_info): Remove.
9754 (s390_get_frame_info): Remove, replace by ...
9755 (s390_analyze_prolog): ... this new function.
9756 (s390_check_function_end): Remove.
9757 (s390_function_start): Remove.
9758 (s390_frameless_function_invokation): Remove.
9759 (s390_is_sigreturn): Remove.
9760 (s390_init_frame_pc_first): Remove.
9761 (s390_init_frame_extra_info): Remove.
9762 (s390_frame_init_saved_regs): Remove.
9763 (s390_frame_saved_pc_nofix): Remove.
9764 (s390_frame_saved_pc): Remove.
9765 (s390_frame_chain): Remove.
9766 (s390_fp_regnum, s390_read_fp): Remove.
9767 (s390_pop_frame_regular, s390_pop_frame): Remove.
9768 (s390_saved_pc_after_call): Remove.
9769 (s390_skip_prologue): Reimplement.
9770 (s390_in_function_epilogue_p): Support long displacements.
9771 (struct s390_unwind_cache): New data structure.
9772 (s390_frame_unwind_cache): New function.
9773 (s390_prologue_frame_unwind_cache): Likewise.
9774 (s390_backchain_frame_unwind_cache): Likewise.
9775 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9776 (s390_frame_unwind): Define.
9777 (s390_frame_sniffer): New function.
9778 (struct s390_pltstub_unwind_cache): New data structure.
9779 (s390_pltstub_frame_unwind_cache): New function.
9780 (s390_pltstub_frame_this_id): Likewise.
9781 (s390_pltstub_frame_prev_register): Likewise.
9782 (s390_pltstub_frame_unwind): Define.
9783 (s390_pltstub_frame_sniffer): New function.
9784 (struct s390_sigtramp_unwind_cache): New data structure.
9785 (s390_sigtramp_frame_unwind_cache): New function.
9786 (s390_sigtramp_frame_this_id): Likewise.
9787 (s390_sigtramp_frame_prev_register): Likewise.
9788 (s390_sigtramp_frame_unwind): Define.
9789 (s390_sigtramp_frame_sniffer): New function.
9790 (s390_frame_base_address, s390_local_base_address): New functions.
9791 (s390_frame_base): Define.
9792 (s390_unwind_pc, s390_unwind_sp): New function.
9793 (s390_push_dummy_call): Use new frame base location.
9794 (s390_unwind_dummy_id): Likewise.
9795 (s390_gdbarch_init): Remove calls to:
9796 set_gdbarch_frameless_function_invocation,
9797 set_gdbarch_deprecated_init_frame_pc,
9798 set_gdbarch_deprecated_frame_chain,
9799 set_gdbarch_deprecated_frame_init_saved_regs,
9800 set_gdbarch_deprecated_pop_frame,
9801 set_gdbarch_deprecated_init_extra_frame_info,
9802 set_gdbarch_deprecated_init_frame_pc_first,
9803 set_gdbarch_deprecated_target_read_fp,
9804 set_gdbarch_deprecated_frame_saved_pc,
9805 set_gdbarch_deprecated_saved_pc_after_call,
9806 set_gdbarch_deprecated_fp_regnum.
9808 set_gdbarch_in_solib_call_trampoline,
9809 frame_unwind_append_sniffer,
9810 frame_base_set_default,
9811 set_gdbarch_unwind_pc,
9812 set_gdbarch_unwind_sp.
9813 * Makefile.in (s390-tdep.o): Update dependencies.
9815 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9816 (S390_STACK_FRAME_OVERHEAD): Remove.
9817 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9818 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9819 (s390_promote_integer_argument): Remove.
9820 (s390_cannot_extract_struct_value_address): Remove.
9821 (s390_use_struct_convention, s390_store_struct_return): Remove.
9822 (s390_extract_return_value, s390_store_return_value): Remove.
9823 (s390_return_value_convention, s390_return_value): New functions.
9824 (is_float_singleton): Handle typedefs.
9825 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9826 Remove, replace by ...
9827 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9828 s390_function_arg_integer): ... these new functions.
9829 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9830 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9831 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9834 set_gdbarch_deprecated_store_struct_return,
9835 set_gdbarch_deprecated_extract_return_value,
9836 set_gdbarch_deprecated_store_return_value,
9837 set_gdbarch_use_struct_convention,
9838 set_gdbarch_extract_struct_value_address,
9839 set_gdbarch_deprecated_pc_in_call_dummy,
9840 set_gdbarch_deprecated_push_arguments,
9841 set_gdbarch_deprecated_save_dummy_frame_tos,
9842 set_gdbarch_deprecated_push_return_address,
9843 set_gdbarch_deprecated_sizeof_call_dummy_words,
9844 set_gdbarch_deprecated_call_dummy_words,
9845 set_gdbarch_deprecated_dummy_write_sp.
9847 set_gdbarch_push_dummy_call,
9848 set_gdbarch_unwind_dummy_id,
9849 set_gdbarch_return_value.
9851 * config/s390/nm-linux.h: Update comments.
9852 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9853 (STOPPED_BY_WATCHPOINT): Redefine.
9854 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9855 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9856 (s390_stopped_by_watchpoint): Likewise.
9857 (watch_area_cnt): Remove.
9858 * s390-nat.c: Update comments.
9859 (watch_area): Remove typedef.
9860 Global replace watch_area by struct watch_area.
9861 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9862 (s390_stopped_by_watchpoint): Remove pid argument,
9863 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9864 (s390_fix_watch_points): Remove pid argument,
9865 use s390_inferior_tid. Recompute area spanned by watchpoints.
9866 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9867 argument. Reimplement.
9869 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9870 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9871 (FETCH_INFERIOR_REGISTERS): Define.
9872 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9874 * config/s390/s390x.mt: Remove.
9875 * config/s390/tm-s390.h: Remove.
9876 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9877 (TARGET_ELF64): Remove.
9878 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9879 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9880 s390*-*-* case; always set gdb_target to s390.
9881 * regformats/reg-s390.dat: Remove control registers.
9882 * regformats/reg-s390x.dat: Likewise.
9883 * s390-tdep.h: New file.
9884 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9885 Include "inferior.h" and "s390-tdep.h".
9886 Remove private definition of offsetof.
9887 (s390_register_u_addr): Remove.
9888 (regmap_gregset, regmap_fpregset): Define.
9889 (supply_gregset, fill_gregset): Reimplement.
9890 (supply_fpregset, fill_fpregset): Likewise.
9891 (s390_inferior_tid): New function.
9892 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9893 (fetch_inferior_registers, store_inferior_registers): Likewise.
9894 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9895 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9896 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9897 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9898 (struct gdbarch_tdep): Define.
9899 (struct s390_register_info): Define.
9900 (s390_register_info): New variable.
9901 (s390_register_name): Reimplement.
9902 (s390_register_type): New function.
9903 (s390_register_raw_size, s390x_register_raw_size): Remove.
9904 (s390_cannot_fetch_register): Remove.
9905 (s390_register_byte): Remove.
9906 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9907 (s390_dwarf_regmap): New variable.
9908 (s390_dwarf_reg_to_regnum): New function.
9909 (s390_stab_reg_to_regnum): Remove.
9910 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9911 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9912 (s390_convert_register_p): Likewise.
9913 (s390_register_to_value, s390_value_to_register): Likewise.
9914 (s390_register_reggroup_p): Likewise.
9915 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9916 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9917 (s390_supply_regset, s390_regset_from_core_section): New functions.
9918 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9919 (S390_FPR_SIZE): Likewise.
9920 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9921 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9922 (S390_NUM_GPRS): Move here from tm-s390.h.
9923 (S390_NUM_FPRS): Likewise.
9924 (s390_in_function_epilogue_p): New function.
9925 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9926 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9927 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9928 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9929 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9931 set_gdbarch_deprecated_max_register_raw_size,
9932 set_gdbarch_deprecated_max_register_virtual_size,
9933 set_gdbarch_deprecated_register_byte,
9934 set_gdbarch_cannot_fetch_register,
9935 set_gdbarch_cannot_store_register,
9936 set_gdbarch_deprecated_register_size,
9937 set_gdbarch_deprecated_register_raw_size,
9938 set_gdbarch_deprecated_register_virtual_size,
9939 set_gdbarch_deprecated_register_virtual_type,
9940 set_gdbarch_deprecated_register_bytes.
9942 set_gdbarch_num_pseudo_regs,
9943 set_gdbarch_register_type,
9944 set_gdbarch_convert_register_p,
9945 set_gdbarch_register_to_value,
9946 set_gdbarch_value_to_register,
9947 set_gdbarch_register_reggroup_p,
9948 set_gdbarch_regset_from_core_section,
9949 set_gdbarch_pseudo_register_read,
9950 set_gdbarch_pseudo_register_write,
9951 set_gdbarch_in_function_epilogue_p.
9952 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9953 (s390_tdep_h): New variable.
9955 2004-02-17 Jim Blandy <jimb@redhat.com>
9957 * findvar.c (value_from_register): If the type has no length, just
9958 return an acceptable value --- don't report an internal error.
9960 * stabsread.c (read_type): If we find any type numbers that are
9961 forward references, complain if the references aren't resolved by
9962 the time we're finished reading.
9963 (cleanup_undefined_types): Make error message more appropriate for
9966 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9968 * Makefile.in (defs_h): Remove dependency on progress_h.
9969 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9971 * main.c (captured_main): Delete use of START_PROGRESS and
9974 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9976 * objfiles.c (terminate_minimal_symbol_table): Add back
9977 initialization of MSYMBOL_TYPE.
9979 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9981 Committed by Andrew Cagney.
9982 * Makefile.in (ia64_tdep_h): New macro.
9983 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9984 (ia64-tdep.o): Likewise.
9985 * ia64-tdep.h: New file.
9986 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9987 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9988 (ia64_aix_sigcontext_register_address): Likewise.
9989 (ia64_linux_getunwind_table): Delete declaration.
9990 * ia64-linux-tdep.c: Likewise.
9992 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9994 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9995 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9996 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9998 2004-02-17 Andrew Cagney <cagney@redhat.com>
10000 * symtab.c (skip_prologue_using_sal): New function.
10001 * symtab.h (skip_prologue_using_sal): Declare.
10002 * frv-tdep.c: Include "symtab.h".
10003 (skip_prologue_using_sal): Delete function.
10004 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10005 * rs6000-tdep.c (refine_prologue_limit): Mention
10006 skip_prologue_using_sal.
10007 * ia64-tdep.c (refine_prologue_limit): Ditto.
10008 * Makefile.in: Update dependencies.
10010 2004-02-16 Andrew Cagney <cagney@redhat.com>
10012 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10013 START_INFERIOR_TRAPS_EXPECTED.
10014 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10015 START_INFERIOR_TRAPS_EXPECTED.
10016 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10018 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10019 macro, moved to "nm-osf.h". Update copyright.
10020 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10023 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10024 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10025 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10026 frameless_look_for_prologue.
10027 * frame.h (legacy_frameless_look_for_prologue): Rename
10028 frameless_look_for_prologue.
10029 * gdbarch.h, gdbarch.c: Re-generate.
10030 * sh64-tdep.c (sh64_gdbarch_init): Update.
10031 * sh-tdep.c (sh_gdbarch_init): Update.
10032 * s390-tdep.c (s390_gdbarch_init): Update.
10033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10034 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10035 * m68k-tdep.c (m68k_gdbarch_init): Update.
10036 (delta68_frame_args_address): Update.
10037 * m32r-tdep.c (m32r_gdbarch_init): Update.
10038 * hppa-tdep.c (hppa_gdbarch_init): Update.
10039 * h8300-tdep.c (h8300_gdbarch_init): Update.
10040 * frv-tdep.c (frv_gdbarch_init): Update.
10041 (frv_frameless_function_invocation): Update.
10042 * cris-tdep.c (cris_gdbarch_init): Update.
10043 (cris_frameless_function_invocation): Update.
10044 * avr-tdep.c (avr_gdbarch_init): Update.
10045 * arm-tdep.c (arm_gdbarch_init): Update.
10046 * stack.c (frame_info): Update, call predicate.
10047 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10048 * frame.c (legacy_get_prev_frame): Update, call predicate..
10049 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10050 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10051 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10053 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10054 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10055 * vax-tdep.c (vax_gdbarch_init): Ditto.
10057 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10060 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10062 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10065 2004-02-16 Andrew Cagney <cagney@redhat.com>
10067 * tui/tui-windata.c: Include "gdb_string.h".
10068 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10069 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10070 * Makefile.in: Update dependencies.
10072 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10074 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10075 * infrun.c: Include "gdb_assert.h".
10076 (singlestep_ptid, saved_singlestep_ptid)
10077 (stepping_past_singlestep_breakpoint): New variables.
10078 (resume): Set singlestep_ptid. Check for singlestep thread
10080 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10081 (handle_inferior_event): Handle singlestep thread hop.
10083 2004-02-16 Andrew Cagney <cagney@redhat.com>
10085 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10086 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10087 (dwarf2_frame_init_reg): Ditto.
10089 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10090 suggested by Joshua Neuheisel
10092 * configure.in: Always check for curses, including pdcurses.
10093 Warn, instead of error, when no curses are found. Enable TUI when
10094 curses is available.
10095 * configure: Re-generate.
10097 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10099 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10100 sh_sh4_register_convert_to_virtual.
10101 (sh_register_convert_to_raw): Rename from
10102 sh_sh4_register_convert_to_raw.
10103 (sh_pseudo_register_read): Accomodate above name change.
10104 (sh_pseudo_register_write): Ditto.
10106 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10108 * sh-tdep.c (sh_generic_register_name): Remove.
10109 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10111 2004-02-15 Andrew Cagney <cagney@redhat.com>
10113 * configure.in (build_warnings): Add -Wunused-function.
10114 * configure: Re-generate.
10116 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10117 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10119 * procfs.c (procfs_init_inferior): Assume that
10120 START_INFERIOR_TRAPS_EXPECTED is defined.
10121 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10122 * config/ns32k/tm-nbsd.h: Delete file,
10123 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10125 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10126 * config/vax/tm-vax.h: Delete file.
10128 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10129 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10130 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10131 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10132 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10133 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10134 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10136 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10138 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10139 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10140 (struct dwarf2_frame_ops): New.
10141 (dwarf2_frame_default_init_reg): New function, based on
10142 dwarf2_frame_init_reg.
10143 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10144 (dwarf2_frame_init_reg): Call architecture-specific function.
10145 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10146 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10147 instead of dwarf2_frame_data.
10148 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10149 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10151 2004-02-15 Andrew Cagney <cagney@redhat.com>
10153 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10154 register_gdbarch_swap.
10155 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10156 * f-lang.c (_initialize_f_language): Update, use
10157 DEPRECATED_REGISTER_GDBARCH_SWAP.
10158 * remote.c (_initialize_remote): Ditto.
10159 * regcache.c (_initialize_regcache): Ditto.
10160 * parse.c (_initialize_parse): Ditto.
10161 * infrun.c (_initialize_infrun): Ditto.
10162 * mi/mi-main.c (_initialize_mi_main): Ditto.
10163 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10165 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10166 poking .cacheable directly.
10167 * symfile.c (symfile_bfd_open): Ditto.
10169 * Makefile.in: Update all dependencies.
10171 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10172 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10173 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10174 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10175 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10177 2004-02-14 Andrew Cagney <cagney@redhat.com>
10179 * arch-utils.c (legacy_convert_register_p): Check
10180 DEPRECATED_REGISTER_CONVERTIBLE_P.
10181 * findvar.c (value_of_register): Ditto.
10183 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10184 * gdbarch.h, gdbarch.c: Re-generate.
10185 * arch-utils.c (deprecated_register_convertible_not): Delete.
10186 * arch-utils.h (deprecated_register_convertible_not): Delete.
10187 * mi/mi-main.c (get_register): Update. Update copyright.
10188 * infcmd.c (default_print_registers_info): Update.
10190 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10191 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10192 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10193 * gdbarch.h, gdbarch.c: Re-generate.
10194 * frame.c (deprecated_get_next_frame_hack): Delete function.
10195 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10196 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10198 * infcall.c (call_function_by_hand): Update.
10200 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10202 * symfile.c (init_entry_point_info, entry_point_address): Move
10204 * objfiles.c (init_entry_point_info, entry_point_address):..to
10206 * symfile.h (init_entry_point_info, entry_point_address): Remove
10208 * objfiles.h (init_entry_point_info, entry_point_address):Add
10210 * cris-tdep.c: Remove include of symfile.h. Add include of
10212 * infcall.c: Ditto.
10213 * mcore-tdep.c: Ditto.
10214 * mn10300-tdep.c: Ditto.
10215 * sh64-tdep.c: Ditto.
10216 * v850-tdep.c: Ditto.
10217 * arm-tdep.c: Remove include of symfile.h.
10218 * blockframe.c: Ditto.
10219 * coffread.c: Ditto.
10220 * dbxread.c: Ditto.
10221 * dwarf2read.c: Ditto.
10222 * dwarfread.c: Ditto.
10223 * frv-tdep.c: Ditto.
10224 * ia64-tdep.c: Ditto.
10225 * mdebugread.c: Ditto.
10226 * mipsread.c: Ditto.
10227 * rs6000-tdep.c: Ditto.
10228 * s390-tdep.c: Ditto.
10229 * sh-tdep.c: Ditto.
10230 * xstormy16-tdep.c: Ditto.
10231 * gdbarch.sh: Remove include of symfile.h.
10232 * gdbarch.c: Regenerate.
10233 * solib-irix.c (enable_break): Use entry_point_address().
10234 Add comment about include file.
10235 * xcoffread.c: Add comment about include file.
10236 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10237 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10238 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10239 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10240 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10242 2004-02-13 Andrew Cagney <cagney@redhat.com>
10244 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10245 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10247 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10249 2004-02-12 Fred Fish <fnf@redhat.com>
10251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10252 set_gdbarch_store_return_value.
10254 2004-02-12 Andrew Cagney <cagney@redhat.com>
10256 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10257 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10258 (interrupt_query): Ditto.
10259 (ofunc): Delete unused variable.
10260 * cris-tdep.c (cris_abi): Delete unused function.
10261 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10262 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10263 (cris_get_asr_quick_shift_steps): Ditto.
10264 (cris_skip_prologue_frameless_p): Ditto.
10265 * arm-tdep.c (arm_push_return_address): Delete unused function.
10266 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10267 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10268 * s390-tdep.c (s390_function_start): Delete unused function.
10270 2004-02-12 Andrew Cagney <cagney@redhat.com>
10272 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10273 gdbarch.h, gdbarch.c: Re-generate.
10274 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10275 to generic_prologue_frameless_p.
10276 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10277 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10279 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10281 * mips-linux-tdep.c: Include "frame.h".
10282 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10283 (mips_linux_skip_resolver): New functions.
10284 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10285 and set_gdbarch_in_solib_call_trampoline.
10286 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10287 to after set_gdbarch_in_solib_return_trampoline. Only set the
10288 solib hooks to mips16 functions if the OS ABI is unknown.
10289 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10290 including "config/tm-linux.h".
10291 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10292 * Makefile.in (mips-linux-tdep.o): Update.
10294 2004-02-11 David Carlton <carlton@kealia.com>
10296 * linespec.c (decode_compound): Only look for a class symbol when
10297 considering all but the rightmost component.
10299 2004-02-11 Andrew Cagney <cagney@redhat.com>
10301 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10302 abi code are are separatly grouped.
10304 2004-02-11 Andrew Cagney <cagney@redhat.com>
10306 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10307 * gdbarch.h, gdbarch.c: Re-generate.
10308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10309 * v850-tdep.c (v850_gdbarch_init): Update.
10310 * sh64-tdep.c (sh64_gdbarch_init): Update.
10311 * sh-tdep.c (sh_gdbarch_init): Update.
10312 * s390-tdep.c (s390_gdbarch_init): Update.
10313 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10314 * mips-tdep.c (mips_gdbarch_init): Update.
10315 * mcore-tdep.c (mcore_gdbarch_init): Update.
10316 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10317 * m32r-tdep.c (m32r_gdbarch_init): Update.
10318 * ia64-tdep.c (ia64_gdbarch_init): Update.
10319 * hppa-tdep.c (hppa_gdbarch_init): Update.
10320 * h8300-tdep.c (h8300_gdbarch_init): Update.
10321 * frv-tdep.c (frv_gdbarch_init): Update.
10322 * d10v-tdep.c (d10v_gdbarch_init): Update.
10323 * cris-tdep.c (cris_gdbarch_init): Update.
10324 * avr-tdep.c (avr_gdbarch_init): Update.
10325 * arm-tdep.c (arm_gdbarch_init): Update.
10326 * alpha-tdep.c (alpha_gdbarch_init): Update.
10328 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10330 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10332 (sh_sh4al_dsp_register_name): Ditto.
10334 2004-02-10 Andrew Cagney <cagney@redhat.com>
10336 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10337 (mips_init_frame_pc_first): Delete function.
10338 (mips_frame_saved_pc): Delete function.
10339 (mips_frame_chain): Delete function.
10340 (mips_init_extra_frame_info): Delete function.
10341 (mips_xfer_register): Delete unused variable "reg".
10342 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10343 (mips_n32n64_return_value): Delete unused variable "reg".
10344 (mips_n32n64_return_value): Delete unused variable "pos".
10345 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10346 (mips_o32_return_value): Delete unused variable "pos".
10347 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10348 (mips_print_fp_register): Delete unused variable "namelen"
10349 (mips_print_fp_register): Delete unused variable "flt2"
10350 (get_frame_pointer): Delete function.
10351 (cached_proc_desc): Delete static variable.
10352 (mips_pop_frame): Delete function.
10353 (mips_find_saved_regs): Delete function.
10354 (mips_get_saved_register): Delete function.
10355 (mips_saved_pc_after_call): Delete function.
10356 (SIGFRAME_BASE): Delete macro.
10357 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10358 (SIGFRAME_PC_OFF): Delete macro.
10359 (SIGFRAME_REGSAVE_OFF): Delete macro.
10360 (mips_dump_tdep): Do not print deleted macro definitions.
10362 2004-02-10 Andrew Cagney <cagney@redhat.com>
10364 * Makefile.in (SFILES): Remove explictly listed tui files.
10365 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10367 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10369 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10370 to use paddr functions to format ia64 addresses and long values.
10371 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10372 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10373 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10374 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10375 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10377 2004-02-10 Andrew Cagney <cagney@redhat.com>
10379 * defs.h: Do not include "tui.h".
10380 * gdb_curses.h: New file.
10381 * tui/tui-hooks.h: New file.
10382 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10383 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10384 (tui_initialize_io): Delete declaration.
10385 (tui_initialize_readline: Delete redundant declaration.
10386 (struct tui_point): Delete definition.
10387 * tui/tui-data.h (struct tui_point): Define.
10388 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10389 * utils.c: Include "tui/tui.h".
10390 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10391 * printcmd.c [TUI]: Include "tui/tui.h".
10392 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10393 * tui/tui-command.c: Include "gdb_curses.h".
10394 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10395 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10396 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10397 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10398 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10399 * Makefile.in: Update all dependencies.
10400 (tui_hooks_h, gdb_curses_h): Define.
10401 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10403 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10405 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10406 auxf2. Add comments about some other rarely used fields.
10408 2004-02-10 Andrew Cagney <cagney@redhat.com>
10410 * Makefile.in (init.c): Fix script removing duplicates. Problem
10411 reported by Peter Schauer.
10413 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10415 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10416 obstack_specify_allocation.
10417 * objfiles.c (allocate_objfile): Ditto.
10418 * solib-sunos.c (solib_add_common_symbols)
10419 (allocate_rt_common_objfile): Ditto.
10420 * symfile.c (reread_symbols): Ditto.
10421 * gdb_obstack.h: Add comment.
10423 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10425 * linespec.c (decode_line_1, locate_first_half)
10426 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10427 commented out code.
10429 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10431 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10434 2004-02-09 Andrew Cagney <cagney@redhat.com>
10436 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10437 fails, try find_pc_section. Fix PR c++/1267.
10438 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10439 instead of find_pc_mapped_section.
10440 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10441 not default to the section containing PC. Fix PR symtab/1519.
10443 2004-02-09 Andrew Cagney <cagney@redhat.com>
10445 * Makefile.in (mips-tdep.o): Update dependencies.
10446 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10448 (mips_unwind_pc): Return the pseudo PC register.
10449 (mips_unwind_dummy_id): New function.
10450 (mips16_fetch_instruction): New function.
10451 (mips32_fetch_instruction): New function.
10452 (struct mips_frame_cache): Define.
10453 (mips_mdebug_frame_cache): New function.
10454 (mips_mdebug_frame_this_id): New function.
10455 (mips_mdebug_frame_prev_register): New function.
10456 (mips_mdebug_frame_unwind): Define.
10457 (mips_mdebug_frame_sniffer): New function.
10458 (mips_mdebug_frame_base_address): New function.
10459 (mips_mdebug_frame_base): Define.
10460 (mips_mdebug_frame_base_sniffer): New function.
10461 (mips_gdbarch_init): Append unwind and base sniffers. Set
10464 2004-02-08 Andrew Cagney <cagney@redhat.com>
10466 * frame.c: Print both the register number and name.
10468 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10469 and a sed into a single sed. Make .c and .o patterns more robust.
10471 (INIT_FILES): Replace OBS with COMMON_OBS.
10472 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10474 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10476 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10477 the PT_WCOOKIE request.
10479 2004-02-08 Andrew Cagney <cagney@redhat.com>
10481 * mips-tdep.c (mips_unwind_pc): New function.
10482 (mips_gdbarch_init): Set mips_unwind_pc.
10484 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10485 (get_frame_id): Allow the UNKNOWN_FRAME.
10486 (frame_register_unwind, get_frame_type): Ditto.
10488 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10489 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10490 unwind_dummy_id indicates a legacy frame.
10492 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10493 * configure: Re-generate.
10495 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10498 2004-02-08 Andrew Cagney <cagney@redhat.com>
10500 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10502 * configure: Re-generate.
10503 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10504 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10505 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10506 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10507 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10508 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10509 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10510 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10511 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10512 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10514 2004-02-07 Andrew Cagney <cagney@redhat.com>
10516 * Makefile.in: Update all dependencies.
10518 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10519 * configure: Re-generate.
10520 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10521 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10522 (COMMON_OBS): Add "main.o" and "annotate.o".
10523 (ANNOTATE_OBS): Delete.
10524 (OBS): Remove ANNOTATE_OBS.
10525 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10527 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10528 against CONFIG_OBS and "main.o".
10529 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10530 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10532 * tui/tui-command.c: Include "gdb_string.h", delete register
10533 attribute, use ISO-C function signatures.
10534 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10535 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10536 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10537 * tui/tui.c: Ditto.
10539 * tui/tui-command.c: Change variable and function names to lower
10541 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10542 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10543 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10544 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10545 * tui/tui-winsource.c, tui/tui.c: Ditto.
10547 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10549 * buildsym.c (free_pending_blocks, finish_block)
10550 (record_pending_block, make_blockvector, end_symtab): Replace
10551 symbol_obstack with objfile_obstack.
10552 * coffread.c (process_coff_symbol, coff_read_struct_type)
10553 (coff_read_enum_type): Ditto.
10554 * cp-namespace.c (initialize_namespace_symtab)
10555 (check_one_possible_namespace_symbol): Ditto.
10556 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10557 (dwarf2_symbol_mark_computed): Ditto.
10558 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10559 * elfread.c (elf_symtab_read): Ditto.
10560 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10561 (hpread_read_enum_type, hpread_read_function_type)
10562 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10564 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10565 (java_link_class_type): Ditto.
10566 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10567 (new_symbol): Ditto.
10568 * minsyms.c (install_minimal_symbols): Ditto.
10569 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10570 (terminate_minimal_symbol_table): Replace symbol_obstack with
10572 (free_objfile): Remove freeing of symbol_obstack.
10573 * objfiles.h: Remove symbol_obstack field.
10574 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10576 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10578 (solib_add_common_symbols): Replace symbol_obstack with
10580 * somsolib.c (som_solib_add): Ditto.
10581 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10582 (common_block_start, common_block_end): Ditto.
10583 * symfile.c (reread_symbols): Remove freeing and init of
10585 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10586 * symfile.h: Update comment.
10587 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10589 * symtab.c (symbol_set_names): Replace symbol_obstack with
10591 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10593 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10594 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10597 2004-02-07 Andrew Cagney <cagney@redhat.com>
10599 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10600 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10601 fields and variables.
10602 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10603 (m_beInvisible): Delete macro.
10604 * tui/tui-data.h: Fix case case fields and variables.
10605 (m_genWinPtrIsNull): Delete macro.
10606 (tui_win_list): Rename winList.
10607 (TUI_SRC_WIN): Rename srcWin.
10608 (TUI_DISASM_WIN): Rename disassemWin.
10609 (TUI_DATA_WIN): Rename dataWin.
10610 (TUI_CMD_WIN): Rename cmdWin.
10611 (m_genWinPtrNotNull): Delete macro.
10612 (m_winPtrIsNull): Delete macro.
10613 (m_winPtrNotNull): Delete macro.
10614 (tui_win_is_source_type): Replace m_winIsSourceType
10615 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10616 (tui_win_has_locator): Replace m_hasLocator.
10617 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10618 m_setWinHighlightOff.
10619 * tui/tui-data.c: Update references.
10620 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10621 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10622 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10623 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10624 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10625 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10626 * tui/tui-winsource.c, tui/tui.c: Ditto.
10628 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10630 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10631 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10634 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10635 variable `i6' to `i7'.
10636 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10638 2004-02-07 Andrew Cagney <cagney@redhat.com>
10640 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10641 (TuiPoint, TuiPointPtr): Ditto.
10642 (TuiStatus, TuiStatusPtr): Ditto.
10643 (TuiWinType, TuiWinTypePtr): Ditto.
10644 (struct tui_point): Rename _TuiPoint.
10645 (tui_get_low_disassembly_address): Rename
10646 tuiGetLowDisassemblyAddress.
10647 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10648 (tuiFree): Delete declaration.
10649 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10650 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10651 * tui/tui.c (tuiFree): Delete function.
10652 * cli/cli-cmds.c (disassemble_command): Update references.
10653 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10654 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10655 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10656 * tui/tui-winsource.c: Ditto.
10658 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10660 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10661 coffstab_build_psymtabs, elfstab_build_psymtabs)
10662 (stabsect_build_psymtabs): Replace psymbol_obstack with
10664 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10665 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10667 * dwarfread.c (scan_compilation_units): Ditto.
10668 * elfread.c (elfstab_offset_sections): Ditto.
10669 * hppa-tdep.c (read_unwind_info): Ditto.
10670 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10671 (hpread_end_psymtab): Ditto.
10672 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10673 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10675 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10676 * objfiles.c (add_to_objfile_sections)
10677 (build_objfile_section_table): Ditto.
10678 (allocate_objfile): Remove init of psymbol_obstack.
10679 (free_objfile): Remove freeing of psymbol_obstack.
10680 * objfiles.h (struct objfile): Remove field
10681 psymbol_obstack. Update comments.
10682 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10683 psymbol_obstack with objfile_obstack.
10684 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10686 * somread.c (som_symfile_offsets, init_import_symbols)
10687 (init_export_symbols): Replace psymbol_obstack with
10689 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10690 * symfile.c (default_symfile_offsets, syms_from_objfile)
10691 (reread_symbols): Remove freeing and init of psymbol_obstack.
10692 (cashier_psymtab): Update comment.
10693 * symmisc.c (print_objfile_statistics): Don't report stats for
10695 * symtab.h (struct general_symbol_info, struct partial_symtab):
10697 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10698 (xcoff_symfile_offsets): Replace psymbol_obstack with
10701 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10703 * objfiles.h (struct objfile): Add objfile_obstack field.
10704 Remove type_obstack field.
10706 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10707 read_structure_scope read_enumeration, new_symbol): Replace
10708 type_obstack with objfile_obstack.
10709 * dwarfread.c (struct_type, enum_type): Ditto.
10710 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10711 (lookup_fundamental_type): Ditto.
10712 * gdbtypes.h (TYPE_ALLOC): Ditto.
10713 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10714 (hpread_read_doc_function_type, hpread_read_struct_type)
10715 (fix_static_member_physnames, hpread_read_array_type)
10716 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10717 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10718 (java_link_class_type): Ditto.
10719 * mdebugread.c (parse_type): Ditto.
10720 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10721 * solib-sunos.c (solib_add_common_symbols): Ditto.
10722 * stabsread.c (define_symbol, read_type, read_member_functions,
10723 read_cpp_abbrev, read_one_struct_field): Ditto.
10724 * symfile.c (reread_symbols): Ditto.
10725 * symmisc.c (print_objfile_statistics): Ditto.
10727 2004-02-07 Andrew Cagney <cagney@redhat.com>
10729 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10730 (tui_exec_info_content): Rename TuiExecInfoContent.
10731 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10732 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10733 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10734 (TuiList, TuiListPtr): Ditto.
10735 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10736 (TuiDataType, TuiDataTypePtr): Ditto.
10737 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10738 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10739 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10740 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10741 (TuiDataElement, TuiDataElementPtr): Ditto.
10742 (TuiWinElement, TuiWinElementPtr): Ditto.
10743 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10744 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10745 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10746 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10747 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10748 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10749 * tui/tui-command.c, tui/tui-data.c: Update references.
10750 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10751 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10752 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10753 * tui/tui-winsource.c, tui/tui.c: Ditto.
10755 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10757 * dwarf2-frame.h: Update copyright.
10758 (enum dwarf2_frame_reg_rule): New.
10759 (struct dwarf2_frame_state_reg): New.
10760 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10761 * dwarf2-frame.c: Update copyright.
10762 (enum dwarf2_reg_rule): Remove.
10763 (struct dwarf2_frame_state): Remove defenition of `struct
10764 dwarf2_frame_state_reg'.
10765 (read_reg): Call get_frame_arch to get the architecture instead of
10766 using CURRENT_GDBARCH.
10767 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10769 (dwarf2_frame_init_reg): New function.
10770 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10771 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10772 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10773 tags with DWARF2_FRAME_.
10774 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10775 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10776 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10778 2004-02-06 Andrew Cagney <cagney@redhat.com>
10780 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10781 (enum tui_data_type): Rename _TuiDataType.
10782 (struct tui_layout_def): Rename _TuiLayoutDef.
10783 (struct tui_source_element): Rename _TuiSourceElement.
10784 (struct tui_data_element): Rename _TuiDataElement.
10785 (struct tui_command_element): Rename _TuiCommandElement.
10786 (struct tui_locator_element): Rename _TuiLocatorElement.
10787 (union tui_which_element): Define.
10788 (struct tui_win_element): Rename _TuiWinElement.
10789 (struct tui_data_info): Rename _TuiDataInfo.
10790 (struct tui_source_info): Rename _TuiSourceInfo.
10791 (struct tui_command_info): Rename _TuiCommandInfo.
10792 (tui_initialize_static_data): Rename initializeStaticData.
10793 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10794 (tui_alloc_win_info): Rename allocWinInfo.
10795 (tui_init_generic_part): Rename initGenericPart.
10796 (tui_init_win_info): Rename initWinInfo.
10797 (tui_alloc_content): Rename allocContent.
10798 (tui_add_content_elements): Rename addContentElements.
10799 (tui_init_content_element): Rename initContentElement.
10800 (tui_free_window): Rename freeWindow.
10801 (tui_free_win_content): Rename freeWinContent.
10802 (tui_free_data_content): Rename freeDataContent.
10803 (tui_free_all_source_wins_content): Rename
10804 freeAllSourceWinsContent.
10805 (tui_del_window): Rename tuiDelWindow.
10806 (tui_del_data_windows): Rename tuiDelDataWindows.
10807 (tui_partial_win_by_name): Rename partialWinByName.
10808 (tui_win_name): Rename winName.
10809 (tui_current_layout): Rename currentLayout.
10810 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10811 (tui_term_height): Rename termHeight.
10812 (tui_set_term_height_to): Rename setTermHeightTo.
10813 (tui_term_width): Rename termWidth.
10814 (tui_set_term_width_to): Rename setTermWidthTo.
10815 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10816 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10817 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10818 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10819 (tui_source_windows): Rename sourceWindows.
10820 (tui_clear_source_windows): Rename clearSourceWindows.
10821 (tui_clear_source_windows_detail): Rename
10822 clearSourceWindowsDetail.
10823 (tui_clear_win_detail): Rename clearWinDetail.
10824 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10825 (tui_default_tab_len): Rename tuiDefaultTabLen.
10826 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10827 (tui_win_with_focus): Rename tuiWinWithFocus.
10828 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10829 (tui_layout_def): Rename tuiLayoutDef.
10830 (tui_win_resized): Rename tuiWinResized.
10831 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10832 (tui_next_win): Rename tuiNextWin.
10833 (tui_prev_win): Rename tuiPrevWin.
10834 (tui_add_to_source_windows): Rename addToSourceWindows.
10835 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10836 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10837 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10838 * tui/tui.c, tui/tui-data.c: Ditto.
10839 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10840 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10842 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10843 (struct symtab): Declare.
10844 (tui_set_source_content): Rename tuiSetSourceContent.
10845 (tui_show_symtab_source): Rename tuiShowSource.
10846 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10847 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10848 * tui/tui-source.c: Update copyright. Update references.
10849 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10850 * tui/tui-stack.c: Update references.
10852 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10853 (struct tui_win_info): Declare.
10854 (tui_scroll_forward): Rename tuiScrollForward.
10855 (tui_scroll_backward): Rename tuiScrollBackward.
10856 (tui_scroll_left): Rename tuiScrollLeft.
10857 (tui_scroll_right): Rename tuiScrollRight.
10858 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10859 (tui_resize_all): Rename tuiResizeAll.
10860 (tui_refresh_all_win): Rename tuiRefreshAll.
10861 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10862 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10863 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10864 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10866 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10867 (tui_erase_data_content): Rename tuiEraseDataContent.
10868 (tui_display_all_data): Rename tuiDisplayAllData.
10869 (tui_check_data_values): Rename tuiCheckDataValues.
10870 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10871 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10872 (tui_first_data_element_no_in_line): Rename
10873 tuiFirstDataElementNoInLine.
10874 (tui_delete_data_content_windows): Rename
10875 tuiDeleteDataContentWindows.
10876 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10877 (tui_display_data_from): Rename tuiDisplayDataFrom.
10878 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10879 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10880 * tui/tui-win.c, tui/tui-regs.c: Update references.
10881 * tui/tui-layout.c, tui/tui.c: Update references.
10883 * tui/tui-wingeneral.h: Update copyright.
10884 (m_allBeVisible): Delete macro.
10885 (m_allBeInvisible): Delete macro.
10886 (struct tui_gen_win_info): Declare.
10887 (struct tui_win_info): Declare.
10888 (tui_unhighlight_win): Rename unhighlightWin.
10889 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10890 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10891 (tui_make_window): Rename makeWindow.
10892 (tui_copy_win): Rename copyWin.
10893 (tui_box_win): Rename boxWin.
10894 (tui_highlight_win): Rename highlightWin.
10895 (tui_check_and_display_highlight_if_needed): Rename
10896 checkAndDisplayHighlightIfNeeded.
10897 (tui_refresh_all): Rename refreshAll.
10898 (tui_delete_win): Rename tuiDelwin.
10899 (tui_refresh_win): Rename tuiRefreshWin.
10900 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10901 (tui_make_visible, tui_make_invisible): New functions.
10902 (tui_make_all_visible, tui_make_all_invisible): New functions.
10903 (make_all_visible): Rename makeAllVisible.
10904 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10905 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10906 * tui/tui-windata.c, tui/tui-win.c: Update references.
10907 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10908 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10910 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10912 * proc-api.c (write_with_trace): Initialize local variable to
10913 silence compiler warning.
10915 2004-02-06 Andrew Cagney <cagney@redhat.com>
10917 * tui/tui-source.h: Do not include "defs.h".
10918 (struct tui_win_info): Declare.
10919 (tui_set_source_content_nil): Declare.
10920 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10921 (union tui_line_or_address): Rename _TuiLineOrAddress.
10922 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10923 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10924 (tui_update_source_window_as_is): Rename
10925 tuiUpdateSourceWindowAsIs.
10926 (tui_update_source_windows_with_addr): Rename
10927 tuiUpdateSourceWindowsWithAddr.
10928 (tui_update_source_windows_with_line): Rename
10929 tuiUpdateSourceWindowsWithLine.
10930 (tui_clear_source_content): Rename tuiClearSourceContent.
10931 (tui_erase_source_content): Rename tuiEraseSourceContent.
10932 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10933 (tui_show_source_content): Rename tuiShowSourceContent.
10934 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10935 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10936 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10937 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10938 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10939 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10940 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10941 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10942 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10943 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10944 (struct tui_win_info): Declare.
10945 * tui/tui-stack.c: Update references.
10946 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10947 * tui/tui-win.c, tui/tui-source.c: Ditto.
10948 * tui/tui.c, tui/tui-disasm.c: Ditto.
10950 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10952 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10953 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10955 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10957 * infrun.c (handle_inferior_event): Allow for breakpoint
10958 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10959 and SIGEMT. Update comments.
10960 * NEWS (Revised SPARC target): Mention support for non-executable
10963 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10965 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10966 * inftarg.c: Update copyright year.
10967 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10968 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10969 (sparc_xfer_wcookie): New function.
10970 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10971 * Makefile.in (sparc-nat.o): Update dependencies.
10972 * config/sparc/nm-nbsd.h: Include "target.h".
10973 (NATIVE_XFER_WCOOKIE): New define.
10974 (sparc_xfer_wcookie): New prototype.
10976 2004-02-04 Andrew Cagney <cagney@redhat.com>
10978 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10979 SYSCALL_TRAP function.
10980 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10982 2004-02-04 Andrew Cagney <cagney@redhat.com>
10983 Daniel Jacobowitz <drow@mvista.com>
10985 * objfiles.h: Delete comments refering to inside_entry_func and
10986 DEPRECATED_FRAME_CHAIN_VALID.
10987 * defs.h (inside_entry_func): Update prototype..
10988 * blockframe.c (inside_entry_func): Rename to
10989 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10990 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10992 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10994 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10995 outside of #ifdef SOLIB_ADD region.
10996 (do_restore_lang_radix_cleanup): Ditto.
10997 (resolve_pending_breakpoint): Ditto.
10999 2004-02-03 Andrew Cagney <cagney@redhat.com>
11001 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11002 (process_note_abi_tag_sections): Delete unused function.
11003 (ia64_read_fp): Delete unused function.
11004 (gdbarch_extract_struct_value_address): Delete declaration.
11006 2004-02-02 Andrew Cagney <cagney@redhat.com>
11008 * vax-tdep.c (vax_frame_chain): Delete call to
11009 deprecated_inside_entry_file.
11010 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11012 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11014 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11015 column that's "empty" or "same value" when eliminating REG_RA
11018 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11020 * NEWS: Add information about new pending breakpoint support.
11022 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11024 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11025 and pending fields for pending breakpoint support.
11026 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11027 (condition_command): Only parse condition if not a pending
11029 (print_one_breakpoint): Add support for pending breakpoints.
11030 (describe_other_breakpoints): Add checks to verify we are not
11031 dealing with pending breakpoints.
11032 (check_duplicates): Don't check pending breakpoints.
11033 (set_raw_breakpoint): Initialize pending flag.
11034 (do_restore_lang_radix_cleanup): New cleanup routine.
11035 (resolve_pending_breakpoint): New function.
11036 (re_enable_breakpoints_in_shlibs): Try and resolve any
11037 pending breakpoints via resolve_pending_breakpoint.
11038 (mention): Add pending breakpoint support.
11039 (parse_breakpoint_sals): Add new parameter to pass to
11040 decode_line_1 to indicate silent errors when files or functions
11041 are not found. Change all callers.
11042 (do_captured_parse_breakpoint): New function.
11043 (break_command_1): Change prototype to return an rc value and to
11044 take an optional pending breakpoint pointer. Support creating
11045 a pending breakpoint if a "not found" form of error occurs when
11046 parsing the breakpoint. Also support resolving an existing pending
11047 breakpoint and be silent if the resolution fails.
11048 (create_breakpoints): Change prototype to take pending breakpoint
11049 pointer. When resolving a pending breakpoint, use the new pointer
11050 to provide a conditional or commands added by the end-user.
11051 (delete_breakpoint): Add appropriate check for pending.
11052 (breakpoint_re_set_one): Ditto.
11053 (do_enable_breakpoint): Ditto.
11055 2004-02-02 David Carlton <carlton@kealia.com>
11057 * valops.c (enum oload_classification): New.
11058 (find_overload_match): Break implementation into separate
11059 functions; delete #if 0'd code; look for symbols within
11061 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11062 (find_oload_champ,oload_method_static,classify_oload_match): New.
11063 * cp-support.h: Add declaration for cp_func_name; update
11064 declaration for make_symbol_overload_list.
11065 * cp-support.c (cp_func_name): New.
11066 (overload_list_add_symbol): Fix comment, use
11067 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11068 (make_symbol_overload_list): Take a function name and a namespace
11069 instead of a symbol; change implementation.
11070 (make_symbol_overload_list_using): New.
11071 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11073 2004-02-02 Fred Fish <fnf@redhat.com>
11075 * main.c (gdb_stdtarg): Move definition to group with other
11076 gdb_stdtarg definitions and update copyright years.
11077 * remote-sim.c (gdb_os_write_stderr): Write output to
11078 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11079 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11080 gdb_stderr stream and update copyright years.
11082 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11084 * Makefile.in (mips-linux-nat.o): Update dependencies.
11085 * mips-linux-nat.c: Include mips-tdep.h.
11087 2004-02-01 Roland McGrath <roland@redhat.com>
11089 * sol-thread.c (sol_thread_xfer_partial): New function.
11090 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11091 (init_sol_core_ops): Likewise.
11093 * procfs.c (procfs_xfer_partial): New function.
11094 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11095 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11097 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11098 procfs_xfer_auxv function.
11100 * procfs.c (procfs_make_note_section): If we can read
11101 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11102 * linux-proc.c (linux_make_note_section): Likewise.
11104 * auxv.h: New file.
11105 * auxv.c: New file.
11106 * Makefile.in (auxv_h): New variable.
11107 (COMMON_OBS): Add auxv.o here.
11108 (auxv.o): New target.
11110 * corelow.c (core_xfer_partial): New function.
11111 (init_core_ops): Use it for core_ops.to_xfer_partial.
11113 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11114 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11115 macro if that is defined.
11117 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11119 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11120 and check the specified thread for each breakpoint.
11121 * breakpoint.h (bpstat_stop_status): Update prototype.
11122 * infrun.c (handle_inferior_event): Update calls to
11123 bpstat_stop_status.
11125 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11127 * Makefile.in (cli-cmds.o): Add $(readline_h).
11129 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11131 * cli/cli-cmds.c: Include readline.h.
11132 (complete_command): Pass the start of the last word to
11135 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11137 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11138 argument, and change first argument to a CORE_ADDR.
11139 * breakpoint.h (bpstat_stop_status): Update prototype.
11140 * infrun.c (adjust_pc_after_break): Add a new comment.
11141 (handle_inferior_event): Update calls to bpstat_stop_status.
11143 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11145 * breakpoint.h: Update copyright years.
11147 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11149 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11150 (bpstat_stop_status): Don't decrement PC.
11151 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11153 * infrun.c (adjust_pc_after_break): New function.
11154 (handle_inferior_event): Call it, early. Remove later references
11155 to DECR_PC_AFTER_BREAK.
11156 (normal_stop): Add commentary.
11158 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11160 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11161 2004-01-27 double-free fix.
11163 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11165 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11166 (sparc32_frame_prev_register): Handle StackGhost.
11167 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11169 2004-01-29 Roland McGrath <roland@redhat.com>
11171 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11172 * configure: Regenerated.
11174 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11175 * Makefile.in (procfs.o): Add dep.
11177 2004-01-28 Andrew Cagney <cagney@redhat.com>
11179 * tui/tui-stack.h: Update copyright.
11180 (struct frame_info): Add opaque declaration.
11181 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11182 (tui_show_locator_content): Rename tuiShowLocatorContent.
11183 (tui_show_frame_info): Rename tuiShowFrameInfo.
11184 * tui/tui-stack.c: Update copyright. Update references.
11185 * tui/tui-winsource.c: Update references.
11186 * tui/tui-win.c: Update references.
11187 * tui/tui-layout.c: Update references.
11188 * tui/tui-hooks.c: Update copyright, update references.
11189 * tui/tui.c: Update copyright, update references.
11190 * tui/tui-disasm.c: Update references.
11192 2004-01-28 David Carlton <carlton@kealia.com>
11194 * dwarf2read.c (add_partial_structure): Use demangled name if
11195 namespace equals "".
11197 2004-01-27 Jim Blandy <jimb@redhat.com>
11199 Clean up misapplied patch:
11200 * dwarf2read.c (determine_prefix): Change one of the two forward
11201 declarations for 'determine_prefix_aux' to a declaration for this.
11202 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11203 argument to 'die_specification'.
11205 * dwarf2read.c (read_func_scope): Re-indent comment.
11207 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11209 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11210 b->exp to NULL after freeing so that error during re-parsing or
11211 evaluation of expressions associated with breakpoint don't
11212 eventually lead to re-freeing of storage.
11213 Committed by Andrew Cagney.
11215 2004-01-27 Andrew Cagney <cagney@redhat.com>
11217 * source.c (ambiguous_line_spec): Delete undefined declaration.
11218 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11219 (m32r_set_server_address, m32r_set_download_path): Ditto.
11220 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11222 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11224 * dwarf2read.c: Update calls to changed and renamed functions, and
11225 references to moved variables.
11227 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11228 language, language_defn, list_in_scope, and ftypes members.
11229 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11230 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11231 (baseaddr): Remove globals.
11233 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11234 (set_cu_language, die_is_declaration, die_specification)
11235 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11236 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11237 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11238 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11240 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11241 cu.list_in_scope. Don't initialize cu_header_offset.
11242 (add_partial_symbol): Add local baseaddr.
11243 (psymtab_to_symtab_1): Add local baseaddr. Use
11244 objfile->section_offsets for consistency. Don't initialize
11245 cu_header_offset; do initialize cu.header.offset and
11247 (read_file_scope, read_func_scope, read_lexical_block_scope)
11248 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11250 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11252 * PROBLEMS: Add gdb/1516.
11254 2003-12-29 Robert Millan <robertmh@gnu.org>
11256 Patch committed by Andrw Cagney.
11257 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11258 * configure.tgt: Match knetbsd*-gnu.
11260 2004-01-26 Andrew Cagney <cagney@redhat.com>
11262 * breakpoint.c (catch_command_1): Delete #ifdef code.
11263 (catch_fork_command_1): Delete #ifdef wrapper.
11264 (catch_exec_command_1): Ditto.
11265 (catch_load_command_1): Ditto.
11266 (catch_unload_command_1): Ditto.
11268 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11269 (catch_breakpoint): Delete #if0ed function.
11270 (disable_catch_breakpoint): Ditto.
11271 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11272 (disable_catch, enable_catch, delete_catch): Ditto.
11274 2004-01-26 Andrew Cagney <cagney@redhat.com>
11276 * remote.c (echo_check, quit_flag): Delete variables.
11277 (cisco_kernel_mode): Delete variable.
11278 (minitelnet_return, tty_input, escape_count): Delete variables.
11279 (remote_cisco_mode): Delete variable.
11280 (remote_cisco_open, remote_cisco_close): Delete function.
11281 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11282 (init_remote_cisco_ops): Delete function.
11283 (_initialize_remote): Do not install "remote cisco" code.
11284 (read_frame): Delete cisco specific code.
11285 (remote_info_process): Delete function.
11286 (remote_wait): Delete cisco specific code.
11287 (remote_cisco_section_offsets): Delete function.
11288 (remote_cisco_objfile_relocate): Delete function.
11289 (remote_async_wait): Delete cisco specific code.
11290 (minitelnet, readtty, readsocket): Delete function.
11292 2004-01-26 Andrew Cagney <cagney@redhat.com>
11294 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11295 comments mentioning extract_returned_value_address.
11296 * infcmd.c (print_return_value): Update. Add comments on
11297 extract_returned_value_address.
11298 * stack.c (return_command): Add comments on
11299 extract_returned_value_address.
11300 * values.c: Update comment.
11301 * m32r-tdep.c: Update comment.
11302 * sparc-tdep.c: Update comment.
11303 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11305 * sh64-tdep.c (sh64_gdbarch_init): Update.
11306 * sh-tdep.c (sh_gdbarch_init): Update.
11307 * s390-tdep.c (s390_gdbarch_init): Update.
11308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11309 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11310 * m68k-tdep.c (m68k_gdbarch_init): Update.
11311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11312 * m32r-tdep.c (m32r_gdbarch_init): Update.
11313 * ia64-tdep.c (ia64_gdbarch_init): Update.
11314 * h8300-tdep.c (h8300_gdbarch_init): Update.
11315 * frv-tdep.c (frv_gdbarch_init): Update.
11316 * arm-tdep.c (arm_gdbarch_init): Update.
11317 * alpha-tdep.c (alpha_gdbarch_init): Update.
11319 2004-01-26 Andrew Cagney <cagney@redhat.com>
11321 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11322 SYMBOL_LOCATION_FUNCS
11323 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11324 "struct symbol_ops".
11325 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11326 type to "struct symbol_ops".
11327 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11328 (struct symbol): Replace ".aux_value.loc.funcs" and
11329 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11330 (SYMBOL_OBJFILE): Delete macro.
11331 (SYMBOL_LOCATION_FUNCS): Delete macro.
11332 (SYMBOL_LOCATION_BATON): Update.
11333 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11334 intead of SYMBOL_LOCATION_FUNCS.
11335 * ax-gdb.c (gen_var_ref): Ditto.
11336 * printcmd.c (address_info): Ditto.
11337 * findvar.c (read_var_value): Ditto.
11338 (symbol_read_needs_frame): Ditto.
11340 2004-01-26 Andrew Cagney <cagney@redhat.com>
11342 * dwarf2read.c (read_func_scope): Document frame-base hack.
11344 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11346 * infcmd.c (print_return_value): Plug memory leak; delete
11347 ui_stream object. Rename argument `structure_return' to
11350 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11352 * infcmd.c (print_return_value): Wrap long lines.
11353 (finish_command_continuation, finish_command): Remove unused
11354 variable `funcaddr'. Fix some coding-standards problems.
11356 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11357 SECT_SIZE is large enough, not whether it's exactly the right size.
11358 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11359 TDEP->fpregset to zero.
11361 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11362 floating-point registers for traditional NetBSD core files.
11363 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11364 TDEP->sizeof_fpregset here.
11366 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11368 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11369 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11370 function with code split out from
11371 sparc32nbsd_sigcontext_frame_cache.
11372 (sparc32nbsd_sigcontext_frame_cache): Use
11373 sparc32nbsd_sigcontext_saved_regs.
11374 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11376 * sparcobsd-tdep.c: New file.
11377 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11378 (sparcobsd-tdep.o): New dependency.
11379 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11380 * config/sparc/obsd.mt: New file.
11382 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11383 TDEP->fpregset to be initialized to enable core file register
11386 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11388 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11389 Add opaque declarations.
11390 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11391 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11392 function with code split out from
11393 sparc64nbsd_sigcontext_frame_cache.
11394 (sparc64nbsd_sigcontext_frame_cache): Use
11395 sparc64nbsd_sigcontext_saved_regs.
11396 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11398 * sparc64obsd-tdep.c: New file.
11399 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11400 (sparc64obsd-tdep.o): New dependency.
11401 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11402 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11403 * config/sparc/obsd64.mt: New file.
11405 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11406 read the instruction at PC.
11408 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11409 value of GDB_OSABI_DEFAULT.
11410 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11411 instead of GDB_OSABI_NETBSD_AOUT.
11413 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11415 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11418 2004-01-23 Andrew Cagney <cagney@redhat.com>
11420 * printcmd.c (display_command): Replace tui_set_display call with
11421 tui_set_layout_for_display_command.
11422 * tui/tui.h (enum tui_win_type): Define.
11423 (tui_set_layout): Delete declaration.
11424 (tui_set_layout_for_display_command): Rename set_tui_layout.
11425 * tui/tui-data.h (enum tui_layout_type): Define.
11426 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11428 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11429 (tui_default_win_height): Rename tuiDefaultWinHeight.
11430 (tui_default_win_viewport_height): Rename
11431 tuiDefaultWinViewportHeight.
11432 (tui_set_layout): RenametuiSetLayout.
11433 * tui/tui-layout.c: Update references.
11434 * tui/tui.c: Update references.
11435 * tui/tui-disasm.c: Update references.
11437 2004-01-23 David Carlton <carlton@kealia.com>
11439 Partial workaround for PR c++/1511:
11440 * cp-namespace.c: Include frame.h.
11441 (cp_lookup_transparent_type): New
11442 (cp_lookup_transparent_type_loop): New.
11443 * cp-support.h: Declare cp_lookup_transparent_type.
11444 * symtab.c (basic_lookup_transparent_type): Renamed from
11445 lookup_transparent_type.
11446 (lookup_transparent_type): Replace old body by a call to
11447 current_language->la_lookup_transparent_type.
11448 * symtab.h: Update copyright. Declare
11449 basic_lookup_transparent_type.
11450 * language.h: Update copyright.
11451 (struct language_defn): Add la_lookup_transparent_type.
11452 * language.c: Update copyright.
11453 (unknown_language_defn): Add basic_lookup_transparent_type.
11454 (auto_language_defn): Add basic_lookup_transparent_type.
11455 (local_language_defn): Add basic_lookup_transparent_type.
11456 * ada-lang.c: Update copyright.
11457 (ada_language_defn): Add basic_lookup_transparent_type.
11458 * c-lang.c: Update copyright.
11459 (c_language_defn): Add basic_lookup_transparent_type.
11460 (cplus_language_defn): Add basic_lookup_transparent_type.
11461 (asm_language_defn): Add basic_lookup_transparent_type.
11462 (minimal_language_defn): Add basic_lookup_transparent_type.
11463 * f-lang.c: Update copyright.
11464 (f_language_defn): Add basic_lookup_transparent_type.
11465 * jv-lang.c: Update copyright.
11466 (java_language_defn): Add basic_lookup_transparent_type.
11467 * m2-lang.c: Update copyright.
11468 (m2_language_defn): Add basic_lookup_transparent_type.
11469 * objc-lang.c: Update copyright.
11470 (objc_language_defn): Add basic_lookup_transparent_type.
11471 * p-lang.c: Update copyright.
11472 (p_language_defn): Add basic_lookup_transparent_type.
11473 * scm-lang.c: Update copyright.
11474 (scm_language_defn): Add basic_lookup_transparent_type.
11475 * Makefile.in (cp-namespace.o): Depend on frame.h.
11477 2004-01-23 David Carlton <carlton@kealia.com>
11479 Patch for PR c++/1520:
11480 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11481 properly if we have a specification die.
11482 (determine_prefix_aux): Rename from determine_prefix.
11483 (determine_prefix): Like the old determine_prefix, but never
11486 2004-01-23 Theodore A. Roth <troth@openavr.org>
11488 * avr-tdep.c: Update copyright.
11489 (avr_iaddr_p): Delete unused function.
11490 (avr_saddr_p): Delete unused function.
11492 2004-01-23 David Carlton <carlton@kealia.com>
11494 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11495 Fix for PR symtab/1534.
11497 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11499 * NEWS (New native configurations): Mention OpenBSD/sparc and
11501 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11502 * configure.host: Likewise.
11503 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11504 handler for OpenBSD.
11505 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11507 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11509 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11510 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11512 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11513 * cli/cli-cmds.c (shell_escape): Likewise.
11515 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11516 OpenBSD .note.openbsd.ident sections.
11518 2004-01-22 David Carlton <carlton@kealia.com>
11520 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11521 get_scope_pc_bounds.
11522 (read_file_scope): Ditto.
11523 (get_scope_pc_bounds): New function, produced by extracting code
11524 from the above two functions, consolidating it, and adding support
11525 for DW_TAG_namespace.
11527 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11529 * osabi.c (MAX_NOTESZ): New define.
11530 (check_note): New function.
11531 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11534 2004-01-21 Roland McGrath <roland@redhat.com>
11536 * MAINTAINERS (write after approval): Add myself.
11538 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11540 * utils.c (init_page_info): Move declarations of `rows' and
11541 `cols' before the __GO32__-specific code. Move the closing brace
11542 outside the #ifdef __GO32__..#endif block.
11543 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11545 2004-01-21 Paul Brook <paul@codesourcery.com>
11547 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11548 BPSTAT_WHAT_CHECK_SHLIBS.
11550 2004-01-21 Paul Brook <paul@codesourcery.com>
11552 * MAINTAINERS: Add myself to write-after-approval.
11554 2004-01-20 Andrew Cagney <cagney@redhat.com>
11556 * ax-gdb.c (print_axs_value): Delete unused function.
11557 * jv-lang.c (java_lookup_type): Delete unused function.
11558 * cli/cli-dump.c (dump_filetype): Delete unused function.
11559 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11560 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11561 (mips_getstring): Delete unused function.
11562 (pmon_insert_breakpoint): Delete #if0ed function.
11563 (PMON_MAX_BP): Delete #if0ed MACRO.
11564 (mips_pmon_bp_info): Delete #if0ed variable.
11565 (pmon_remove_breakpoint): Delete #if0ed function.
11566 * monitor.c (monitor_write_even_block): Delete unused function.
11567 (monitor_write_memory_block): Delete #if0ed code.
11568 * dink32-rom.c (dink32_load): Delete unused function.
11569 (_initialize_dink32_rom): Delete #if0ed code.
11570 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11572 * tui/tui-command.c: Update references.
11573 * tui/tui-io.c: Update references.
11574 * tui/tui-command.h: Update copyright.
11575 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11577 * source.c (ambiguous_line_spec): Delete never-defined function.
11578 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11579 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11580 * cli/cli-cmds.c (validate_comname): Ditto.
11582 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11584 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11585 (tui_show_disassem): Rename tuiShowDisassem.
11586 (tui_show_disassem_and_update_source): Rename
11587 tuiVerticalDisassemScroll.
11588 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11589 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11590 * tui/tui.h: Update copyright.
11591 (enum tui_status): Define.
11592 * tui/tui-data.h (enum tui_scroll_direction): Define.
11593 * tui/tui-disasm.c: Update copyright. Update references.
11594 * tui/tui-winsource.c: Update copyright. Update references.
11595 * tui/tui-win.c: Update references.
11596 * tui/tui-layout.c: Update references.
11598 2004-01-20 Andrew Cagney <cagney@redhat.com>
11600 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11601 sym2 to start of block.
11603 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11605 * MAINTAINERS: Delete mmalloc.
11606 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11607 * NEWS: Mention removal of --with-malloc.
11608 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11609 * config.in: Regenerate.
11610 * configure: Regenerate.
11611 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11612 USE_MMALLOC, MMCHECK_FORCE.
11613 * gdbinit.in: Remove mmalloc.
11614 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11615 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11616 * config/i386/go32.mh: Likewise.
11617 * config/i386/interix.mh: Likewise.
11618 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11620 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11622 * linespec.c (decode_variable, symtab_from_filename): Call
11623 error_silent with error message instead of throwing an exception
11625 * defs.h (error_silent, error_output_message): Add prototypes.
11626 (catch_exceptions_with_msg): Ditto.
11627 * utils.c (error_silent, error_output_message): New functions.
11628 * top.c (catch_exceptions_with_msg): New function.
11630 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11632 * mi/mi-cmds.h (enum print_values): Add definition.
11634 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11635 type and value for simple data types and just the name and type
11636 for complex ones, if required.
11638 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11639 children, if required.
11641 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11643 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11644 unused declarations.
11646 2004-01-19 Andrew Cagney <cagney@redhat.com>
11648 * top.h (mapped_symbol_files): Delete declaration.
11649 * main.c (captured_main): Delete option "m" and "mapped".
11650 * objfiles.c (mapped_symbol_files): Delete variable.
11651 * symfile.c (symbol_file_command): Delete mmap code.
11652 (symbol_file_add_with_addrs_or_offsets): Ditto.
11653 (add_symbol_file_command, reread_separate_symbols): Ditto.
11654 * objfiles.h (OBJF_MAPPED): Delete.
11655 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11656 (free_objfile) [USE_MMALLOC]: Ditto.
11657 (open_existing_mapped_file): Delete function.
11658 (open_mapped_file): Delete function.
11659 (map_to_file): Delete function.
11661 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11663 * infrun.c (step_into_function): Account for possible breakpoint
11664 adjustment when computing ``stop_func_start''.
11666 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11668 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11669 the region size against the size of a pointer, not the size of
11670 a register as given by DEPRECATED_REGISTER_SIZE.
11672 2004-01-19 Andrew Cagney <cagney@redhat.com>
11674 * tui/tui-regs.h: Include "tui-data.h".
11675 (tuiFirstRegElementNoInLine): Delete declaration.
11676 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11677 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11678 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11679 (tui_calculate_regs_column_count): Rename
11680 tuiCalculateRegsColumnCount.
11681 (tui_check_register_values): Rename tuiCheckRegisterValues.
11682 (tui_show_registers): Rename tuiShowRegisters.
11683 (tui_display_registers_from_line): Rename
11684 tuiDisplayRegistersFromLine.
11685 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11686 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11687 (tui_first_reg_element_no_inline): Rename
11688 tuiFirstRegElementNoInLine.
11689 * tui/tui-data.h: Update copyright.
11690 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11691 * tui/tui-windata.c: Update copyright, update references.
11692 * tui/tui-regs.c: Update copyright, update references.
11693 * tui/tui-win.c: Update copyright, update references.
11694 * tui/tui-layout.c: Update copyright, update references.
11696 2004-01-18 Andrew Cagney <cagney@redhat.com>
11698 * tui/tui-io.c: Update copyright.
11699 (key_is_end_sequence, key_is_backspace): New functions.
11700 (key_is_command_char, key_is_start_sequence): New function.
11701 (tui_getc): Update references.
11702 * tui/tui-io.h: Update copyright.
11703 (m_tuiStartNewLine): Delete macro.
11704 (m_isBackspace, m_isDeleteChar): Delete macros.
11705 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11706 (m_isNextPage, m_isPrevPage): Delete macros.
11707 (m_isLeftArrow, m_isRightArrow): Delete macros.
11708 (m_isXdbStyleCommandChar): Delete macro.
11709 (key_is_start_sequence): Declare, replace m_isStartSequence.
11710 (key_is_end_sequence): Declare, replace m_isEndSequence.
11711 (key_is_backspace): Declare ,replace m_isBackspace.
11712 (key_is_command_char): Declare, replace m_isCommandChar.
11713 * tui/tui-command.c: Update copyright.
11714 (tuiDispatchCtrlChar): Update references.
11716 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11719 * tui/tui-command.c: Rename tui/tuiCommand.c.
11720 * tui/tui-command.h: Rename tui/tuiCommand.h.
11721 * tui/tui-data.c: Rename tui/tuiData.c.
11722 * tui/tui-data.h: Rename tui/tuiData.h.
11723 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11724 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11725 * tui/tui-io.c: Rename tui/tuiIO.c.
11726 * tui/tui-io.h: Rename tui/tuiIO.h.
11727 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11728 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11729 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11730 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11731 * tui/tui-source.c: Rename tui/tuiSource.c.
11732 * tui/tui-source.h: Rename tui/tuiSource.h.
11733 * tui/tui-stack.c: Rename tui/tuiStack.c.
11734 * tui/tui-stack.h: Rename tui/tuiStack.h.
11735 * tui/tui-win.c: Rename tui/tuiWin.c.
11736 * tui/tui-win.h: Rename tui/tuiWin.h.
11737 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11738 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11739 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11740 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11741 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11742 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11743 * tui/tui-file.c: Update includes.
11744 * tui/tui-hooks.c: Update includes.
11745 * tui/tui-interp.c: Update includes.
11746 * tui/tui.c: Update includes.
11747 * Makefile.in: Update all tui/ dependencies.
11748 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11750 * Makefile.in: Update copyright. Update dependencies.
11752 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11755 2004-01-18 Andrew Cagney <cagney@redhat.com>
11757 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11758 instead of register_gdbarch_init.
11760 * remote-sds.c (tohex): Delete unused function. Update copyright.
11761 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11762 * v850-tdep.c (v850_register_virtual_size): Ditto.
11763 * target.c (normal_target_post_startup_inferior): Ditto.
11764 * source.c (ambiguous_line_spec): Ditto.
11765 * remote.c (adapt_remote_get_threadinfo): Ditto.
11766 * mi/mi-out.c (out_field_fmt): Ditto.
11767 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11768 (output_control_change_notification): Ditto.
11769 * m68k-tdep.c (m68k_register_byte): Ditto.
11770 (m68k_remote_breakpoint_from_pc): Ditto.
11771 * ui-out.c (init_ui_out_state): Delete unused declaration.
11772 * stabsread.c (search_value): Ditto.
11773 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11774 * maint.c (print_section_table): Ditto.
11775 * infrun.c (set_follow_fork_mode_command): Ditto.
11777 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11779 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11780 DW_CFA_def_cfa_exporession. Add support for
11781 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11782 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11784 2004-01-18 Andrew Cagney <cagney@redhat.com>
11786 * ocd.c: Update copyright.
11787 (bdm_read_register_command): Delete unused function.
11788 (_initialize_remote_ocd): Delete commented out reference.
11789 (get_quoted_char, reset_packet): Delete #if0ed function.
11790 (output_packet, put_quoted_char): Delete #if0ed function.
11791 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11792 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11793 (BDM_BREAKPOINT): Delete #if0ed macro.
11794 (remote_timeout): Delete #if0ed variable.
11796 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11798 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11799 (core-sol2.o): Remove dependency.
11800 * core-sol2.c: Remove file.
11802 2004-01-17 Andrew Cagney <cagney@redhat.com>
11804 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11805 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11808 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11810 * remote.c: Update copyright years.
11812 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11814 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11816 2004-01-17 Andrew Cagney <cagney@redhat.com>
11818 * mdebugread.c: Update copyright.
11819 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11820 (parse_type, parse_procedure): Ditto.
11821 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11823 * cris-tdep.c (cris_store_struct_return): Put back accidently
11826 * gdbarch.sh: Update copyright year.
11827 * gdbarch.h, gdbarch.c: Re-generate.
11829 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11831 Suggested by George Anzinger.
11832 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11833 correct stack offset. Include unknown opcode numbers in the error
11836 2004-01-17 Andrew Cagney <cagney@redhat.com>
11838 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11839 extract_struct_value_address, i386 does not set it.
11840 * sparc64-tdep.c (sparc64_init_abi): Do not set
11841 extract_struct_value_address, never called.
11842 (sparc64_extract_struct_value_address): Delete function.
11843 * m68hc11-tdep.c: Update copyright.
11844 (m68hc11_gdbarch_init): Delete redundant assignment of
11845 extract_struct_value_address.
11846 * i386-tdep.c: Update copyright.
11847 (i386_gdbarch_init): Do not set extract_struct_value_address,
11849 (i386_extract_struct_value_address): Delete function.
11850 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11851 extract_struct_value_address, never called.
11852 (sparc32_extract_struct_value_address): #if 0 function. Add
11853 comments explaining its future.
11855 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11857 * arm-tdep.c (arm_write_pc): New function.
11858 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11860 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11862 * breakpoint.c (must_shift_inst_regs): Delete.
11863 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11864 and SHIFT_INST_REGS.
11865 * infcmd.c (step_1, step_1_continuation): Delete references to
11867 * infrun.c (keep_going): Likewise.
11868 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11869 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11871 2004-01-17 Andrew Cagney <cagney@redhat.com>
11873 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11874 * gdbarch.h, gdbarch.c: Re-generate.
11875 * infcmd.c (print_return_value): Delete reference to
11876 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11878 * cris-tdep.c (cris_gdbarch_init): Do not set
11879 deprecated_extract_struct_value_address.
11881 * xstormy16-tdep.c: Update copyright.
11882 (xstormy16_extract_struct_value_address): Update to current
11883 extract struct value address interface.
11884 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11885 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11886 current extract struct value address interface.
11887 (sh64_gdbarch_init): Set extract_struct_value_address.
11889 * cris-tdep.c: Update copyright.
11890 (cris_extract_struct_value_address): Delete function.
11891 (struct_return_address): Delete variable.
11892 (cris_store_struct_return): Do not set struct_return_address.
11894 * mcore-tdep.c: Update copyright.
11895 (mcore_extract_struct_value_address): Delete function. Update
11897 (mcore_gdbarch_init): Update.
11898 * mn10300-tdep.c: Update copyright.
11899 (mn10300_extract_struct_value_address): Delete function.
11900 (mn10300_gdbarch_init): Update.
11901 * v850-tdep.c: Update copyright.
11902 (v850_extract_struct_value_address): Delete.
11903 (v850_gdbarch_init): Update.
11904 * ns32k-tdep.c: Update copyright.
11905 (ns32k_extract_struct_value_address): Delete.
11906 (ns32k_gdbarch_init): Update.
11907 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11908 (hppa_gdbarch_init): Update.
11909 * vax-tdep.c: Update copyright.
11910 (vax_extract_struct_value_address): Delete.
11911 (vax_gdbarch_init): Update.
11913 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11914 * gdbarch.h, gdbarch.c: Re-generate.
11915 * procfs.c (procfs_fetch_registers): Delete reference to
11916 DEPRECATED_NPC_REGNUM.
11917 (procfs_store_registers): Ditto.
11918 * regcache.c (generic_target_write_pc): Simplify.
11919 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11921 * core-sol2.c (fetch_core_registers): Replace
11922 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11924 * hppa-tdep.c: Update copyright year.
11925 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11927 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11929 * mips-tdep.c (mips_write_pc): New function.
11930 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11931 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11932 (mips_find_saved_regs, mips_software_single_step: Ditto.
11933 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11934 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11936 2004-01-17 Andrew Cagney <cagney@redhat.com>
11938 * mips-tdep.c: Re-indent. Group functions by ABI.
11940 2004-01-17 Andrew Cagney <cagney@redhat.com>
11942 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11943 * gdbarch.c: Re-generate.
11944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11945 DECR_PC_AFTER_BREAK to zero.
11946 * vax-tdep.c (vax_gdbarch_init): Ditto.
11947 * v850-tdep.c (v850_gdbarch_init): Ditto.
11948 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11949 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11950 * sh-tdep.c (sh_gdbarch_init): Ditto.
11951 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11952 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11953 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11954 * mips-tdep.c (mips_gdbarch_init): Ditto.
11955 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11957 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11958 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11959 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11960 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11961 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11962 * frv-tdep.c (frv_gdbarch_init): Ditto.
11963 * cris-tdep.c (cris_gdbarch_init): Ditto.
11964 * avr-tdep.c (avr_gdbarch_init): Ditto.
11965 * arm-tdep.c (arm_gdbarch_init): Ditto.
11966 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11968 2004-01-17 J. Brobecker <brobecker@gnat.com>
11970 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11971 Delete, no longer used.
11972 (read_subrange_type): New function, mostly extracted from
11974 (read_array_type): Replace extracted code by call to
11975 read_subrange_type().
11976 (dwarf2_get_attr_constant_value): New function.
11977 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11978 (add_partial_symbol): Likewise.
11979 (process_die): Likewise.
11980 (new_symbol): Likewise.
11981 (read_type_die): Likewise.
11983 2004-01-16 Andrew Cagney <cagney@redhat.com>
11985 * symfile.c: Update copyright year.
11986 (compare_symbols): Delete unused function.
11987 * stabsread.c: Update copyright year.
11988 (lrs_general_complaint): Delete unused function.
11989 (ref_search_value): Ditto.
11990 (get_substring): Delete declaration.
11991 * sh64-tdep.c: Update copyright year.
11992 (sh64_get_gdb_regnum): Delete unused function.
11993 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11994 Delete unused function.
11996 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11998 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11999 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12001 2004-01-16 Andrew Cagney <cagney@redhat.com>
12003 Changes from Peter Schauer.
12004 * rs6000-tdep.c: Update copyright year.
12005 (rs6000_push_dummy_call): Update the stack pointer before
12006 accessing the corresponding stack region.
12007 * rs6000-nat.c: Update copyright year.
12008 (set_host_arch): Set "info.abfd" to "exec_bfd".
12010 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12012 * blockframe.c: Update copyright year.
12013 (inside_entry_func): Don't treat a zero PC specially.
12015 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12017 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12019 (gcore_create_callback): Ditto. Skip any memory segment that has
12020 no permissions set.
12022 2004-01-14 David Carlton <carlton@kealia.com>
12024 Change symbols for C++ nested types to contain the fully qualified
12025 name, if possible. (At least in the DWARF-2 case.) Partial fix
12026 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12028 * c-exp.y (qualified_type): Handle types nested within classes.
12029 * cp-namespace.c: Update comments.
12030 (cp_set_block_scope): Delete #if 0.
12031 (cp_lookup_nested_type): Handle types nested within classes.
12032 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12034 (add_partial_symbol): Add the name of the enclosing namespace to
12036 (pdi_needs_namespace): New.
12037 (add_partial_namespace): Tweak comment.
12038 (add_partial_structure): New.
12039 (psymtab_to_symtab_1): Initialize processing_current_prefix
12041 (process_die): instead of here.
12042 (read_structure_scope): Try to figure out the name of the class or
12043 namespace that the structure might be defined within.
12044 (read_enumeration): Generate fully-qualified names, if possible.
12045 (read_namespace): Don't set name to NULL.
12046 (die_specification): New.
12047 (new_symbol): Generate fully-qualified names for types.
12048 (read_type_die): Determine appropriate prefix.
12049 (determine_prefix): New.
12050 (typename_concat): New.
12052 * valops.c (value_aggregate_elt): Pass NOSIDE to
12053 value_struct_elt_for_reference.
12054 (value_struct_elt_for_reference): Make static, add NOSIDE
12055 parameter, call value_maybe_namespace_elt as a last resort.
12056 (value_namespace_elt): Break out code into
12057 value_maybe_namespace_elt.
12058 (value_maybe_namespace_elt): New.
12060 2004-01-12 Andrew Cagney <cagney@redhat.com>
12062 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12063 cooked floating-point registers.
12064 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12065 and value_to_register.
12067 2004-01-13 Andrew Cagney <cagney@redhat.com>
12069 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12070 * gdbarch.c: Re-generate.
12071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12072 FUNCTION_START_OFFSET.
12073 * v850-tdep.c (v850_gdbarch_init): Ditto.
12074 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12075 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12076 * sh-tdep.c (sh_gdbarch_init): Ditto.
12077 * s390-tdep.c (s390_gdbarch_init): Ditto.
12078 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12079 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12080 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12081 * mips-tdep.c (mips_gdbarch_init): Ditto.
12082 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12083 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12085 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12086 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12087 * i386-tdep.c (i386_gdbarch_init): Ditto.
12088 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12089 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12090 * frv-tdep.c (frv_gdbarch_init): Ditto.
12091 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12092 * cris-tdep.c (cris_gdbarch_init): Ditto.
12093 * avr-tdep.c (avr_gdbarch_init): Ditto.
12094 * arm-tdep.c (arm_gdbarch_init): Ditto.
12095 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12097 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12099 * infrun.c (follow_fork_mode_ask): Remove.
12100 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12101 (follow_fork): Simplify and remove internal error for
12102 follow_fork_mode_ask.
12103 (_initialize_infrun): Update "set follow-fork-mode" help text.
12105 2004-01-13 Andrew Cagney <cagney@redhat.com>
12107 * configure.in: Update copyright year.
12108 (build_warnings): Add -Wunused-label.
12109 * configure: Re-generate.
12111 2004-01-12 Andrew Cagney <cagney@redhat.com>
12113 * exec.h (exec_ops): Make "extern".
12115 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12116 the function is void.
12117 (mips_pseudo_register_write): Ditto.
12119 2004-01-12 Andrew Cagney <cagney@redhat.com>
12121 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12122 call. Never defined.
12123 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12124 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12125 (struct sparc_gregset, struct regcache): Ditto.
12126 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12128 2004-01-12 Andrew Cagney <cagney@redhat.com>
12130 * mi/ChangeLog: Delete file. Renamed to ...
12131 * mi/ChangeLog-1999-2003: New file.
12132 * tui/ChangeLog: Delete file. Renamed to ...
12133 * tui/ChangeLog-1998-2003: New file.
12135 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12137 * sparc64nbsd-tdep.c: Include "regset.h".
12138 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12140 (fetch_core_registers): Remove function.
12141 (sparc64nbsd_core_fns): Remove variable.
12142 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12144 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12145 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12146 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12148 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12149 sparc_extract_struct_value_address.
12150 (sparc32_gdbarch_init): Set extract_struct_value_address.
12151 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12153 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12154 return_value_on_stack.
12156 * NEWS: Mention that %cs and %ss have been added to the AMD64
12159 * frame.c: Update copyright year.
12160 (get_prev_frame): Improve comment.
12162 * sparc64fbsd-tdep.c: Include "regset.h".
12163 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12165 (fetch_core_registers): Remove function.
12166 (sparc64fbsd_core_fns): Remove variable.
12167 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12169 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12170 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12171 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12173 * sparcnbsd-tdep.c: Include "regset.h".
12174 (fetch_core_registers): Remove function.
12175 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12176 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12178 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12180 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12182 * sparc-tdep.h (struct regset): Provide opaque declaration.
12183 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12184 fpregset and sizeof_fpregset members.
12185 * sparc-tdep.c (struct regset): Provide opaque declaration.
12186 (sparc_regset_from_core_section): New function.
12187 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12188 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12189 Set regset_from_core_section when appropriate.
12191 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12193 * x86-64-tdep.c (amd64_non_pod_p): New function.
12194 (amd64_classify_aggregate): Return class memory for non-POD
12195 C++ structure types.
12197 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12198 argument. Use it to reserve a register if necessary.
12199 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12200 amd64_push_arguments.
12202 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12204 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12205 register numbers in comments.
12206 * x86-64-tdep.h: Update copyright year.
12207 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12208 Adjust for addition of %cs and %ss.
12209 * amd64fbsd-nat.c: Update copyright year.
12210 (reg_offset): Add register offsets for %cs and %ss.
12211 * amd64fbsd-tdep.c: Update copyright year.
12212 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12213 (amd64fbsd_sc_reg_offset): Likewise.
12214 * x86-64-linux-nat.c: Update copyright year.
12215 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12217 * amd64nbsd-nat.c: Update copyright year.
12218 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12219 * amd64nbsd-tdep.c: Update copyright year.
12220 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12221 * x86-64-linux-tdep.c: Update copyright year.
12222 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12223 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12224 * regformats/reg-x86-64.dat: Add %cs and %ss.
12226 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12227 variables to prevent long lines. Update comments to reflect
12230 2004-01-09 David Carlton <carlton@kealia.com>
12232 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12233 * dwarf2read.c (read_namespace): Pull out name-generating code
12234 into namespace_name. Rename previous_namespace to previous_prefix
12235 and processing_current_namespace to processing_current_prefix..
12236 (namespace_name): New function.
12237 (add_partial_symbol): Substitute uses of pdi->name with
12239 * cp-support.h: Rename processing_current_namespace to
12240 processing_current_prefix.
12241 Update copyright year.
12242 * cp-namespace.c: Rename processing_current_namespace to
12243 processing_current_prefix.
12244 Update copyright year.
12246 2004-01-09 Andrew Cagney <cagney@redhat.com>
12248 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12250 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12252 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12254 (process_one_symbol): Deal with N_PATCH stabs.
12256 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12258 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12260 Update copyright year.
12262 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12264 * config/pa/tm-hppa.h: Update extern declarations for
12265 hppa32_hpux_frame_saved_pc_in_sigtramp,
12266 hppa32_hpux_frame_base_before_sigtramp, and
12267 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12269 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12271 * config/pa/tm-hppah.h: Update copyright years.
12273 2004-01-08 Andrew Cagney <cagney@redhat.com>
12275 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12276 (mips_o32_reg_struct_has_addr): Delete function.
12277 (mips_gdbarch_init): Update.
12278 (mips_extract_struct_value_address): Delete function.
12280 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12282 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12285 2004-01-07 Andrew Cagney <cagney@redhat.com>
12287 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12288 architecture's elf flags (when available).
12290 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12291 FPU to the start, check the MIPS FPU when looking for an old
12293 (set_mipsfpu_single_command): Update the architecture.
12294 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12296 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12297 (mips_mask_address_p): Add "tdep" parameter.
12298 (show_mask_address, mips_addr_bits_remove): Update.
12299 (mips_dump_tdep): Update.
12300 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12301 (MIPS_STACK_ARGSIZE): Delete macro.
12302 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12303 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12304 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12305 (mips_dump_tdep): Update.
12306 (MIPS_SAVED_REGSIZE): Delete macro.
12307 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12308 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12309 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12310 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12311 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12312 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12313 (mips_pop_frame, return_value_location): Update.
12314 (mips_n32n64_return_value, mips_dump_tdep): Update.
12316 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12319 * mips-tdep.c: Update copyright.
12320 (mips_gdbarch_init): Merge two code blocks handling the register
12321 name and number layout.
12323 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12325 * tracepoint.c (validate_actionline): Fix segv at EOF
12327 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12329 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12330 properly for static fields.
12332 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12333 Jason Molenda <jmolenda@apple.com>
12335 * disasm.c: Update copyright to include 2004.
12336 (do_mixed_source_and_assembly): For uiout asm list
12337 and tuple cleanups, initialize to null_cleanup instead of
12338 NULL and do so prior to loop. Only reset when we close off
12339 the tuple/list. Move check for whether to close off the
12340 asm tuple/list to after dump_insns call where it will be run
12341 on each loop iteration.
12343 2004-01-05 Andrew Cagney <cagney@redhat.com>
12345 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12346 should be a switch case and not a label.
12347 * mips-tdep.c (mips32_next_pc): Delete unused labels
12348 "greater_equal_branch" and "less_zero_branch".
12349 * jv-valprint.c (java_print_value_fields): Delete unused label
12352 * target.c (unpush_target): Only close a target that is in the
12355 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12357 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12358 address from [sp + 64] instead of %o2.
12360 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12361 fixes PR backtrace/1476.
12363 2004-01-05 Andrew Cagney <cagney@redhat.com>
12365 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12366 move to start of file.
12367 * i386-tdep.h (struct regcache): Add opaque declaration.
12368 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12370 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12371 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12372 * win32-nat.c (fake_create_process): Use ISO C style definition.
12373 * stabsread.c (define_symbol): Delete #ifndef
12374 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12375 stabs_argument_has_addr call, macro never defined.
12377 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12379 * op50-rom.c: Delete.
12380 * w89k-rom.c: Delete.
12381 * Makefile.in: Remove references.
12383 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12385 * x86-64-tdep.c: Update copyright year.
12386 (struct amd64_register_info): Rename from x86_64_register_info.
12387 (amd64_register_info): Rename from x86_64_register_info.
12388 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12389 (amd64_register_name): Rename from x86_64_register_name.
12390 (amd64_register_type): Rename from x86_64_register_type.
12391 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12392 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12393 (amd64_dwarf_reg_to_regnum): Rename from
12394 x86_64_dwarf_reg_to_regnum.
12395 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12396 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12397 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12398 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12399 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12400 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12401 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12402 (amd64_frame_cache): Rename from x86_64_frame_cache.
12403 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12404 (amd64_frame_prev_register): Rename from
12405 x86_64_frame_prev_register.
12406 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12407 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12408 (amd64_sigtramp_frame_cache): Rename from
12409 x86_64_sigtramp_frame_cache.
12410 (amd64_sigtramp_frame_prev_register): Rename from
12411 x86_64_sigtramp_frame_prev_register.
12412 (amd64_sigtramp_frame_unwind): Rename from
12413 x86_64_sigtramp_frame_unwind.
12414 (amd64_sigtramp_frame_sniffer): Rename from
12415 x86_64_sigtramp_frame_sniffer.
12416 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12417 (amd64_frame_base): Rename from x86_64_frame_base.
12418 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12419 (amd64_frame_align): Rename from x86_64_frame_align.
12420 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12421 (amd64_regset_from_core_section): Rename from
12422 x86_64_regset_from_core_section.
12423 (x86_64_init_abi): Update comments.
12425 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12427 * MAINTAINERS (write after approval): Add myself.
12429 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12431 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12434 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12436 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12437 such that it mentions a specific version of GCC that exhibits this
12440 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12442 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12443 structure that has a single `float' member, store it in %f1 in
12446 * sparc-sol2-nat.c: Add missing '\'.
12448 * sparc-tdep.c (sparc32_return_value): New function.
12449 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12451 (sparc32_gdbarch_init): Set return_value, don't set
12452 extract_return_value, store_return_value, use_struct_convention
12453 and return_value_on_stack.
12455 * sparc-sol2-nat.c: Add missing ')'.
12457 2004-01-03 J. Brobecker <brobecker@gnat.com>
12459 * infrun.c (handle_step_into_function): New function.
12460 (handle_inferior_event): Extract out some code into the new
12463 2004-01-03 J. Brobecker <brobecker@gnat.com>
12465 * infrun.c (handle_inferior_event): Move the declaration of
12466 real_stop_pc inside the if blocks where it is used.
12468 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12470 * sparc64-tdep.c (sparc64_16_byte_align_p)
12471 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12472 Use check_typedef to get subtypes of structures and unions.
12473 (sparc64_store_return_value): Fix calculation of the appropriate
12474 offset into VALBUF when storing a structure or union.
12475 (sparc64_return_value): New function.
12476 (sparc64_use_struct_convention): Remove function.
12477 (sparc64_init_abi): Set return_value, don't set
12478 extract_return_value, store_return_value and
12479 use_struct_convention.
12481 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12483 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12484 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12485 gdb/config/alpha/xm-alphaosf.h,
12486 gdb/config/powerpc/tm-ppcle-eabi.h,
12487 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12488 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12489 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12490 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12491 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12492 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12493 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12494 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12495 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12496 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12497 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12498 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12499 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12500 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12501 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12502 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12503 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12504 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12505 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12506 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12507 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12508 Remove lines for .cvsignore files.
12510 2004-01-03 J. Brobecker <brobecker@gnat.com>
12512 * infrun.c: Back out the previous change.
12514 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12516 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12517 sparc-*-sunos4* to the list of REMOVED configurations.
12519 * configure.tgt: Add back sparc-*-vxworks*.
12520 * remote-vxsparc.c: Remove all includes except for "defs.h",
12521 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12522 Include "sparc-tdep.h".
12523 (SPARC_R_G1): New define.
12524 (vxsparc_gregset): New variable.
12525 (ext_format_sparc): Remove extern declaration.
12526 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12527 sparc32_supply_fpregset.
12528 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12529 sparc_collect_rwindow and sparc32_collect_fpregset.
12530 * config/sparc/tm-vxworks.h: New file, based on recently removed
12532 * config/sparc/vxworks.mt: New file, based on recently removed
12535 2004-01-03 J. Brobecker <brobecker@gnat.com>
12537 * infrun.c (handle_step_into_function): New function.
12538 (handle_inferior_event): Extract out some code into the new
12541 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12543 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12544 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12545 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12546 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12547 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12548 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12549 (sparc_nat_h): New variable.
12550 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12551 (tm-sun4os4.h): Remove dependency.
12552 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12553 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12554 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12555 sparc-tdep.o): Update dependencies.
12556 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12557 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12558 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12560 * configure.host: Remove existing sparc-*-lynxos*,
12561 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12562 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12563 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12564 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12566 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12567 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12568 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12569 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12570 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12571 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12572 sparc64-*-solaris2* and sparc64-*-* triplets.
12573 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12574 "symtab.h" and "objfiles.h".
12575 (BIAS): Remove define.
12576 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12577 (X_DISP19): Remove macros.
12578 (sparc_fetch_instruction): Remove function.
12579 (struct gdbarch_tdep): Remove definition.
12580 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12581 (sparc_breakpoint_from_pc): Remove function.
12582 (struct sparc64_frame_cache): Remove definition.
12583 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12584 sparc64_unwind_pc): Remove functions.
12585 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12586 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12587 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12588 (sparc64_frame_cache): Change return type to `struct
12589 sparc_frame_cache *'. Simply call sparc_frame_cache.
12590 (sparc64_frame_this_id, sparc64_frame_prev_register,
12591 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12592 instead of `struct sparc64_frame_cache.
12593 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12594 sparc_analyze_control_transfer, sparc_software_single_step,
12595 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12596 _initialize_sparc64_tdep): Remove functions.
12597 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12598 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12600 (sparc64_supply_gregset, sparc64_collect_gregset,
12601 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12602 (sparc64_init_abi): New function.
12603 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12604 inclusion guard. Include "sparc-tdep.h".
12606 (r_tstate_offset, r_fprs_offset): New defines.
12607 (enum sparc_regnum): Remove defenition.
12608 (enum sparc64_regnum): Reformat.
12609 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12610 (sparc64_init_abi, sparc64_supply_gregset,
12611 sparc64_collect_gregset, sparc64_supply_fpregset,
12612 sparc64_collect_fpregset): New prototypes.
12613 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12614 Add extern declarations.
12615 (sparc64_sol2_init_abi): New prototype.
12616 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12617 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12619 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12621 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12623 (_initialize_sparc64fbsd_nat): Remove initialization of
12624 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12625 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12626 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12627 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12628 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12629 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12630 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12631 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12632 (sparc64fbsd_r_y_offset): Remove variables.
12633 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12634 Make static and const.
12635 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12636 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12638 (sparc64fbsd_gregset): New variable.
12639 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12640 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12641 and sparc64_supply_fpregset.
12642 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12643 (sparc64fbsd_sigtramp_frame_this_id)
12644 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12645 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12646 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12647 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12648 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12649 * sparcnbsd-tdep.c: Update copyright year. Include
12650 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12651 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12652 "value.h" and "sparcnbsd-tdep.h".
12653 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12654 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12655 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12656 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12658 (sparcnbsd_gregset): New variable.
12659 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12660 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12661 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12662 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12663 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12665 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12666 (sparc32nbsd_sigcontext_frame_this_id)
12667 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12668 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12669 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12670 (sparcnbsd_get_longjmp_target_32,
12671 sparcnbsd_get_longjmp_target_64): Remove functions.
12672 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12673 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12674 sparcnbsd_init_elf): Remove.
12675 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12676 (sparcnbsd_elf_init_abi): New functions.
12677 (_initialize_sparcnbsd_tdep): New prototype.
12678 (_initialize_sparnbsd_tdep): Update.
12679 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12680 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12681 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12682 * config/sparc/linux.mh: Update comment.
12683 (XM_FILE, HOST_IPC): Remove variables.
12684 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12686 * config/sparc/linux.mt: Update comment.
12687 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12688 * config/sparc/nbsd.mt: Reformat.
12689 * config/sparc/nbsd64.mh: Update comment.
12690 (NATDEPFILES): Add sparc-nat.o.
12691 * config/sparc/nbsd64.mt: Update comment.
12692 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12693 (TM_FILE): Set to tm-nbsd.h.
12694 * config/sparc/nbsdelf.mh: Update comment.
12695 (NATDEPFILES): Add sparc-nat.o.
12697 * config/sparc/nbsdaout.mh: Update comment.
12698 (NATDEPFILES): Add sparc-nat.o
12700 * config/sparc/nm-linux.h: Update copyright year. Don't include
12701 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12703 (KERNEL_U_SIZE): Remove define.
12704 (kernel_u_size): Remove prototype.
12705 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12706 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12708 (CHILD_PREPARE_TO_STORE): Remove define.
12709 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12710 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12711 sparcnbsd-nat.c: Rewrite files.
12712 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12713 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12714 sparcnbsd-tdep.h: Remove files.
12715 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12716 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12717 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12718 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12719 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12720 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12721 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12722 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12723 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12724 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12725 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12726 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12727 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12728 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12729 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12730 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12731 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12732 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12733 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12735 2004-01-02 Andrew Cagney <cagney@redhat.com>
12737 From 2003-12-18 Kazuhiro Inaoka:
12738 * configure.host: Add m32r-linux target.
12740 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12742 * top.c (print_gdb_version): Update year to 2004.
12744 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12746 * MAINTAINERS: Add myself to the write-after-approval category.
12748 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12750 From Bernardo Innocenti <bernie@develer.com>:
12751 * configure.tgt: Add uClinux target.
12753 2004-01-02 Andrew Cagney <cagney@redhat.com>
12755 * utils.c (do_my_cleanups): Make static, add forward declaration.
12756 * defs.h (do_my_cleanups): Delete declaration.
12758 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12760 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12761 bfd/ChangeLog-0203.
12763 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12765 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12766 in <machine/reg.h>.
12767 * configure, config.in: Regenerate.
12769 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12770 tui/ChangeLog-1998-2003.
12776 version-control: never