* solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2
3 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
4 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
5 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
6 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
7 New defines.
8
9 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
10
11 * target.h (to_stopped_data_address): Change prototype to
12 take a CORE_ADDR pointer and return an int.
13 * target.c (update_current_target): Change to_stopped_data_address
14 to match new prototype.
15 (debug_to_stopped_data_address): Change appropriately.
16 * breakpoint.c (bpstat_stop_status): Change call to
17 target_stopped_data_address to use new prototype.
18 * frv-tdep.c (frv_have_stopped_data_address): New function.
19 (frv_stopped_data_address): Change to new prototype and
20 functionality.
21 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
22 prototype and functionality.
23 (ia64_stopped_by_watchpoint): New function.
24 * i386-nat.c (i386_stopped_data_address): Change to new
25 prototype and functionality.
26 (i386_stopped_by_watchpoint): New function.
27 * remote.c (remote_stopped_data_address): Change to new prototype
28 and functionality.
29 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
30 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
31 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
32 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
33 new i386_stopped_by_watchpoint function.
34 (i386_stopped_by_watchpoint): New prototype.
35 (i386_stoppped_data_address): Change to new prototype.
36 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
37 new ia64_stopped_by_watchpoint function.
38 (ia64_stopped_by_watchpoint): New prototype.
39 (ia64_stopped_data_address): Ditto.
40
41 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
42
43 * ada-typeprint.c (ada_print_type): Use int_string for printing
44 modulus of modular type.
45 * ada-lang.h (ada_modulus): Change return type to unsigned.
46 * ada-lang.c (ada_language_arch_info): Correct type of
47 string_char_type.
48 (ada_modulus): Return unsigned result.
49 (ada_lookup_symbol): Remove user disambiguation and modify comment
50 accordingly.
51
52 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
53
54 Committed by Paul Hilfinger.
55 * ada-lang.c (decode_packed_array): On big-endian targets,
56 left-justify the value if it comes with a modular type.
57
58 2004-10-08 Joel Brobecker <brobecker@gnat.com>
59
60 Committed by Paul Hilfinger.
61 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
62 (is_name_suffix): Add support for "___JM" suffixes.
63 (ada_check_typedef): Renames ada_completed_type.
64 Update all users of CHECK_TYPEDEF, check_typedef, and
65 ada_complete_type to call ada_check_typedef.
66 * ada-typeprint.c: Likewise.
67 * ada-valprint.c: Likewise.
68
69 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
70
71 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
72
73 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
74
75 * MAINTAINERS: Update e-mail address.
76
77 2004-10-07 Daniel Jacobowitz <dan@debian.org>
78
79 From Maciej W. Rozycki <macro@mips.com>:
80 * mips-tdep.c (mips32_next_pc): Check the register's contents,
81 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
82
83 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
84
85 * m32r-tdep.c (decode_prologue): Support functions written
86 in assembler language. Recognize trap instructions as the
87 end of prologue.
88 (m32r_frame_unwind_cache): Ditto.
89 (m32r_skip_prologue): Extend search limit. Quit analyzing
90 prologue if pc's location is not readable.
91
92 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
93
94 * Makefile.in (.l.c): Do conversions of names of alloc and free
95 functions that are done for .y.c files, plus special one
96 for yy_flex_realloc. Also, correct missing-file tests here.
97 * ada-lex.l (malloc, free): Remove macros.
98 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
99 xrealloc.
100 (ada_flex_use): Dummy definition to remove warnings about unused
101 functions.
102 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
103 to suppress warning.
104
105 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
106
107 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
108 RETURN_VALUE.
109 (sh_return_value_fpu): Ditto for CPUs with FPU.
110 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
111 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
112 Install sh_return_value_nofpu resp. sh_return_value_fpu as
113 RETURN_VALUE functions.
114
115 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
116
117 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
118 (sh_pseudo_register_write): Ditto.
119
120 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
121
122 * sh-tdep.c (IS_MACL_STS): New define.
123 (IS_MOVI20): Ditto.
124 (IS_MACL_LDS): Ditto.
125 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
126 instructions in prologue.
127 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
128 instructions in epilogue.
129
130 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
131
132 * sh-tdep.c (SH_NUM_REGS): Define as 67.
133 (sh_sh_register_name): Add eight empty register names.
134 (sh_sh3_register_name): Ditto.
135 (sh_sh3e_register_name): Ditto.
136 (sh_sh2e_register_name): Ditto.
137 (sh_sh2a_register_name): New function, defining SH2A register set.
138 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
139 in nofpu case.
140 (sh_sh_dsp_register_name): Add eight empty register names.
141 (sh_sh3_dsp_register_name): Ditto.
142 (sh_sh4_register_name): Ditto.
143 (sh_sh4_nofpu_register_name): Ditto.
144 (sh_sh4al_dsp_register_name): Ditto.
145 (sh2a_show_regs): New function.
146 (sh2a_nofpu_show_regs): New function.
147 (sh_sh2a_register_type): New function.
148 (do_bank_register_info): New function.
149 (sh_print_pseudo_register): Call do_bank_register_info.
150 Call sh_print_pseudo_register for valid "bank" register.
151 (sh_sh2a_register_sim_regno): New function.
152 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
153 Increment pseudo register count by one for all sh variants with
154 pseudo registers to accomodate pseudo bank register.
155 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
156 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
157 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
158 Increment pseudo register numbers.
159
160 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
161
162 * dwarf2read.c (read_subroutine_type): Call make_function_type
163 instead of lookup_function_type.
164
165 2004-10-05 Jim Blandy <jimb@redhat.com>
166
167 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
168 (Previous change missed some uses.)
169
170 2004-10-05 Andrew Cagney <cagney@gnu.org>
171
172 * target.h (deprecated_child_ops): Rename child_ops.
173 * wince.c: Update copyright. Rename child_ops.
174 * win32-nat.c: Rename child_ops.
175 * target.c: Rename child_ops.
176 * rs6000-nat.c: Rename child_ops.
177 * linux-nat.c: Rename child_ops.
178 * infttrace.c: Rename child_ops.
179 * inftarg.c: Rename child_ops.
180 * infptrace.c: Rename child_ops.
181 * hppah-nat.c: Update copyright. Rename child_ops.
182 * hpux-thread.c: Update copyright. Rename child_ops.
183
184 2004-10-05 Daniel Jacobowitz <dan@debian.org>
185
186 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
187
188 2004-10-05 Andrew Cagney <cagney@gnu.org>
189
190 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
191
192 2004-10-05 Daniel Jacobowitz <dan@debian.org>
193
194 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
195 (die_ref_table): Remove.
196 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
197 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
198 the usage of this type.
199 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
200 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
201 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
202 (dwarf2_create_include_psymtab): Update comment.
203 (find_partial_die): Remove third argument. Remove unreachable call
204 to error ().
205 (dwarf2_find_containing_comp_unit): Update comments. Change one
206 assertion to an error. Remove an unreachable error.
207 (dwarf2_find_comp_unit): Update comments.
208 (type_at_offset): Remove dead code.
209 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
210 (store_in_ref_table): Add CU argument.
211 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
212 inter-compilation-unit references.
213 (load_full_comp_unit, process_full_comp_unit): New functions, based
214 on psymtab_to_symtab_1.
215 (psymtab_to_symtab_1): Use them.
216 (dwarf2_add_dependence): New function.
217 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
218 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
219 (partial_die_parent_scope, guess_structure_name): Update for changes
220 to find_partial_die.
221 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
222 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
223 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
224 (read_die_and_children): Update call to store_in_ref_table.
225 (do_free_die_list_cleanup): Remove.
226 (fixup_partial_die): Update for changes to find_partial_die.
227 (read_full_die): Handle queueing absolute references.
228 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
229 (dwarf2_attr, die_specification, die_type)
230 (die_containing_type, dwarf2_extension): Update calls to
231 follow_die_ref.
232 (dump_die): Update DW_FORM_ref* handling.
233 (dwarf2_get_ref_die_offset): Likewise.
234 (free_one_comp_unit): Release the dies list.
235 (dwarf2_mark_helper): New function.
236 (dwarf2_mark): Use it.
237
238 2004-10-05 Mark Kettenis <kettenis@jive.nl>
239
240 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
241 when writing to memory.
242
243 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
244
245 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
246 (m32r_extract_struct_value_address): Delete function.
247 (m32r_return_value): New function.
248 (m32r_gdbarch_init): Instead of store_return_value,
249 extract_return_value, deprecated_extract_struct_value_address
250 and deprecated_use_struct_convention, set return_value.
251
252 2004-10-03 Daniel Jacobowitz <dan@debian.org>
253
254 * dwarf2read.c (read_subrange_type): Add comment for variable
255 sized arrays.
256
257 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
258
259 * Makefile.in (.l.c): Modify rule for compatibility with recent
260 versions of flex, and remove most command-line options.
261 * ada-lex.l: Add %options line in place of -I -i and -s command-line
262 options.
263
264 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
265
266 Turn on initial Ada support (mainly expression evaluation).
267
268 * Makefile.in (SFILES): Remove ada-tasks.c.
269 (HFILES_NO_SRCDIR): Add ada-lang.h.
270 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
271 (YYOBJ): Add ada-exp.o.
272 (rule .l.c): Generalize to not mention ada.
273 * symtab.c: Include ada-lang.h.
274 (symbol_natural_name, symbol_demangled_name)
275 (symbol_search_name): Add Ada case.
276
277 2004-10-01 Andrew Cagney <cagney@gnu.org>
278
279 * Makefile.in (COMMON_OBS): Add inf-child.o.
280 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
281 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
282 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
283 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
284 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
285 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
286 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
287 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
288 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
289 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
290 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
291 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
292 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
293
294 * target.c (xfer_using_stratum): Change return type to LONGEST.
295 On each iteration offset, readbuf and writebuf.
296 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
297 partial_length, and read/modify/write predicate, update comments.
298 Pass buffer.word to ptrace write.
299
300 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
301
302 * symfile.c (init_filename_language_table): Add extensions for
303 Ada.
304 * defs.h (enum language): Add language_ada.
305 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
306 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
307 (add_symbols_from_enclosing_procs): Make a no-op for now.
308 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
309 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
310 (find_line_in_linetable, find_next_line_in_linetable)
311 (read_all_symtabs, is_plausible_func_for_line)
312 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
313 (is_runtime_sym_defined, check_size): Remove declaration.
314 (function_name_from_pc, ada_translate_error_message)
315 (ada_lookup_minimal_symbol): Remove definition.
316 (ada_add_block_symbols): Remove useless label.
317 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
318 useless declaration.
319 (ada_is_exception_sym): Likewise.
320
321 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
322
323 Add m32r-linux support.
324 * configure.tgt: Add m32r*-*-linux*.
325 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
326 and m32r-linux-tdep.c.
327 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
328 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
329 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
330 m32r-linux-tdep.c.
331 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
332 config/m32r/linux.mh, config/m32r/linux.mt,
333 config/m32r/nm-linux.h: New files.
334
335 2004-09-30 Joel Brobecker <brobecker@gnat.com>
336
337 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
338 (mips32_fetch_instruction): Remove, unused.
339
340 2004-09-30 Joel Brobecker <brobecker@gnat.com>
341
342 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
343 conditions that will always be true.
344
345 2004-09-30 Mark Kettenis <kettenis@gnu.org>
346
347 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
348 (vaxbsd_fetch_inferior_registers): Rename from
349 fetch_inferior_registers. Make static.
350 (vaxbsd_store_inferior_registers): Rename from
351 store_inferior_registers. Make static.
352 (_initialize_vaxbsd_nat): Construct and add target vector.
353 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
354 inftarg.o. Add inf-child.o and inf-ptrace.o.
355 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
356 inftarg.o. Add inf-child.o and inf-ptrace.o.
357 (NAT_FILE): Remove.
358 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
359 inftarg.o. Add inf-child.o and inf-ptrace.o.
360 (NAT_FILE): Remove.
361 * Makefile.in (vaxbsd-nat.o): Update dependencies.
362
363 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
364 (m88kbsd_fetch_inferior_registers): Rename from
365 fetch_inferior_registers. Make static.
366 (m88kbsd_store_inferior_registers): Rename from
367 store_inferior_registers. Make static.
368 (_initialize_m88kbsd_nat): New prototype and function.
369 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
370 inftarg.o. Add inf-child.o and inf-ptrace.o.
371 (NAT_FILE): Remove.
372 * Makefile.in (m88kbsd-nat.o): Update dependencies.
373
374 2004-09-30 Andrew Cagney <cagney@gnu.org>
375
376 * target.c (target_xfer_partial): New function.
377 (target_read_memory_partial, target_write_memory_partial)
378 (default_xfer_partial, target_read_partial, target_write_partial)
379 (xfer_using_stratum): Use.
380 (debug_to_xfer_partial): Delete function.
381 (setup_target_debug): Do not override to_xfer_partial.
382
383 2004-09-30 Mark Kettenis <kettenis@chello.nl>
384
385 * fork-child.c: Update copyright year. Fix coding style.
386
387 2004-09-29 Mark Kettenis <kettenis@gnu.org>
388
389 * defs.h (msavestring, mstrsave): Remove prototypes.
390 * utils.c (msavestring, mstrsave): Remove functions.
391 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
392 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
393 of mstrsave.
394 * source.c (find_and_open_source): Use xstrdup instead of
395 mstrsave.
396
397 2004-09-30 Andrew Cagney <cagney@gnu.org>
398
399 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
400 (inf_ptrace_xfer_memory): Delete.
401 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
402 (target_read_memory, target_write_memory): Use xfer_using_stratum
403 when target_xfer_partial_p.
404 (debug_target): Move to start of file.
405 (target_read_memory_partial, target_write_memory_partial): Use
406 to_xfer_partial when target_xfer_partial_p.
407
408 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
409 inf_ptrace_xfer_memory with equivalent code.
410 * inftarg.c (child_xfer_partial): When performing a write, pass
411 writebuf to child_xfer_memory.
412
413 * target.c (target_read_string): Use target_read_memory instead of
414 target_xfer_memory.
415
416 2004-09-29 Andrew Cagney <cagney@gnu.org>
417
418 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
419 the address of status.
420
421 * infptrace.c (ptrace_wait): Mention problem with HPUX.
422 (kill_inferior): Inline ptrace_wait call.
423 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
424 * inftarg.c (child_wait): Inline ptrace_wait call.
425
426 * target.h (struct target_ops): Delete field to_post_wait.
427 (target_post_wait): Delete macro.
428 (child_post_wait): Delete declaration.
429 * target.c (update_current_target, update_current_target)
430 (debug_to_post_wait, setup_target_debug): Delete functions and
431 references.
432 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
433 * inftarg.c (child_post_wait): Delete.
434 (init_child_ops): Do not set to_post_wait.
435 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
436 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
437 * inf-child.c (inf_child_post_wait): Delete.
438 (inf_child_target): Do not set to_post_wait.
439 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
440 (inf_ptrace_target): Do not set to_post_wait.
441
442 * wince.c (child_ops): Delete.
443 * win32-nat.c (child_ops): Delete.
444
445 * inftarg.c (inftarg_set_find_memory_regions)
446 (inftarg_set_make_corefile_notes): Delete functions.
447 (_initialize_linux_nat): Inline calls.
448
449 * target.h (child_ops): Declare.
450 * inftarg.c (child_ops): Move from here ...
451 * target.c (child_ops): ... to here.
452 * wince.c (child_ops): Delete extern declaration.
453 * win32-nat.c (child_ops): Delete extern declaration.
454 * linux-nat.c (child_ops): Delete extern declaration.
455 * hpux-thread.c (child_ops): Delete extern declaration.
456
457 2004-09-28 Mark Kettenis <kettenis@gnu.org>
458
459 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
460
461 2004-09-28 Mark Kettenis <kettenis@gnu.org>
462
463 * configure.in: Only set host_makefile_frag when building a native
464 debugger.
465 * configure: Regenerate.
466
467 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
468 for OpenBSD ELF.
469
470 2004-09-28 Andrew Cagney <cagney@gnu.org>
471
472 Problem identified by Paul Hilfinger.
473 * Makefile.in (ada_lex_c): Define.
474 (ada-lex.o): Delete rule.
475
476 * linux-proc.c: Delete file.
477 * Makefile.in: Update.
478 * config/sparc/linux64.mh (NATDEPFILES):
479 * config/sparc/linux.mh (NATDEPFILES): Update.
480 * config/s390/s390.mh (NATDEPFILES): Update.
481 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
482 * config/powerpc/linux.mh (NATDEPFILES): Update.
483 * config/pa/linux.mh (NATDEPFILES): Update.
484 * config/mips/linux.mh (NATDEPFILES): Update.
485 * config/m68k/linux.mh (NATDEPFILES): Update.
486 * config/ia64/linux.mh (NATDEPFILES): Update.
487 * config/i386/linux64.mh (NATDEPFILES): Update.
488 * config/i386/linux.mh (NATDEPFILES): Update.
489 * config/arm/linux.mh (NATDEPFILES): Update.
490 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
491 * linux-nat.c: Update copyright. Include <sys/param.h>,
492 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
493 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
494 (O_LARGEFILE): Possibly define.
495 (_initialize_linux_nat, linux_proc_pending_signals)
496 (add_line_to_sigset, linux_proc_xfer_memory)
497 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
498 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
499 (struct linux_corefile_thread_data)
500 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
501 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
502
503 2004-09-16 Andrew Cagney <cagney@gnu.org>
504
505 * lin-lwp.c: Delete file.
506 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
507 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
508 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
509 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
510 (linux_nat_attach, detach_callback, linux_nat_detach)
511 (resume_callback, resume_clear_callback, linux_nat_resume)
512 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
513 (stop_wait_callback, linux_nat_has_pending, flush_callback)
514 (status_callback, running_callback, count_events_callback)
515 (select_singlestep_lwp_callback, select_event_lwp_callback)
516 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
517 (child_wait, stop_and_resume_callback, linux_nat_wait)
518 (kill_callback, kill_wait_callback, linux_nat_kill)
519 (linux_nat_create_inferior, linux_nat_mourn_inferior)
520 (linux_nat_xfer_memory, linux_nat_thread_alive)
521 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
522 (_initialize_linux_nat): New functions.
523 * Makefile.in: Update all dependencies.
524 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
525 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
526 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
527 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
528 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
529 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
530 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
531 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
532 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
533 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
534 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
535 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
536 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
537
538 2004-09-27 Mark Kettenis <kettenis@gnu.org>
539
540 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
541 config/i386/obsd64.mh (NAT_FILE): Remove variable.
542
543 * configure.in: Don't comment out NATDEPFILES in the generated
544 Makefile if NAT_FILE is unset.
545 * configure: Regenerate.
546
547 2004-09-27 Andrew Cagney <cagney@gnu.org>
548
549 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
550 (insert_step_resume_breakpoint): Delete.
551 (insert_step_resume_breakpoint_at_frame): New function.
552 (insert_step_resume_breakpoint_at_sal): New function.
553 (handle_inferior_event, step_into_function)
554 (insert_step_resume_breakpoint): Simplify by using same.
555
556 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
557
558 2004-09-26 Mark Kettenis <kettenis@gnu.org>
559
560 * fbsd-proc.c: Remove file.
561 * Makefile.in (fbsd-proc.o): Remove dependency.
562
563 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
564 code together.
565
566 * config/i386/nm-fbsd64.h: Remove file.
567 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
568
569 2004-09-26 Mark Kettenis <kettenis@gnu.org>
570
571 * amd64-nat.h: Update copyright year.
572 (amd64bsd_target): New prototype.
573 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
574 (amd64bsd_target): New function.
575 (amd64bsd_fetch_inferior_registers): Rename from
576 fetch_inferior_registers. Make static.
577 (amd64bsd_store_inferior_registers): Rename from
578 store_inferior_registers. Make static.
579 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
580 (_initialize_amd64fbsd_nat): Construct and add target vector.
581 * amd64nbsd-nat.o: Include "target.h".
582 (_initialize_amd64nbsd_nat): Construct and add target vector.
583 * amd64obsd-nat.c: Include "target.h".
584 (_initialize_amd64obsd_nat): Construct and add target vector.
585 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
586 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
587 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
588 fbsd-nat.o.
589 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
590 Remove infptrace.o and inftarg.o. Add inf-child.o and
591 inf-ptrace.o.
592 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
593 (amd64obsd-nat.o): Update dependencies.
594
595 2004-09-25 Mark Kettenis <kettenis@gnu.org>
596
597 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
598 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
599 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
600 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
601 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
602
603 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
604 Inline attach call.
605 (inf_ptrace_detach): Inline detach call.
606
607 * configure.in: Check for waddstr instead of mvwaddstr when
608 searching for curses library. Check for wborder.
609 * configure, config.in: Regenerate.
610 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
611 available.
612
613 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
614
615 2004-09-24 Robert Picco <Robert.Picco@hp.com>
616
617 Committed by Andrew Cagney.
618 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
619 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
620 configuration.
621 (fetch_register_using_p): Implement 'p' packet. Based on code by
622 Fernando Nasser.
623 (remote_fetch_registers): Call fetch_register_using_p.
624 (init_all_packet_configs, show_remote_cmd)
625 (_initialize_remote): Add p-packet.
626
627 2004-09-24 Mark Kettenis <kettenis@gnu.org>
628
629 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
630 instead of call_ptrace. Call wait directly instead of
631 ptrace_wait.
632 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
633 (inf_ptrace_wait): Inline ptrace_wait call.
634
635 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
636
637 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
638 rolled back instead.
639
640 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
641
642 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
643 the new argument order.
644
645 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
646
647 * MAINTAINERS: Remove "broken" from XStormy16 entry.
648 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
649 (struct gdbarch_tdep): Remove.
650 (struct xstormy16_frame_cache): New frame cache structure.
651 (xstormy16_register_byte, xstormy16_register_raw_size)
652 (xstormy16_reg_virtual_type, xstormy16_register_type)
653 (xstormy16_push_arguments, xstormy16_push_return_address)
654 (xstormy16_pop_frame, xstormy16_store_struct_return)
655 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
656 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
657 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
658 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
659 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
660 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
661 (xstormy16_use_struct_convention): Drop gcc_p parameter.
662 (xstormy16_extract_return_value, xstormy16_store_return_value):
663 Regcachify. Drop useless struct convention handling.
664 (xstormy16_register_type, xstormy16_return_value)
665 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
666 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
667 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
668 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
669 (xstormy16_unwind_sp, xstormy16_unwind_pc)
670 (xstormy16_unwind_dummy_id) : New functions.
671 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
672 of xstormy16_scan_prologue.
673 (xstormy16_frame_unwind): New frame_unwind structure.
674 (xstormy16_frame_base): New frame_base structure.
675 (xstormy16_gdbarch_init): Accomodate all of the above changes.
676 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
677
678 2004-09-22 Mark Kettenis <kettenis@gnu.org>
679
680 * language.c (language_gdbarch_post_init): Fix off-by one error.
681
682 2004-09-21 Daniel Jacobowitz <dan@debian.org>
683
684 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
685 (struct dwarf2_offset_and_type): New.
686 (set_die_type, reset_die_and_siblings_types, get_die_type)
687 (offset_and_type_hash, offset_and_type_eq): New functions.
688 (read_structure_type, read_enumeration_type, read_array_type)
689 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
690 (read_tag_reference_type, read_tag_const_type)
691 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
692 (read_typedef, read_base_type, read_subrange_type): Use
693 set_die_type.
694
695 2004-09-20 Daniel Jacobowitz <dan@debian.org>
696
697 * Makefile.in (dwarf2read.o): Update dependencies.
698 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
699 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
700 and read_in_chain.
701 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
702 mark, and has_form_ref_addr.
703 (struct dwarf2_per_cu_data): New.
704 (dwarf2_max_cache_age): New.
705 (dwarf2_build_psymtabs_hard): Free cached compilation units
706 after loading. Create and manage the list of compilation units.
707 Remove unnecessary NULL initialization. Fix indentation.
708 (psymtab_to_symtab_1): Initialize all of CU.
709 (dwarf2_read_abbrevs): Set has_form_ref_addr.
710 (find_partial_die): Use dwarf2_find_containing_comp_unit
711 and load_comp_unit.
712 (free_stack_comp_unit): Update comments. Clear the per-cu
713 pointer. Handle aging.
714 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
715 (age_cached_comp_units, free_one_cached_comp_unit)
716 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
717 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
718 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
719 (show_dwarf2_cmd): New.
720 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
721 and "maint show dwarf2 max-cache-age".
722 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
723 externs.
724 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
725 global.
726
727 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
728
729 * dwarf2read.c (typename_concat): Change prototype to accept obstack
730 and dwarf2_cu struct pointer as arguments. Change function to use
731 obstack if provided and use dwarf2_cu to determine language-specific
732 separator.
733 (partial_die_parent_scope): Change comment to include java. Use
734 new version of typename_concat instead of obconcat.
735 (partial_die_full_name): Use typename_concat.
736 (read_namespace): Ditto.
737 (read_enumeration_type): Use typename_concat instead of obconcat.
738 (new_symbol): Ditto.
739 (add_partial_symbol): Enhance tests for C++ to also test for Java.
740 (guess_structure_name): Ditto.
741 (read_subroutine_type): Ditto.
742 (read_structure_type): Ditto.
743 (is_vtable_name): Add Java support.
744 (determine_class_name): Switch to new typename_concat call.
745 (determine_prefix): Switch to new typename_concat call.
746 * jv-exp.y (FuncStart): New pattern.
747 (MethodInvocation): Add support for simple function calls. Change
748 warning message for other forms of inferior call currently not
749 supported.
750 * valarith.c (value_subscript): Treat an array with upper-bound
751 of -1 as unknown size.
752
753 2004-09-20 Daniel Jacobowitz <dan@debian.org>
754
755 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
756 (lookup_partial_symtab): Use symtab_to_fullname.
757
758 2004-09-19 Jim Blandy <jimb@redhat.com>
759
760 * minsyms.c (lookup_minimal_symbol): Doc fix.
761
762 2004-09-20 Andrew Cagney <cagney@gnu.org>
763
764 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
765 CHILD_RESUME.
766 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
767 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
768 KILL_INFERIOR.
769 * infptrace.c: Update.
770
771 2004-09-19 Daniel Jacobowitz <dan@debian.org>
772
773 * symtab.c (output_source_filename): Mark first argument as const.
774 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
775 for "info sources" output.
776
777 2004-09-20 Mark Kettenis <kettenis@gnu.org>
778
779 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
780 <machine/vmparam.h>.
781 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
782 (register_u_addr): Remove prototype.
783
784 2004-09-19 Mark Kettenis <kettenis@gnu.org>
785
786 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
787 (i386bsd_fetch_inferior_registers): Rename from
788 fetch_inferior_registers. Make static.
789 (i386bsd_store_inferior_registers): Rename from
790 store_inferior_registers. Make static.
791 (i386bsd_target): New function.
792 * i386bsd-nat.h: New file.
793 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
794 "i386bsd-nat.h".
795 (i386fbsd_resume): Rename from child_resume. Make static.
796 (_initialize_i386fbsd_nat): Construct and add target vector.
797 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
798 (_initialize_i386nbsd_nat): Construct and add target vector.
799 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
800 Remove defines.
801 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
802 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
803 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
804 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
805 (LOADLIBES): New variable.
806 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
807 inf-ptrace.o. Remove inftarg.o.
808 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
809 inf-ptrace.o. Remove inftarg.o.
810 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
811 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
812 (LOADLIBES): New variable.
813 * Makefile.in (i386bsd_nat_h): New variable.
814 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
815 dependencies.
816
817 * sparc64nbsd-tdep.c: Include "objfiles.h".
818 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
819 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
820 svr4_lp64_fetch_link_map_offsets.
821 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
822 "nbsd-tdep.h".
823 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
824 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
825 svr4_lp64_fetch_link_map_offsets.
826 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
827 dependencies.
828
829 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
830 * fbsd-nat.h: New file.
831 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
832 (fbsd_nat_h): New variable.
833 (fbsd-nat.o): New dependency.
834
835 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
836 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
837
838 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
839 comment.
840
841 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
842
843 * ada-exp.y (type_int): New function to add layer of abstraction
844 around references to expression types.
845 (type_long): Ditto.
846 (type_long_long): Ditto.
847 (type_float): Ditto.
848 (type_double): Ditto.
849 (type_long_double): Ditto.
850 (type_char): Ditto.
851 (type_system_address): Ditto.
852 (simple_exp): Use type_* functions in place of builtin_*
853 variables.
854 (exp): Ditto.
855 (write_var_from_name): Ditto.
856 (write_object_renaming): Ditto.
857 * ada-lang.c (ada_create_fundamental_type): Remove redundant
858 declaration.
859 (build_ada_types): Remove, replacing with...
860 (ada_language_arch_info): New function to initialize primitive
861 type vector in language_arch_info.
862 (ada_array_length): Remove use of builtin_type_ada_int.
863 (value_pos_atr): Ditto.
864 (ada_evaluate_subexp): Ditto.
865 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
866 builtin_type_ada_long_long, builtin_type_ada_char,
867 builtin_type_ada_float, builtin_type_ada_double,
868 builtin_type_ada_long_double, builtin_type_ada_natural,
869 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
870 (ada_builtin_types): Remove.
871 (ada_language_defn): Remove entries for la_builtin_type_vector and
872 string_char_type and use ada_language_arch_info.
873 (_initialize_ada_language): Do type-vector initialization along
874 the lines of c-lang.c.
875 (ada_create_fundamental_type): Break up line.
876 (ada_dump_symtab): Remove unused function.
877 (enum ada_primitive_types): Define.
878 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
879 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
880 builtin_type_ada_float, builtin_type_ada_double,
881 builtin_type_ada_long_double, builtin_type_ada_natural,
882 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
883 * ada-lex.l: Use type_* functions in place of builtin_* variables.
884 (processInt): Ditto.
885 (processReal): Ditto.
886 (name_lookup): Ditto.
887 * ada-typeprint.c (print_range): Use builtin_type_int, not
888 builtin_type_ada_int.
889
890 2004-09-18 Mark Kettenis <kettenis@gnu.org>
891
892 * i386-tdep.c (i386_register_name): Rename regno to regnum.
893
894 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
895 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
896 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
897 * configure.in: Improve checks for curses library by checking for
898 mvwaddstr instead of initscr. Drop HP curses in favour of
899 standard curses on HP-UX.
900 * configure: Regenerated.
901
902 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
903
904 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
905 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
906 Minor formatting changes.
907 (empty_array): Slight rewrite for formatting.
908 (emit_char,parse,ada_language_defn,build_ada_types,
909 ada_is_exception_sym, _initialize_ada_language): Move
910 definitions around.
911 (ada_dump_symtab): Remove unused definition.
912 (ada_maybe_exception_partial_symbol): Remove unused definition.
913
914 2004-09-16 Andrew Cagney <cagney@gnu.org>
915
916 * inf-child.c: Include "gdb_string.h".
917 (inf_child_core_file_to_sym_file): Delete.
918 (inf_child_target): Set to_fetch_registers and to_store_registers.
919 * inf-ptrace.c: Include "gdb_string.h".
920 * Makefile.in: Update all dependencies.
921
922 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
923 problem.
924
925 2004-09-14 Joel Brobecker <brobecker@gnat.com>
926
927 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
928 call to heuristic_proc_desc. Remove code that became redundant
929 as a consequence.
930 (read_next_frame_reg): Remove special case for SP_REGNUM.
931 (set_reg_offset): Fix small typo.
932 (reset_saved_regs): New procedure.
933 (mips32_heuristic_proc_desc): No longer compute a fake
934 procedure descriptor. Compute the full frame cache instead.
935 Some minor comment reformatting.
936
937 2004-09-14 Andrew Cagney <cagney@gnu.org>
938
939 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
940 maintainer.
941
942 * thread-db.c (thread_db_new_objfile): Assume that there is a
943 child process.
944
945 2004-09-13 Jim Blandy <jimb@redhat.com>
946
947 * valops.c (value_assign): Move 'buffer' to the enclosing block,
948 so that its storage isn't referenced after its lifetime ends.
949
950 * valops.c (value_assign): 'use_buffer' is initialized to zero,
951 and never assigned to. Delete it, and the 'if (use_buffer)'
952 clauses. Delete 'raw_buffer', since it is now unused.
953
954 2004-09-13 Andrew Cagney <cagney@gnu.org>
955
956 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
957 * configure: Re-generate.
958 * nlm/Makefile.in (TAGS): Update.
959 * Makefile.in (TAGS): Update.
960 * config/vax/nbsd.mt (TM_FILE): Update.
961 * config/sparc/vxworks.mt (TM_FILE): Update.
962 * config/sparc/sol2.mt (TM_FILE): Update.
963 * config/sparc/sol2-64.mt (TM_FILE): Update.
964 * config/sparc/obsd64.mt (TM_FILE): Update.
965 * config/sparc/obsd.mt (TM_FILE): Update.
966 * config/sparc/nbsd64.mt (TM_FILE): Update.
967 * config/sparc/nbsd.mt (TM_FILE): Update.
968 * config/sparc/linux64.mt (TM_FILE): Update.
969 * config/sparc/linux.mt (TM_FILE): Update.
970 * config/sparc/fbsd.mt (TM_FILE): Update.
971 * config/sh/wince.mt (TM_FILE): Update.
972 * config/sh/nbsd.mt (TM_FILE): Update.
973 * config/sh/linux.mt (TM_FILE): Update.
974 * config/sh/embed.mt (TM_FILE): Update.
975 * config/s390/s390.mt (TM_FILE): Update.
976 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
977 * config/rs6000/rs6000.mt (TM_FILE): Update.
978 * config/rs6000/aix4.mt (TM_FILE): Update.
979 * config/powerpc/vxworks.mt (TM_FILE): Update.
980 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
981 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
982 * config/powerpc/obsd.mt (TM_FILE): Update.
983 * config/powerpc/nbsd.mt (TM_FILE): Update.
984 * config/powerpc/linux.mt (TM_FILE): Update.
985 * config/powerpc/aix.mt (TM_FILE): Update.
986 * config/pa/obsd.mt (TM_FILE): Update.
987 * config/pa/linux.mt (TM_FILE): Update.
988 * config/pa/hppahpux.mt (TM_FILE): Update.
989 * config/pa/hppa64.mt (TM_FILE): Update.
990 * config/pa/hppa.mt (TM_FILE): Update.
991 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
992 * config/mips/wince.mt (TM_FILE): Update.
993 * config/mips/vxmips.mt (TM_FILE): Update.
994 * config/mips/nbsd.mt (TM_FILE): Update.
995 * config/mips/linux.mt (TM_FILE): Update.
996 * config/mips/irix6.mt (TM_FILE): Update.
997 * config/mips/irix5.mt (TM_FILE): Update.
998 * config/mips/embed.mt (TM_FILE): Update.
999 * config/m68k/vxworks68.mt (TM_FILE): Update.
1000 * config/m68k/st2000.mt (TM_FILE): Update.
1001 * config/m68k/os68k.mt (TM_FILE): Update.
1002 * config/m68k/obsd.mt (TM_FILE): Update.
1003 * config/m68k/nbsd.mt (TM_FILE): Update.
1004 * config/m68k/monitor.mt (TM_FILE): Update.
1005 * config/m68k/linux.mt (TM_FILE): Update.
1006 * config/m68k/cisco.mt (TM_FILE): Update.
1007 * config/ia64/linux.mt (TM_FILE): Update.
1008 * config/ia64/aix.mt (TM_FILE): Update.
1009 * config/ia64/ia64.mt (TM_FILE): Update.
1010 * config/i386/vxworks.mt (TM_FILE): Update.
1011 * config/i386/obsd64.mt (TM_FILE): Update.
1012 * config/i386/obsd.mt (TM_FILE): Update.
1013 * config/i386/nto.mt (TM_FILE): Update.
1014 * config/i386/nbsd64.mt (TM_FILE): Update.
1015 * config/i386/nbsd.mt (TM_FILE): Update.
1016 * config/i386/linux64.mt (TM_FILE): Update.
1017 * config/i386/linux.mt (TM_FILE): Update.
1018 * config/i386/i386sol2.mt (TM_FILE): Update.
1019 * config/i386/i386lynx.mt (TM_FILE): Update.
1020 * config/i386/fbsd64.mt (TM_FILE): Update.
1021 * config/i386/fbsd.mt (TM_FILE): Update.
1022 * config/i386/cygwin.mt (TM_FILE): Update.
1023 * config/h8300/h8300.mt (TM_FILE): Update.
1024 * config/frv/frv.mt (TM_FILE): Update.
1025 * config/cris/cris.mt (TM_FILE): Update.
1026 * config/arm/wince.mt (TM_FILE): Update.
1027 * config/arm/nbsd.mt (TM_FILE): Update.
1028 * config/arm/linux.mt (TM_FILE): Update.
1029 * config/arm/embed.mt (TM_FILE): Update.
1030 * config/alpha/nbsd.mt (TM_FILE): Update.
1031 * config/alpha/fbsd.mt (TM_FILE): Update.
1032 * config/alpha/alpha.mt (TM_FILE): Update.
1033 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1034 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1035
1036 Eliminate event_loop_p, always has the value 1.
1037 * defs.h (event_loop_p): Delete macro.
1038 * breakpoint.c (until_break_command): Simplify.
1039 * utils.c (prompt_for_continue): Simplify.
1040 * tracepoint.c (read_actions): Simplify.
1041 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1042 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1043 (set_prompt, init_main): Simplify.
1044 (init_signals, disconnect): Delete, unused.
1045 * remote.c (remote_async_resume)
1046 (extended_remote_async_create_inferior): Simplify.
1047 * mi/mi-interp.c (mi_input): Delete, unused.
1048 (mi_interpreter_resume, mi_command_loop): Simplify.
1049 * interps.c (current_interp_command_loop): Simplify.
1050 * infrun.c (proceed): Simplify.
1051 * infcmd.c (run_command, continue_command, step_1, jump_command)
1052 (until_command, advance_command, finish_command)
1053 (interrupt_target_command): Simplify.
1054 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1055
1056 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1057 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1058 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1059 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1060 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1061 * mips-tdep.c (mips_dump_tdep): Do not print same.
1062
1063 2004-09-12 Andrew Cagney <cagney@gnu.org>
1064
1065 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1066 const.
1067 * Makefile.in (valprint.o): Delete explict rule.
1068
1069 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1070 reported by Dave Anderson.
1071
1072 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1073
1074 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1075
1076 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1077 Andrew Cagney <cagney@gnu.org>
1078
1079 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1080 (mi_cmd_data_list_register_values)
1081 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1082 the register number computation.
1083
1084 2004-09-12 Andrew Cagney <cagney@gnu.org>
1085
1086 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1087 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1088 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1089 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1090 target.
1091 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1092 inf-ptrace.o and inf-child.o.
1093 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1094 * Makefile.in: Update dependencies.
1095
1096 2004-09-11 Andrew Cagney <cagney@gnu.org>
1097
1098 * language.c (hex_string, hex_string_custom): Move from here ...
1099 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1100 (CELLSIZE): Increase to 50.
1101 * language.h (hex_string, hex_string_custom): Move from here ...
1102 * defs.h: ... to here.
1103 * Makefile.in: Update all dependencies.
1104
1105 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1106
1107 * language.c (local_hex_format_custom): Remove.
1108 (local_hex_string): Rename to hex_string, use C format, and move to
1109 utils.c
1110 (local_hex_string_custom): Rename to hex_string_custom and change
1111 interface. Now uses C format. Move to utils.c
1112 (local_octal_format_custom): Remove.
1113 (local_decimal_format_custom): Remove.
1114 (unknown_language_defn): Remove language-specific number
1115 formatting entries.
1116 (auto_language_defn): Ditto.
1117 (local_language_defn): Ditto.
1118 * language.h (struct language_format_info): Delete declaration.
1119 (struct language_defn): Remove language_format_info fields
1120 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1121 (local_binary_format): Remove macro.
1122 (local_binary_format_prefix): Remove macro.
1123 (local_binary_format_specifier): Remove macro.
1124 (local_binary_format_suffix): Remove macro.
1125 (local_octal_format): Remove macro.
1126 (local_octal_format_prefix): Remove macro.
1127 (local_octal_format_specifier): Remove macro.
1128 (local_octal_format_suffix): Remove macro.
1129 (local_decimal_format): Remove macro.
1130 (local_decimal_format_prefix): Remove macro.
1131 (local_decimal_format_specifier): Remove macro.
1132 (local_decimal_format_suffix): Remove macro.
1133 (local_hex_format): Remove macro.
1134 (local_hex_format_prefix): Remove macro.
1135 (local_hex_format_specifier): Remove macro.
1136 (local_hex_format_suffix): Remove macro.
1137 (local_decimal_format_custom): Remove.
1138 (local_octal_format_custom): Remove.
1139 (local_hex_format_custom): Remove.
1140 (local_hex_string): Rename to hex_string and move to defs.h.
1141 (local_hex_string_custom): Rename to hex_string_custom, change
1142 interface, and move to defs.h.
1143 * utils.c: (int_string): New function.
1144 (hex_string): New function (from language.c).
1145 (hex_string_custom): New function (from language.c).
1146 (octal2str): New function.
1147 (decimal2str): Add width parameter.
1148 (paddr_u): Use new decimal2str interface.
1149 (paddr_d): Ditto.
1150 * defs.h (hex_string): Declare.
1151 (hex_string_custom): Declare.
1152 (int_string): Declare.
1153 * printcmd.c (print_scalar_formatted): Remove localized binary
1154 formatting.
1155 * valprint.c (print_longest): Use int_string.
1156 (print_floating): Use C hex format.
1157 (print_hex_chars): Ditto.
1158 (print_binary_chars): Remove language-specific formatting.
1159 (print_octal_chars): Use C octal format.
1160 (print_decimal_chars): Delocalize format.
1161 (print_decimal): Remove.
1162 * ada-lang.c (ada_language_defn): Remove language-specific number
1163 formatting entries.
1164 * p-lang.c (pascal_language_defn): Ditto.
1165 * c-lang.c (c_language_defn): Ditto.
1166 (cplus_language_defn): Ditto.
1167 (asm_language_defn): Ditto.
1168 (minimal_language_defn): Ditto.
1169 * f-lang.c (f_language_defn): Ditto.
1170 * jv-lang.c (java_language_defn): Ditto.
1171 * m2-lang.c (m2_language_defn): Ditto.
1172 * scm-lang.c (scm_language_defn): Ditto.
1173 * objc-lang.c (objc_language_defn): Ditto.
1174 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1175 new interface.
1176 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1177 * ui-out.c (ui_out_field_core_addr): Ditto.
1178 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1179 * exec.c (print_section_info): Ditto.
1180 * i387-tdep.c (print_i387_status_word): Ditto.
1181 (print_i387_control_word): Ditto.
1182 (i387_print_float_info): Ditto.
1183 * maint.c (maint_print_section_info): Ditto.
1184 * solib.c (info_sharedlibrary_command): Ditto.
1185 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1186 * symtab.c (print_msymbol_info): Ditto.
1187 * tracepoint.c (tracepoints_info): Ditto.
1188 * solib-frv.c (lm_base): Ditto.
1189 (frv_current_sos): Ditto.
1190 (enable_break2): Ditto.
1191 (enable_break): Ditto.
1192 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1193 (process_one_symbol): Ditto.
1194 * infcmd.c (program_info): Ditto.
1195 * mdebugread.c (parse_partial_symbols): Ditto.
1196 * symfile.c (add_symbol_file_command): Ditto.
1197 * cli/cli-cmds.c (edit_command): Ditto.
1198 (list_command): Ditto.
1199 * infcall.c (call_function_by_hand): Ditto.
1200 * remote-vx.c (vx_run_files_info): Ditto.
1201 (vx_wait): Ditto.
1202 (vx_attach): Ditto.
1203 (vx_detach): Ditto.
1204 (vx_kill): Ditto.
1205 * aix-thread.c (pdc_symbol_addrs): Ditto.
1206 (pdc_read_regs): Ditto.
1207 (pdc_write_regs): Ditto.
1208 (pdc_read_data): Ditto.
1209 (pdc_write_data): Ditto.
1210 * d10v-tdep.c (display_trace): Ditto.
1211 * rs6000-nat.c (find_toc_address): Ditto.
1212 * aix-thread.c: Don't include language.h.
1213 * buildsym.c: Ditto.
1214 * dbxread.c: Ditto.
1215 * mdebugread.c: Ditto.
1216 * rs6000-nat.c: Ditto.
1217 * buildsym.c (make_blockvector): Use renamed hex_string.
1218
1219 2004-09-10 Jason Molenda (jmolenda@apple.com)
1220
1221 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1222 chars after 'if' or 'while' commands in user-defined commands.
1223
1224 2004-09-08 Jim Blandy <jimb@redhat.com>
1225
1226 Fix bug reported and analyzed by Olivier Crete:
1227 * symfile.c (copy_section_addr_info): New function.
1228 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1229 original set of address arguments, instead of handwritten code
1230 that uses one length to allocate and a different length to
1231 initialize. Use make_cleanup_free_section_addr_info.
1232 * symfile.h (copy_section_addr_info): New declaration.
1233 * utils.c: #include "symfile.h".
1234 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1235 New functions.
1236 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1237 * Makefile.in (utils.o): Update dependencies.
1238
1239 2004-09-08 Andrew Cagney <cagney@gnu.org>
1240
1241 * thread-db.c (keep_thread_db): Delete.
1242 (thread_db_new_objfile, thread_db_create_inferior)
1243 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1244
1245 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1246
1247 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1248 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1249 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1250 (i386_frameless_signal_p): Remove prototype.
1251 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1252 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1253 I386_SSE_NUM_REGS.
1254 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1255 instead of FP0_REGNUM.
1256 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1257 of FP0_REGNUM and FPC_REGNUM.
1258
1259 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1260 (sunos_solib_create_inferior_hook): Don't call
1261 sunos_relocate_main_executable.
1262
1263 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1264 solib_svr4_fetch_link_map_offsets to
1265 svr4_ilp32_fetch_link_map_offsets.
1266 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1267 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1268 svr4_ilp32_fetch_link_map_offsets.
1269 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1270
1271 2004-09-07 Jim Blandy <jimb@redhat.com>
1272
1273 * frame.h (frame_register): Doc fix.
1274
1275 2004-09-07 Andrew Cagney <cagney@gnu.org>
1276
1277 * vx-share/wait.h: Delete #ifdef USG.
1278 * utils.c (request_quit): Ditto.
1279 * tui/tui.c (tui_reset): Ditto.
1280 * remote.c: Ditto.
1281 * remote-sds.c: Ditto.
1282 * remote-rdi.c: Ditto.
1283 * mdebugread.c: Ditto.
1284 * m68klinux-nat.c: Ditto.
1285 * infttrace.c: Ditto.
1286 * infptrace.c: Ditto.
1287 * i386v-nat.c: Ditto.
1288 * exec.c: Ditto.
1289 * dbxread.c: Ditto.
1290 * core-aout.c: Ditto.
1291
1292 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1293
1294 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1295 heuristic_proc_desc.
1296 (mips_insn32_frame_cache): Likewise.
1297
1298 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1299
1300 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1301 left behind by error.
1302
1303 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1304
1305 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1306 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1307
1308 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1309
1310 * config/rs6000/xm-aix4.h: Remove this file.
1311 * config/rs6000/aix4.mh (XM_FILE): Delete.
1312
1313 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1314
1315 * config/rs6000/xm-rs6000.h: Remove this file.
1316 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1317
1318 2004-09-03 Andrew Cagney <cagney@gnu.org>
1319
1320 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1321 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1322 only use.
1323
1324 * mips-tdep.c (temp_saved_regs): Delete.
1325 (set_reg_offset): Replace saved_regs parameter with this_cache.
1326 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1327 (mips32_heuristic_proc_desc): Add this_cache parameter.
1328 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1329 (after_prologue): Pass a NULL this_cache.
1330
1331 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1332 non-kernel trap prologues.
1333
1334 * mips-tdep.c (find_proc_desc): Delete function.
1335 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1336 simplify.
1337 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1338 mips_insn32_frame_cache.
1339
1340 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1341 Simplify as NEXT_FRAME is NULL.
1342 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1343
1344 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1345 local variable.
1346 (mips_skip_prologue): Update.
1347
1348 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1349 "cur_frame" parameter.
1350 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1351 (mips_insn32_frame_cache, find_proc_desc): Update
1352
1353 * config/vax/nm-obsd.h: Delete file.
1354 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1355 * config/vax/nm-nbsd.h: Delete file.
1356 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1357 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1358 * config/sh/nm-nbsd.h: Delete file.
1359 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1360 * config/rs6000/nm-rs6000ly.h: Delete file.
1361 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1362 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1363 * config/powerpc/nm-obsd.h: Delete file.
1364 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1365 * config/powerpc/nm-nbsd.h: Delete file.
1366 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1367 * config/pa/nm-obsd.h: Delete file.
1368 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1369 * config/mips/nm-nbsd.h: Delete file.
1370 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1371 * config/m88k/nm-obsd.h: Delete file.
1372 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1373 * config/m68k/nm-nbsd.h: Delete file.
1374 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1375 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1376 * config/i386/nm-nbsd.h: Delete file.
1377 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1378 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1379 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1380 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1381 * config/i386/nm-i386lynx.h: Delete file.
1382 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1383 * config/arm/nm-nbsd.h: Delete file.
1384 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1385 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1386
1387 * config/i386/tm-fbsd.h: Delete file.
1388 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1389 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1390
1391 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1392 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1393 * config/rs6000/aix4.mt (TM_FILE): Set to
1394 config/rs6000/tm-rs6000.h.
1395 * config/powerpc/tm-ppc-aix.h: Delete file.
1396 * config/powerpc/aix.mt (TM_FILE): Set to
1397 config/rs6000/tm-rs6000.h.
1398 * config/m68k/tm-linux.h: Delete file.
1399 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1400 * config/i386/tm-linux64.h: Delete file.
1401 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1402 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1403
1404 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1405 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1406 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1407 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1408 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1409 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1410 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1411 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1412 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1413
1414 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1415 gdb_host_cpu.
1416
1417 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1418
1419 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1420 Minor reformatting. Some code factoring.
1421
1422 2004-09-02 Andrew Cagney <cagney@gnu.org>
1423
1424 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1425 * config/vax/tm-nbsd.h: Delete file.
1426 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1427 * config/sparc/tm-vxworks.h: Delete file.
1428 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1429 * config/sparc/tm-nbsd.h: Delete file.
1430 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1431 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1432 * config/sparc/tm-linux.h: Delete file.
1433 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1434 * config/s390/tm-linux.h: Delete file.
1435 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1436 * config/pa/tm-bsd.h: Delete file.
1437 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1438 * config/m68k/tm-obsd.h: Delete file.
1439 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1440 * config/m68k/tm-nbsd.h: Delete file.
1441 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1442 * config/i386/tm-vxworks.h: Delete file.
1443 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1444 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1445 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1446 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1447 * config/i386/tm-nbsd.h: Delete file.
1448 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1449 * config/i386/tm-i386lynx.h: Delete file.
1450 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1451 * config/cris/tm-cris.h: Delete file.
1452
1453 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1454 * configure: Re-generate.
1455 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1456 * config/arm/tm-nbsd.h: Delete file.
1457
1458 * config/powerpc/tm-ppcle-sim.h: Delete.
1459 * config/powerpc/tm-ppcle-eabi.h: Delete.
1460 * config/powerpc/tm-nbsd.h: Delete.
1461 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1462 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1463 tm-ppcle-eabi.h.
1464
1465 * config/i386/nto.mh (NAT_FILE): Delete.
1466 * config/i386/nm-nto.h: Delete.
1467
1468 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1469 * config/m68k/tm-os68k.h: Ditto.
1470 * config/m68k/tm-monitor.h: Ditto.
1471 * config/m68k/tm-cisco.h: Ditto.
1472 * config/m68k/st2000.mt (TM_FILE): Delete.
1473 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1474 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1475 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1476 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1477
1478 * config/m68k/tm-st2000.h: Delete.
1479 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1480 * config/sparc/fbsd.mt (TM_FILE): Delete.
1481 * config/sparc/tm-fbsd.h: Delete.
1482
1483 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1484 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1485 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1486
1487 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1488 GDB_TM_FILE and GDB_XM_FILE.
1489 * gdbarch.c: Re-generate.
1490 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1491 quotes in macro definition.
1492 * configure.in: Re-generate.
1493
1494 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1495 validating architecture methods.
1496 * gdbarch.c: Re-generate.
1497
1498 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1499 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1500 GDB_MULTI_ARCH_PARTIAL.
1501 * gdbarch.h: Re-generate.
1502
1503 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1504 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1505 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1506 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1507 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1508 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1509 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1510 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1511 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1512 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1513 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1514 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1515
1516 2004-09-01 Andrew Cagney <cagney@gnu.org>
1517
1518 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1519 and main_func_highpc.
1520 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1521 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1522 * nlmread.c (nlm_symfile_read): Update.
1523
1524 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1525
1526 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1527 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1528 (find_proc_desc): Remove dead code.
1529
1530 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1531
1532 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1533
1534 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1535
1536 * observer.sh: Add struct so_list declaration.
1537 * Makefile.in: Add dependencies on observer.h for solib.c and
1538 breakpoint.c.
1539 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1540 function.
1541 (_initialize_breakpoint): Register
1542 disable_breakpoints_in_unloaded_shlib as an observer of the
1543 "solib unloaded" observation event.
1544 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1545 call decode_line_1 so unfound breakpoint errors are silent.
1546 * solib.c (update_solib_list): When a solib is discovered to have
1547 been unloaded by the program, notify all observers of the
1548 "solib unloaded" observation event.
1549
1550 2004-09-01 Andrew Cagney <cagney@gnu.org>
1551
1552 * frame.c: Include "objfiles.h".
1553 (inside_main_func): New function.
1554 (get_prev_frame): Use new inside_main_func.
1555 * Makefile.in (frame.o): Update dependencies.
1556 * defs.h (inside_main_func): Delete declaration.
1557 * blockframe.c (inside_main_func): Delete function.
1558
1559 2004-08-31 Jim Blandy <jimb@redhat.com>
1560
1561 * dwarf2read.c (is_vtable_name): New function, based on logic from
1562 read_structure_type, but passing the correct length to strncmp,
1563 and using 'sizeof' instead of 'strlen'.
1564 (read_structure_type): Call it.
1565
1566 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1567
1568 * config/powerpc/aix.mh: Add comment.
1569
1570 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1571
1572 * MAINTAINERS: Add self to Write-After-Approval.
1573
1574 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1575
1576 * MAINTAINERS: Add self to Write-After-Approval.
1577
1578 2004-08-30 Andrew Cagney <cagney@gnu.org>
1579
1580 Fix PR breakpoints/1757.
1581 * infrun.c (struct execution_control_state): Replace
1582 remove_breakpoints_on_following_step with
1583 step_after_step_resume_breakpoint.
1584 (init_execution_control_state): Update.
1585 (handle_inferior_event): For signals, when stepping off a
1586 breakpoint, set step_after_step_resume_breakpoint. When
1587 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1588 (keep_going): Delete code handling
1589 remove_breakpoints_on_following_step.
1590
1591 2004-08-29 David Lecomber <david@streamline-computing.com>
1592
1593 Fix PR gdb/648
1594 * language.h (enum array_ordering): New enum.
1595 * language.h (struct language_defn): New la_array_ordering
1596 attribute.
1597 * language.c (unknown_language_defn, auto_language_defn)
1598 (local_language_defn): Ditto.
1599 * ada-lang.c (ada_language_defn): Ditto.
1600 * c-lang.c (c_language_defn, cplus_language_defn)
1601 (asm_language_defn, minimal_language_defn): Ditto.
1602 * f-lang.c (f_language_defn): Ditto.
1603 * jv-lang.c (java_language_defn): Ditto.
1604 * m2-lang.c (f_language_defn): Ditto.
1605 * objc-lang.c (objc_language_defn): Ditto.
1606 * p-lang.c (pascal_language_defn): Ditto.
1607 * scm-lang.c (scm_language_defn): Ditto.
1608 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1609 oriented large to small in type structure.
1610 * dwarf2read.c (read_array_order): New function.
1611 (read_array_type): Use read_array_order to check row/column
1612 major ordering.
1613
1614 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1615
1616 * target.c (target_resize_to_sections): Check
1617 current_target.to_sections for an old value when updating.
1618
1619 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1620
1621 * procfs.c (dbx_link_bpt_addr): New static global variable.
1622 (dbx_link_shadow_contents): New static global variable.
1623 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1624 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1625 if we just hit it.
1626 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1627 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1628 from run to run.
1629 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1630 after the inferior has been forked.
1631 (remove_dbx_link_breakpoint): New function.
1632 (dbx_link_addr): New function.
1633 (insert_dbx_link_bpt_in_file): New function.
1634 (insert_dbx_link_bpt_in_region): New function.
1635 (insert_dbx_link_breakpoint): New function.
1636 (proc_trace_syscalls_1): New function, extracted from
1637 proc_trace_syscalls.
1638 (proc_trace_syscalls): Replace extract code by call to
1639 proc_trace_syscalls_1.
1640 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1641 is no longer valid.
1642
1643 2004-08-25 Jim Blandy <jimb@redhat.com>
1644
1645 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1646
1647 2004-08-25 Andrew Cagney <cagney@gnu.org>
1648
1649 * infrun.c (struct execution_control_state): Delete field
1650 "stepping_through_sigtramp".
1651 (init_execution_control_state): Do not set same.
1652 (context_switch): Do not pass same to save_infrun_state and
1653 load_infrun_state.
1654 * gdbthread.h (struct thread_info): Delete field
1655 stepping_through_sigtramp.
1656 (save_infrun_state, load_infrun_state): Delete parameter
1657 stepping_through_sigtramp.
1658 * thread.c (load_infrun_state, save_infrun_state): Update.
1659
1660 * infrun.c: Re-indent. Move expression operators to the beginning
1661 of the line. Remove long disabled #if 0 code.
1662
1663 2004-08-24 Andrew Cagney <cagney@gnu.org>
1664
1665 * doublest.h (floatformat_ieee_quad): Rename
1666 floatformat_ia64_quad.
1667 * doublest.c (floatformat_ieee_quad): Rename
1668 floatformat_ia64_quad.
1669 (_initialize_doublest): Update.
1670
1671 2004-08-24 Jim Blandy <jimb@redhat.com>
1672
1673 * dwarf2expr.h (struct dwarf_expr_context): New members
1674 'num_pieces' and 'pieces', for returning the result of an
1675 expression that uses DW_OP_piece.
1676 (struct dwarf_expr_piece): New struct type.
1677 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1678 pieces.
1679 (free_dwarf_expr_context): Free pieces, if any.
1680 (add_piece): New function.
1681 (execute_stack_op): Implement DW_OP_piece.
1682 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1683 expression is a list of pieces, print an error message.
1684 (dwarf2_loc_desc_needs_frame): If the expression yields
1685 pieces, and any piece is in a register, then we need a frame.
1686
1687 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1688 the stack until we've decided what sort of result the evaluation
1689 has produced. Use separate variables, with more specific names.
1690
1691 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1692
1693 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1694 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1695 (arm_netbsd_init_abi_common): Register them.
1696
1697 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1698
1699 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1700
1701 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1702 safe_frame_unwind_memory instead of target_read_memory.
1703
1704 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1705 Reorder includes.
1706 (fetch_register, store_register): Remove prototypes.
1707 (child_resume): Reorganize code and comments such that it is
1708 grouped a bit more logically.
1709 (attach): Explicitly compare errno against 0.
1710 (detach): Likewise. Use perror_with_name instead of
1711 print_sys_errmsg.
1712 * Makefile.in (infptrace.o): Update dependencies.
1713
1714 * ia64-linux-nat.c: Update copyright year.
1715 (fetch_debug_register, store_debug_register)
1716 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1717 PTRACE_TYPE_ARG3.
1718 * config/ia64/nm-linux.h: Update copyright year.
1719 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1720
1721 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1722 from CORE_ADDR to struct frame_info *. Use
1723 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1724 (amd64_linux_sigtramp_p): Adjust for changed signature of
1725 and64_linux_sigtramp_start
1726
1727 * gdb_ptrace.h: GNU/Linux.
1728
1729 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1730 Remove defines.
1731
1732 * infptrace.c: Include "gdb_assert.h".
1733 (PTRACE_XFER_TYPE): Remove define.
1734 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1735 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1736 Tweak comment.
1737 (fetch_inferior_registers, store_inferior_registers): Remove
1738 redundant culry braces. Tweak comment. s/regno/regnum.
1739 * Makefile.in (infptrace.o): Update dependencies.
1740
1741 * configure.in: Change test for return type of ptrace to default
1742 to `long' instead of `int'.
1743 * configure: Regenerate.
1744
1745 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1746
1747 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1748
1749 * configure.in: Check for ttrace function.
1750 * configure, config.in: Regenerate.
1751
1752 * gdb_ptrace.h: New file.
1753 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1754 <sys/ptrace.h>.
1755 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1756 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1757 (attach): Don't define PT_ATTACH.
1758 (detach): Don't define PT_DETACH.
1759 * Makefile.in (gdb_ptrace_h): New variable.
1760 (infptrace.o): Update dependencies.
1761
1762 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1763
1764 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1765 instead of `int' if not already defined.
1766 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1767 PTRACE_TYPE_ARG3.
1768 * infptrace.c (call_ptrace): Revert change that replaced
1769 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1770
1771 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1772
1773 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1774 Remove defines.
1775
1776 * linux-nat.c (kill_inferior): Add missing third and fourth
1777 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1778
1779 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1780 PTRACE_TYPE_RET.
1781
1782 * proc-why.c (proc_prettyfprint_why): Fix format string.
1783
1784 * solib-osf.c (osf_current_sos): Remove unsused label.
1785
1786 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1787 curses headers.
1788 * configure, config.in: Regenerate.
1789 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1790 <ncurses/ncurses.h>.
1791
1792 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1793 * config/nm-nbsd.h: Update copyright year.
1794 (PTRACE_ARG3_TYPE): Remove define.
1795
1796 * sparc-nat.c (fetch_inferior_registers)
1797 (store_inferior_registers, sparc_xfer_wcookie):
1798 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1799
1800 * alphabsd-nat.c (fetch_inferior_registers):
1801 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1802 PTRACE_TYPE_ARG3.
1803 * amd64bsd-nat.c (fetch_inferior_registers)
1804 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1805 PTRACE_TYPE_ARG3.
1806 * armnbsd-nat.c: Update copyright year.
1807 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1808 (store_register, store_regs, store_fp_register, store_fp_regs):
1809 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1810 * hppabsd-nat.c (fetch_inferior_registers)
1811 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1812 PTRACE_TYPE_ARG3.
1813 * i386bsd-nat.c (fetch_inferior_registers)
1814 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1815 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1816 * m68kbsd-nat.c (fetch_inferior_registers)
1817 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1818 PTRACE_TYPE_ARG3.
1819 * m88kbsd-nat.c (fetch_inferior_registers)
1820 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1821 PTRACE_TYPE_ARG3.
1822 * mipsnbsd-nat.c: Update copyright year.
1823 (fetch_inferior_registers, store_inferior_registers):
1824 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1825 * ns32knbsd-nat.c: Update copyright year.
1826 (fetch_inferior_registers, store_inferior_registers):
1827 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1828 * ppcnbsd-nat.c (fetch_inferior_registers):
1829 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1830 PTRACE_TYPE_ARG3.
1831 * ppcobsd-nat.c (fetch_inferior_registers):
1832 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1833 PTRACE_TYPE_ARG3.
1834 * shnbsd-nat.c: Update copyright year.
1835 (fetch_inferior_registers, store_inferior_registers):
1836 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1837 * vaxbsd-nat.c (fetch_inferior_registers)
1838 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1839 PTRACE_TYPE_ARG3.
1840
1841 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1842 PTRACE_TYPE_ARG3.
1843 * infptrace.c (call_ptrace, child_resume, attach, detach)
1844 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1845 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1846 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1847 PTRACE_TYPE_ARG3.
1848
1849 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1850
1851 * defs.h: Remove out-of-date comment.
1852 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1853 [!GETENV_PROVIDED] (getenv): Remove prototype.
1854
1855 * standalone.c: Remove file.
1856 * Makefile.in (standalone.o): Remove dependency.
1857
1858 * i386-linux-nat.c (dummy_sse_values): Remove function and
1859 prototype.
1860 (i386_linux_dr_get): Fix typo in comment.
1861 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1862
1863 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1864
1865 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1866 from declaration.
1867 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1868 from definition.
1869
1870 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1871
1872 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1873 parenthesis in definition.
1874 * configure: Regenerated.
1875
1876 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1877
1878 * PROBLEMS: Mention build/1411.
1879
1880 2004-08-09 Robert Millan <robertmh@gnu.org>
1881
1882 Committed by Nathanael Nerode.
1883 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1884 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1885
1886 2004-08-12 Andrew Cagney <cagney@gnu.org>
1887
1888 * NEWS: Mention fixes in GDB 6.2.1.
1889 * PROBLEMS: Remove mention of mips-irix.
1890
1891 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1892
1893 * config/powerpc/xm-aix.h: Delete.
1894 * config/powerpc/aix.mh (MH_FILE): Remove.
1895 * config/powerpc/aix432.mh (MH_FILE): Remove.
1896
1897 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1898
1899 * config/powerpc/aix.mh: Remove obsolete comment.
1900 * config/powerpc/aix432.mh: Likewise.
1901
1902 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1903
1904 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1905
1906 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1907
1908 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1909 this file is now empty.
1910 * config/xm-aix4.h: Remove, this file is no longer included
1911 anywhere.
1912
1913 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1914
1915 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1916 that file is now empty.
1917 (termdef): Remove prototype, function no longer used.
1918
1919 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1920
1921 * doc/gdbint.texinfo (Host Definition): Remove documentation
1922 for USE_O_NOCTTY, no longer used.
1923 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1924 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1925
1926 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1927
1928 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1929 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1930 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1931
1932 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1933
1934 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1935 instead of FIVE_ARG_PTRACE.
1936
1937 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1938 (new_tty): Use O_NOCTTY unconditionally.
1939
1940 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1941
1942 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1943 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1944 fflush on stdout.
1945
1946 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1947
1948 * xcoff_symfile_finish: Replace last call to xmfree by call
1949 to xfree.
1950
1951 2004-08-10 Andrew Cagney <cagney@gnu.org>
1952
1953 * main.c (captured_main): Delete call to init_malloc.
1954 * defs.h (init_malloc): Delete declaration.
1955 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1956 (init_malloc): Delete functions.
1957
1958 * defs.h (xmfree): Delete.
1959 * utils.c (xmfree): Delete function.
1960 (xfree): Inline calls to xmfree and mfree.
1961 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1962 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1963 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1964 * somread.c (som_symfile_finish): Ditto.
1965 * objfiles.c (allocate_objfile, free_objfile):
1966 * nlmread.c (nlm_symfile_finish): Ditto.
1967 * hpread.c (hpread_symfile_finish): Ditto.
1968 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1969 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1970 * coffread.c (coff_symfile_finish): Ditto.
1971
1972 * defs.h (xmcalloc): Delete declaration.
1973 * utils.c (xmcalloc): Delete.
1974 (xcalloc): Inline calls to xmcalloc and mcalloc.
1975 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1976 xcalloc and xfree.
1977 * symtab.c (create_demangled_names_hash): Ditto.
1978
1979 * defs.h (xmrealloc): Delete.
1980 * utils.c (xmrealloc): Delete.
1981 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1982 * symmisc.c (extend_psymbol_list): Use xrealloc.
1983 * source.c (find_source_lines): Ditto.
1984 * hpread.c (hpread_lookup_type): Ditto.
1985 * dbxread.c (add_bincl_to_list): Ditto.
1986
1987 * utils.c (xmmalloc): Delete.
1988 (xmalloc): Inline xmmalloc and mmalloc calls.
1989 (msavestring): Use xmalloc.
1990 * defs.h (xmmalloc): Delete declaration.
1991 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1992 xmmalloc.
1993 * symmisc.c (extend_psymbol_list): Ditto.
1994 * symfile.c (init_psymbol_list): Ditto.
1995 * source.c (find_source_lines): Ditto.
1996 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1997 * elfread.c (elf_symtab_read): Ditto.
1998 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1999 * coffread.c (coff_symfile_init): Ditto.
2000
2001 2004-08-10 David Carlton <carlton@bactrian.org>
2002
2003 * MAINTAINERS: Remove David Carlton from c++ testsuite
2004 maintainers.
2005
2006 2004-08-10 Jerome Guitton <guitton@gnat.com>
2007
2008 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2009 print a line feed before the prompt.
2010
2011 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2012
2013 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2014
2015 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2016
2017 General cleanup of the AIX xm include file:
2018 * config/xm-aix4.h (fd_set): Remove undefine.
2019 Remove include of <sys/select.h>.
2020 (HAVE_TERMIO): Remove define.
2021 (USG): Likewise.
2022 (NULL): Remove redefine.
2023 (alloca): Remove #pragma.
2024 (vfork): Remove define.
2025 (termdef): Remove.
2026 (SIGWINCH_HANDLER): Remove.
2027 (SIGWINCH_HANDLER_BODY): Remove.
2028
2029 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2030
2031 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2032 GDB_OSABI_OPENBSD_ELF.
2033
2034 2004-08-07 Robert Millan <robertmh@gnu.org>
2035
2036 * bsd-kvm.c: Check for nlist.h before including it.
2037
2038 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2039
2040 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2041 sigcontext' offset consistency checks for ancient BSD.
2042
2043 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2044
2045 * configure.in: Check for <sys/types.h>. Check return and
2046 argument types of ptrace.
2047 * configure, config.in: Regenerate.
2048
2049 2004-08-09 Jim Blandy <jimb@redhat.com>
2050
2051 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2052 rs6000_register_sim_regno): Doc fixes.
2053
2054 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2055
2056 * mips-tdep.c: Include "floatformat.h".
2057 (n32n64_floatformat_always_valid): New function.
2058 (floatformat_n32n64_long_double_big): New constant.
2059 (mips_gdbarch_init): Set size and format of long double
2060 for N32 and N64 ABIs.
2061 * Makefile.in (mips-tdep.o): Update dependencies.
2062
2063 2004-08-08 Andrew Cagney <cagney@gnu.org>
2064
2065 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2066 print. Improve script's error messages.
2067 * gdbarch.h: Re-generate.
2068
2069 * gdbarch.sh (pformat): New function.
2070 (float_format, double_format, long_double_format): List with bit
2071 members. Use pformat when printing.
2072 * gdbarch.c, gdbarch.h: Re-generate.
2073
2074 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2075
2076 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2077 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2078 (ppcnbsd_supply_pcb): New function.
2079 (_initialize_ppcnbsd_nat): New prototype and function.
2080 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2081 (LOADLIBES): New variable.
2082 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2083
2084 2004-08-08 Andrew Cagney <cagney@gnu.org>
2085
2086 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2087 (builtin_type_ieee_double, builtin_type_ia64_quad)
2088 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2089 BE/LE floating-point types.
2090 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2091 (builtin_type_ieee_double, builtin_type_ia64_quad)
2092 (builtin_type_ia64_spill): Declare.
2093 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2094 (floatformat_ieee_double, floatformat_arm_ext)
2095 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2096 of LE/BE floatformats.
2097 * doublest.h: (struct floatformat, floatformat_ieee_single)
2098 (floatformat_ieee_double, floatformat_arm_ext)
2099 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2100
2101 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2102
2103 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2104
2105 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2106 instead of regcache_raw_supply when storing the registers.
2107
2108 * i386gnu-nat.c: Update copyright year.
2109 (gnu_store_registers): Don't use deprecated_registers and
2110 deprecated_registers_valid. Use regcache_valid_p and
2111 regcache_raw_supply instead.
2112
2113 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2114 frame_pc_unwind.
2115
2116 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2117 variables. Incapitalized "process".
2118
2119 * configure.in: Add cursesX to the list of possible curses libs.
2120 Add cursesX.h to the list of possible curses headers.
2121 * configure, config.in: Regenerate.
2122
2123 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2124
2125 * configure.in: Test for struct lwp in <sys/lwp.h>.
2126 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2127 the offset of l_addr in struct lwp.
2128
2129 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2130
2131 * bsd-kvm.c: Include "gdbcore.h"
2132 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2133
2134 2004-08-07 Andrew Cagney <cagney@gnu.org>
2135
2136 * gdbtypes.c (build_flt, build_complex): New functions.
2137 (gdbtypes_post_init): Use.
2138
2139 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2140
2141 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2142 through to builtin_type_uint128.
2143
2144 * c-exp.y: Use builtin_type function to obtain builtin types.
2145
2146 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2147 builtin_uint128.
2148 * gdbtypes.c (gdbtypes_post_init): Update.
2149 (build_gdbtypes): Move initialization of builtin_type_int0
2150 through to builtin_type_uint128 from here ...
2151 (_initialize_gdbtypes): ... to here.
2152 * d10v-tdep.c (d10v_register_type): Update.
2153
2154 * doublest.c: Update copyright.
2155 (floatformat_from_length): Call error when floatformat is NULL.
2156 (extract_floating_by_length): Remove NULL fmt check.
2157 (store_floating_by_length): Ditto.
2158
2159 2004-08-07 Andrew Cagney <cagney@gnu.org>
2160
2161 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2162 that the register is valid.
2163
2164 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2165
2166 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2167 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2168 struct frame_info *. Use safe_frame_unwind_memory instead of
2169 deprecated_read_memory_nobpt.
2170 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2171 changed signature of i386_linux_sigtramp_start and
2172 i386_linux_rt_sigtramp_start.
2173
2174 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2175 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2176 instead of deprecated_read_memory_nobpt.
2177 (i386nbsd_sigtramp_p): Adjust for changed signature of
2178 i386nbsd_sigtramp_offset.
2179
2180 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2181 safe_frame_unwind_memory instead of target_read_memory.
2182
2183 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2184 !NO_SYS_FILE.
2185 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2186 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2187 (_initialize_kernel_u_addr): Remove prototype and function.
2188 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2189 !NO_SYS_FILE.
2190 * xcoffread.c: Likewise.
2191
2192 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2193
2194 * vax-nat.c: New file.
2195 * vaxbsd-nat.c: Tweak comment.
2196 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2197 vaxnbsd-tdep.c.
2198 (vax-nat.o): New dependency.
2199 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2200 (vax-*-ultrix2*): Remove.
2201 * config/vax/vax.mh: New file.
2202 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2203 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2204 (vax_register_u_addr): New prototype.
2205 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2206 * config/vax/vaxult2.mh: Remove file.
2207 * config/vax/vaxult.mh: Remove file.
2208 * config/vax/vaxbsd.mh: Remove file.
2209 * config/vax/vax.mt (TM_FILE): Remove.
2210 * config/vax/tm-vaxbsd.h: Remove file.
2211
2212 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2213
2214 * aix-thread.c (get_signaled_thread): New function.
2215 (iter_trap): Delete, no longer used.
2216 (iter_tid): New function.
2217 (pd_update): Find the thread that received the SIGTRAP signal
2218 by first locating the kernel thread, and then finding its
2219 associated thread.
2220
2221 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2222
2223 * lin-lwp.c (child_wait): Continue inferior after processing
2224 PTRACE_EVENT_CLONE event.
2225
2226 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2227
2228 * MAINTAINERS: Add self to Write-After-Approval.
2229
2230 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2231
2232 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2233 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2234
2235 2004-08-05 Andrew Cagney <cagney@gnu.org>
2236
2237 * config/xm-sysv4.h: Delete file.
2238 * config/mips/xm-irix5.h: Delete file.
2239 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2240 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2241 * config/ia64/xm-aix.h: Delete file.
2242 * config/ia64/aix.mh (XM_FILE): Delete.
2243 * config/pa/xm-hppah.h: Delete file.
2244 * config/pa/hpux11w.mh (XM_FILE): Delete.
2245 * config/pa/hpux11.mh (XM_FILE): Delete.
2246 * config/pa/hpux1020.mh (XM_FILE): Delete.
2247 * config/pa/hppahpux.mh (XM_FILE): Delete.
2248
2249 * config/alpha/xm-alphalinux.h: Delete file.
2250 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2251 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2252 * config/alpha/xm-alphaosf.h: Delete file.
2253 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2254 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2255 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2256 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2257
2258 * config/i386/xm-i386v.h: Delete file.
2259 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2260 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2261 * config/i386/xm-i386sco.h: Delete file.
2262 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2263 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2264 * config/i386/xm-i386v4.h: Delete file.
2265 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2266 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2267 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2268 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2269
2270 * config/vax/xm-vax.h: Delete file.
2271 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2272 * config/vax/xm-vaxult2.h: Delete file.
2273 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2274 * config/vax/vaxult2.mh (XM_FILE): Delete.
2275 * config/vax/xm-vaxult.h: Delete file.
2276 * config/vax/vaxult.mh (XM_FILE): Delete.
2277 * config/vax/xm-vaxbsd.h: Delete file.
2278 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2279
2280 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2281 * gdbarch.h, gdbarch.c: Re-generate.
2282 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2283 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2284 * frame.h: Delete deprecated_read_fp from comments.
2285 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2286 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2287
2288 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2289
2290 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2291 trampoline in OpenBSD 3.5-current.
2292
2293 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2294 SSE registers.
2295
2296 * Makefile.in: Remove embedded page breaks.
2297
2298 2004-08-04 Jim Blandy <jimb@redhat.com>
2299
2300 * regcache.c (regcache_raw_read): Assert that, after calling
2301 target_fetch_registers, the register we're reading is cached.
2302
2303 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2304 a call to 'internal_error', with a more helpful error message.
2305 * rs6000-tdep.c (e500_pseudo_register_read,
2306 e500_pseudo_register_write, rs6000_store_return_value): Same.
2307
2308 2004-08-04 Andrew Cagney <cagney@gnu.org>
2309
2310 * Makefile.in: Update dependencies.
2311
2312 2004-08-04 Jim Blandy <jimb@redhat.com>
2313
2314 Change the layout of the PowerPC E500 raw register cache to allow
2315 the lower 32-bit halves of the GPRS to be their own raw registers,
2316 not pseudoregisters.
2317 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2318 add ppc_ev0_upper_regnum flag.
2319 * rs6000-tdep.c: #include "reggroups.h".
2320 (spe_register_p): Recognize the ev upper half registers as SPE
2321 registers.
2322 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2323 registers.
2324 (e500_move_ev_register): New function.
2325 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2326 vector registers are the pseudo-registers now, formed by splicing
2327 together the gprs and the upper-half registers.
2328 (e500_register_reggroup_p): New function.
2329 (P): Macro deleted.
2330 (P8, A4): New macro.
2331 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2332 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2333 macros.
2334 (registers_e500): Rearrange register set so that the raw register
2335 set contains 32-bit GPRs and upper-half registers, and the SPE
2336 vector registers become pseudo-registers.
2337 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2338 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2339 register numbers are now the same for the E500 as they are for
2340 other PowerPC variants. Register e500_register_reggroup_p as the
2341 register group function for the E500.
2342 * Makefile.in (rs6000-tdep.o): Update dependencies.
2343
2344 Adapt PPC E500 native support to the new raw regcache layout.
2345 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2346 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2347 (fetch_spe_register, store_spe_register): Handle fetching/storing
2348 all the SPE registers at once, if regno == -1. These now take
2349 over the job of fetch_spe_registers and store_spe_registers.
2350 (fetch_spe_registers, store_spe_registers): Deleted.
2351 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2352 unconditionally; they're always raw. Fetch/store SPE upper half
2353 registers, if present, instead of ev registers.
2354 (fetch_register, store_register): Remove sanity checks: gprs are
2355 never pseudo-registers now, so we never need to even mention any
2356 registers that are ever pseudoregisters.
2357
2358 Use a fixed register numbering when communicating with the PowerPC
2359 simulator.
2360 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2361 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2362 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2363 New functions.
2364 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2365 init_sim_regno_table.
2366 * Makefile.in (gdb_sim_ppc_h): New variable.
2367 (rs6000-tdep.o): Update dependencies.
2368
2369 2004-08-02 Andrew Cagney <cagney@gnu.org>
2370
2371 * cris-tdep.c (cris_register_size): Restore function, still used
2372 locally.
2373
2374 * gdbarch.sh (deprecated_target_read_fp)
2375 (deprecated_frame_locals_address, deprecated_frame_args_address)
2376 (deprecated_frame_chain_valid, deprecated_frame_chain)
2377 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2378 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2379 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2380 * gdbarch.h, gdbarch.c: Re-generate.
2381 * regcache.c (deprecated_read_fp): Do not call
2382 DEPRECATED_TARGET_READ_FP_P.
2383 * infcmd.c (default_print_registers_info): Do not call
2384 DEPRECATED_DO_REGISTERS_INFO.
2385 * frame-base.c (default_frame_locals_address): Do not call
2386 DEPRECATED_FRAME_LOCALS_ADDRESS.
2387 (default_frame_args_address): Do not call
2388 DEPRECATED_FRAME_ARGS_ADDRESS.
2389
2390 * gdbarch.sh (deprecated_register_raw_size)
2391 (deprecated_register_virtual_size:int): Delete.
2392 * gdbarch.h, gdbarch.c: Re-generate.
2393 * cris-tdep.c (cris_register_size): Delete.
2394 (cris_gdbarch_init): Update.
2395 * alpha-tdep.c (alpha_register_raw_size)
2396 (alpha_register_virtual_size): Delete.
2397 (alpha_gdbarch_init): Update.
2398
2399 * gdbarch.sh (deprecated_register_virtual_type)
2400 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2401 (deprecated_dummy_write_sp): Delete.
2402 * gdbarch.h, gdbarch.c: Re-generate.
2403
2404 * gdbarch.sh (deprecated_register_bytes): Delete.
2405 * gdbarch.h, gdbarch.c: Re-generate.
2406 * regcache.c (deprecated_register_bytes): New function.
2407 * regcache.h (deprecated_register_bytes): Declare.
2408 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2409 * v850-tdep.c (v850_gdbarch_init): Update.
2410 * sh64-tdep.c (sh64_gdbarch_init): Update.
2411 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2413 * mcore-tdep.c (mcore_gdbarch_init): Update.
2414 * cris-tdep.c (cris_gdbarch_init): Update.
2415 * arm-tdep.c (arm_gdbarch_init): Update.
2416 * remote.c (init_remote_state): Update.
2417 * remote-vx.c (vx_prepare_to_store): Update.
2418 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2419 * irix5-nat.c (fetch_core_registers): Update.
2420 * cris-tdep.c (cris_register_bytes_ok): Update.
2421 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2422
2423 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2424 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2425 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2426 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2427 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2428 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2429 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2430 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2431 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2432 with mips_insn16 and mips_insn32.
2433
2434 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2435 * rs6000-tdep.c (rs6000_push_dummy_call)
2436 (rs6000_extract_return_value): Use register_size.
2437 * xstormy16-tdep.c (xstormy16_get_saved_register)
2438 (xstormy16_extract_return_value): Ditto.
2439 * valops.c (value_assign): Ditto.
2440 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2441 * v850-tdep.c (v850_extract_return_value): Ditto.
2442 * tracepoint.c (collect_symbol): Ditto.
2443 * target.c (debug_print_register): Ditto.
2444 * stack.c (frame_info): Ditto.
2445 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2446 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2447 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2448 (store_register_using_P): Ditto.
2449 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2450 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2451 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2452 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2453 * regcache.c (deprecated_read_register_bytes)
2454 (deprecated_write_register_bytes, read_register)
2455 (write_register): Ditto.
2456 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2457 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2458 * monitor.c (monitor_supply_register, monitor_fetch_register)
2459 (monitor_store_register): Ditto.
2460 * mn10300-tdep.c (mn10300_pop_frame_regular)
2461 (mn10300_print_register): Ditto.
2462 * mipsv4-nat.c (fill_fpregset): Ditto.
2463 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2464 (mips64_fill_fpregset): Ditto.
2465 * mi/mi-main.c (register_changed_p, get_register)
2466 (mi_cmd_data_write_register_values): Ditto.
2467 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2468 * irix5-nat.c (fill_gregset, fetch_core_registers):
2469 * infrun.c (write_inferior_status_register): Ditto.
2470 * infptrace.c (fetch_register, store_register): Ditto.
2471 * infcmd.c (default_print_registers_info): Ditto.
2472 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2473 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2474 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2475 * hpux-thread.c (hpux_thread_fetch_registers)
2476 (hpux_thread_store_registers): Ditto.
2477 * hppah-nat.c (store_inferior_registers, fetch_register):
2478 * findvar.c (value_from_register): Ditto.
2479 * dve3900-rom.c (fetch_bitmapped_register):
2480 * cris-tdep.c (cris_gdbarch_init): Ditto.
2481 * alpha-tdep.h: Ditto.
2482 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2483
2484 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2485 DEPRECATED_REGISTER_RAW_SIZE from comments.
2486 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2487 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2488 DEPRECATED_REGISTER_RAW_SIZE.
2489 * findvar.c (value_of_register): Simplify by assuming that the
2490 registers raw and virtual sizes are identical.
2491 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2492 comment.
2493 * arch-utils.c (generic_register_size): Simplify by assuming
2494 register_type.
2495
2496 * regcache.c (legacy_read_register_gen, real_register)
2497 (legacy_write_register_gen): Delete, not used.
2498
2499 * regcache.c (struct regcache_descr): Delete legacy_p.
2500 (init_legacy_regcache_descr): Delete function.
2501 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2502 Do not use deprecated register functions.
2503 (regcache_raw_read, deprecated_write_register_gen):
2504 (deprecated_read_register_gen, regcache_raw_write): Delete code
2505 predicated on legacy_p.
2506 (register_size): Delete check against register raw size.
2507
2508 * cris-tdep.c (cris_register_type): Replace
2509 cris_register_virtual_type.
2510 (cris_gdbarch_init): Update, set register_type.
2511
2512 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2513 * gdbarch.h, gdbarch.c: Re-generate.
2514 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2515 (arm_gdbarch_init) Do not set frameless function invocation.
2516 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2517 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2518 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2519 (frv_gdbarch_init): Do not set frameless function invocation.
2520 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2521 * sh-tdep.c (sh_gdbarch_init): Ditto.
2522 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2523 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2524 * avr-tdep.c (avr_gdbarch_init): Ditto.
2525
2526 * blockframe.c (legacy_frame_chain_valid): Delete function.
2527
2528 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2529 and pc. Update comments.
2530 (pc_in_dummy_frame): Delete function.
2531 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2532 use the "id".
2533 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2534 call_hi, top and pc, use the id.
2535 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2536
2537 * dummy-frame.c: Include "gdb_string.h".
2538 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2539 (generic_save_dummy_frame_tos): Delete.
2540 (dummy_frame_push): New function, replaces above.
2541 * dummy-frame.h: Update copyright.
2542 (dummy_frame_push): Declare.
2543 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2544 (generic_save_call_dummy_addr): Delete declarations.
2545 * infcall.c: Include "dummy-frame.h".
2546 (call_function_by_hand): Add locals caller_regcache,
2547 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2548 with call to frame_save_as_regcache plus cleanup. Delete calls to
2549 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2550 Move clear_proceed_status to just before the resume, add call to
2551 dummy_frame_push (discard cleanup).
2552 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2553 (dummy-frame.o): Add $(gdb_string_h).
2554
2555 2004-08-01 Andrew Cagney <cagney@gnu.org>
2556
2557 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2558 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2559 * dummy-frame.c (find_dummy_frame): Delete.
2560 (struct dummy_frame_cache, dummy_frame_sniffer)
2561 (dummy_frame_prev_register, dummy_frame_this_id)
2562 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2563 frame unwinder using a dummy_frame_cache.
2564
2565 2004-08-01 Andrew Cagney <cagney@gnu.org>
2566
2567 * frame.h (frame_save_as_regcache): Declare.
2568 * frame.c (frame_save_as_regcache): New function.
2569 (do_frame_read_register): Replace do_frame_unwind_register.
2570 (frame_pop): Use frame_save_as_regcache.
2571 * dummy-frame.c (generic_push_dummy_frame): Use
2572 frame_save_as_regcache.
2573
2574 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2575
2576 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2577 file as included until we record the first line in the linetable.
2578
2579 2004-08-01 Andrew Cagney <cagney@gnu.org>
2580
2581 * frame.h (deprecated_pop_dummy_frame)
2582 (deprecated_read_register_dummy)
2583 (deprecated_generic_find_dummy_frame): Delete.
2584 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2585 (deprecated_read_register_dummy)
2586 (deprecated_find_dummy_frame_regcache)
2587 (discard_innermost_dummy)
2588 (deprecated_pop_dummy_frame): Delete.
2589 (dummy_frame_this_id): Simplify.
2590 (struct dummy_frame): Delete "fp" and "sp".
2591 (find_dummy_frame): Simplify.
2592 (generic_push_dummy_frame): Do not set "fp" or "sp".
2593 (fprint_dummy_frames): Do not print "fp" and "sp"
2594
2595 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2596
2597 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2598 (struct i386_insn): New structure.
2599 (i386_match_insn): New function.
2600 (i386_frame_setup_skip_insns): New variable.
2601 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2602 array i386_frame_setup_insns of instructions that should be
2603 skipped inside the frame setup sequence.
2604
2605 2004-08-01 Andrew Cagney <cagney@gnu.org>
2606
2607 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2608 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2609 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2610 * stack.c (frame_info): Delete references to
2611 DEPRECATED_FRAME_INIT_SAVED_REGS and
2612 deprecated_get_frame_saved_regs.
2613 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2614 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2615 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2616 (frame_unwind_register_signed)
2617 (frame_unwind_register_unsigned)
2618 (frame_unwind_unsigned_register): Use register_size.
2619 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2620 (deprecated_frame_xmalloc_with_cleanup)
2621 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2622 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2623
2624 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2625 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2626 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2627 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2628
2629 * infcall.c (call_function_by_hand): Do not use
2630 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2631 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2632 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2633 DEPRECATED_STACK_ALIGN.
2634
2635 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2636
2637 Committed by Andrew Cagney.
2638 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2639
2640 2004-08-01 Andrew Cagney <cagney@gnu.org>
2641
2642 * mips-tdep.c (mips16_frame_cache)
2643 (mips16_frame_this_id, mips16_frame_prev_register)
2644 (mips16_frame_unwind, mips16_frame_sniffer)
2645 (mips16_frame_base_address, mips16_frame_base)
2646 (mips16_frame_base_sniffer, mips32_frame_cache)
2647 (mips32_frame_this_id, mips32_frame_prev_register)
2648 (mips32_frame_unwind, mips32_frame_sniffer)
2649 (mips32_frame_base_address, mips32_frame_base)
2650 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2651 separate heuristic mips16 and mips32 unwinders.
2652 (mips_stub_frame_cache, mips_stub_frame_this_id)
2653 (mips_stub_frame_prev_register)
2654 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2655 (mips_stub_frame_base_address, mips_stub_frame_base)
2656 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2657 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2658 match true mdebug frames.
2659 (non_heuristic_proc_desc): Add forward declaration.
2660
2661 2004-08-01 Andrew Cagney <cagney@gnu.org>
2662
2663 * config/mips/tm-irix6.h: Delete file.
2664 * config/mips/tm-irix5.h: Delete file.
2665 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2666 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2667
2668 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2669 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2670 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2671 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2672 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2673 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2674 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2675 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2676 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2677 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2678 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2679 (TARGET_SIGNAL_RAW_VALUES): Delete.
2680 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2681 Delete.
2682 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2683 (TARGET_HW_WATCH_LIMIT): Delete.
2684 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2685 * minimon.h: Delete file.
2686
2687 * trad-frame.c (trad_frame_get_this_base)
2688 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2689 functions.
2690 * trad-frame.h (trad_frame_set_this_base)
2691 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2692
2693 2004-07-31 Andrew Cagney <cagney@gnu.org>
2694
2695 * trad-frame.c (trad_frame_get_prev_register): Rename
2696 trad_frame_get_prev_register.
2697 * vax-tdep.c (vax_frame_prev_register): Update.
2698 * trad-frame.h: Update.
2699 * trad-frame.c (trad_frame_get_register): Update.
2700 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2701 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2702 Update.
2703 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2704 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2705 Update.
2706 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2707 Update.
2708 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2709 Update.
2710 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2711 Update.
2712 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2713 Update.
2714 * s390-tdep.c (s390_frame_prev_register)
2715 (s390_stub_frame_prev_register)
2716 (s390_sigtramp_frame_prev_register): Update.
2717 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2718 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2719 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2720 * m88k-tdep.c (m88k_frame_prev_register)
2721 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2722 * m32r-tdep.c (m32r_frame_prev_register): Update.
2723 * hppa-tdep.c (hppa_frame_prev_register_helper)
2724 * frv-tdep.c (frv_frame_prev_register): Update.
2725 * d10v-tdep.c (d10v_frame_prev_register): Update.
2726 * cris-tdep.c (cris_frame_prev_register): Update.
2727 * avr-tdep.c (avr_frame_prev_register): Update.
2728 * arm-tdep.c (arm_prologue_prev_register)
2729 (arm_sigtramp_prev_register): Update.
2730
2731 2004-07-31 Andrew Cagney <cagney@gnu.org>
2732
2733 * frame.h (legacy_saved_regs_unwind)
2734 (legacy_frame_chain_valid, legacy_frame_p)
2735 (enum frame_type): Delete UNKNOWN_FRAME.
2736 * dummy-frame.c (dummy_frame_this_id): Simplify.
2737 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2738 * frame.c (struct frame_info): Delete the field "type".
2739 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2740 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2741 (legacy_saved_regs_unwind, legacy_frame_p)
2742 (frame_type_from_pc): Delete.
2743 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2744 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2745
2746 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2747
2748 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2749 indentation.
2750
2751 * mips-nat.c: Remove file.
2752 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2753 (mips-nat.o): Remove dependency.
2754
2755 * infptrace.c: Update copyright year.
2756 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2757 explicitly setting the buffer to all zeroes.
2758
2759 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2760 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2761
2762 2004-07-30 Andrew Cagney <cagney@gnu.org>
2763
2764 * GDB 6.2 released from gdb_6_2-branch.
2765
2766 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2767
2768 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2769
2770 * exec.c (exec_file_attach):
2771 * nto-tdep.c (nto_find_and_open_solib):
2772 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2773 * solib.c (solib_open):
2774 * somsolib.c (som_solib_sizeof_symbol_table):
2775 * source.c (is_regular_file, openp, open_source_file):
2776 * symfile.c (symfile_bfd_open):
2777 * wince.c (upload_to_device): Differentiate between the search for
2778 binary and source files.
2779
2780 2004-07-30 Andrew Cagney <cagney@gnu.org>
2781
2782 * complaints.c (_initialize_complaints): Pass NULL to
2783 add_setshow_zinteger_cmd for help_doc.
2784 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2785
2786 2004-07-30 Andrew Cagney <cagney@gnu.org>
2787
2788 Fix PR i18n/761.
2789 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2790 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2791 $(PACKAGE).pot and update-po.
2792 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2793 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2794 (update-po): New rules.
2795 (localedir): Define using autoconf.
2796 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2797 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2798 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2799 * configure.in: Generate CATALOGS and LINGUAS from contents of
2800 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2801 * configure: Re-generate.
2802 * po/gdbtext: New file
2803
2804 2004-07-30 Jerome Guitton <guitton@gnat.com>
2805
2806 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2807 order.
2808
2809 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2810
2811 * dwarf2read.c (read_file_scope): Set producer if attribute
2812 present.
2813 (struct dwarf2_cu): Added new member producer.
2814
2815 2004-07-30 Jerome Guitton <guitton@gnat.com>
2816
2817 * inflow.c (kill_command): release file handles in BFD.
2818 * exec.c (exec_file_attach): Ditto.
2819 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2820
2821 2004-07-29 Andrew Cagney <cagney@gnu.org>
2822
2823 * PROBLEMS (mips-irix): Note that it is broken.
2824
2825 2004-07-29 Andrew Cagney <cagney@gnu.org>
2826
2827 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2828 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2829
2830 * config/xm-nbsd.h: Delete file.
2831 * config/arm/xm-nbsd.h: Delete file.
2832 * config/i386/xm-nbsd.h: Delete file.
2833 * config/ns32k/xm-nbsd.h: Delete file.
2834 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2835 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2836 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2837 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2838 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2839
2840 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2841 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2842 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2843 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2844 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2845 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2846
2847 * config/powerpc/xm-linux.h: Delete empty file.
2848 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2849 * config/powerpc/linux.mh (XM_FILE): Delete.
2850 * config/m68k/xm-linux.h: Delete empty file.
2851 * config/m68k/linux.mh (XM_FILE): Delete.
2852 * config/ia64/xm-linux.h: Delete empty file.
2853 * config/ia64/linux.mh (XM_FILE): Delete.
2854 * config/arm/xm-linux.h: Delete empty file.
2855 * config/arm/linux.mh (XM_FILE): Delete.
2856
2857 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2858 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2859 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2860 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2861 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2862 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2863 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2864 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2865
2866 * config/m68k/xm-m68k.h: Delete file.
2867 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2868 copyright.
2869 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2870 * config/pa/xm-linux.h: Delete empty file.
2871 * config/pa/linux.mh (XM_FILE): Delete.
2872 * config/i386/xm-i386.h: Delete empty file.
2873 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2874 "i386/xm-i386.h".
2875 * config/i386/obsdaout.mh (XM_FILE): Delete.
2876 * config/i386/obsd64.mh (XM_FILE): Delete.
2877 * config/i386/fbsd64.mh (XM_FILE): Delete.
2878 * config/i386/nto.mh (XM_FILE): Delete.
2879 * config/i386/obsd.mh (XM_FILE): Delete.
2880 * config/i386/linux64.mh (XM_FILE): Delete.
2881 * config/i386/linux.mh (XM_FILE): Delete.
2882 * config/i386/i386sol2.mh (XM_FILE): Delete.
2883 * config/i386/i386gnu.mh (XM_FILE): Delete.
2884 * config/i386/fbsd.mh (XM_FILE): Delete.
2885 * config/i386/nbsd64.mh (XM_FILE): Delete.
2886
2887 2004-07-29 Andrew Cagney <cagney@gnu.org>
2888
2889 * config/pa/xm-linux.h: Do not include "floatformat.h".
2890 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2891 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2892 * config/i386/xm-i386.h: Do not include "floatformat.h".
2893 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2894 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2895 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2896 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2897 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2898 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2899 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2900 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2901 * configure, config.in: Regenerate.
2902 * configure.host (gdb_host_float_format, gdb_host_double_format)
2903 (gdb_host_long_double_format): Set according to the host.
2904
2905 2004-07-29 Andrew Cagney <cagney@gnu.org>
2906
2907 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2908
2909 2004-07-28 Andrew Cagney <cagney@gnu.org>
2910
2911 * PROBLEMS: Mention threads/1650.
2912 * NEWS: Mention the NPTL fix.
2913
2914 2004-07-28 Andrew Cagney <cagney@gnu.org>
2915
2916 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2917 (add_setshow_cmd_full): Make static.
2918 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2919 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2920 * cli/cli-decode.c (add_setshow_filename_cmd)
2921 (add_setshow_string_cmd): New functions.
2922 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2923 * mips-tdep.c (_initialize_mips_tdep): Update.
2924 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2925 * cli/cli-logging.c (_initialize_cli_logging): Update.
2926 * complaints.c (_initialize_complaints): Update.
2927 * remote.c (_initialize_remote): Update.
2928
2929 2004-07-28 Andrew Cagney <cagney@gnu.org>
2930
2931 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2932 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2933 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2934 print parameters. Make string parameters constant.
2935 * command.h: Update. Update copyright.
2936 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2937 * observer.c (_initialize_observer): Ditto.
2938 * frame.c (_initialize_frame): Ditto.
2939 * complaints.c (_initialize_complaints): Ditto.
2940 * maint.c (_initialize_maint_cmds): Ditto.
2941 * target.c (initialize_targets): Ditto.
2942 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2943 * infcall.c (_initialize_infcall): Ditto.
2944 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2945 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2946 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2947 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2948 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2949
2950 2004-07-28 Andrew Cagney <cagney@gnu.org>
2951
2952 * gdbtypes.c (lookup_primitive_typename): Delete function.
2953 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2954 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2955 * gdbtypes.c (lookup_typename): Ditto.
2956 * f-exp.y (yylex): Ditto.
2957 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2958
2959 * scm-lang.c (c_builtin_types): Delete extern declaration.
2960 (scm_language_defn): Replace
2961 string_char_type and primitive_type_vector with
2962 la_language_arch_info.
2963 * jv-lang.c (java_language_defn): Replace
2964 string_char_type and primitive_type_vector with
2965 la_language_arch_info.
2966 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2967 c_builtin_types in comment.
2968 * c-lang.h (struct language_arch_info): Declare opaque.
2969 (c_language_arch_info): Declare.
2970 (c_builtin_types): Delete declaration.
2971 * c-lang.c (c_language_arch_info): Set string_char_type to
2972 builtin_char, not builtin_true_char. Make global.
2973 (c_builtin_types): Delete array.
2974 (asm_language_defn, minimal_language_defn): Replace
2975 string_char_type and primitive_type_vector with
2976 la_language_arch_info.
2977
2978 2004-07-28 Andrew Cagney <cagney@gnu.org>
2979
2980 * gdbtypes.h (struct builtin_type): Rename true_char to
2981 builtin_true_char.
2982 * gdbtypes.c (gdbtypes_post_init): Update.
2983 * c-lang.c (arch_info): New function.
2984 (enum c_primitive_types): New enum.
2985 (c_language_defn): Instead of string_char_type and
2986 primitive_type_vector set la_language_arch_info.
2987
2988 2004-07-28 Andrew Cagney <cagney@gnu.org>
2989
2990 * language.h (struct language_arch_info): Fix typo
2991 s/primative/primitive/.
2992 * gdbtypes.c (lookup_primitive_typename): Ditto.
2993 * language.c (language_lookup_primitive_type_by_name)
2994 (unknown_language_arch_info): Ditto.
2995
2996 2004-07-27 Andrew Cagney <cagney@gnu.org>
2997
2998 * defs.h (enum language): Add nr_languages.
2999 * language.h (struct language_arch_info): Define.
3000 (struct language_defn): Add la_language_arch_info.
3001 (language_lookup_primative_type_by_name): Declare.
3002 (language_string_char_type): Declare.
3003 * language.c (_initialize_language, language_gdbarch_post_init)
3004 (struct language_gdbarch, language_gdbarch_data): Implement
3005 per-architecture language information.
3006 (unknown_language_arch_info, language_string_char_type)
3007 (language_lookup_primative_type_by_name): New functions.
3008 (unknown_language_defn, auto_language_defn)
3009 (local_language_defn): Set la_language_arch_info to
3010 unknown_language_arch_info.
3011 (unknown_builtin_types): Delete.
3012 * gdbtypes.c (lookup_primitive_typename): Use
3013 language_lookup_primative_type_by_name.
3014 (create_string_type): Use language_string_char_type.
3015 * values.c (value_from_string): Use language_string_char_type.
3016 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3017 * p-lang.c (pascal_language_defn): Ditto.
3018 * m2-lang.c (m2_language_defn): Ditto.
3019 * jv-lang.c (java_language_defn): Ditto.
3020 * objc-lang.c (objc_language_defn): Ditto.
3021 * f-lang.c (f_language_defn): Ditto.
3022 * c-lang.c (c_language_defn, cplus_language_defn)
3023 (asm_language_defn, minimal_language_defn): Ditto.
3024
3025 2004-07-27 Andrew Cagney <cagney@gnu.org>
3026
3027 * gdbtypes.h (struct builtin_type): Declare.
3028 (builtin_type): Declare.
3029 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3030 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3031 (gdbtypes_post_init): New function.
3032 (builtin_type): New function.
3033
3034 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3035
3036 * remote-m32r-sdi.c: Fix breakpoint bug.
3037 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3038 recv_char_data, recv_long_data): New functions to replace communication
3039 sequences.
3040
3041 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3042
3043 Document PR threads/1650.
3044 * PROBLEMS (Threads): Document problem with many threads
3045
3046 2004-07-26 Andrew Cagney <cagney@gnu.org>
3047
3048 * gdb-mi.el: Move from here ...
3049 * mi/gdb-mi.el: ... to here.
3050
3051 2004-07-26 Andrew Cagney <cagney@gnu.org>
3052
3053 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3054 * main.c (captured_main): When in batch mode always detach.
3055
3056 2004-07-26 Andrew Cagney <cagney@gnu.org>
3057
3058 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3059 and h8300 as broken.
3060 * NEWS: END-OF-LIFE frame compatibility module.
3061 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3062 specific comments.
3063
3064 2004-07-26 Andrew Cagney <cagney@gnu.org>
3065
3066 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3067 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3068 * wince.c (_initialize_wince): Update.
3069 * win32-nat.c (_initialize_win32_nat): Update.
3070 * varobj.c (_initialize_varobj): Update.
3071 * valops.c (_initialize_valops): Update.
3072 * utils.c (initialize_utils, initialize_utils): Update.
3073 * tui/tui-win.c (_initialize_tui_win): Update.
3074 * top.c (init_main): Update.
3075 * symfile.c (_initialize_symfile): Update.
3076 * source.c (_initialize_source): Update.
3077 * somsolib.c (_initialize_som_solib): Update.
3078 * solib.c (_initialize_solib): Update.
3079 * solib-frv.c (_initialize_frv_solib): Update.
3080 * serial.c (_initialize_serial): Update.
3081 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3082 * remote.c (_initialize_remote, _initialize_remote): Update.
3083 * remote-vx.c (_initialize_vx): Update.
3084 * remote-utils.c (_initialize_sr_support): Update.
3085 * remote-sds.c (_initialize_remote_sds): Update.
3086 * remote-mips.c (_initialize_remote_mips): Update.
3087 * remote-e7000.c (_initialize_remote_e7000): Update.
3088 * proc-api.c (_initialize_proc_api): Update.
3089 * printcmd.c: Update.
3090 * parse.c (_initialize_parse): Update.
3091 * pa64solib.c (_initialize_pa64_solib): Update.
3092 * p-valprint.c (_initialize_pascal_valprint): Update.
3093 * monitor.c (_initialize_remote_monitors): Update.
3094 * mips-tdep.c (_initialize_mips_tdep): Update.
3095 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3096 * maint.c (_initialize_maint_cmds): Update.
3097 * lin-lwp.c (_initialize_lin_lwp): Update.
3098 * language.c (_initialize_language): Update.
3099 * kod.c (_initialize_kod): Update.
3100 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3101 * i386-tdep.c (_initialize_i386_tdep): Update.
3102 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3103 * gdbarch.sh: Update.
3104 * gdbarch.c: Re-generate.
3105 * gdb-events.sh: Update.
3106 * gdb-events.c: Re-generate.
3107 * frame.c (_initialize_frame): Update.
3108 * exec.c: Update.
3109 * demangle.c (_initialize_demangler): Update.
3110 * dcache.c (_initialize_dcache): Update.
3111 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3112 * cp-valprint.c (_initialize_cp_valprint): Update.
3113 * corefile.c (_initialize_core): Update.
3114 * command.h: Update.
3115 * cli/cli-decode.h: Update.
3116 * cli/cli-cmds.c (init_cli_cmds): Update.
3117 * charset.c (_initialize_charset): Update.
3118 * breakpoint.c (_initialize_breakpoint): Update.
3119 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3120 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3121 * aix-thread.c (_initialize_aix_thread): Update.
3122
3123 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3124
3125 Partial fix for PR backtrace/1718.
3126 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3127 that GCC migrates into the prolugue. Don't handle any
3128 instructions that clobber %ebx.
3129
3130 2004-07-23 Andrew Cagney <cagney@gnu.org>
3131
3132 Use regcache_raw_collect instead of regcache_collect.
3133 * regcache.h (regcache_collect): Delete declaration.
3134 * regcache.c (regcache_colect): Delete function.
3135 * win32-nat.c (do_child_store_inferior_registers): Update.
3136 * sol-thread.c (sol_thread_store_registers): Update.
3137 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3138 * rs6000-nat.c (store_register): Update.
3139 * remote.c (store_register_using_P, remote_store_registers): Update.
3140 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3141 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3142 (fill_vrregset, store_spe_registers, fill_gregset)
3143 (fill_gregset): Update.
3144 * nto-procfs.c (procfs_store_registers): Update.
3145 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3146 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3147 * m68klinux-nat.c (store_register, fill_gregset): Update.
3148 * m68k-tdep.c (fill_gregset): Update.
3149 * infptrace.c (store_register): Update.
3150 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3151 * i386-linux-nat.c (store_register, fill_gregset): Update.
3152 * hppa-linux-nat.c (fill_gregset): Update.
3153 * go32-nat.c (store_register): Update.
3154 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3155 (store_fp_regs): Update.
3156 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3157 (store_nwfpe_extended, store_fpregister, store_fpregs)
3158 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3159 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3160 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3161 (store_regs_user_thread, store_regs_kernel_thread): Update.
3162
3163 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3164
3165 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3166 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3167 encoding.
3168 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3169 member of `struct comp_unit'.
3170
3171 2004-07-23 Andrew Cagney <cagney@gnu.org>
3172
3173 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3174 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3175
3176 2004-07-23 Martin Hunt <hunt@redhat.com>
3177 Kevin Buettner <kevinb@redhat.com>
3178
3179 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3180 alignment was being added to the offset instead of multiplied.
3181
3182 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3183
3184 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3185 changed signal trampoline in OpenBSD 3.5-current.
3186
3187 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3188 <machine/pcb.h> and "bsd-kvm.h".
3189 (sparc64nbsd_supply_pcb): New function.
3190 (_initialize_sparc64nbsd_nat): Renamed from
3191 _initialize_sparcnbsd_nat. Enable libkvm interface.
3192 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3193 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3194 (LOADLIBES): New variable.
3195
3196 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3197
3198 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3199
3200 2004-07-21 Andrew Cagney <cagney@gnu.org>
3201
3202 Use regcache_raw_supply instead of supply_register.
3203 * regcache.h (supply_register): Delete declaration.
3204 * regcache.c (supply_register): Delete function.
3205 * wince.c (do_child_fetch_inferior_registers): Update.
3206 * win32-nat.c (do_child_fetch_inferior_registers)
3207 (fetch_elf_core_registers): Update.
3208 * v850ice.c (v850ice_fetch_registers): Update.
3209 * thread-db.c (thread_db_store_registers): Update.
3210 * sol-thread.c (sol_thread_store_registers): Update.
3211 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3212 * rs6000-nat.c (fetch_register): Update.
3213 * rom68k-rom.c (rom68k_supply_one_register): Update.
3214 * remote.c (remote_wait, remote_async_wait): Update.
3215 * remote-st.c (get_hex_regs): Update.
3216 * remote-sim.c (gdbsim_fetch_register): Update.
3217 * remote-sds.c (sds_fetch_registers): Update.
3218 * remote-rdp.c (remote_rdp_fetch_register): Update.
3219 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3220 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3221 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3222 * remote-hms.c (init_hms_cmds): Update.
3223 * remote-est.c (init_est_cmds): Update.
3224 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3225 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3226 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3227 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3228 (fetch_register, supply_vrregset, supply_vrregset)
3229 (fetch_spe_registers): Update.
3230 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3231 * monitor.c (monitor_supply_register): Update.
3232 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3233 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3234 (mipsnbsd_supply_fpreg): Update.
3235 * mips-nat.c (fetch_inferior_registers)
3236 (fetch_core_registers): Update.
3237 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3238 (supply_fpregset, mips64_supply_gregset)
3239 (mips64_supply_fpregset): Update.
3240 * m68klinux-nat.c (fetch_register, supply_gregset)
3241 (supply_fpregset): Update.
3242 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3243 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3244 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3245 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3246 * infptrace.c (fetch_register): Update.
3247 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3248 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3249 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3250 (gnu_fetch_registers, gnu_store_registers): Update.
3251 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3252 * i386-linux-nat.c (fetch_register, supply_gregset)
3253 (dummy_sse_values): Update.
3254 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3255 * hppah-nat.c (fetch_register): Update.
3256 * hppa-linux-nat.c (fetch_register, supply_gregset)
3257 (supply_fpregset): Update.
3258 * go32-nat.c (fetch_register): Update.
3259 * dve3900-rom.c (fetch_bitmapped_register)
3260 (_initialize_r3900_rom): Update.
3261 * cris-tdep.c (supply_gregset): Update.
3262 * abug-rom.c (init_abug_cmds): Update.
3263 * core-aout.c (fetch_core_registers): Update.
3264 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3265 (fetch_register, fetch_fp_register): Update.
3266 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3267 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3268 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3269 * alphanbsd-tdep.c (fetch_core_registers): Update.
3270 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3271 * alpha-nat.c (fetch_osf_core_registers)
3272 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3273 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3274 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3275
3276 2004-07-21 Andrew Cagney <cagney@gnu.org>
3277
3278 * PROBLEMS: Mention breakpoints/1702.
3279 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3280 that is known to work.
3281
3282 2004-07-21 Andrew Cagney <cagney@gnu.org>
3283
3284 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3285 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3286 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3287 (handle_inferior_event): Wrap call to deprecated
3288 IGNORE_HELPER_CALL in #ifdef.
3289 * config/mips/tm-nbsd.h: Update.
3290
3291 2004-07-20 Jim Blandy <jimb@redhat.com>
3292
3293 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3294 bfd_mach_ppc has no segment registers.
3295
3296 Include PowerPC SPR numbers for special-purpose registers.
3297 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3298 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3299 new member in initializer.
3300 (S, S4, SN4, S64): New macros for defining special-purpose
3301 registers.
3302 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3303 registers_403, registers_403GC, registers_505, registers_860,
3304 registers_601, registers_602, registers_603, registers_604,
3305 registers_750, registers_e500): Use them.
3306
3307 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3308 replace references with expression used to initialize variable.
3309
3310 2004-07-20 Andrew Cagney <cagney@gnu.org>
3311
3312 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3313 read_memory_nobpt.
3314 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3315 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3316 (s390_sigtramp_frame_sniffer): Update.
3317 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3318 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3319 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3320 (mips32_fetch_instruction): Update.
3321 * mcore-tdep.c (get_insn): Update.
3322 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3323 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3324 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3325 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3326 (i386_linux_rt_sigtramp_start): Update.
3327 * i386-linux-nat.c (child_resume): Update.
3328 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3329 * hppa-linux-tdep.c (insns_match_pattern): Update.
3330 * gdbcore.h: Update.
3331 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3332 * frame.c (safe_frame_unwind_memory): Update.
3333 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3334 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3335 * alpha-tdep.c (alpha_read_insn): Update.
3336
3337 2004-07-20 Andrew Cagney <cagney@gnu.org>
3338
3339 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3340 containing both bytes and mask. Add "frame_type".
3341 * tramp-frame.c (tramp_frame_start): Update.
3342 (tramp_frame_prepend_unwinder): Update.
3343 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3344 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3345 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3346 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3347
3348 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3349
3350 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3351 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3352 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3353 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3354
3355 2004-07-17 Andrew Cagney <cagney@gnu.org>
3356
3357 * NEWS, PROBLEMS: Update for 6.2.
3358
3359 * README: Update to 6.2.
3360
3361 * utils.c (xvasprintf): Call xstrvprintf.
3362
3363 * parse.c: Update copyright.
3364 (null_post_parser): Eliminate ARGSUSED.
3365
3366 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3367 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3368 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3369
3370 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3371 * ppc-linux-nat.c: Use "Linux kernel".
3372 * hppa-linux-tdep.c: Use GNU/Linux.
3373 * hppa-linux-nat.c: Use GNU/Linux.
3374 * dwarfread.c: Add [sic] to use of Linux.
3375
3376 * hppa-linux-nat.c: Do not include <string.h>.
3377 (supply_fpregset): Remove "register" attribute.
3378
3379 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3380
3381 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3382
3383 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3384 * configure, config.in: Regenerated.
3385
3386 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3387 "bsd-kvm.h".
3388 (vaxbsd_supply_pcb): New function.
3389 (_initialize_vaxbsd_nat): New prototype and function.
3390 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3391 solib-sunos.o.
3392 (LOADLIBES): New variable.
3393 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3394 (LOADLIBES): New variable.
3395 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3396 (LOADLIBES): New variable.
3397 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3398
3399 2004-07-16 Andrew Cagney <cagney@gnu.org>
3400
3401 * defs.h (event_loop_p): Replace variable declaration with macro,
3402 always 1.
3403 * main.c (captured_main): Delete options "-async" and "-noasync".
3404 (event_loop_p): Delete variable.
3405 * NEWS: Mention that "-async" and "-noasync" were removed.
3406
3407 2004-07-16 Andrew Cagney <cagney@gnu.org>
3408
3409 * remote-m32r-sdi.c: Re-indent.
3410
3411 2004-07-16 Jim Blandy <jimb@redhat.com>
3412
3413 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3414 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3415 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3416 missing MPC823 SPRs.
3417 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3418 incorrect. (This was corrected in GDB's register name tables on
3419 2004-07-14.)
3420
3421 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3422 should be "esasrr" ("ESA Save and Restore Register").
3423
3424 2004-07-16 Andrew Cagney <cagney@gnu.org>
3425
3426 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3427 calls, no longer applicable. Update comments and rename parameter
3428 "step_frame" to "return_frame".
3429
3430 2004-07-16 Andrew Cagney <cagney@gnu.org>
3431
3432 * frame.c (fprint_field): New function.
3433 (fprint_frame_id): Use fprint_field.
3434
3435 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3436
3437 * ada-lang.c (ada_language_defn): Remove commented out code.
3438
3439 2004-07-15 Jim Blandy <jimb@redhat.com>
3440
3441 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3442 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3443
3444 2004-07-14 Jim Blandy <jimb@redhat.com>
3445
3446 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3447
3448 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3449
3450 * ppc-tdep.h (ppc_num_srs): New enum constant.
3451
3452 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3453 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3454 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3455 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3456 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3457 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3458 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3459 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3460 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3461 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3462 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3463 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3464 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3465 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3466 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3467 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3468 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3469 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3470 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3471 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3472 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3473 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3474 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3475 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3476 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3477 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3478 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3479 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3480 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3481 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3482 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3483 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3484 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3485 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3486 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3487 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3488 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3489 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3490 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3491 special-purpose register numbers.
3492
3493 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3494 manual mentions 'md_twb', but many mention 'm_twb', and at that
3495 point in the register list.)
3496
3497 2004-07-14 Andrew Cagney <cagney@gnu.org>
3498
3499 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3500 instead of "internal-error".
3501
3502 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3503
3504 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3505 that was inserted inside a comment.
3506
3507 2004-07-10 Randolph Chung <tausq@debian.org>
3508
3509 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3510 function.
3511 (hppa_hpux_push_dummy_code): New function.
3512 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3513 Set find_global_pointer method.
3514
3515 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3516
3517 * NEWS: Mention BSD libkvm interface.
3518
3519 2004-07-10 Michael Snyder <msnyder@redhat.com>
3520
3521 * symfile.c (generic_load): Comment typo.
3522 * stack.c (get_selected_block): Ditto.
3523 * regcache.c (regcache_cooked_read): Ditto.
3524 * monitor.c (monitor_debug): Ditto.
3525 * mips-tdep.c (mips_read_pc): Ditto.
3526 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3527 * gdb_mbuild.sh: Ditto.
3528 * gdbarch.sh: Ditto.
3529 * gdbarch.h: Ditto.
3530
3531 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3532
3533 * ada-tasks.c: Remove file.
3534
3535 Remove ARI problems:
3536
3537 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3538 beginning of line.
3539
3540 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3541 Add comment.
3542 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3543 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3544 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3545 (UMIN_OF_SIZE): Remove.
3546 (max_of_type): New function to replace orphan macro in gdbtypes.h
3547 (min_of_type): Ditto.
3548 (discrete_type_high_bound): Use max_of_type.
3549 (discrete_type_low_bound): Use min_of_type.
3550 (possible_user_operator_p): Move operator to beginning of line.
3551 (ada_is_variant_part): Ditto.
3552 (ensure_lval): Rewrite to avoid deprecated operations.
3553 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3554 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3555 (ada_enum_name): Remove assignments in 'if' statements.
3556 (build_ada_types): Add gdbarch parameter.
3557 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3558 with gdbarch_data_register_post_init.
3559 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3560 add_show_from_set.
3561
3562 * ada-valprint.c (inspect_it): Remove declaration.
3563 (repeat_count_threshold): Remove declaration.
3564 (ada_print_floating): Remove assignments in 'if' statements.
3565 (print_str): Move operator to beginning of line.
3566
3567 2004-07-08 Jim Blandy <jimb@redhat.com>
3568
3569 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3570
3571 2004-07-08 Bob Rossi <bob@brasko.net>
3572
3573 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3574
3575 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3576
3577 * language.h (struct_language_defn): Add new function pointer:
3578 la_class_name_from_physname. Also add new prototype for
3579 language_class_name_from_physname.
3580 * language.c (language_class_name_from_physname): New function.
3581 (unk_lang_class_name): Ditto.
3582 (unknown_language_defn, auto_language_defn): Change
3583 to add unk_lang_class_name function pointer for
3584 la_class_name_from_physname.
3585 (local_language_defn): Ditto.
3586 * dwarf2read.c (guess_structure_name): Change to call
3587 language_class_name_from_physname.
3588 (determine_class_name): Ditto.
3589 * cp-support.c (class_name_from_physname): Renamed.
3590 (cp_class_name_from_physname): New name of function.
3591 * cp-support.h: Ditto.
3592 * c-lang.c (c_language_defn): Change to add NULL
3593 for class_name_from_physname function pointer.
3594 (cplus_language_defn): Change to add cp_class_name_from_physname.
3595 * jv-lang.c (java_class_name_physname): New function.
3596 (java_find_last_component): New static routine.
3597 (java_language_defn): Add java_class_name_from_physname pointer.
3598 * ada-lang.c (ada_language_defn): Change to add NULL
3599 for class_name_from_physname function pointer.
3600 * f-lang.c (f_language_defn): Ditto.
3601 * m2-lang.c (m2_language_defn): Ditto.
3602 * objc-lang.c (objc_language_defn): Ditto.
3603 * p-lang.c (pascal_language_defn): Ditto.
3604 * scm-lang.c (scm_language_defn): Ditto.
3605
3606 2004-07-06 Andrew Cagney <cagney@gnu.org>
3607
3608 Patch from Bart Robinson.
3609 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3610 (O_LARGEFILE): Define to 0, if not defined.
3611
3612 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3613
3614 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3615 <machine/pcb.h> and "bsd-kvm.h".
3616 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3617 (m68kbsd_supply_pcb): New function.
3618 (_initialize_m68kbsd_nat): New prototype and function.
3619 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3620 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3621 (LOADLIBES): New variable.
3622 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3623 (LOADLIBES): New variable.
3624
3625 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3626
3627 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3628
3629 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3630 <sys/proc.h>.
3631 (bsd_kvm_cmdlist): New variable.
3632 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3633 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3634 command and "kvm proc" command.
3635 * Makefile.in (bsd-kvm.o): Update dependencies.
3636
3637 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3638
3639 * osabi.c: Update copyright year.
3640 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3641 notes if EI_OSABI is set to ELFOSABI_HPUX.
3642
3643 2004-07-01 Michael Snyder <msnyder@redhat.com>
3644
3645 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3646 that seems to have gotten whacked out of line.
3647
3648 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3649
3650 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3651 code.
3652
3653 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3654
3655 * ada-lang.c (decode_packed_array): Minor change to comment.
3656 (ada_value_slice_ptr): New function.
3657 (ada_value_slice): New function.
3658 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3659 test. Don't know why it is there.
3660 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3661 to avoid dereferencing huge arrays from which one is slicing.
3662 (empty_array): Correct to return an array rather than
3663 a subrange value.
3664 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3665 on empty arrays (let'em use 'FIRST instead).
3666
3667 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3668
3669 Address complaints from gdb_ari.sh:
3670
3671 * ada-exp.y: Include gdb_string.h rather than string.h.
3672 (convert_char_literal): Reformat declaration.
3673 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3674 * ada-lex.l: Change use of free to xfree (the macro would do so
3675 anyway, but this is harmless).
3676 Include gdb_string.h rather than string.h.
3677 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3678
3679 * ada-lang.c (parse): Remove K&Rism in parameter list.
3680 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3681
3682 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3683
3684 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3685 dead code.
3686
3687 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3688
3689 * alphabsd-nat.c: Update copyright year.
3690 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3691
3692 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3693
3694 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3695 (i386_cygwin_in_solib_call_trampoline): New function.
3696 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3697 and skip_trampoline_code gdbarch methods.
3698
3699 2004-06-29 Jim Blandy <jimb@redhat.com>
3700
3701 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3702 name actually used in the dependency lists.
3703
3704 2004-06-29 Randolph Chung <tausq@debian.org>
3705
3706 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3707
3708 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3709
3710 * win32-nat.c (child_pid_to_exec_file): New function.
3711 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3712 functionality.
3713
3714 2004-06-28 Andrew Cagney <cagney@gnu.org>
3715
3716 * defs.h (xstrvprintf): Declare.
3717 * utils.c (xstrvprintf): New function.
3718 (internal_vproblem, xstrprintf, xasprintf)
3719 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3720 * serial.c (serial_printf): Ditto.
3721 * complaints.c (vcomplaint): Ditto.
3722
3723 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3724
3725 * infcmd.c (attach_command): Move call to target_terminal_inferior
3726 behind loading symbol table.
3727
3728 2004-06-28 Andrew Cagney <cagney@gnu.org>
3729
3730 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3731 change - add back extern deprecated_ui_loop_hook declaration.
3732
3733 2004-06-28 Andrew Cagney <cagney@gnu.org>
3734
3735 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3736 xstrprintf.
3737 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3738 (c_value_of_variable): Ditto.
3739 * utils.c (internal_vproblem): Ditto.
3740 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3741 * remote.c (add_packet_config_cmd): Ditto.
3742 * remote-rdp.c (rdp_set_command_line): Ditto.
3743 * regcache.c (regcache_dump): Ditto.
3744 * frv-tdep.c (new_variant, new_variant): Ditto.
3745 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3746 (fbsd_find_memory_regions): Ditto.
3747 * breakpoint.c (create_thread_event_breakpoint)
3748 (create_breakpoints): Ditto.
3749 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3750 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3751
3752 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3753
3754 * ada-lang.c: Re-indent file, with some massaging to help indent
3755 a bit when the result is otherwise really too ugly.
3756
3757 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3758
3759 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3760 code_addr_p and special_addr_p to 'unsigned int'.
3761
3762 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3763
3764 * i386v4-nat.c: Update copyright year and tweak comment.
3765 (regmap): Remove trailing comma.
3766 (supply_gregset): Rename local variable i to regnum. Call
3767 regcache_raw_supply instead of supply_register.
3768 (fill_gregset): Rename argument regno to regnum. Call
3769 regcache_raw_collect instead of regcache_collect.
3770
3771 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3772
3773 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3774 and special_addr_p.
3775 (frame_id_build, frame_id_build_special): Update comments.
3776 (frame_id_build_wild): New prototype.
3777 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3778 struct frame_id fields.
3779 (frame_id_build_wild): New function.
3780 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3781
3782 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3783
3784 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3785 hppabsd-tdep.c.
3786
3787 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3788
3789 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3790
3791 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3792
3793 * ada-lang.c: Re-indent file.
3794
3795 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3796
3797 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3798 (no_symtab_msg): Likewise.
3799
3800 2004-06-27 Andreas Schwab <schwab@suse.de>
3801
3802 * source.c: Fix whitespace.
3803
3804 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3805
3806 * configure.in: Include <sys/param.h> for td_pcb test.
3807 * configure: Regenerated.
3808
3809 * i386nbsd-nat.c: New file.
3810 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3811 i386obsd-nat.c and i386obsd-tdep.c.
3812 (i386nbsd-nat.o): New dependency.
3813 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3814 bsd-kvm.o.
3815 (LOADLIBES): New variable.
3816 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3817 bsd-kvm.o.
3818 (LOADLIBES): New variable.
3819
3820 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3821 (LOADLIBES): New variable.
3822
3823 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3824 fetching from BSD_KVM_PADDR. Correctly lookup address for
3825 "_thread0".
3826
3827 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3828 "bsd-kvm.h".
3829 (amd64fbsd_supply_pcb): New funcion.
3830 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3831
3832 2004-06-27 <david@streamline-computing.com>
3833
3834 Partial fix for PR cli/1056.
3835 * valarith.c: Check for zero in division and remainder
3836 evaluation.
3837
3838 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3839
3840 * i387-tdep.c: Remove excessive whitespace.
3841
3842 2004-06-26 Andrew Cagney <cagney@gnu.org>
3843
3844 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3845 * gdb-events.h, gdb-events.c: Re-generate.
3846 * tui/tui-hooks.c (tui_install_hooks): Update.
3847 (tui_remove_hooks): Update.
3848 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3849
3850 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3851
3852 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3853 (gregset_t, fpregset_t): Remove typedefs.
3854 (REG_OFFSET): Rename argument.
3855 (amd64bsd_r_reg_offset): Rename from reg_offset.
3856 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3857 Remove functions.
3858 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3859 of reg_offset.
3860 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3861
3862 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3863
3864 * vax-tdep.c: Tweak comment.
3865
3866 Add OpenBSD/hppa support.
3867 * NEWS (New native configurations): Mention OpenBSD/hppa.
3868 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3869 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3870 files.
3871 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3872 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3873 * configure.host: Add hppa*-*-openbsd*.
3874 * configure.tgt: Add hppa*-*-openbsd*.
3875
3876 2004-06-25 Andrew Cagney <cagney@gnu.org>
3877
3878 * defs.h (deprecated_ui_loop_hook): Deprecated.
3879 * wince.c (child_wait): Update.
3880 * win32-nat.c (child_wait): Update.
3881 * v850ice.c (v850ice_wait): Update.
3882 * top.c (deprecated_ui_loop_hook): Update.
3883 * serial.h: Update.
3884 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3885 (do_unix_readchar): Update.
3886 * ser-tcp.c (net_open): Update.
3887 * remote-sim.c (gdb_os_poll_quit): Update.
3888 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3889
3890 2004-06-24 Andrew Cagney <cagney@gnu.org>
3891
3892 * defs.h (deprecated_pre_add_symbol_hook)
3893 (deprecated_post_add_symbol_hook): Deprecated.
3894 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3895 (symbol_file_add_with_addrs_or_offsets): Update references.
3896
3897 2004-06-24 Andrew Cagney <cagney@gnu.org>
3898
3899 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3900 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3901 * wince.c (ui_loop_hook): Delete extern declaration.
3902 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3903 * v850ice.c (ui_loop_hook): Delete extern declaration..
3904 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3905 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3906 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3907 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3908 ui_loop_hook declaration.
3909
3910 2004-06-24 Andrew Cagney <cagney@gnu.org>
3911
3912 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3913 entry_func_highpc fields.
3914 * objfiles.c (init_entry_point_info): Do not clear
3915 entry_func_lowpc and entry_func_highpc.
3916 (objfile_relocate): Do not relocate entry_func_lowpc and
3917 entry_func_highpc.
3918 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3919 entry_func_highpc.
3920 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3921 entry_func_highpc.
3922 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3923 entry_func_lowpc and entry_func_highpc with call to
3924 inside_entry_func.
3925
3926 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3927
3928 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3929 quad-precision floating point arguments in registers.
3930
3931 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3932
3933 From Michael Mueller <m.mueller99@kay-mueller.de>:
3934 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3935 account.
3936
3937 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3938
3939 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3940 to -1.
3941 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3942 untriggered watchpoints to a separate if clause. Update function
3943 comment regarding STOPPED_BY_WATCHPOINT argument.
3944
3945 2004-06-22 Jim Blandy <jimb@redhat.com>
3946
3947 * gdbarch.sh: Doc fix.
3948
3949 2004-06-21 Martin Hunt <hunt@redhat.com>
3950 Kevin Buettner <kevinb@redhat.com>
3951
3952 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3953 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3954 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3955 to set_gdbarch_sp_regnum(). Use cooked register number.
3956 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3957
3958 2004-06-21 Andrew Cagney <cagney@gnu.org>
3959
3960 * gdbarch.sh: When the macro field is empty, do not generate a
3961 macro definition. When the macro field is "=", generate the macro
3962 name from the upper-case function name.
3963 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3964 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3965 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3966 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3967 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3968 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3969 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3970 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3971 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3972 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3973 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3974 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3975 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3976 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3977 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3978 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3979 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3980 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3981 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3982 (DEPRECATED_USE_STRUCT_CONVENTION)
3983 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3984 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3985 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3986 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3987 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3988 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3989 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3990 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3991 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3992 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3993 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3994 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3995 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3996 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3997 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3998 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3999 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4000 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4001
4002 2004-06-21 Andrew Cagney <cagney@gnu.org>
4003
4004 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4005 macro name, and the function rather than macro value. Only wrap
4006 macro print statements in #ifdef. Move format logic to where it
4007 is needed.
4008 * gdbarch.c: Re-generate.
4009
4010 * gdbarch.sh (read): Delete "print_p" and "description", add
4011 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4012 Delete references to print_p.
4013 (TARGET_ARCHITECTURE): Delete print predicate.
4014 * gdbarch.c: Re-generate.
4015
4016 * gdbarch.sh: Check that multi-arch methods do not provide a
4017 macro.
4018 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4019 (print_registers_info, print_float_info, print_vector_info)
4020 (adjust_breakpoint_address, remote_translate_xfer_address)
4021 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4022 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4023 name from the multi-arch definition.
4024
4025 2004-06-20 Andrew Cagney <cagney@gnu.org>
4026
4027 * gdbarch.sh: Sort by the function, instead of macro name.
4028 * gdbarch.c: Re-generate.
4029
4030 2004-06-20 Andrew Cagney <cagney@gnu.org>
4031
4032 * gdbarch.sh: Use the function, instead of macro name in
4033 errors and the log file.
4034 (return_value): Remove stray ":" in spec.
4035
4036 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4037 * gdbarch.h, gdbarch.c: Re-generate.
4038 * Makefile.in (arch-utils.o): Update dependencies.
4039 * values.c (using_struct_return): Move code calling
4040 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4041 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4042 to legacy_return_value, simplify.
4043 * infcmd.c (print_return_value): Move code calling
4044 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4045 to legacy_return_value, simplify.
4046 * infcall.c (call_function_by_hand): Move code calling
4047 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4048 * arch-utils.c: Update copyright. Include "gdbcore.h".
4049 (legacy_return_value): New function.
4050 * arch-utils.h: Update copyright.
4051 (legacy_return_value): Declare.
4052
4053 2004-06-20 Andrew Cagney <cagney@gnu.org>
4054
4055 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4056 * gdbarch.h, gdbarch.c: Re-generate.
4057 * values.c (using_struct_return): Update call.
4058 * mcore-tdep.c: Update comment.
4059 * infcall.c (call_function_by_hand): Update comment.
4060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4061 * arch-utils.h (always_use_struct_convention): Update.
4062 * v850-tdep.c (v850_gdbarch_init): Update.
4063 * sh64-tdep.c (sh64_gdbarch_init): Update.
4064 * sh-tdep.c (sh_gdbarch_init): Update.
4065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4066 * mips-tdep.c (mips_gdbarch_init): Update.
4067 * mcore-tdep.c (mcore_gdbarch_init): Update.
4068 * m32r-tdep.c (m32r_gdbarch_init): Update.
4069 * ia64-tdep.c (ia64_gdbarch_init): Update.
4070 * h8300-tdep.c (h8300_gdbarch_init): Update.
4071 * frv-tdep.c (frv_gdbarch_init): Update.
4072 * cris-tdep.c (cris_gdbarch_init): Update.
4073 * arm-tdep.c (arm_gdbarch_init): Update.
4074 * alpha-tdep.c (alpha_gdbarch_init): Update.
4075
4076 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4077
4078 * PROBLEMS: Add more specific information, and a work-around,
4079 for PR gdb/1458.
4080
4081 2004-06-18 Andrew Cagney <cagney@gnu.org>
4082
4083 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4084 * gdbarch.h, gdbarch.c: Re-generate.
4085 * ada-lang.c (ada_finish_decode_line_1): Update.
4086 * infrun.c (handle_inferior_event): Update.
4087 * infcall.c (find_function_addr): Update.
4088 * linespec.c (minsym_found): Update.
4089 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4090 Update.
4091 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4092 * cli/cli-cmds.c (disassemble_command): Update.
4093 * vax-tdep.c (vax_gdbarch_init): Update.
4094
4095 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4096
4097 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4098
4099 2004-06-17 Andrew Cagney <cagney@gnu.org>
4100
4101 GDB 6.1.1 released from the GDB 6.1 branch.
4102 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4103 * PROBLEMS: Ditto.
4104
4105 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4106
4107 PR gdb/1658
4108 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4109 operation as a uleb128. Found by Michael Coulter.
4110
4111 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4112
4113 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4114 make it non-static.
4115 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4116 to ada-lang.h; this is needed to be able to implement the kill command
4117 in multi-task mode.
4118 (task_ptid): Ditto.
4119 (task_entry): Ditto.
4120 (task_list): Ditto.
4121 (ada_build_task_list): Ditto.
4122
4123 * ada-lang.c: Conditionalize routines and data structures related
4124 to breakpoints, exceptions, completion, and symbol caching on
4125 GNAT_GDB, since these are not yet used in the submitted public sources.
4126 (ada_main_name): Editorial: Move definition out of exception-related
4127 code.
4128
4129 2004-06-15 Andrew Cagney <cagney@gnu.org>
4130
4131 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4132 deprecated_pc_in_call_dummy.
4133
4134 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4135
4136 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4137 bfd_get_section_size_before_reloc or _raw_size.
4138 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4139 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4140 (dwarf2_read_section): Likewise.
4141 * elfread.c (elf_locate_sections): Likewise.
4142 * gcore.c (derive_heap_segment): Likewise.
4143 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4144 * remote-e7000.c (e7000_load): Likewise.
4145 * remote-m32r-sdi.c (m32r_load): Likewise.
4146 * remote-mips.c (mips_load_srec): Likewise.
4147 (pmon_load_fast): Likewise.
4148 * remote.c (compare_sections_command): Likewise.
4149 * symfile.c (add_section_size_callback): Likewise.
4150 (load_section_callback): Likewise.
4151 (pc_in_unmapped_range): Likewise.
4152 (pc_in_mapped_range): Likewise.
4153 (sections_overlap): Likewise.
4154 (list_overlays_command): Likewise.
4155 (simple_overlay_update_1): Likewise.
4156 (simple_overlay_update): Likewise.
4157 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4158 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4159
4160 2004-06-14 Randolph Chung <tausq@debian.org>
4161
4162 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4163 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4164 static.
4165 (hppa_hpux_inferior_created): New function.
4166 (hppa_hpux_init_abi): Register observer.
4167 * symfile.c (hp_cxx_exception_support_initialized)
4168 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4169 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4170
4171 2004-06-14 Randolph Chung <tausq@debian.org>
4172
4173 * MAINTAINERS (Write After Approval): Alphabetize my entry
4174 correctly.
4175
4176 2004-06-14 Andrew Cagney <cagney@gnu.org>
4177
4178 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4179 testsuite maintainer.
4180
4181 2004-06-13 Andrew Cagney <cagney@gnu.org>
4182
4183 * infcmd.c (print_return_value): Fix logic, allow
4184 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4185
4186 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4187 defining any macros.
4188 * gdbarch.h: Re-generate.
4189
4190 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4191 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4192 * gdbarch.h: Re-generate.
4193
4194 * values.c (generic_use_struct_convention): Don't check gcc_p.
4195
4196 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4197 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4198 * gdbarch.h, gdbarch.c: Regenerate.
4199 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4200 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4202 deprecated_max_register_raw_size and
4203 deprecated_max_register_virtual_size.
4204 * v850-tdep.c (v850_gdbarch_init): Ditto.
4205 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4206 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4207 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4208 * cris-tdep.c (cris_gdbarch_init): Ditto.
4209
4210 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4211 * gdbarch.h, gdbarch.c: Re-generate.
4212 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4213 (m68hc11_use_struct_convention): Delete function.
4214 (m68hc11_extract_struct_value_address): Delete function.
4215 (m68hc11_return_value): New function.
4216 (m68hc11_gdbarch_init): Instead of store_return_value,
4217 extract_return_value, return_value_on_stack,
4218 deprecated_extract_struct_value_address and use_struct_convention,
4219 set return_value.
4220 * values.c (using_struct_return): Do not call
4221 RETURN_VALUE_ON_STACK.
4222 * arch-utils.h (generic_return_value_on_stack_not): Delete
4223 declaration.
4224 * arch-utils.c (generic_return_value_on_stack_not): Delete
4225 function.
4226
4227 2004-06-12 Andrew Cagney <cagney@gnu.org>
4228
4229 * values.c (register_value_being_returned): Delete function.
4230 * infcmd.c (legacy_return_value): Delete function.
4231 * infcall.c (call_function_by_hand): Inline
4232 "register_value_being_returned", simplify.
4233 * values.c (using_struct_return): Update comment, refer to
4234 print_return_value instead of register_value_being_returned.
4235 * infcmd.c (print_return_value): Inline calls to
4236 register_value_being_returned and legacy_return_value. Simplify.
4237
4238 2004-06-11 Randolph Chung <tausq@debian.org>
4239
4240 * somread.c (som_symtab_read): Exclude gcc local symbols.
4241
4242 2004-06-11 Randolph Chung <tausq@debian.org>
4243
4244 * infrun.c (handle_inferior_event): Handle the case when a
4245 trampoline ends up in the runtime resolver, and if the trampoline
4246 has no name. Rearrange the code so that all the trampoline
4247 processing happens before other step-out-of-range handling.
4248
4249 2004-06-11 Martin Hunt <hunt@redhat.com>
4250
4251 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4252 has no fpu.
4253
4254 2004-06-10 Andrew Cagney <cagney@gnu.org>
4255
4256 * blockframe.c (legacy_inside_entry_func): Delete.
4257 (legacy_frame_chain_valid): Inline call to
4258 legacy_inside_entry_func, simplify.
4259
4260 2004-06-10 Bob Rossi <bob@brasko.net>
4261
4262 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4263 * dwarf2read.c (partial_die_info): Add dirname field.
4264 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4265 (read_partial_die): Save away DW_AT_comp_dir.
4266 * defs.h (symtab_to_filename): Removed.
4267 * source.c (find_and_open_source): Added.
4268 (open_source_file): Just calls find_and_open_source.
4269 (symtab_to_filename): Removed.
4270 (symtab_to_fullname, psymtab_to_fullname): Added.
4271 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4272 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4273 symtab_to_filename.
4274 * symtab.h (partial_symtab): Add dirname field.
4275 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4276 (mi_cmd_file_list_exec_source_file): Call new function
4277 symtab_to_fullname to find fullname.
4278 (mi_cmd_file_list_exec_source_files): Added.
4279 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4280 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4281
4282 2004-06-10 Andrew Cagney <cagney@gnu.org>
4283
4284 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4285 to generic_use_struct_convention, the default value.
4286
4287 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4288 of abort.
4289
4290 * ns32k-tdep.c (ns32k_push_arguments): New function.
4291 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4292 * infcall.c (call_function_by_hand): Call error instead of
4293 legacy_push_arguments.
4294 * value.h (legacy_push_arguments): Delete declaration.
4295 * valops.c (legacy_push_arguments): Delete function.
4296 (value_push): Delete function.
4297
4298 2004-06-10 Brian Ford <ford@vss.fsi.com>
4299
4300 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4301 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4302 info.
4303 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4304
4305 2004-06-10 Andrew Cagney <cagney@gnu.org>
4306
4307 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4308 * gdbarch.h, gdbarch.c: Re-generate.
4309 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4310 parameters.
4311 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4312 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4313 deprecated_pc_in_call_dummy instead of
4314 DEPRECATED_PC_IN_CALL_DUMMY.
4315 (arm_skip_prologue): Ditto.
4316 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4317 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4318 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4319 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4320 Ditto.
4321 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4322 (sh64_init_extra_frame_info, sh64_get_saved_register)
4323 (sh64_pop_frame): Ditto.
4324 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4325 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4326 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4327 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4328 (h8300_pop_frame): Ditto.
4329 * blockframe.c (legacy_inside_entry_func)
4330 (legacy_frame_chain_valid): Ditto.
4331 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4332 to deprecated_pc_in_call_dummy.
4333
4334 2004-06-09 Andrew Cagney <cagney@gnu.org>
4335
4336 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4337 provide a default value.
4338 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4339 * gdbarch.h, gdbarch.c: Re-generate.
4340 * arch-utils.c (generic_convert_register_p): Rename
4341 legacy_convert_register_p
4342 (legacy_register_to_value, legacy_value_to_register): Delete
4343 functions.
4344 * arch-utils.h (generic_convert_register_p): Rename
4345 legacy_convert_register_p.
4346 (legacy_register_to_value, legacy_value_to_register): Delete
4347 declarations.
4348
4349 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4350 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4351 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4352 * gdbarch.h, gdbarch.c: Re-generate.
4353 * infcmd.c (default_print_registers_info): Simplify.
4354 * findvar.c (value_of_register): Simplify.
4355 * mi/mi-main.c (get_register): Simplify.
4356 * arch-utils.c (legacy_convert_register_p): Always return 0.
4357 (legacy_register_to_value, legacy_value_to_register): Always call
4358 internal_error.
4359
4360 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4361 #ifdef CLEAR_INSN_CACHE code.
4362 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4363 Delete #ifdef CLEAR_DEFERRED_STORES code.
4364
4365 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4366
4367 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4368 copyright.
4369 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4370
4371 * config/mips/mipsv4.mh: Delete file.
4372
4373 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4374 unreferenced macro.
4375 (hpread_adjust_stack_address): Delete declaration.
4376
4377 2004-06-08 Andrew Cagney <cagney@gnu.org>
4378
4379 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4380 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4381 PTRACE_ATTACH / PTRACE_DETACH available call error.
4382 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4383 * infttrace.c (update_thread_state_after_attach, attach, detach):
4384 Remove #ifdef wrappers.
4385 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4386 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4387 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4388 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4389 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4390 * config/nm-linux.h (ATTACH_DETACH): Delete.
4391 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4392 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4393 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4394 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4395 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4396
4397 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4398
4399 * configure.in: Set $configdir to the right OS specific value.
4400 Use value when setting $tcldir and $tkdir.
4401 * configure: Regenerate.
4402
4403 2004-06-06 Paul Brook <paul@codesourcery.com>
4404
4405 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4406 records.
4407
4408 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4409
4410 * ada-lang.c (lookup_symbol_in_language): New function to allow
4411 re-use of another language's symbol lookup code. (Placed here
4412 temporarily while Ada support is being integrated into the public
4413 tree).
4414 (restore_language): New auxiliary function for
4415 lookup_symbol_in_language.
4416 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4417 temporarily while Ada support is being integrated into the public
4418 tree).
4419
4420 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4421
4422 * Makefile.in (check//%): New.
4423
4424 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4425 (mn10300_store_return_value): Rewrite.
4426 (mn10300_type_align): New.
4427 (mn10300_use_struct_convention): Rewrite.
4428 (mn10300_return_value): New, using all of the above.
4429 (mn10300_pop_frame_regular): Add saved_regs_size.
4430 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4431
4432 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4433 regs if PC is on movm.
4434
4435 2004-06-07 Jim Blandy <jimb@redhat.com>
4436
4437 Add native Linux support for the PowerPC E500.
4438 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4439 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4440 all architectures except the E500.
4441 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4442 #definitions.
4443 (struct gdb_evrregset_t): New type.
4444 (have_ptrace_getsetevrregs): New variable.
4445 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4446 fetch_spe_registers): New functions.
4447 (fetch_register): Call fetch_spe_register as appropriate.
4448 Assert that we're only passed raw register numbers.
4449 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4450 Don't fetch gprs if they're pseudoregisters.
4451 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4452 store_spe_registers): New functions.
4453 (store_register): Call store_spe_register as appropriate.
4454 Assert that we're only passed raw register numbers.
4455 (store_ppc_registers): Call store_spe_registers as appropriate.
4456 Don't store gprs if they're pseudoregisters.
4457
4458 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4459
4460 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4461 struct if one exists, even if we are dealing with a zombie thread.
4462
4463 2004-06-07 Andrew Cagney <cagney@gnu.org>
4464
4465 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4466 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4467 Rename PC_REQUIRES_RUN_BEFORE_USE.
4468 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4469 #ifdef.
4470
4471 2004-06-07 Randolph Chung <tausq@debian.org>
4472
4473 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4474 unwinding after sp has been saved to the stack but before the end
4475 of the prologue, and after the fp has been modified but before it has
4476 been saved to the stack.
4477 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4478 Remove superfluous definitions.
4479 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4480
4481 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4482
4483 Committed by Randolph Chung.
4484 * hppa-linux-nat.c: Include the correct version of the header file
4485 depending on the kernel version.
4486
4487 2004-06-06 Randolph Chung <tausq@debian.org>
4488
4489 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4490 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4491
4492 2004-06-06 Randolph Chung <tausq@debian.org>
4493
4494 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4495 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4496 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4497 * hppa-tdep.c (hppa_symbol_address): New function definition.
4498 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4499
4500 2004-06-06 Randolph Chung <tausq@debian.org>
4501
4502 * hppa-tdep.h (struct value): Forward declaration.
4503 (gdbarch_tdep): Define tdep find_global_pointer method.
4504 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4505 associated with the function we are trying to call, and write it
4506 to the gp register.
4507 (hppa32_convert_from_funct_ptr_addr): New function.
4508 (hppa_find_global_pointer): New function.
4509 (hppa_gdbarch_init): Set default find_global_pointer method; set
4510 convert_from_func_ptr_addr method.
4511 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4512 (hppa_linux_init_abi): Set find_global_pointer method.
4513 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4514
4515 2004-06-06 Randolph Chung <tausq@debian.org>
4516
4517 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4518 to struct value *function.
4519 * gdbarch.c: Regenerate.
4520 * gdbarch.h: Likewise.
4521 * infcall.c (call_function_by_hand): Pass entire function value
4522 to push_dummy_call.
4523
4524 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4525 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4526 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4527 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4528 * arm-tdep.c (arm_push_dummy_call): Likewise.
4529 * avr-tdep.c (avr_push_dummy_call): Likewise.
4530 * cris-tdep.c (cris_push_dummy_call): Likewise.
4531 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4532 * frv-tdep.c (frv_push_dummy_call): Likewise.
4533 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4534 * hppa-tdep.c (hppa32_push_dummy_call)
4535 (hppa64_push_dummy_call): Likewise.
4536 * i386-tdep.c (i386_push_dummy_call): Likewise.
4537 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4538 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4539 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4540 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4541 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4542 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4543 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4544 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4545 (ppc64_sysv_abi_push_dummy_call): Likewise.
4546 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4547 (ppc64_sysv_abi_push_dummy_call): Likewise.
4548 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4549 * s390-tdep.c (s390_push_dummy_call): Likewise.
4550 * sh-tdep.c (sh_push_dummy_call_fpu)
4551 (sh_push_dummy_call_nofpu): Likewise.
4552 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4553 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4554 * vax-tdep.c (vax_push_dummy_call): Likewise.
4555
4556 2004-06-04 Jim Blandy <jimb@redhat.com>
4557
4558 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4559 gdbarch argument to register_size.
4560
4561 * rs6000-tdep.c (rs6000_store_return_value): Use
4562 regcache_cooked_write_part instead of
4563 deprecated_write_register_bytes.
4564 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4565 not gdbarch_deprecated_store_return_value.
4566
4567 * ppc-linux-nat.c (store_register, fetch_register): Remove
4568 incorrect assertions. Simplify and generalize handling of
4569 transfers whose sizes are not multiples of, or less than, sizeof
4570 (PTRACE_XFER_TYPE).
4571
4572 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4573
4574 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4575 as a new thread event.
4576 * thread-db.c (thread_get_info_callback): If the thread is a
4577 zombie, return TD_THR_ZOMBIE.
4578 (thread_from_lwp): If thread_get_info_callback returns
4579 TD_THR_ZOMBIE, check if the thread is still on the thread list
4580 and return a -1 ptid if not found.
4581 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4582 change the status to TARGET_WAITKIND_SPURIOUS.
4583
4584 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4585
4586 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4587 double values in little endian mode.
4588
4589 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4590
4591 Committed by Andrew Cagney.
4592 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4593 after last enum constant to avoid error from IBM C
4594 compiler.
4595
4596 2004-06-02 Jim Blandy <jimb@redhat.com>
4597
4598 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4599 to 'message', and make it local to the lone block that uses it.
4600
4601 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4602
4603 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4604
4605 * ada-exp.y: Update copyright notice.
4606 Include block.h.
4607
4608 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4609 SPECIAL_VARIABLE and unify the treatment of these cases.
4610
4611 (write_attribute_call0): Remove.
4612 (write_attribute_call1): Remove.
4613 (write_attribute_calln): Remove.
4614 (save_qualifier): Add missing semicolon.
4615
4616 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4617 temporarily disabled to allow compilation with FSF head version.
4618
4619 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4620 use individual operators (OP_*) for all attributes.
4621 (exp syntax): Use write_int.
4622 Handle STRING literals with OP_STRING.
4623 (variable syntax): Add limit parameter to calls to
4624 write_object_renaming.
4625
4626 (temp_parse_space): New definition to hold entities that need
4627 only live until the next call to ada_parse.
4628 (string_to_operator): Rename fields of ada_opname_table entries.
4629
4630 (write_var_from_sym): Record block.
4631 (write_var_from_name): Minor reformatting.
4632 Make sure saved name is properly encoded in the case of multiple
4633 matches, and set its language to Ada.
4634 Update comment.
4635 Modify to indicate unresolved name as symbol in the UNRESOLVED
4636 namespace, allocated in temp_parse_space.
4637 (write_int): New function.
4638
4639 (write_object_renaming): Add max_depth parameter to limit
4640 chains of object renamings.
4641 Handle case where root of renaming expression is itself a renaming.
4642 Use temp_parse_space for temporary name buffer.
4643 Handle renamings to dereferenced pointers (___XEXA suffices).
4644
4645 (ada_parse, yyerror, string_to_operator,
4646 write_var_from_sym, write_var_from_name, write_attribute_call0,
4647 write_attribute_call1, write_attribute_calln,
4648 write_object_renaming): Protoize.
4649
4650 (_initialize_ada_exp): New function.
4651
4652 * ada-lang.c: Update copyright notice.
4653 General terminology change to conform to GNAT compiler usage:
4654 mangle => encode, demangle => decode
4655 Include gdb_obstack.h.
4656 Include gdb_regex.h
4657 Include frame.h
4658 Include hashtab.h
4659 Include completer.h
4660 Include gdb_stat.h
4661 Include block.h
4662 Include infcall.h
4663
4664 (ADA_RETAIN_DOTS): Make sure this is defined.
4665 (TRUNCATION_TOWARDS_ZERO): Define.
4666 (struct string_vector): Define.
4667 (unresolved_names): Remove definition.
4668 (xnew_string_vector): New function.
4669 (string_vector_append): New function.
4670 (extract_string): Make static.
4671 (ada_unqualified_name): New function.
4672 (add_angle_brackets): New function.
4673 (function_name_from_pc): New function.
4674 (place_on_stack): Rename to ensure_lval.
4675
4676 (ensure_lval): Renamed from place_on_stack.
4677 Make identity on lvals.
4678 Update comment.
4679 (is_nonfunction): New interface.
4680 Only symbols in LOC_CONST class can be enumerals.
4681 (fill_in_ada_prototype): Remove; now independent of language.
4682 (add_defn_to_vec): Add obstack and symtab arguments.
4683 Use obstack to hold collected definitions.
4684 (num_defns_collected): New function.
4685 (defns_collected): New function.
4686 (ada_resolve_subexp): Rename to resolve_subexp.
4687 (resolve_subexp): Renamed from ada_resolve_subexp.
4688 (ada_op_name): Return non-const result.
4689 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4690 other purposes.
4691
4692 (to_fixed_array_type): Add declaration.
4693 (coerce_unspec_val_to_type): Remove offset parameter.
4694 (find_sal_from_funcs_and_line): New interface.
4695 (find_line_in_linetable): Ditto.
4696
4697 (all_sals_for_line): Rename to ada_sals_for_line and make
4698 global.
4699 Add new parameter. When set, do not ask the user to choose the
4700 instance, but use the first one found instead.
4701 Use given line number in returned sals.
4702 Fix comment.
4703 Skip the prologue if funfirstline is set.
4704 Correct for memory leak when 0 lines found.
4705
4706 (value_pos_atr): Use pos_atr.
4707 (pos_atr): New function.
4708 (standard_lookup): Add block parameter.
4709
4710 (makeTimeStart): Remove declaration and uses.
4711 (makeTimeStop): Remove declaration and uses.
4712
4713 (ada_completer_word_break_characters): Allow for VMS.
4714 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4715 (raise_sym_name): New constant.
4716 (raise_unhandled_sym_name): New constant.
4717 (raise_assert_sym_name): New constant.
4718 (process_raise_exception_name): New constant.
4719 (longest_exception_template): New constant.
4720 (warning_limit): New variable to limit warnings during expression
4721 evaluation.
4722 (warnings_issued): New variable to keep track of warnings issued.
4723 (known_runtime_file_name_patterns): New constant.
4724 (known_auxiliary_function_name_patterns): New constant.
4725 (symbol_list_obstack): New variable.
4726
4727 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4728 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4729 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4730 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4731 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4732 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4733 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4734 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4735 and strcmp.
4736
4737 (ada_get_field_index): New function.
4738 (lim_warning): New function.
4739 (ada_translate_error_message): New function.
4740 (MAX_OF_SIZE): New function.
4741 (MIN_OF_SIZE): New function.
4742 (UMAX_OF_SIZE): New function.
4743 (UMIN_OF_SIZE): New function.
4744 (discrete_type_high_bound): New function.
4745 (discrete_type_low_bound): New function.
4746 (base_type): New function.
4747 (do_command): Remove.
4748
4749 (ada_update_initial_language): Use language_ada, not language_unknown.
4750 (ada_encode): Renamed from ada_mangle.
4751 Obey ADA_RETAIN_DOTS.
4752 (ada_decode): Renamed from ada_demangle.
4753 Update coding conventions.
4754 (decoded_names_store): New hash table.
4755 (ada_decode_symbol): New function.
4756 (ada_la_decode): New function.
4757
4758 (modify_general_field): Correct computations of offset and bit
4759 position.
4760 (desc_base_type): Handle ref types, too.
4761 (ada_is_direct_array_type): New function.
4762
4763 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4764 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4765 (ada_is_bogus_array_descriptor,ada_type_of_array,
4766 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4767 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4768 ada_is_array_descriptor_type.
4769
4770 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4771 (ada_is_packed_array_type): Handle pointers or
4772 references to packed arrays as well.
4773 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4774 (decode_packed_array_type): Search for the packed array type
4775 symbol in the currently selected block and associated
4776 superblocks too.
4777 Use lookup_symbol again.
4778
4779 (decode_packed_array): Handle pointers and references.
4780 Update call to coerce_unspec_val_to_type.
4781 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4782 (ada_value_primitive_packed_val): Improve comment.
4783
4784 (ada_index_type): Substitute int type for "undefined".
4785 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4786 ada_array_langth, ada_is_string_type): Use renamed
4787 ada_is_simple_array_type.
4788 (empty_array): New function.
4789
4790 (ada_resolve): Rename to resolve.
4791 (resolve): Make static.
4792 Call renamed resolve_subexp.
4793 Update comment.
4794 (ada_resolve_subexp): Rename to resolve_subexp.
4795 (resolve_subexp): Update comment.
4796 Decomment disabled code.
4797 Add LOC_COMPUTED* cases.
4798 Modify to use temporary struct symbols (marked as being in
4799 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4800 OP_UNRESOLVED_VALUE.
4801 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4802 Add OP_STRING case.
4803 Remove OP_ARRAY.
4804 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4805 Use new ada_lookup_symbol_list interface.
4806 Use new ada_resolve_function interface.
4807 Remove OP_TYPE case.
4808
4809 (ada_args_match): Idiot proof against null actuals.
4810 Use intermediate variables to clarify.
4811 (ada_resolve_function): Update comment and interface.
4812 (mangled_ordered_before): Rename to encoded_ordered_before and
4813 update comment.
4814 (sort_choices): Update comment and interface.
4815 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4816 (user_select_syms): New interface.
4817 Use new sort_choices interface.
4818 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4819 (possible_user_operator_p): Idiot-proof against null values.
4820 (ada_simple_renamed_entity): Don't make cleanup; rely on
4821 caller to free result string.
4822 Remove const from return type.
4823 (make_array_descriptor): Rename uses of place_on_stack to
4824 ensure_lval.
4825 Make sure that arrays are on stack.
4826
4827 (HASH_SIZE): Define.
4828 (struct cache_entry): Define.
4829 (cache_space): Define.
4830 (cache): Define.
4831 (clear_ada_sym_cache): New function.
4832 (find_entry): New function.
4833 (lookup_cached_symbol): New function.
4834 (defn_vector_size): Define.
4835 (cache_symbol): New function.
4836 (defn_symbols): Remove.
4837
4838 (standard_lookup): Use lookup_symbol_in_language to get effect of
4839 C lookup.
4840 Cache results.
4841
4842 (symbol_completion_match): New function.
4843 (symbol_completion_add): New function.
4844 (ada_make_symbol_completion_list): New function.
4845
4846 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4847 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4848 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4849 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4850
4851 (ada_lookup_simple_minsym): New function.
4852 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4853
4854 (add_symbols_from_enclosing_procs): New interface.
4855 Conditionalize more helpfully.
4856 Don't bother if program isn't running.
4857 Use new interface to get_frame_block.
4858 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4859
4860 (remove_extra_symbols): New interface.
4861 (xget_renaming_scope): New function.
4862 (is_package_name): New function.
4863 (renaming_is_visible): New function.
4864 (remove_out_of_scope_renamings): New function.
4865
4866 (ada_lookup_symbol_list): New interface.
4867 Properly reinitialize the symbol list obstack.
4868 Don't call add_symbols_from_enclosing_procs if we start from a
4869 static or global block.
4870 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4871 add_symbols_from_enclosing_procs.
4872 Add symtab data to cached entries.
4873 Handle symbols prefixed with
4874 "standard__" specially; strip prefix and don't look in local symbols.
4875 Do not include out of scope renaming symbols in list of
4876 symbols returned.
4877 Add const to block parameter.
4878 Move check for non-local, non-global symbols earlier.
4879 Remove timing stuff.
4880 (ada_lookup_symbol): New interface.
4881 Find symtab as well.
4882 (ada_lookup_symbol_nonlocal): New function.
4883
4884 (is_name_suffix): Enhance suffix detection to recognize
4885 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4886 (is_dot_digits_suffix): New function.
4887 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4888
4889 (ada_add_block_symbols): New interface. Use obstack to return results
4890 in a vector of struct ada_symbol_infos. Add symtab argument.
4891 Use new interface to add_defn_to_vec.
4892 Remove calls to fill_in_ada_prototype.
4893 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4894
4895 (ada_finish_decode_line_1): Add const qualification to local to fix
4896 warning.
4897 Start looking in static block for functions to avoid attempts
4898 to search frame chain for up-level variables.
4899 Adapt to new ada_sals_for_line interface.
4900 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4901 Handle quoting of the function name inside the spec string.
4902 Skip prologue when funfirstline is set and update the
4903 function documentation to that effect.
4904
4905 (debug_print_lines, debug_print_block, debug_print_blocks,
4906 debug_print_symtab): Remove.
4907
4908 (ada_main_name): New function.
4909 (ada_exception_breakpoint_type): New function.
4910 (is_known_support_routine): New function.
4911 (ada_find_printable_frame): Renamed from find_printable_frame and made
4912 global.
4913 Remove level parameter.
4914 Use new interface to select_frame.
4915
4916 (begin_command): Remove.
4917 (ada_adjust_exception_stop): New function.
4918 (ada_print_exception_stop): New function.
4919 (exception_name_from_cond): New function.
4920 (ada_report_exception_break): Replace disabled code with
4921 conditionalization on GNAT_GDB.
4922 Get the exception name from the condition string.
4923 Remove and move functionality into new functions
4924 ada_print_exception_breakpoint_task and
4925 ada_print_exception_breakpoint_nontask.
4926 (error_breakpoint_runtime_sym_not_found): New function.
4927 (is_runtime_sym_defined): New function.
4928 (ada_breakpoint_rewrite): Uncomment suppressed code.
4929 Use symbolic error-message and runtime-symbol names.
4930 Surround runtime symbol names in quotes.
4931 Allow non-specific breakpoints on exceptions and assertions before
4932 program starts.
4933
4934 (ada_is_tagged_type): Add parameter.
4935 (ada_is_tag_type): New function.
4936 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4937 (ada_variant_discrim_type): Ditto.
4938 (value_tag_from_contents_and_address): New function.
4939 (type_from_tag): New function.
4940 (struct tag_args): New structure used to communicate with
4941 ada_tag_name_1.
4942 (ada_tag_name_1): New function.
4943 (ada_tag_name): New function.
4944
4945 (ada_scan_number): Update comment.
4946 (find_struct_field): New function.
4947 (ada_search_struct_field): Make static.
4948 (ada_value_struct_elt): New version that returns references when
4949 given pointers or references to structs.
4950 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4951 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4952 interface.
4953 (ada_value_ind): Use new ada_to_fixed_value interface.
4954 (ada_coerce_ref): Ditto.
4955 (field_offset): Remove.
4956
4957 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4958 (ada_find_renaming_symbol): New function.
4959 (ada_prefer_type): Prefer named types over unnamed ones.
4960 (variant_field_index): New function.
4961 (contains_variant_part): Removed: subsumed by variant_field_index.
4962 (ada_template_to_fixed_record_type): New function, mostly from
4963 template_to_fixed_record_type.
4964 (template_to_fixed_record_type):
4965 Do not scan the type fields beyond the last one; prevents a
4966 potential SEGV.
4967 Handle case where variant field is listed BEFORE discriminant it
4968 depends on.
4969 Fix calculation of record length when bit length is
4970 not evenly divisible by char length.
4971 Move code to ada_template_to_fixed_record_type and call it.
4972
4973 (template_to_static_fixed_type): Revise comment.
4974 Modify to work on ordinary record types as well as templates,
4975 so as to handle fields that use ___XVE or ___XVU encodings.
4976 (to_record_with_fixed_variant_part): Fill out comment.
4977 Initialize C++ stuff in right type.
4978 Allow case where DVAL is null.
4979 Handle case where variant field is not last.
4980 Fix typo concerning record length.
4981 (to_fixed_record_type): Decomment disabled code.
4982 (to_fixed_record_type): Use variant_field_index instead of
4983 contains_variant_part.
4984 (to_fixed_variant_branch_type): Ditto.
4985 (to_fixed_array_type): Decomment disabled code.
4986 (ada_to_fixed_type): Convert tagged types to the specific type.
4987 Deactivate the size-check for array types in order to avoid
4988 some false size alarms.
4989 (to_static_fixed_type): Decomment disabled code.
4990 Modify to call template_to_static_fixed_type
4991 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4992 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4993 Remove valaddr argument, as it is never really used.
4994 (ada_to_fixed_value): Change interface to act on single struct value*
4995 operand.
4996 (adjust_pc_past_prologue): New function.
4997 (ada_attribute_name): Modify to take enum exp_opcode argument.
4998
4999 (ada_enum_name): Recognize new homonym-distinguishing convention.
5000 Adjust local variable's type to remove compiler warning.
5001 Fix a small problem in the part that unqualifies the enumeration name.
5002 (ada_value_binop): New function.
5003 (ada_value_equal): New function.
5004
5005 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5006 Don't give error message when not doing normal evaluation
5007 and a tagged type doesn't seem to contain a structure member.
5008 Give error message for packed arrays.
5009 For indexing arrays, handle pointers to packed arrays correctly.
5010 Handle case of 'first and 'last attributes of bare integral type
5011 without encoded subtype info.
5012 Remove some unnecessary casts.
5013 Fix uninitialized value of type in computing 'first, 'last, or 'length
5014 of array object.
5015 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5016 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5017 calls.
5018 Attributes are now exp_opcode values.
5019 Correct treatment of 'modulus.
5020 Better error message for taking 'length of wrong kind of type;
5021 improve comment.
5022 Change EVAL_NORMAL to noside for consistency.
5023 Use ada_value_binop for DIV, MOD, REM.
5024 Make special case out of array of length 0, since an argument
5025 of 0 upsets some platforms' malloc.
5026 Use OP_STRING instead of OP_ARRAY.
5027 For slice, add check that we have an array type before extracting
5028 a slice out of it. Avoids a SEGV.
5029 When evaluating an array slice, if the array type is a reference to
5030 an aligner type, then replace the aligner type by the actual type.
5031 Decomment disabled code.
5032 Remove some dead code.
5033 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5034 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5035 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5036 and UNOP_MBR to UNOP_IN_RANGE.
5037 If an array type has a parallel ___XVE type, then use it.
5038 Turn arrays into pointers for lvalue arrays.
5039 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5040 bounds error and handle 0-length slices.
5041 Use lim_warning.
5042 When selecting fields, apply ada_to_fixed_value (because the fields
5043 might have ___XVU or ___XVE encodings even if not dynamic.)
5044 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5045 (ada_is_system_address_type): New function.
5046
5047 (get_var_value): Use new interface to ada_lookup_symbol_list.
5048 (get_int_var_value): New interface.
5049 (to_fixed_range_type): Allow unknown bound, with warning.
5050 (ada_is_modular_type): Decomment disabled code.
5051 (ADA_OPERATORS): New definition.
5052 (ada_operator_length): New function.
5053 (ada_expr_op_name): New function.
5054 (ada_forward_operator_length): New function.
5055 (ada_dump_subexp_body): New function.
5056 (ada_print_subexp): New function.
5057 (ada_exp_descriptor): New constant.
5058 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5059 (ada_language_defn): Add ada_exp_descriptor entry.
5060 Change ada_parse => parse.
5061 Add post-parser entry.
5062 Use ada-specific non-local symbol lookup.
5063 Don't use C-style arrays.
5064 String lower-bound is 1.
5065 Decomment disabled code.
5066 (parse): New function.
5067 New fields ada_translate_error_message, ada_lookup_symbol,
5068 ada_lookup_minimal_symbol.
5069
5070 * ada-lang.h: Update copyright dates.
5071 Replace the mangle/demangle terminology throughout by the
5072 more appropriate encode/decode one.
5073 Include breakpoint.h.
5074 Forward declare struct partial_symbol, struct block.
5075 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5076 (EXTRACT_ADDRESS): Remove.
5077 (EXTRACT_INT): Remove.
5078 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5079 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5080 (MAX_RENAMING_CHAIN_LENGTH): Define.
5081 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5082
5083 (enum task_states): Remove.
5084 ada_task_states: Remove.
5085 (fat_string): Remove.
5086 (struct entry_call): Remove.
5087 (struct task_fields): Remove.
5088 (struct task_entry): Remove.
5089
5090 (struct ada_symbol_info): Define.
5091 (enum ada_attribute): Remove.
5092 (enum ada_operator): Define.
5093
5094 (ada_get_field_index): Declare.
5095 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5096 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5097 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5098 (ada_lookup_symbol_list): New interface.
5099 (ada_decode_symbol): Declare.
5100 (ada_decode): Declare.
5101 (ada_lookup_symbol): New interface.
5102 (ada_update_initial_language): Declare.
5103 (ada_lookup_simple_minsym): Declare.
5104 (user_select_syms): New interface.
5105 (ada_sals_for_line): Declare.
5106 (ada_is_tagged_type): New interface.
5107 (ada_tag_name): Declare.
5108 (ada_lookup_struct_elt_type): Remove declaration.
5109 (ada_search_struct_field): Remove declaration.
5110 (ada_attribute_name): New interface.
5111 (ada_is_system_address_type): Declare.
5112 (ada_to_fixed_value): Remove declaration.
5113 (ada_template_to_fixed_record_type_1): Declare.
5114 (get_int_var_value): New interface.
5115 (ada_find_any_symbol): Declare.
5116 (ada_find_renaming_symbol): Declare.
5117 (ada_mangle): Rename to ada_encode.
5118 (ada_simple_renamed_entity): Remove const.
5119 (ada_main_name): Declare.
5120 (get_current_task): Rename to ada_get_current_task.
5121 (get_entry_number): Remove declaration.
5122 (ada_report_exception_break): Remove declaration.
5123 (ada_print_exception_breakpoint_nontask): Declare.
5124 (ada_print_exception_breakpoint_task): Declare.
5125 (ada_find_printable_frame): Declare.
5126
5127 * ada-lex.l: Update copyright notices.
5128 Use xmalloc and xfree instead of malloc and free.
5129 Use new interface to name_lookup.
5130 Use new interface to
5131 ada_mangle=>ada_encode.
5132 Redo handling of '$...' variable to parallel current treatment
5133 in c-exp.y.
5134 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5135 digit_to_int, strtoulst, processInt, processReal, processId,
5136 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5137 yywrap): Protoize.
5138
5139 (processInt): Use cast to remove harmless warning.
5140 (processReal): Modify to get rid of compiler warning on scan formats.
5141
5142 (processId): Replace xmalloc with obstack_alloc for name and remove
5143 call to ada_name_string_cleanup.
5144 Remove obsolete disabled code.
5145 (name_lookup): Ditto.
5146 New interface.
5147 Use obsavestring on temp_parse_space instead of savestring
5148 on name, and remove call to ada_name_string_cleanup.
5149 Free string returned from ada_simple_renamed_entity.
5150 Use new interface to ada_lookup_symbol_list.
5151 Decomment disabled code.
5152 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5153 not types.
5154 When a type name lookup succeeds as a result of
5155 lookup_primitive_typename, check for regular type entry that has not
5156 yet been read in.
5157 Limit length of chain of renamed symbols we are willing to follow.
5158 Do not break names beginning with "standard__" into segments.
5159 (block_lookup): Use new interface to ada_lookup_symbol_list.
5160
5161 * ada-typeprint.c: Update copyright notice.
5162 (demangled_type_name): Rename to decoded_type_name.
5163 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5164 (print_range_bound): Correct handling of negative
5165 bounds that make the index type looked unsigned under STABS.
5166 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5167 (print_range_type_named): Use the builtin int type if no type
5168 corresponding to the given type name could be found.
5169 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5170 Add some bullet-proofing.
5171 (print_variant_clauses): Allow for variant branches with ___XVU
5172 encodings that are not dynamic fields.
5173 Use new interface to ada_is_tagged_type.
5174 (print_record_type): Allow for fields with ___XVE encodings that
5175 are not dynamic fields.
5176 Use new interface to ada_is_tagged_type.
5177 (ada_print_type): ada_is_array_descriptor =>
5178 ada_is_array_descriptor_type.
5179
5180 * ada-valprint.c: Update copyright notice.
5181 Include gdb_string.h
5182 Include infcall.h
5183 (ui_memcpy): New function.
5184 (ada_print_floating): New function.
5185 (ada_print_str): Order arguments correctly.
5186 Correct handling of empty arrays and arrays of 0-length items.
5187 ada_is_array_descriptor => ada_is_array_descriptor_type
5188 Print values of type System.Address in hexadecimal format.
5189 Use ada_print_floating to print floating-point numbers in Ada format.
5190 Print class tag values with type names.
5191 No longer print the address of reference values. Avoids
5192 a potential confusion.
5193 (ada_value_print): Stop printing the object type for reference
5194 values, but preserve that behavior for access types. Avoids
5195 a potential confusion.
5196 Simplify one conditional expression, as the first part is now
5197 necessarily true.
5198 ada_is_array_descriptor => ada_is_array_descriptor_type
5199 Add check for arrays for null records, and print them by hand.
5200
5201 2004-06-01 Jim Blandy <jimb@redhat.com>
5202
5203 * ppc-tdep.h: Delete unused 'regoff' member.
5204 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5205
5206 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5207
5208 Fix PR symtab/1661.
5209 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5210 (hpread_read_struct_type): Likewise.
5211
5212 2004-06-01 Andrew Cagney <cagney@gnu.org>
5213
5214 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5215 instead of xasprintf.
5216 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5217 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5218 (mi_cmd_data_list_register_names)
5219 (mi_cmd_data_list_changed_registers)
5220 (mi_cmd_data_list_register_values)
5221 (get_register, mi_cmd_data_write_register_values)
5222 (mi_cmd_data_write_register_values)
5223 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5224 (mi_cmd_target_download, mi_cmd_target_select)
5225 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5226 (mi_execute_cli_command, mi_execute_async_cli_command)
5227 (mi_execute_async_cli_command): Ditto.
5228 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5229 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5230
5231 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5232 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5233 error_last_message instead of mi_error_last_message.
5234 * mi/mi-main.c (mi_error_last_message): Delete function.
5235
5236 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5237 "invalid number of columns" error. Delete redundant "out of
5238 memory" check.
5239
5240 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5241
5242 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5243 (gregset_t, fpregset_t): Remove typedefs.
5244 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5245 (REG_OFFSET): Rename argument.
5246 (i386bsd_r_reg_offset): Rename from reg_offset.
5247 (REG_ADDR): Remove macro.
5248 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5249 functions.
5250 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5251 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5252 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5253 instead of supply_gregset.
5254 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5255 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5256 instead of fill_gregset.
5257 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5258
5259 * i386bsd-nat.c: Don't include "gregset.h".
5260 (supply_gregset, fill_gregset): Make static.
5261 (supply_fpregset, fill_fpregset): Remove.
5262 * Makefile.in (i386bsd-nat.o): Update dependencies.
5263
5264 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5265
5266 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5267 "gdb_assert.h". Con't include "gregset.h".
5268 (fbsd_make_corefile_notes): Use regset-based core file support
5269 instead off fill_gregset and fill_fpregset.
5270 * Makefile.in (fbsd-proc.o): Update dependencies.
5271
5272 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5273 instructions.
5274 (m88k_frame_prev_register): Simplify code a bit.
5275
5276 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5277 (amd64_collect_fpregset): New function.
5278 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5279
5280 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5281
5282 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5283 (i386_collect_gregset): New function.
5284 (i386_supply_fpregset): Adjust comment.
5285 (i386_collect_fpregset): New function.
5286 (i386_regset_from_core_section): Use i386_collect_gregset and
5287 i386_collect_fpregset.
5288
5289 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5290 handle VALUEP being null.
5291
5292 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5293
5294 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5295
5296 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5297
5298 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5299 assembler in OpenBSD 3.5-current.
5300 (amd64obsd_sigcontext_addr): Likewise.
5301
5302 2004-05-28 Jim Blandy <jimb@redhat.com>
5303
5304 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5305 register set, so our regcache isn't declared "legacy" and our E500
5306 pseudoregister read and write functions aren't ignored.
5307 (rs6000_register_byte, rs6000_register_raw_size,
5308 rs6000_register_virtual_type, rs6000_register_convertible,
5309 rs6000_register_convert_to_virtual,
5310 rs6000_register_convert_to_raw): Deleted.
5311 (rs6000_register_type, rs6000_convert_register_p,
5312 rs6000_register_to_value, rs6000_value_to_register): New
5313 functions.
5314 (rs6000_gdbarch_init): Don't register
5315 gdbarch_deprecated_register_size,
5316 gdbarch_deprecated_register_bytes,
5317 gdbarch_deprecated_register_byte,
5318 gdbarch_deprecated_register_raw_size,
5319 gdbarch_deprecated_register_virtual_type,
5320 gdbarch_deprecated_register_convertible,
5321 gdbarch_deprecated_register_convert_to_virtual, or
5322 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5323 register gdbarch_register_type, gdbarch_convert_register_p,
5324 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5325
5326 2004-05-26 Jim Blandy <jimb@redhat.com>
5327
5328 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5329 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5330 functions, updated to match the register numberings used in GCC.
5331 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5332 rs6000_dwarf2_reg_to_regnum as register number conversions
5333 functions for STABS and Dwarf2.
5334
5335 2004-05-26 Randolph Chung <tausq@debian.org>
5336
5337 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5338 in header file.
5339
5340 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5341
5342 * NEWS: Document new "start" command.
5343
5344 2004-05-25 Randolph Chung <tausq@debian.org>
5345
5346 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5347 hppa-linux.
5348
5349 2004-05-25 Randolph Chung <tausq@debian.org>
5350
5351 * hppa-hpux-tdep.c (offsetof): Define.
5352 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5353 (hppa32_hpux_frame_base_before_sigtramp)
5354 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5355 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5356 (hppa64_hpux_frame_base_before_sigtramp)
5357 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5358 functions.
5359 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5360 (hppa_hpux_sigtramp_frame_unwind_cache)
5361 (hppa_hpux_sigtramp_frame_this_id)
5362 (hppa_hpux_sigtramp_frame_prev_register)
5363 (hppa_hpux_sigtramp_frame_unwind)
5364 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5365 (hppa_hpux_init_abi): Register sigtramp unwinder.
5366 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5367
5368 2004-05-25 Randolph Chung <tausq@debian.org>
5369
5370 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5371 and multiple stack unwinds.
5372 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5373
5374 2004-05-25 Andrew Cagney <cagney@gnu.org>
5375
5376 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5377 * symfile-mem.h: Delete file.
5378 * symfile-mem.c: Do not include "symfile-mem.h".
5379 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5380 "struct bfd_section". When an error do not bother returning NULL.
5381 (add_symbol_file_from_memory_command): Use "struct bfd" and
5382 "struct bfd_section".
5383 * Makefile.in (symfile_mem_h): Delete.
5384 (symfile-mem.o): Update dependencies.
5385
5386 2004-05-25 Nick Roberts <nickrob@gnu.org>
5387
5388 * gdb-mi.el: New file.
5389
5390 2004-05-25 Andrew Cagney <cagney@gnu.org>
5391
5392 * inftarg.c: Include "observer.h".
5393 (child_attach, child_create_inferior): Notify inferior_created.
5394 * corelow.c: Include "observer.h".
5395 (core_open): Notify inferior_created.
5396 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5397
5398 2004-05-25 Andrew Cagney <cagney@gnu.org>
5399
5400 * target.h (struct target_ops): Add from_tty to
5401 to_create_inferior.
5402 (target_create_inferior, find_default_create_inferior): Update.
5403 * infcmd.c (run_command): Update.
5404 * wince.c (child_create_inferior): Update.
5405 * win32-nat.c (child_create_inferior): Update.
5406 * uw-thread.c (uw_thread_create_inferior): Update.
5407 * thread-db.c (thread_db_create_inferior): Update.
5408 * target.c (debug_to_create_inferior)
5409 (find_default_create_inferior): Update.
5410 (maybe_kill_then_create_inferior): Update.
5411 * sol-thread.c (sol_thread_create_inferior): Update.
5412 * remote.c (extended_remote_async_create_inferior)
5413 (extended_remote_create_inferior): Update.
5414 * remote-vx.c (vx_create_inferior): Update.
5415 * remote-st.c (st2000_create_inferior): Update.
5416 * remote-sim.c (gdbsim_create_inferior): Update.
5417 * remote-sds.c (sds_create_inferior): Update.
5418 * remote-rdp.c (remote_rdp_create_inferior): Update.
5419 * remote-rdi.c (arm_rdi_create_inferior): Update.
5420 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5421 * remote-e7000.c (e7000_create_inferior): Update.
5422 * procfs.c (procfs_create_inferior): Update.
5423 * ocd.c (ocd_create_inferior): Update.
5424 * ocd.h (ocd_create_inferior): Update.
5425 * nto-procfs.c (procfs_create_inferior): Update.
5426 * monitor.c (monitor_create_inferior): Update.
5427 * lin-lwp.c (lin_lwp_create_inferior): Update.
5428 * inftarg.c (child_create_inferior): Update.
5429 * hpux-thread.c (hpux_thread_create_inferior): Update.
5430 * gnu-nat.c (gnu_create_inferior): Update.
5431
5432 2004-05-25 Andrew Cagney <cagney@gnu.com>
5433
5434 * MAINTAINERS: Update e-mail address.
5435
5436 2004-05-24 Randolph Chung <tausq@debian.org>
5437
5438 * thread.c (info_threads_command, thread_apply_all_command)
5439 (thread_apply_command, thread_command, do_captured_thread_select):
5440 Remove HPUXHPPA-specific code.
5441
5442 2004-05-24 Randolph Chung <tausq@debian.org>
5443
5444 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5445 unused symbols.
5446 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5447 references.
5448
5449 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5450
5451 * infcmd.c (kill_if_already_running): New function, extracted
5452 from run_command().
5453 (run_command): Replace extracted code by call to
5454 kill_if_already_running().
5455 (start_command): New function.
5456 (_initialize_infcmd): Add "start" command.
5457
5458 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5459
5460 Add OpenBSD/m88k support.
5461 * NEWS (New native configurations): Mention OpenBSD/m88k.
5462 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5463 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5464 * Makefile.in (m88k_tdep_h): New variable.
5465 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5466 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5467 * configure.host: Add m88*-*-openbsd*.
5468 * configure.tgt: Add m88*-*-openbsd*.
5469
5470 2004-05-24 Jim Blandy <jimb@redhat.com>
5471
5472 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5473 to approve changes.
5474
5475 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5476
5477 * symtab.c (fixup_section): Search section table when lookup by
5478 name fails.
5479
5480 2004-05-24 Randolph Chung <tausq@debian.org>
5481
5482 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5483 be "small_struct".
5484
5485 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5486
5487 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5488 register number in regcache_raw_collect call.
5489 (m68kbsd_collect_fpregset): Likewise.
5490 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5491
5492 * regset.h (struct regset): Add back `regset' member.
5493
5494 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5495
5496 * configure.in: Check for td_pcb in `struct thread'.
5497 * configure, config.in: Regenerated.
5498
5499 * dpx2-nat.c: Remove file.
5500 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5501 (dpx2-nat.o): Remove dependencies.
5502
5503 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5504 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5505 (amd64obsd_supply_pcb): New function.
5506 (_initialize_amd64obsd_nat): Enable libkvm interface.
5507 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5508 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5509 (LOADLIBES): New variable.
5510
5511 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5512 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5513 (sparc32nbsd_supply_pcb): New function.
5514 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5515 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5516 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5517 (LOADLIBES): New variable.
5518
5519 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5520
5521 * bsd-kvm.c, bsd-kvm.h: New files.
5522 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5523 "bsd-kvm.h".
5524 (i386fbsd_supply_pcb): New function.
5525 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5526 (i386fbsd-nat.o): Update dependencies.
5527 (bsd_kvm_h): New variable.
5528 (bsd-kvm.o): New dependency.
5529 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5530 (LOADLIBES): New variable.
5531
5532 * regset.c: Tweak comment.
5533 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5534 macro.
5535 * regset.h: Update copyright year.
5536 (struct regset): Remove `descr' member, add `gdbarch' member.
5537 (regset_alloc): Adjust prototype and comment.
5538 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5539 (i386_supply_fpregset): Likewise.
5540 (i386_regset_from_core_section): Update call to regset_alloc.
5541 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5542 REGSET->arch.
5543 (i386obsd_aout_regset_from_core_section): Update call to
5544 regset_alloc.
5545 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5546 REGSET->arch.
5547 (i386nbsd_aout_regset_from_core_section): Update call to
5548 regset_alloc.
5549 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5550 REGSET->arch.
5551 (amd64_regset_from_core_section): Update call to regset_alloc.
5552 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5553 REGSET->arch.
5554 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5555 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5556 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5557 (sparc32nbsd_init_abi): Update call to regset_alloc.
5558 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5559 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5560 (sparc64obsd_init_abi): Update call to regset_alloc.
5561 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5562 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5563 (sparc64nbsd_init_abi): Update call to regset_alloc.
5564 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5565 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5566 (sparc64fbsd_init_abi): Update call to regset_alloc.
5567
5568 2004-05-22 Jim Blandy <jimb@redhat.com>
5569
5570 * ppc-tdep.h (spe_register_p): New declaration.
5571 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5572 ppc_spefscr_regnum.
5573 * rs6000-tdep.c (spe_register_p): New function.
5574 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5575 spefscr.
5576 (rs6000_gdbarch_init): Initialize the new members of the tdep
5577 structure.
5578
5579 2004-05-21 Jim Blandy <jimb@redhat.com>
5580
5581 * ppc-linux-nat.c (fetch_register): Move code back to be next
5582 to the comment that describes it. (Moved code, instead of
5583 comment, for symmetry with store_register.)
5584
5585 Allocate regset structures in the gdbarch's obstack, not using
5586 xmalloc.
5587 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5588 Add 'arch' argument. Allocate the regset on arch's obstack, not
5589 using xmalloc.
5590 * regset.h (regset_alloc): Update declaration.
5591 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5592 gdbarch argument.
5593 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5594 * i386-tdep.c (i386_regset_from_core_section): Same.
5595 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5596 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5597 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5598 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5599 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5600 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5601
5602 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5603
5604 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5605
5606 2004-05-21 Jim Blandy <jimb@redhat.com>
5607
5608 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5609 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5610
5611 2004-05-20 Jim Blandy <jimb@redhat.com>
5612
5613 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5614
5615 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5616
5617 * regset.h: Make prototype const-correct.
5618 * regset.c (regset_xmalloc): Make const-correct.
5619
5620 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5621
5622 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5623 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5624 (symbol_search_name): Declare.
5625
5626 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5627 (iter_name_next_hashed): Ditto.
5628 (iter_name_next_linear): Ditto.
5629 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5630
5631 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5632 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5633 (symbol_search_name): New function.
5634
5635 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5636
5637 * minsyms.c (build_minimal_symbol_hash_tables): Change
5638 test for adding to demangled hash table to check for difference
5639 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5640
5641 2004-05-19 Jim Blandy <jimb@redhat.com>
5642
5643 Use a constructor function to create regset structures.
5644 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5645 (struct regset): Use supply_regset_ftype. Add new
5646 'collect_regset' member.
5647 (regset_xmalloc): New declaration.
5648 * regset.c: New file.
5649 * am64-tdep.c (amd64_regset_from_core_section): Use
5650 regset_xmalloc to construct regset structures.
5651 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5652 * i386-tdep.c (i386_regset_from_core_section): Same.
5653 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5654 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5655 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5656 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5657 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5658 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5659 * Makefile.in (COMMON_OBS): Add regset.o.
5660 (regset.o): New rule.
5661
5662 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5663
5664 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5665 and pthread_cond_wait.c.
5666
5667 2004-05-18 Jim Blandy <jimb@redhat.com>
5668
5669 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5670 before the mach-specific switch, and then let the individual cases
5671 override the defaults, rather than leaving them uninitialized
5672 until the switch and then setting them in each case.
5673
5674 2004-05-18 Randolph Chung <tausq@debian.org>
5675
5676 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5677 millicode functions.
5678
5679 2004-05-18 Randolph Chung <tausq@debian.org>
5680
5681 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5682 references to dld_flags_buffer consistent.
5683
5684 2004-05-18 Randolph Chung <tausq@debian.org>
5685
5686 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5687 it for unwinding the stack.
5688
5689 2004-05-18 Randolph Chung <tausq@debian.org>
5690
5691 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5692 Undefine these so we can overide them using gdbarch.
5693
5694 2004-05-18 Randolph Chung <tausq@debian.org>
5695
5696 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5697 handling for 64-bit HPUX (elf).
5698
5699 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5700
5701 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5702 constants.
5703 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5704 * ia64-tdep.c (examine_prologue): Likewise.
5705 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5706 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5707
5708 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5709
5710 * vax-tdep.c (vax_return_value): Implement
5711 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5712
5713 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5714
5715 * vax-tdep.c (vax_return_value): Fix typo.
5716
5717 2004-05-17 Andrew Cagney <cagney@redhat.com>
5718
5719 * MAINTAINERS: Mark Salter was also responsible for
5720 testsuite/config/
5721
5722 * NEWS: Mention signal fixes.
5723
5724 2004-05-17 Randolph Chung <tausq@debian.org>
5725
5726 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5727 check to see if we are unwinding an export stub. Export stubs clobber
5728 the %rp in the call path and stores the original rp in a stack slot.
5729
5730 2004-05-17 Jim Blandy <jimb@redhat.com>
5731
5732 * MAINTAINERS: Update address for J.T. Conklin.
5733
5734 2004-05-17 Randolph Chung <tausq@debian.org>
5735
5736 * hppa-tdep.c: Remove superfluous #include's.
5737 * Makefile.in (hppa-tdep.o): Update dependencies.
5738
5739 2004-05-17 Randolph Chung <tausq@debian.org>
5740
5741 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5742 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5743 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5744 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5745 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5746 Remove static function declarations.
5747
5748 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5749
5750 * alphabsd-nat.c: Update copyright year.
5751 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5752
5753 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5754 and M68K_A2_REGNUM.
5755
5756 * m68k-tdep.c (m68k_svr4_return_value): Implement
5757 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5758
5759 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5760
5761 * sol-thread.c Update copyright year. Fix various coding
5762 standards violations. Tweak a few comments.
5763 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5764 Delete prototypes.
5765
5766 2004-05-15 Randolph Chung <tausq@debian.org>
5767
5768 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5769 as pointer instead of array reference since HPUX compiler does
5770 not accept unsized array arguments.
5771 * somsolib.c (dld_flags_buffer): Use constant array size.
5772
5773 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5774
5775 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5776 offset with decimal offset.
5777 (amd64obsd_sigcontext_addr): Return correct address for entire
5778 signal trampoline.
5779
5780 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5781 instead of get_frame_base.
5782
5783 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5784 (fill_gregset): Use regcache_raw_collect.
5785
5786 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5787 ppcobsd-tdep.c.
5788
5789 * config/sparc/tm-nbsd64.h: Remove file.
5790 * config/tm-sunos.h: Remove file.
5791
5792 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5793
5794 * rs6000-tdep.c (store_param_on_stack_p): New function,
5795 an improved version of some code extracted from skip_prologue().
5796 (skip_prologue): Use store_param_on_stack_p() to detect
5797 instructions saving a parameter on the stack. Detect when r0
5798 is used to save a parameter.
5799 Do not mark "li rx, SIMM" instructions as part of the prologue,
5800 unless the following instruction is also part of the prologue.
5801
5802 2004-05-14 Andrew Cagney <cagney@redhat.com>
5803
5804 * infrun.c (handle_inferior_event): Simplify
5805 STEP_OVER_UNDEBUGGABLE.
5806
5807 * infrun.c (handle_step_into_function): Delete function.
5808 (handle_inferior_event): Inline calls to
5809 handle_step_into_function.
5810
5811 2004-05-14 Jerome Guitton <guitton@gnat.com>
5812
5813 * rs6000-nat.c: Fix a comment.
5814
5815 2004-05-12 David Anderson <davea@sgi.com>
5816
5817 Committed by Jim Blandy <jimb@redhat.com>:
5818 * regcache.c (struct regcache_descr): fix comment spelling.
5819
5820 2004-05-13 J. Brobecker <brobecker@gnat.com>
5821
5822 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5823 Fixes a link link failure.
5824
5825 2004-05-13 J. Brobecker <brobecker@gnat.com>
5826
5827 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5828 error that was causing the build to fail.
5829
5830 2004-05-13 J. Brobecker <brobecker@gnat.com>
5831
5832 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5833 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5834
5835 2004-05-13 Andrew Cagney <cagney@redhat.com>
5836
5837 * infrun.c (handle_inferior_event): Check for
5838 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5839 calls. Update comments.
5840
5841 2004-05-13 Jim Blandy <jimb@redhat.com>
5842
5843 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5844 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5845 (store_regs_user_thread, store_regs_kernel_thread): Use
5846 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5847 * ppc-linux-nat.c (fill_gregset): Same.
5848 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5849 (ppc_linux_sigtramp_cache): Same.
5850 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5851 (ppcnbsd_sigtramp_cache_init): Same.
5852 * rs6000-nat.c (fetch_core_registers): Same.
5853 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5854 (rs6000_frame_cache): Same.
5855
5856 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5857 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5858 of assuming that the gprs are numbered starting with zero.
5859 * ppc-linux-nat.c (fill_gregset): Same.
5860 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5861 * ppcnbsd-nat.c (getregs_supplies): Same.
5862 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5863 * rs6000-nat.c (fetch_core_registers): Same.
5864 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5865
5866 2004-05-07 Michael Snyder <msnyder@redhat.com>
5867
5868 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5869 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5870
5871 2004-05-13 Andrew Cagney <cagney@redhat.com>
5872
5873 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5874
5875 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5876
5877 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5878 base_address for shared libraries.
5879
5880 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5881
5882 * MAINTAINERS (write after approval): Add myself.
5883
5884 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5885
5886 * breakpoint.c (bpstat_stop_status): Add new argument
5887 STOPPED_BY_WATCHPOINT. Use it instead of testing
5888 target_stopped_data_address agaist 0 to check whether
5889 or not we stopped due to a hardware watchpoint.
5890 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5891 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5892 with new argument.
5893
5894 2004-05-12 Jim Blandy <jimb@redhat.com>
5895
5896 * configure.in: When checking whether we should use the -bbigtoc
5897 option, don't forget to restore the original value of LDFLAGS.
5898 * configure: Regenerated.
5899
5900 2004-05-12 Andrew Cagney <cagney@redhat.com>
5901
5902 * thread.c (load_infrun_state): Delete step_sp.
5903 * infrun.c (context_switch): Ditto.
5904 * inferior.h (step_sp): Ditto.
5905 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5906 * gdbthread.h (struct thread_info, save_infrun_state)
5907 (restore_infrun_state): Ditto.
5908
5909 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5910
5911 * MAINTAINERS (write after approval): Add myself.
5912
5913 2004-05-12 Andrew Cagney <cagney@redhat.com>
5914
5915 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5916 eliminate reference to step_sp.
5917 (struct execution_control_state, init_execution_control_state)
5918 (handle_inferior_event, keep_going): Delete update_step_sp and
5919 step_sp.
5920 * infcmd.c (step_sp): Note that variable is unused.
5921
5922 2004-05-11 Andrew Cagney <cagney@redhat.com>
5923
5924 * infrun.c (step_over_function): Delete function.
5925 (handle_step_into_function): Use insert_step_resume_breakpoint.
5926 (insert_step_resume_breakpoint): Fix assertion.
5927
5928 2004-05-11 Nick Roberts <nickrob@gnu.org>
5929
5930 * utils.c (defaulted_query): Just use the normal query input type
5931 when printing the annotations.
5932
5933 2004-05-11 Andrew Cagney <cagney@redhat.com>
5934
5935 * infrun.c (handle_inferior_event): Simplify code handling
5936 step-into or return-from a signal trampoline.
5937
5938 2004-05-11 Andrew Cagney <cagney@redhat.com>
5939
5940 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5941 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5942
5943 2004-05-10 Jim Blandy <jimb@redhat.com>
5944
5945 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5946 with a call to internal_error.
5947
5948 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5949 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5950 processor variant lacks those registers.
5951 (ppc_floating_point_unit_p): Change description to make it clear
5952 that this returns info about the ISA, not the ABI.
5953 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5954 return true or false by checking tdep->ppc_fp0_regnum and
5955 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5956 arch/mach switching done in rs6000_gdbarch_init; it's better to
5957 keep that logic there, and just check the results here.
5958 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5959 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5960 floating-point registers.
5961 (ppc_supply_fpregset, ppc_collect_fpregset)
5962 (rs6000_push_dummy_call, rs6000_extract_return_value)
5963 (rs6000_store_return_value): Assert that we have floating-point
5964 registers.
5965 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5966 (rs6000_frame_cache): Don't note the locations at which
5967 floating-point registers were saved if we have no fprs.
5968 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5969 registers.
5970 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5971 (store_regs_user_thread, store_regs_kernel_thread): Only call
5972 supply_fprs / fill_fprs if we actually have floating-point
5973 registers.
5974 (special_register_p): Check ppc_fpscr_regnum before matching
5975 against it.
5976 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5977 supply / collect fpscr if we don't have it.
5978 * ppc-bdm.c: #include "gdb_assert.h".
5979 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5980 have floating-point registers, since I can't test this code on
5981 FP-free systems to adapt it.
5982 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5983 fpscr and floating point register numbers if they don't exist.
5984 (fetch_register): Assert that we have floating-point registers
5985 before we reach the code that handles them.
5986 (store_register): Same. And use tdep instead of calling
5987 gdbarch_tdep again.
5988 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5989 don't have them.
5990 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5991 fprs and fpscr if we don't have them.
5992 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5993 don't have them.
5994 * ppcnbsd-nat.c: #include "gdb_assert.h".
5995 (getfpregs_supplies): Assert that we have floating-point registers.
5996 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5997 * ppcobsd-tdep.c: #include "gdb_assert.h".
5998 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5999 have floating-point registers.
6000 * rs6000-nat.c (regmap): Don't match against the fpscr and
6001 floating point register numbers if they don't exist.
6002 (fetch_inferior_registers, store_inferior_registers,
6003 fetch_core_registers): Only fetch / store / supply the
6004 floating-point registers and the fpscr if we have them.
6005 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6006 (ppcobsd-tdep.o): Update dependencies.
6007
6008 2004-05-10 Andrew Cagney <cagney@redhat.com>
6009
6010 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6011 (context_switch): Do not switch through_sigtramp_breakpoint.
6012 * gdbthread.h (save_infrun_state, load_infrun_state)
6013 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6014 and structure member.
6015 * thread.c (load_infrun_state, save_infrun_state): Update.
6016
6017 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6018
6019 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6020
6021 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6022
6023 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6024 throughout.
6025 * aclocal.m4: Regenerate.
6026
6027 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6028
6029 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6030
6031 2004-05-10 Andrew Cagney <cagney@redhat.com>
6032
6033 * infrun.c (check_sigtramp2): Delete function.
6034 (handle_inferior_event): When single stepping, and taking a
6035 signal, set a breakpoint at the signal return address. Delete
6036 redundant calls to check_sigtramp2.
6037 (insert_step_resume_breakpoint): New function.
6038 (through_sigtramp_breakpoint, handle_inferior_event)
6039 (follow_exec, wait_for_inferior, fetch_inferior_event)
6040 (currently_stepping, keep_going): Delete most uses of
6041 through_sigtramp_breakpoint, not that it should be deleted.
6042 (delete_breakpoint_current_contents): Delete function.
6043
6044 2004-05-10 Randolph Chung <tausq@debian.org>
6045
6046 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6047 target.
6048 * config/pa/tm-linux.h: New file.
6049
6050 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6051
6052 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6053 of prefixes. Don't print the prefix twice in the CLI.
6054
6055 2004-05-10 Jim Blandy <jimb@redhat.com>
6056
6057 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6058 collect all the gprs.
6059
6060 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6061 loop collecting gprs.
6062
6063 2004-05-09 Andrew Cagney <cagney@redhat.com>
6064
6065 * remote-vx.c (net_step): Delete step-range code.
6066 * remote.c (remote_resume, init_all_packet_configs)
6067 (set_remote_protocol_E_packet_cmd)
6068 (show_remote_protocol_E_packet_cmd)
6069 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6070 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6071 (show_remote_protocol_e_packet_cmd): Ditto.
6072
6073 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6074
6075 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6076
6077 * hppa-tdep.h: Update copyright year.
6078 (struct trad_frame_saved_reg): Add opaque declaration.
6079
6080 * amd64-tdep.c (amd64_return_value): Implement
6081 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6082
6083 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6084 (m68k_value_to_register): New functions.
6085 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6086 value_to_register.
6087
6088 * defs.h (enum return_value_convention): Add
6089 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6090 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6091 * infcmd.c (legacy_return_value): New function.
6092 (print_return_value): Rwerite to implement
6093 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6094 * values.c (using_struct_return): Check for inequality to
6095 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6096 RETURN_VALUE_STRUCT_CONVENTION.
6097 * i386-tdep.c (i386_return_value): Implement
6098 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6099
6100 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6101 include "symtab.h", "opcode/vax.h" and "inferior.h".
6102 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6103 to read_memory_unsigned_integer.
6104 (vax_gdbarch_init): Reorder.
6105 (_initialize_vax_tdep): Spell out prototype.
6106 * Makefile.in (vax-tdep.o): Update dependencies.
6107
6108 2004-05-08 Andrew Cagney <cagney@redhat.com>
6109
6110 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6111 * target.c (target_detach, target_disconnect): Ditto.
6112
6113 * infcall.c (call_function_by_hand): When no
6114 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6115 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6116 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6118 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6119
6120 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6121 * gdbarch.h, gdbarch.c: Re-generate.
6122 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6123 deprecated_fix_call_dummy.
6124 * v850-tdep.c (v850_gdbarch_init): Ditto.
6125 * infcall.c (call_function_by_hand): Do not call
6126 DEPRECATED_FIX_CALL_DUMMY.
6127
6128 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6129 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6130 * gdbarch.h, gdbarch.c: Re-generate.
6131 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6132 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6133 deprecated_sizeof_call_dummy_words.
6134 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6136 * v850-tdep.c (v850_gdbarch_init): Ditto.
6137 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6138 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6139 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6140 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6141 * arch-utils.h (legacy_call_dummy_words)
6142 (legacy_sizeof_call_dummy_words): Delete declarations.
6143 * arch-utils.c (legacy_call_dummy_words)
6144 (legacy_sizeof_call_dummy_words): Delete variables.
6145
6146 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6147 * gdbarch.h, gdbarch.c: Re-generate.
6148 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6149 * infcall.c (call_function_by_hand): Eliminate call to
6150 DEPRECATED_PUSH_DUMMY_FRAME.
6151 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6152 push_dummy_frame.
6153 (ns32k_push_dummy_frame): Delete function.
6154
6155 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6156 deprecated_call_dummy_breakpoint_offset or
6157 deprecated_call_dummy_start_offset.
6158 * dummy-frame.c, arm-tdep.c: Update comments.
6159 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6160 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6161 * gdbarch.h, gdbarch.c: Re-generate.
6162
6163 * infcall.c (legacy_push_dummy_code): Delete function.
6164 (push_dummy_code): Delete call.
6165
6166 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6167 * gdbarch.h, gdbarch.c: Re-generate.
6168 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6169 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6170 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6171 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6172
6173 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6174 (struct frame_info): Delete opaque declaration.
6175 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6176 * frame.c (get_frame_type): Delete call.
6177
6178 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6179 pc_in_call_dummy.
6180 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6181 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6182
6183 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6184
6185 * alphanbsd-tdep.c: Include "gdb_string.h".
6186 * armnbsd-tdep.c: Update copyright year.
6187 Include "gdb_string.h".
6188 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6189 dependencies.
6190
6191 * delta68-nat.c: Remove file.
6192 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6193 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6194 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6195 (delta68-nat.o): Remove dependency.
6196
6197 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6198 function.
6199 (m68k_gdbarch_init): Don't set
6200 deprecated_frameless_function_invocation.
6201
6202 2004-05-07 Randolph Chung <tausq@debian.org>
6203
6204 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6205 read_memory_nobpt for code reading when doing frame unwinding.
6206 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6207
6208 2004-05-07 Randolph Chung <tausq@debian.org>
6209
6210 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6211 instead of sp, handle sigaltstack case.
6212 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6213 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6214 signal handler and not that of the caller.
6215 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6216 hppa_linux_sigtramp_find_sigcontext.
6217
6218 2004-05-07 Randolph Chung <tausq@debian.org>
6219
6220 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6221 hppa-linux-nat.c.
6222 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6223 * hppa-linux-nat.c (fetch_register, store_register): Define.
6224 (fetch_inferior_registers, store_inferior_registers): Define.
6225 (supply_gregset): Add comment and clean up some unneeded code.
6226 (fill_gregset): Add comment and fix so that it saves registers in
6227 the right place in the gregset.
6228 (fill_fpregset): Fix buffer overrun problem.
6229 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6230
6231 2004-05-07 Randolph Chung <tausq@debian.org>
6232
6233 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6234 do common handling of the pcoqt register.
6235 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6236 to use helper function.
6237 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6238 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6239 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6240 generic fallback unwinder when all else fails.
6241 (hppa_gdbarch_init): Add fallback sniffer.
6242 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6243 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6244 to use helper function.
6245
6246 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6247
6248 * config/djgpp/fnchange.lst: Add translation rules for
6249 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6250
6251 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6252
6253 * frame.c (get_prev_frame_1): Work around GCC bug.
6254 * frame.h: Add comment about GCC bug.
6255
6256 2004-05-07 Andrew Cagney <cagney@redhat.com>
6257
6258 * observer.c: Include "commands.h" and "gdbcmd.h".
6259 (observer_debug, _initialize_observer): Add the
6260 command "set/show debug observer".
6261 * observer.sh: When observer debugging, log notify calls.
6262 * Makefile.in (observer.o): Update dependencies.
6263
6264 2004-05-07 Jason Molenda (jmolenda@apple.com)
6265
6266 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6267
6268 2004-05-07 Jim Blandy <jimb@redhat.com>
6269
6270 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6271 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6272 to recognize gpr regnums, instead of assuming that
6273 tdep->ppc_fp0_regnum marks the end of the general-purpose
6274 registers.
6275
6276 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6277 the given architecture has floating-point registers.
6278
6279 2004-05-07 Andrew Cagney <cagney@redhat.com>
6280
6281 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6282 macro defined to 1.
6283 * gdbarch.h, gdbarch.c: Re-generate.
6284 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6285 deprecated_use_generic_dummy_frames.
6286
6287 2004-05-07 Brian Ford <ford@vss.fsi.com>
6288
6289 * NEWS: Mention Cygwin DWARF 2 support.
6290
6291 2004-05-07 Andrew Cagney <cagney@redhat.com>
6292
6293 * objfiles.h (struct entry_info): Delete unused fields
6294 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6295 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6296 * mipsread.c (mipscoff_symfile_read): Update.
6297 * mdebugread.c (parse_partial_symbols): Update.
6298 * dwarfread.c (read_file_scope): Update.
6299 * dwarf2read.c (read_file_scope): Update.
6300 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6301 * coffread.c (complete_symtab): Update.
6302
6303 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6304
6305 * infcall.c (_initialize_infcall): Fix typo.
6306
6307 2004-05-07 Andrew Cagney <cagney@redhat.com>
6308
6309 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6310 * command.h (add_setshow_zinteger_cmd): Declare.
6311
6312 2004-05-06 Randolph Chung <tausq@debian.org>
6313
6314 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6315 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6316 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6317 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6318 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6319 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6320 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6321 definitions ...
6322 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6323 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6324 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6325 (hppa64_hpux_frame_find_saved_regs_in_sig)
6326 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6327 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6328 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6329 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6330 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6331 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6332 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6333 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6334 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6335 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6336 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6337 (hppa32_register_type, hppa_cannot_store_register)
6338 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6339 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6340 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6341 * pa64solib.c (pa64_solib_have_load_event)
6342 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6343 (pa64_solib_unloaded_library_pathname): Likewise.
6344 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6345 (som_solib_library_pathname): Likewise.
6346
6347 2004-05-05 Jim Ingham <jingham@apple.com>
6348
6349 * breakpoint.c (create_breakpoints): Copy the ignore count and
6350 thread id over from the pended breakpoint to the actual
6351 breakpoint.
6352
6353 2004-05-05 Andrew Cagney <cagney@redhat.com>
6354
6355 * gdbarch.sh (PARM_BOUNDARY): Delete.
6356 gdbarch.h, gdbarch.c: Re-generate.
6357 * valops.c (PARM_BOUNDARY): Delete macro.
6358 (value_push): Delete PARM_BOUNDARY code.
6359 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6360
6361 2004-05-04 Jim Blandy <jimb@redhat.com>
6362
6363 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6364 Don't assume that the gprs, fprs, and UISA sprs are
6365 contiguous, start at register number zero, and end with fpscr.
6366 Instead, use the numbers from the tdep structure.
6367
6368 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6369 should no longer be used in code specific to the RS6000 and its
6370 derivatives.
6371 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6372 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6373 tdep->ppc_fp0_regnum.
6374 (ppc_supply_fpregset, ppc_collect_fpregset)
6375 (rs6000_push_dummy_call, rs6000_extract_return_value)
6376 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6377 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6378 FP0_REGNUM.
6379 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6380 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6381 Same.
6382 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6383 bdm_ppc_store_registers): Same.
6384 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6385 (store_register, fill_fpregset): Same.
6386 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6387 (ppc_linux_supply_fpregset): Same.
6388 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6389 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6390 Same.
6391 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6392 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6393 ppc64_sysv_abi_return_value): Same.
6394 * rs6000-nat.c (regmap, fetch_inferior_registers)
6395 (store_inferior_registers, fetch_core_registers): Same.
6396
6397 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6398
6399 * m68knbsd-nat.c: Remove file.
6400 * m68knbsd-tdep.c: Remove file.
6401 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6402 dependencies.
6403 * configure.host: Add m68k-*-netbsdelf*.
6404 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6405 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6406 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6407 (XM_FILE): Remove.
6408 * config/m68k/nbsdelf.mh: New file.
6409 * config/m68k/nbsd.mt: New file.
6410 * config/m68k/nbsdaout.mt: Remove file.
6411 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6412 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6413 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6414 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6415 (use_struct_convention): Remove prototype.
6416 (USE_STRUCT_CONVENTION): Remove define.
6417 * config/m68k/xm-nbsd.h: Remove file.
6418
6419 2004-05-04 Michael Snyder <msnyder@redhat.com>
6420
6421 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6422 reg_struct_return method (as gcc usually does for cross targets).
6423
6424 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6425
6426 Committed by Andrew Cagney.
6427 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6428 alignment padding when accessing ucontext struct members.
6429
6430 2004-05-04 Jim Blandy <jimb@redhat.com>
6431
6432 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6433 'ppc_gplast_regnum' member.
6434 (ppc_num_gprs): New enum constant.
6435 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6436 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6437 * rs6000-nat.c (regmap, fetch_inferior_registers,
6438 store_inferior_registers): Same.
6439 * rs6000-tdep.c (e500_pseudo_register_read)
6440 (e500_pseudo_register_write): Same.
6441 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6442
6443 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6444 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6445 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6446 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6447 FPLAST_REGNUM.
6448 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6449 Same.
6450 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6451 * rs6000-nat.c (regmap, fetch_inferior_registers)
6452 (store_inferior_registers): Same.
6453
6454 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6455 with FPLAST_REGNUM.
6456
6457 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6458
6459 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6460 failure detected by recent versions of GCC.
6461 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6462 to be consistent with the usage in dwarf2_create_include_psymtab.
6463
6464 2004-05-03 Michael Snyder <msnyder@redhat.com>
6465
6466 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6467 (heuristic_proc_start): Whitespace cleanup.
6468
6469 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6470
6471 * sun3-nat.c: Remove file.
6472 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6473 dependencies.
6474 (ALLDEPFILES): Remove sun3-nat.c.
6475 (sun3-nat.o): Remove dependencies.
6476
6477 * i386-interix-nat.c, i386-interix-tdep.c,
6478 config/i386/nm-interix.h, config/i386/interix.mh,
6479 config/i386/interix.mt: Remove files.
6480 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6481 dependencies.
6482
6483 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6484
6485 * m68k-tdep.h (struct gdbarch_tdep): Add member
6486 struct_value_regnum.
6487 (m68k_svr4_init_abi): New prototype.
6488 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6489 different calling conventions.
6490 (m68k_extract_return_value): Remove code dealing with single-field
6491 structs.
6492 (m68k_store_return_value): Remove code dealing with single-field
6493 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6494 (m68k_extract_struct_value_address): Remove function.
6495 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6496 (m68k_reg_struct_return_p, m68k_return_value)
6497 (m68k_svr4_return_value): New functions.
6498 (m68k_use_struct_convention): Remove function.
6499 (m68k_push_dummy_call): Use new struct_value_regnum member of
6500 `struct gdbarch_tdep' instead of hardcoded register number to
6501 store STRUCT_ADDR.
6502 (m68k_svr4_init_abi): New function.
6503 (m68k_gdbarch_init): Don't set extract_return_value,
6504 store_return_values, deprecated_extract_struct_value_address and
6505 use_struct_convention. Set return_value instead. Initialize new
6506 struct_value_regnum member of `struct gdbarch_tdep'.
6507 * m68klinux-tdep.c: Update copyright year.
6508 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6509 (m68k_linux_extract_struct_value_address): Remove function.
6510 (m68k_linux_init_abi): Don't set extract_return_value,
6511 store_return_values, deprecated_extract_struct_value_address and
6512 use_struct_convention. Call m68k_svr4_init_abi but override the
6513 new struct_value_regnum member of `struct gdbarch_tdep'.
6514 * Makefile.in (m68k-tdep.o): Update dependencies.
6515
6516 2004-05-03 J. Brobecker <brobecker@gnat.com>
6517
6518 * dwarf2read.c (line_header): Add new included_p field in
6519 field file_names.
6520 (partial_die_info): New field has_stmt_list. New field line_offset.
6521 (dwarf2_create_include_psymtab): New function.
6522 (dwarf2_build_include_psymtabs): New function.
6523 (add_file_name): Add forward declaration. Initialize new field.
6524 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6525 to be able to determine the list of files included by the
6526 given unit, and build their associated psymtabs.
6527 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6528 files as well.
6529 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6530 (read_file_scope): Update call to dwarf_decode_lines.
6531 (read_partial_die): Handle DW_AT_stmt_list attributes.
6532
6533 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6534
6535 Unfix PR gdb/1626.
6536 * configure.in: Revert special case for osf5.*.
6537 * configure: Regenerate.
6538
6539 2004-05-02 Jim Blandy <jimb@redhat.com>
6540
6541 Move the symbol-file-from-memory functions into their own file.
6542 * symfile-mem.c, symfile-mem.h: New files.
6543 * symfile.c (symbol_file_add_from_bfd): New function.
6544 (symbol_file_add): Call symbol_file_add_from_bfd.
6545 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6546 Moved to symfile-mem.c.
6547 (_initialize_symfile): Move definition of
6548 add-symbol-file-from-memory command to symfile-mem.c.
6549 * symfile.h (symbol_file_add_from_bfd): New declaration.
6550 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6551 * config/powerpc/linux.mt (TDEPFILES): Same.
6552 * Makefile.in (SFILES): Add symfile-mem.c.
6553 (symfile_mem_h): New variable.
6554 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6555 (symfile-mem.o): New rule.
6556
6557 2004-05-01 Andrew Cagney <cagney@redhat.com>
6558
6559 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6560 frame_find_by_id instead of frame_relative_level.
6561 (do_enable_breakpoint): Ditto.
6562 * thread.c: Update copyright.
6563 (info_threads_command): Ditto, simplify.
6564
6565 * frame.c (deprecated_generic_get_saved_register): Delete
6566 function, moved to "xstormy16-tdep.c".
6567 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6568 deprecated_generic_get_saved_register from "frame.c".
6569 (xstormy16_frame_saved_register): Call
6570 xstormy16_get_saved_register.
6571 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6572 static.
6573 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6574 * frame.h (deprecated_generic_get_saved_register): Delete.
6575
6576 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6577
6578 * dwarfread.c: Update documentation on the state of dwarf-1.
6579
6580 2004-05-01 Andrew Cagney <cagney@redhat.com>
6581
6582 * stack.c (select_frame_command): Delete call to
6583 frame_relative_level.
6584 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6585 Delete #if0 code.
6586 (frame_info): Do not print FRAMELESS.
6587 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6588 (catch_info): Delete #if0 code.
6589
6590 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6591 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6592 of frame_relative_level.
6593 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6594 to SENTINEL_FRAME.
6595 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6596 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6597 frame_relative_level.
6598
6599 * frame.h (deprecated_set_frame_type): Delete declaration.
6600 * frame.c (deprecated_set_frame_type): Delete function, update
6601 comments.
6602
6603 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6604 * gdbarch.h, gdbarch.c: Re-generate.
6605 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6606 (shnbsd_pc_in_sigtramp): Delete.
6607 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6608 pc_in_sigtramp.
6609 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6610 pc_in_sigtramp.
6611 * frame.h: Update comments.
6612 * ppc-linux-tdep.c: Update comments.
6613 * breakpoint.c (bpstat_what): Update comments.
6614
6615 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6616 m68klinux-tdep.o's dependencies, were previously added to
6617 m68klinux-nat.o.
6618
6619 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6620 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6621 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6622 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6623 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6624
6625 * Makefile.in (m68klinux-nat.o): Update dependencies.
6626 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6627 (m68k_linux_sigtramp_frame_cache)
6628 (m68k_linux_sigtramp_frame_this_id)
6629 (m68k_linux_sigtramp_frame_prev_register)
6630 (m68k_linux_sigtramp_frame_unwind)
6631 (m68k_linux_sigtramp_frame_sniffer)
6632 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6633 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6634 names, use trad-frame.h.
6635 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6636 (struct m68k_sigtramp_info): Delete.
6637 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6638 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6639 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6640 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6641 "m68klinux-tdep.c".
6642
6643 * infrun.c (check_sigtramp2): Delete check for
6644 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6645
6646 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6647
6648 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6649
6650 2004-05-01 Andrew Cagney <cagney@redhat.com>
6651
6652 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6653 (frv_linux_sigtramp_frame_cache)
6654 (frv_linux_sigtramp_frame_this_id)
6655 (frv_linux_sigtramp_frame_prev_register)
6656 (frv_linux_sigtramp_frame_unwind)
6657 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6658 include "linux" in function and variable names, directly call
6659 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6660 the latest trad-frame code.
6661 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6662 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6663 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6664 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6665 * frv-tdep.c (frv_sigtramp_frame_cache)
6666 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6667 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6668 frv-linux-tdep.c.
6669 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6670 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6671 (frv_set_sigcontext_reg_addr): Delete function.
6672
6673 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6674 (DEPRECATED_SIGTRAMP_END): Delete.
6675 * gdbarch.h, gdbarch.c: Re-generate.
6676 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6677 * config/vax/tm-vaxbsd.h: Update copyright.
6678 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6679 (DEPRECATED_IN_SIGTRAMP): Define.
6680 * config/m68k/tm-nbsd.h: Update copyright.
6681 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6682 (DEPRECATED_IN_SIGTRAMP): Define.
6683
6684 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6685
6686 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6687 encondings. Fixes PR gdb/1628.
6688
6689 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6690 DW_CFA_restore state without a matching DW_CFA_remember_state
6691 instead of aborting. Fixes PR backtrace/1589.
6692
6693 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6694
6695 * MAINTAINERS: Add self as AIX maintainer.
6696 Update my e-mail address in write-after-approval section.
6697
6698 2004-04-30 Andrew Cagney <cagney@redhat.com>
6699
6700 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6701 (legacy_get_prev_frame): Ditto.
6702
6703 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6704 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6705 * mipsread.c (sigtramp_address): Delete extern variable.
6706 (mipscoff_new_init): Delete reference.
6707 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6708 (fixup_sigtramp): Delete function.
6709 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6710 (fixup_sigtramp): Delete declarations.
6711
6712 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6713 deprecated_pc_in_sigtramp.
6714 (ppcnbsd_pc_in_sigtramp): Delete function.
6715
6716 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6717
6718 * config/m68k/nm-nbsd.h: Tweak comments.
6719 * config/m68k/nm-nbsdaout.h: Likewise.
6720
6721 2004-04-30 Andrew Cagney <cagney@redhat.com>
6722
6723 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6724 legacy_pc_in_sigtramp.
6725 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6726
6727 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6728
6729 Add OpenBSD/m68k support.
6730 * NEWS (New native configurations): Mention OpenBSD/m68k.
6731 * m68kbsd-tdep.c: New file.
6732 * m68kbsd-nat.c: New file.
6733 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6734 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6735 * configure.host: Add m68k-*-openbsd.
6736 * configure.tgt: Add m68k-*-openbsd.
6737 * config/m68k/tm-obsd.h: New file.
6738 * config/m68k/obsd.mt: New file.
6739 * config/m68k/obsd.mh: New file.
6740 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6741 m68kbsd-tdep.c.
6742
6743 2004-04-30 Andrew Cagney <cagney@redhat.com>
6744
6745 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6746 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6747
6748 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6749
6750 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6751 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6752
6753 2004-04-30 Brian Ford <ford@vss.fsi.com>
6754
6755 Revert 2004-04-16 change.
6756 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6757 (i386_coff_init_abi): Remove.
6758 * i386-tdep.h (i386_coff_init_abi): Remove.
6759 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6760
6761 2004-04-30 Andrew Cagney <cagney@redhat.com>
6762
6763 * blockframe.c (find_pc_partial_function): Delete use of
6764 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6765 DEPRECATED_SIGTRAMP_END.
6766
6767 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6768 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6769 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6770 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6771 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6772
6773 * defs.h (deprecated_inside_entry_file): Delete declaration.
6774 * blockframe.c (deprecated_inside_entry_file): Delete function.
6775 (legacy_frame_chain_valid): Delete call.
6776 * sh64-tdep.c (sh64_frame_chain): Delete call.
6777 * objfiles.h: Update comments.
6778 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6779 call.
6780 * frame.c (get_prev_frame): Delete call, update comments.
6781
6782 2004-04-30 Brian Ford <ford@vss.fsi.com>
6783
6784 * MAINTAINERS (Write After Approval): Add myself.
6785
6786 2004-04-30 Andrew Cagney <cagney@redhat.com>
6787
6788 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6789 * gdbarch.h, gdbarch.c: Re-generate.
6790 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6791 code.
6792
6793 2004-04-30 Andrew Cagney <cagney@redhat.com>
6794
6795 * gdb-events.sh (selected_thread_changed)
6796 (selected_frame_level_changed, target_changed): Delete.
6797 * gdb-events.h, gdb-events.c: Re-generate.
6798 * valops.c (value_assign): Update.
6799 * stack.c (select_frame_command, up_silently_base)
6800 (down_silently_base): Update.
6801
6802 2004-04-29 Andrew Cagney <cagney@redhat.com>
6803
6804 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6805 registers correctly.
6806 (print_gp_register_row, mips32_heuristic_proc_desc)
6807 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6808 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6809 references to mips_isa_regsize.
6810
6811 2004-04-29 Andrew Cagney <cagney@redhat.com>
6812
6813 * mips-tdep.c (struct gdbarch_tdep): Delete
6814 mips_fp_register_double.
6815 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6816 mips_abi_regsize.
6817 (mips_gdbarch_init): Do not set mips_fp_register_double.
6818 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6819
6820 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6821
6822 Committed by Andrew Cagney.
6823 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6824 function calls.
6825
6826 2004-04-29 Andrew Cagney <cagney@redhat.com>
6827
6828 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6829 gdbarch, use mips_abi, update callers.
6830 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6831 mips_abi_regsize, update callers.
6832 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6833 mips_default_abi_regsize.
6834 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6835 mips_default_abi_regsize.
6836
6837 2004-04-29 Andrew Cagney <cagney@redhat.com>
6838
6839 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6840 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6841 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6842 mips_default_abi_regsize.
6843 (mips_isa_regsize): Rename mips_regisze.
6844 * mipsnbsd-tdep.c: Update.
6845 * mips-linux-tdep.c: Update.
6846 * irix5-nat.c: Update.
6847 * mips-tdep.h (mips_isa_regsize): Update.
6848
6849 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6850 Delete all disabled code.
6851 * gdb-events.h, gdb-events.c: Re-generate.
6852
6853 2004-04-19 Jerome Guitton <guitton@gnat.com>
6854 Mark Kettenis <kettenis@gnu.org>
6855
6856 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6857 the function begins with a branch instruction.
6858
6859 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6860
6861 * i386-tdep.c: Fix spelling mistakes.
6862
6863 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6864 Andrew Cagney <cagney@redhat.com>
6865
6866 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6867 <sys/proc.h>.
6868 * acconfig.h: Provide default _KMEMUSER value.
6869 * config.in, configure: Re-generate.
6870 * NEWS: Mention fix.
6871
6872 2004-04-24 Randolph Chung <tausq@debian.org>
6873
6874 * configure.host (hppa*-*-linux*): New target.
6875 * configure.tgt (hppa*-*-linux*): Likewise.
6876 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6877 gdbarch_init_osabi() call earlier so that osabi-specific frame
6878 unwinders can be registered first.
6879 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6880 hppa-linux-nat.c.
6881 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6882 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6883 * config/pa/linux.mh: New file.
6884 * config/pa/linux.mt: New file.
6885 * config/pa/nm-linux.h: New file.
6886 * config/pa/xm-linux.h: New file.
6887 * hppa-linux-nat.c: New file.
6888 * hppa-linux-tdep.c: New file.
6889
6890 2004-04-28 Randolph Chung <tausq@debian.org>
6891
6892 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6893 return values.
6894 (hppa32_push_dummy_call): Fix small struct and floating point argument
6895 passing, and make sure the stack frame is properly aligned.
6896
6897 2004-04-28 Andrew Cagney <cagney@redhat.com>
6898
6899 * stack.c (print_stack_frame): Fix description.
6900
6901 * NEWS: Mention gdb/gdbserver/configure execute permission
6902 changed. PR server/519.
6903
6904 2004-04-28 Andrew Cagney <cagney@redhat.com>
6905
6906 * stack.c (print_stack_frame_stub): Delete declaration.
6907 (struct print_stack_frame_args, print_stack_frame)
6908 (print_frame_info, print_frame): Replace "source" with print what.
6909 Replace "print" with "print_level". Replace "args" with
6910 "print_args".
6911 * frame.h (show_and_print_stack_frame, print_stack_frame)
6912 (print_frame_info): Update declarations.
6913 * stack.c (select_and_print_frame, frame_command)
6914 (current_frame_command, up_command, down_command): Update calls -
6915 use get_selected_frame, pass "enum print_what" for source, do not
6916 call frame_relative_level.
6917 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6918 * remote-rdp.c (remote_rdp_open): Ditto.
6919 * remote-mips.c (common_open): Ditto.
6920 * remote-e7000.c (e7000_start_remote): Ditto.
6921 * ocd.c (ocd_start_remote): Ditto.
6922 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6923 * infrun.c (normal_stop): Ditto.
6924 * inflow.c (kill_command): Ditto.
6925 * infcmd.c (finish_command): Ditto.
6926 * corelow.c (core_open): Ditto.
6927 * tracepoint.c (finish_tfind_command): Ditto.
6928 * thread.c (info_threads_command, info_threads_command)
6929 (restore_current_thread, do_captured_thread_select): Ditto.
6930 * ada-tasks.c (task_command): Ditto.
6931
6932 2004-04-26 Orjan Friberg <orjanf@axis.com>
6933
6934 * frame.c: Include "observer.h".
6935 (frame_observer_target_changed): New function.
6936 (_initialize_frame): Attach target_changed observer.
6937 * regcache.c: Include "observer.h".
6938 (regcache_observer_target_changed): New function.
6939 (_initialize_regcache): Attach target_changed observer.
6940 * valops.c: Include "observer.h".
6941 (value_assign): Notify target_changed event when modifying register.
6942 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6943
6944 2004-04-26 Orjan Friberg <orjanf@axis.com>
6945
6946 From Paul Koning <pkoning@equallogic.com>:
6947 * breakpoint.c (free_valchain): New function.
6948 (insert_bp_location, delete_breakpoint): Use free_valchain.
6949 (remove_breakpoint): Do not remove the valchain.
6950 (bpstat_stop_status): If not stopped by watchpoint, skip
6951 watchpoints when generating stop status list.
6952 * infrun.c (handle_inferior_event): Make
6953 stepped_after_stopped_by_watchpoint a global variable.
6954 * remote.c (remote_stopped_data_address): Return watch data
6955 address rather than zero if stepped_after_stopped_by_watchpoint is
6956 set.
6957
6958 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6959
6960 Fix PR gdb/1626.
6961 * configure.in: Check for curses after termcap.
6962 On osf5.*, do not check for ncurses.
6963 * configure: Regenerate.
6964
6965 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6966
6967 * ppcobsd-nat.c: Include "ppc-tdep.h".
6968 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6969
6970 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6971 Fixes PR tdep/1623 and PR tdep/1624.
6972
6973 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6974
6975 * xmodem.h, xmodem.c: Remove files.
6976 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6977
6978 2004-04-23 Randolph Chung <tausq@debian.org>
6979
6980 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6981 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6982 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6983 for handling stackless frames.
6984 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6985
6986 2004-04-23 Randolph Chung <tausq@debian.org>
6987
6988 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6989 starts at a pc before the frame is created.
6990
6991 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6992
6993 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6994
6995 2004-04-23 Jerome Guitton <guitton@gnat.com>
6996
6997 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6998 use convert_typed_floating to get the appropriate format.
6999
7000 2004-04-22 Randolph Chung <tausq@debian.org>
7001
7002 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7003 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7004 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7005 (hppa_sign_extend): Add prototype.
7006 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7007 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7008 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7009 hppa targets will also use these functions.
7010 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7011 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7012 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7013 (hppa_gdbarch_init): Remove gdbarch setting of
7014 skip_trampoline_code, in_solib_call_trampoline and
7015 in_solib_return_trampoline.
7016 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7017 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7018 hppa_in_solib_call_trampoline.
7019 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7020 Moved from hppa-tdep.c.
7021 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7022 in_solib_call_trampoline and in_solib_return_trampoline.
7023
7024 2004-04-22 Randolph Chung <tausq@debian.org>
7025
7026 * hppa-tdep.c (hppa_debug): New variable.
7027 (find_unwind_entry, hppa_frame_cache): Add debug output.
7028 (_initialize_hppa_tdep): Add command to set debug flag.
7029
7030 2004-04-22 Andrew Cagney <cagney@redhat.com>
7031
7032 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7033 "trad-frame.h".
7034 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7035 signal trampoline unwinder.
7036 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7037
7038 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7039
7040 Add OpenBSD/powerpc support.
7041 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7042 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7043 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7044 (ppc_collect_fpregset): New prototypes.
7045 * ppcobsd-nat.c: New file.
7046 * ppcobsd-tdep.c: New file.
7047 * ppcobsd-tdep.h: New file.
7048 * rs6000-tdep.c: Include "regset.h".
7049 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7050 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7051 New functions.
7052 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7053 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7054 (rs6000-tdep.o): Update dependencies.
7055 * configure.host: Add powerpc-*-openbsd.
7056 * configure.tgt: Add powerpc-*-openbsd.
7057 * config/powerpc/obsd.mh: New file.
7058 * config/powerpc/nm-obsd.h: New file.
7059 * config/powerpc/obsd.mt: New file.
7060
7061 2004-04-22 Andrew Cagney <cagney@redhat.com>
7062
7063 * frame.h (show_frame_info): Delete declaration.
7064
7065 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7066 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7067 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7068 * frv-tdep.c (frv_frame_this_id): Ditto.
7069 * avr-tdep.c (avr_frame_this_id): Ditto.
7070
7071 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7072
7073 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7074
7075 2004-04-22 Jim Blandy <jimb@redhat.com>
7076
7077 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7078 register number zero.
7079
7080 2004-04-21 Michael Snyder <msnyder@redhat.com>
7081
7082 * mips-tdep.c (heuristic_proc_start):
7083 Warning() already prefixes "Warning: ".
7084
7085 2004-04-21 Andrew Cagney <cagney@redhat.com>
7086
7087 * annotate.h (deprecated_annotate_starting_hook)
7088 (deprecated_annotate_stopped_hook)
7089 (deprecated_annotate_exited_hook)
7090 (deprecated_annotate_signal_hook)
7091 (deprecated_annotate_signalled_hook): Deprecate.
7092 * tracepoint.h (deprecated_create_tracepoint_hook)
7093 (deprecated_delete_tracepoint_hook)
7094 (deprecated_modify_tracepoint_hook)
7095 (deprecated_trace_find_hook)
7096 (deprecated_trace_start_stop_hook): Deprecate.
7097 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7098 * remote.h (deprecated_target_resume_hook)
7099 (deprecated_target_wait_loop_hook): Deprecate.
7100 * gdbcore.h (deprecated_exec_file_display_hook)
7101 (deprecated_file_changed_hook): Deprecate.
7102 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7103 * defs.h (deprecated_modify_breakpoint_hook)
7104 (deprecated_command_loop_hook, deprecated_show_load_progress)
7105 (deprecated_print_frame_info_listing_hook)
7106 (deprecated_query_hook, deprecated_warning_hook)
7107 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7108 (deprecated_delete_breakpoint_hook)
7109 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7110 (deprecated_readline_begin_hook, deprecated_readline_hook)
7111 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7112 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7113 (deprecated_context_hook, deprecated_target_wait_hook)
7114 (deprecated_attach_hook, deprecated_detach_hook)
7115 (deprecated_call_command_hook, deprecated_set_hook)
7116 (deprecated_error_hook, deprecated_error_begin_hook)
7117 (deprecated_ui_load_progress_hook): Deprecate.
7118 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7119 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7120 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7121 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7122 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7123 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7124 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7125 * annotate.c, aix-thread.c: Update.
7126
7127 2004-04-21 Andrew Cagney <cagney@redhat.com>
7128
7129 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7130 * vaxnbsd-tdep.c: Include "gdb_string.h".
7131
7132 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7133 (add_symbol_file_from_memory_command): #if 0 function body, call
7134 error instead.
7135
7136 2004-04-21 Andrew Cagney <cagney@redhat.com>
7137
7138 * gdbcore.h: Update copyright.
7139 (deprecated_add_core_fns): Rename add_core_fns.
7140 * win32-nat.c (_initialize_core_win32): Update.
7141 * sun3-nat.c (_initialize_core_sun3): Update.
7142 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7143 * rs6000-nat.c (_initialize_core_rs6000): Update.
7144 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7145 * nto-tdep.c (_initialize_nto_tdep): Update.
7146 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7147 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7148 * mips-nat.c (_initialize_core_mips): Update.
7149 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7150 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7151 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7152 * lynx-nat.c (_initialize_core_lynx): Update.
7153 * irix5-nat.c (_initialize_core_irix5): Update.
7154 * i386-interix-nat.c (_initialize_core_interix): Update.
7155 * cris-tdep.c (_initialize_cris_tdep): Update.
7156 * corelow.c (deprecated_add_core_fns): Update.
7157 * core-regset.c (_initialize_core_regset): Update.
7158 * core-aout.c (_initialize_core_aout): Update.
7159 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7160 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7161 * alpha-nat.c (_initialize_core_alpha): Update.
7162
7163 2004-04-21 Jim Blandy <jimb@redhat.com>
7164
7165 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7166
7167 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7168
7169 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7170 Delete.
7171 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7172 (read_attribute_value): Update calls to dwarf_alloc_block.
7173 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7174 dwarf2_tmp_obstack.
7175 (psymtab_to_symtab_1): Likewise. Clean up using
7176 free_stack_comp_unit.
7177 (add_to_cu_func_list): Use the comp_unit_obstack.
7178
7179 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7180
7181 * dwarf2read.c (dwarf2_flag_true_p): New function.
7182 (die_is_declaration): Use the function above. Add some comments.
7183
7184 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7185
7186 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7187 architecture when registering sparcnbsd_core_osabi_sniffer.
7188 Adjust comment.
7189
7190 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7191
7192 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7193 return value.
7194
7195 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7196 * i386-tdep.c: Correct register numbering scheme comments
7197 throughout.
7198 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7199 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7200 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7201 (i386_gdb_arch_init): Likewise.
7202
7203 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7204 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7205 ppcnbsd-tdep.o.
7206
7207 * m68k-tdep.h: Tweak comments.
7208 * m68k-tdep.c: Tweak comment.
7209
7210 2004-04-17 Randolph Chung <tausq@debian.org>
7211
7212 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7213 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7214 (hppa_hpux_som_init_abi): Set is_elf to 0.
7215 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7216 * hppa-tdep.c (low_text_segment_address): Remove global.
7217 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7218 section offset to calculate segment address.
7219 (internalize_unwinds): Define low_text_segment_address as local and
7220 pass to record_text_segment_lowaddr for ELF targets.
7221 (hppa_gdbarch_init): Zero fill tdep structure.
7222 (hppa_dump_tdep): Print tdep structure.
7223 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7224
7225 2004-04-17 Randolph Chung <tausq@debian.org>
7226
7227 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7228 (hppa_gdbarch_init): Set pseudo_register_read.
7229 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7230 * regcache.c (supply_register): Remove check for
7231 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7232
7233 2004-04-17 Randolph Chung <tausq@debian.org>
7234
7235 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7236 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7237 (hpread_adjust_stack_address): Move to hpread.c.
7238 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7239 obj_private_struct): Move from tm-hppa.h.
7240 * hpread.c (hppa-tdep.h): Include.
7241 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7242 (hpread_read_function_type, hpread_read_doc_function_type)
7243 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7244 directly.
7245 * pa64solib.c (hppa-tdep.h): Include.
7246 * somsolib.c (hppa-tdep.h): Include.
7247 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7248 inferior_status): Remove unused forward declarations.
7249 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7250 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7251 obj_private_struct): Move to hppa-tdep.h.
7252 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7253
7254 2004-04-17 Randolph Chung <tausq@debian.org>
7255
7256 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7257 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7258 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7259 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7260 Remove forward declaration and make static.
7261 (hppa_reg_struct_has_addr): Remove.
7262
7263 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7264
7265 * observer.sh: Move comments in sed command to first column.
7266
7267 2004-04-16 Jason Molenda (jmolenda@apple.com)
7268
7269 * frame.c: Minor typeo corrections in comments.
7270
7271 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7272
7273 * observer.c (observer_test_first_notification_function): Update
7274 function profile.
7275 (observer_test_second_notification_function): Likewise.
7276 (observer_test_third_notification_function): Likewise.
7277
7278 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7279
7280 From Brian Ford <ford@vss.fsi.com>:
7281 * i386-tdep.c (i386_coff_init_abi): New function.
7282 * i386-tdep.h (i386_coff_init_abi): New prototype.
7283 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7284 register number translation functions for DWARF and DWARF 2.
7285
7286 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7287
7288 * dwarf2read.c: Back out my previous change, it was incorrect.
7289
7290 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7291
7292 * dwarf2read.c: Include "hashtab.h".
7293 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7294 has_namespace_info.
7295 (struct partial_die_info): Add comments. Use bitfields to reduce
7296 memory footprint. Add scope, scope_set, has_specification,
7297 spec_offset, die_parent, die_child, and die_sibling.
7298 (peek_die_abbrev): Add prototype.
7299 (partial_read_comp_unit_head): New function, broken out from
7300 dwarf2_build_psymtabs_hard.
7301 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7302 Use partial_read_comp_unit_head. Initialize the CU and
7303 comp_unit_obstack. Update calls to read_partial_die and
7304 scan_partial_symbols. Use free_stack_comp_unit and
7305 load_partial_dies.
7306 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7307 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7308 Update calls to helper functions. Remove NAMESPACE argument.
7309 Update comments.
7310 (partial_die_parent_scope, partial_die_full_name): New functions.
7311 (add_partial_symbol): Remove namespace argument. Update call to
7312 pdi_needs_namespace. Use partial_die_full_name. Handle
7313 DW_TAG_namespace. Check has_namespace_info flag.
7314 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7315 tag. Handle namespaces.
7316 (add_partial_namespace, add_partial_enumeration): Simplify.
7317 (guess_structure_name): New function, derived from
7318 add_partial_structure.
7319 (add_partial_structure): Remove.
7320 (determine_class_name): Update comment.
7321 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7322 (is_type_tag_for_partial, load_partial_dies): New functions.
7323 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7324 Record specifications instead of following them immediately.
7325 (find_partial_die_in_comp_unit, find_partial_die)
7326 (fixup_partial_die, free_stack_comp_unit)
7327 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7328 (partial_die_hash, partial_die_eq): New functions.
7329 * Makefile.in (hashtab_h): Define.
7330 (dwarf2read.o): Update dependencies.
7331 (observer_inc, observer_h): Move to the correct section.
7332
7333 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7334
7335 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7336 (die_is_declaration): Use the function above. Add comment.
7337
7338 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7339
7340 * dwarf2read.c (read_structure_scope): Identify stub types
7341 using die_is_declaration() only.
7342
7343 2004-04-15 Roland McGrath <roland@redhat.com>
7344
7345 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7346 argument instead of NAME.
7347 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7348 in call to symbol_file_add_with_addrs_or_offsets.
7349 (build_addr_info): New function, helper for ...
7350 (symbol_file_add_from_memory): New function.
7351 (add_symbol_file_from_memory_command): New function using that.
7352 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7353 (pre_add_symbol_hook): Add const to argument type.
7354 * symfile.h (symbol_file_add_from_memory): Declare it.
7355
7356 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7357
7358 * NEWS (New native configurations): Mention OpenBSD/vax.
7359 * configure.host: Add vax-*-openbsd*.
7360 * config/vax/obsd.mh: New file.
7361 * config/vax/nm-obsd.h: New file.
7362
7363 * vax-tdep.c: Include "regset.h".
7364 (vax_supply_gregset): New function.
7365 (vax_gregset): New variable.
7366 (vax_regset_from_core_section): New function.
7367 (vax_gdbarch_init): Set regset_from_core_section.
7368 * Makefile.in (vax-tdep.o): Update dependencies.
7369
7370 2004-04-15 Andrew Cagney <cagney@redhat.com>
7371
7372 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7373 (observer_normal_stop_notification_stub)
7374 (observer_attach_normal_stop, observer_detach_normal_stop):
7375 Delete, replaced by #include "observer.inc".
7376 * infrun.c (normal_stop): Pass "stop_bpstat" to
7377 observer_notify_normal_stop.
7378 * Makefile.in (observer_inc): Define.
7379 (observer.o): Update dependencies.
7380 (observer.h, observer.inc): New rules.
7381 * observer.h: Delete file.
7382 * observer.sh: New file.
7383
7384 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7385
7386 * vax-tdep.c (vax_frame_cache): Fix typo.
7387
7388 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7389
7390 * NEWS (New native configurations): Mention NetBSD/vax.
7391 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7392 * config/vax/nbsdelf.mh: New file.
7393 * config/vax/nbsdaout.mh: New file.
7394 * config/vax/nm-nbsd.h: New file.
7395 * config/vax/nm-nbsdaout.h: New file.
7396
7397 * vaxnbsd-tdep.c: New file.
7398 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7399 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7400 * config/vax/nbsd.mt: New file.
7401 * config/vax/tm-nbsd.h: New file.
7402
7403 * Makefile.in (vaxbsd-nat.o): New dependency.
7404
7405 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7406 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7407 struct_addr arguments. Don't push return value address.
7408 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7409 arguments to vax_store_arguments. Store return value address in
7410 R1.
7411 (vax_store_struct_return, vax_extract_return_value)
7412 (vax_store_return_value): Remove functions.
7413 (vax_return_value): New function.
7414 (vax_gdbarch_init): Set return value. Don't set
7415 deprecated_store_struct_return, deprecated_extract_struct_return
7416 and deprecated_store_return_value.
7417
7418 2004-04-14 Andreas Schwab <schwab@suse.de>
7419
7420 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7421 value buffer.
7422 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7423
7424 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7425
7426 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7427 (vax_unwind_dummy_id): New functions.
7428 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7429 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7430 variables.
7431 (vax_fix_call_dummy): Remove function.
7432 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7433 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7434 call_dummy_location, deprecated_call_dummy_words,
7435 deprecated_sizeof_call_dummy_words,
7436 deprecated_call_dummy_breakpoint_offset,
7437 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7438 and deprecated_dummy_write_sp.
7439
7440 2004-04-13 David Carlton <carlton@kealia.com>
7441
7442 * MAINTAINERS: Move myself to "paper trail" section.
7443
7444 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7445
7446 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7447 "trad-frame.h".
7448 (vax_frame_init_saved_regs): Remove function.
7449 (vax_sigtramp_saved_pc): Remove function.
7450 (vax_frame_saved_pc): Remove function.
7451 (vax_frame_args_address): Remove function.
7452 (vax_frame_num_args): Rewrite.
7453 (vax_frame_chain): Remove function.
7454 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7455 VAX_FP_REGNUM.
7456 (vax_pop_frame): Likewise.
7457 (vax_saved_pc_after_call): Remove function.
7458 (struct vax_frame_cache): New structure.
7459 (vax_frame_cache): New function.
7460 (vax_frame_this_id): New function.
7461 (vax_frame_prev_register): New function.
7462 (vax_frame_unwind): New variable.
7463 (vax_frame_sniffer): New function.
7464 (vax_frame_base_address): New function.
7465 (vax_frame_args_address): New function.
7466 (vax_frame_base): New variable.
7467 (vax_unwind_pc): New function.
7468 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7469 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7470 deprecated_frame_chain, deprecated_frame_saved_pc,
7471 deprecated_frame_args_address and
7472 deprecated_frame_init_saved_regs.
7473 * Makefile.in (vax-tdep.o): Update dependencies.
7474
7475 * vaxbsd-nat.c: New file.
7476
7477 * vax-tdep.h: Update copyright year. Adjust comments.
7478 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7479 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7480 (vax_regnum): New enum. Replacing...
7481 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7482 (VAX_PS_REGNUM): ... these removed macros.
7483 * vax-tdep.c (vax_register_name): Remove prototype.
7484 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7485 (vax_register_byte, vax_register_raw_size,
7486 vax_register_virtual_size, vax_register_virtual_type): Remove
7487 functions.
7488 (vax_register_type): New function.
7489 (vax_breakpoint_from_pc): Reorganize.
7490 (vax_gdbarch_init): Set register_type. Don't set
7491 deprecated_register_size, deprecated_register_bytes,
7492 deprecated_register_byte, deprecated_register_raw_size,
7493 deprecated_max_register_raw_size,
7494 deprecated_register_virtual_size,
7495 deprecated_max_register_virtual_size and
7496 deprecated_register_virtual_type. Add comment on stack direction.
7497
7498 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7499
7500 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7501 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7502 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7503
7504 2004-04-10 Randolph Chung <tausq@debian.org>
7505
7506 * MAINTAINERS (write after approval): Add myself.
7507
7508 2004-04-07 Randolph Chung <tausq@debian.org>
7509
7510 * hppa-tdep.c (hppa_inner_than): Remove.
7511 (is_pa_2): Remove unused static variable.
7512 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7513
7514 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7515
7516 * language.h (language_defn): Add new la_post_parser field.
7517 * parser-defs.h (null_post_parser): New declaration (default for
7518 la_post_parser).
7519
7520 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7521 insert call to that function.
7522 (parse_exp_in_context): New function, including code formerly in
7523 parse_exp_1. Calls language-dependent post-parser after
7524 prefixification.
7525 (parse_expression_in_context): New exported function.
7526 (null_post_parser): New definition.
7527 * expression.h (parse_expression_in_context): Add declaration.
7528
7529 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7530 * c-lang.c (c_language_defn): Ditto.
7531 (cplus_language_defn): Ditto.
7532 (asm_language_defn): Ditto.
7533 (minimal_language_defn): Ditto.
7534 * f-lang.c (f_language_defn): Ditto.
7535 * jv-lang.c (java_language_defn): Ditto.
7536 * language.c (unknown_language_defn): Ditto.
7537 (auto_language_defn): Ditto.
7538 (local_language_defn): Ditto.
7539 * m2-lang.c (m2_language_defn): Ditto.
7540 * scm-lang.c (scm_language_defn): Ditto.
7541 * obj-lang.c (objc_language_defn): Ditto.
7542
7543 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7544
7545 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7546 (amd64nbsd_mcontext_addr): New function.
7547 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7548 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7549 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7550
7551 * corelow.c (core_xfer_partial): Fix coding standards violation.
7552 Add support for TARGET_OBJECT_WCOOKIE.
7553
7554 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7555 deprecated_pc_in_sigtramp.
7556 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7557 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7558 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7559 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7560 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7561 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7562 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7563
7564 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7565 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7566 Fix typo.
7567
7568 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7569 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7570 (amd64_collect_fxsave): Likewise.
7571
7572 * i386-sol2-tdep.c: Include "gdb_string.h".
7573 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7574 name.
7575 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7576
7577 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7578
7579 * i386-sol2-tdep.c: Include "solib-svr4.h".
7580 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7581 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7582 * config/i386/tm-i386sol2.h: Include :solib.h".
7583 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7584 solib-svr4.o and solib-legacy.o.
7585 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7586 solib-svr4.o.
7587
7588 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7589
7590 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7591 whether a register is supplied by PTRACE_GETFPREGS.
7592 (store_inferior_registers): Likewise.
7593 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7594 whether a register is supplied by PT_GETFPREGS.
7595 (store_inferior_registers): Likewise.
7596
7597 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7598 * config/i386/linux64.mt (TDEPFILES): Likewise.
7599
7600 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7601
7602 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7603 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7604 the program counter is in the range specified by `struct
7605 gdbarch_tdep'.
7606 * amd64-linux-tdep.c: Include "symtab.h".
7607 (amd64_linux_pc_in_sigtramp): Remove function.
7608 (amd64_linux_sigtramp_p): New function.
7609 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7610 deprecated_pc_in_sigtramp.
7611 * amd64nbsd-tdep.c: Include "symtab.h".
7612 (amd64nbsd_sigtramp_p): New function.
7613 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7614 deprecated_pc_in_sigtramp.
7615 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7616 few comments.
7617 (amd64obsd_pc_in_sigtramp): Remove function.
7618 (amd64obsd_sigtramp_p): New function.
7619 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7620 deprecated_pc_in_sigtramp.
7621 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7622 (i386bsd_pc_ins_sigtramp): Remove prototype.
7623 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7624 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7625 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7626 the program counter is in the range specified by `struct
7627 gdbarch_tdep'.
7628 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7629 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7630 (i386_go32_pc_in_sigtramp): Remove function.
7631 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7632 Initialize TDEP->sigtramp_p.
7633 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7634 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7635 deprecated_pc_in_sigtramp.
7636 * i386-linux-tdep.c: Adjust comments.
7637 (i386_linux_pc_in_sigtramp): Remove function.
7638 (i386_linux_sigtramp_p): New function.
7639 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7640 deprecated_pc_in_sigtramp.
7641 * i386-nto-tdep.c: Update copyright year.
7642 (i386nto_pc_in_sigtramp): Remove function.
7643 (i386nto_sigtramp_p): New function.
7644 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7645 SP_REGNUM.
7646 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7647 deprecated_pc_in_sigtramp.
7648 * i386-sol2-tdep.c: Update copyright year.
7649 (i386_sol2_pc_in_sigtramp): Remove function.
7650 (i386_sol2_sigtramp_p): New function.
7651 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7652 deprecated_pc_in_sigtramp.
7653 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7654 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7655 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7656 deprecated_sigtramp_start and deprecated_sigtramp_end.
7657 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7658 (i386nbsd_pc_in_sigtramp): Remove function.
7659 (i386nbsd_sigtramp_p): New function.
7660 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7661 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7662 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7663 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7664 (i386obsd_pc_in_sigtramp): Remove function.
7665 (i386obsd_sigtramp_p): New function.
7666 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7667 functions.
7668 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7669 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7670 TDEP->sigtramp_p.
7671 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7672 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7673 dependencies.
7674
7675 * config/i386/i386aout.mt: Remove file.
7676
7677 * configure.tgt: Remove i[34567]86-*-go32*,
7678 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7679 and i[34567]86-*-isc*. Set gdb_target to i386 for
7680 i[34567]86-*-netware* and i[34567]86-*-*.
7681 * config/i386/i386.mt: New file.
7682 * config/i386/embed.mt: Remove file.
7683 * config/i386/go32.mt: Remove file.
7684 * config/i386/i386nw.mt: Remove file.
7685 * config/i386/i386v.mt: Remove file.
7686 * config/i386/tm-go32.h: Remove file.
7687
7688 * tui/tui-hooks.c: Include "readline/readline.h" after
7689 "gdb_curses.h" instead of before.
7690 * tui/tui-io.c: Likewise.
7691
7692 * tui/tui.c: Fix typo in comment.
7693
7694 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7695
7696 2004-04-08 Andrew Cagney <cagney@redhat.com>
7697
7698 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7699 (deprecated_exception_support_initialized): Declare.
7700 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7701 (initialize_hp_cxx_exception_support)
7702 (child_enable_exception_callback): Update.
7703 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7704 (deprecated_exception_support_initialized): Rename
7705 deprecated_exception_catchpoints_are_fragile and
7706 deprecated_exception_support_initialized.
7707 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7708
7709 * symtab.c (deprecated_hp_som_som_object_present): Rename
7710 hp_som_som_object_present.
7711 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7712 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7713 Update. Delete extern declaration.
7714 * valops.c (hp_som_som_object_present): Ditto.
7715 * parse.c (deprecated_hp_som_som_object_present)
7716 (parse_nested_classes_for_hpacc): Ditto.
7717 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7718 * hppa-hpux-tdep.c (hp_som_som_object_present)
7719 (initialize_hp_cxx_exception_support): Ditto.
7720 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7721 * cp-valprint.c (hp_som_som_object_present)
7722 (cp_print_class_method): Ditto.
7723 * c-typeprint.c (hp_som_som_object_present):
7724 (c_type_print_base): Ditto.
7725 * c-exp.y (hp_som_som_object_present): Ditto.
7726
7727 2004-04-08 Andrew Cagney <cagney@redhat.com>
7728
7729 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7730 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7731 (frame_unwind_find_by_frame): Re-implement the unwind code so
7732 that it can both prepend and append sniffers. Replace
7733 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7734 * tramp-frame.c (tramp_frame_append): Use
7735 frame_unwind_prepend_unwinder.
7736 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7737 frame_unwind_register_unwinder.
7738 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7739 tramp_frame_append.
7740 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7741 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7742 (mips_linux_init_abi): Update.
7743
7744 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7745
7746 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7747 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7748 file support.
7749
7750 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7751
7752 * ia64-tdep.c (elf.h): Don't include.
7753 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7754
7755 2004-04-07 Jason Molenda (jmolenda@apple.com)
7756
7757 * frame.h: Typeo corrections in comments.
7758
7759 2004-04-07 Jim Blandy <jimb@redhat.com>
7760
7761 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7762 %esp and %ebp
7763
7764 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7765
7766 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7767 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7768 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7769 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7770 and solib-legacy.o.
7771 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7772 solib-svr4.o.
7773 * config/sparc/tm-sol2.h: Update copyright year. Include
7774 "solib.h".
7775
7776 * sparc-sol2-tdep.c: Update copyright year. Include
7777 "solib-svr4.h".
7778 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7779 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7780 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7781 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7782 dependencies.
7783
7784 2004-04-06 Andrew Cagney <cagney@redhat.com>
7785
7786 * infttrace.c: Include "infttrace.h".
7787 * infttrace.h: Include "target.h".
7788 * Makefile.in (infttrace_h): Update.
7789 (infttrace.o): Update.
7790
7791 2004-04-06 Andrew Cagney <cagney@redhat.com>
7792
7793 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7794 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7795 move extern declarations from here ...
7796 * infttrace.h: ... to here.
7797 * Makefile.in (hppah-nat.o): Update dependencies.
7798
7799 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7800 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7801 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7802 (hppa_breakpoint_from_pc): Delete.
7803
7804 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7805
7806 2004-04-05 Andrew Cagney <cagney@redhat.com>
7807
7808 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7809 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7810 <sys/file.h>.
7811
7812 2004-04-06 Randolph Chung <tausq@debian.org>
7813
7814 Committed by Andrew Cagney (mechanical change).
7815 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7816 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7817 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7818 child_enable_exception_callback, current_ex_event,
7819 null_symtab_and_line, child_get_current_exception_event,
7820 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7821 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7822 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7823 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7824 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7825 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7826 Move hpux-specific definitions ...
7827 * hppa-hpux-tdep.c: ... to here.
7828
7829 2004-04-05 Andrew Cagney <cagney@redhat.com>
7830
7831 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7832 skip_prologue_using_sal.
7833
7834 2004-04-05 Andrew Cagney <cagney@redhat.com>
7835
7836 * config/i386/tm-i386.h: Delete file.
7837 * config/i386/tm-vxworks.h: Update copyright, do not include
7838 "tm-i386.h".
7839 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7840 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7841 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7842 * config/i386/ncr3000.mt (TM_FILE): Delete.
7843 * config/i386/interix.mt (TM_FILE): Delete.
7844 * config/i386/i386v.mt (TM_FILE): Delete.
7845 * config/i386/i386nw.mt (TM_FILE): Delete.
7846 * config/i386/i386gnu.mt (TM_FILE): Delete.
7847 * config/i386/i386aout.mt (TM_FILE): Delete.
7848 * config/i386/embed.mt (TM_FILE): Delete.
7849
7850 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7851
7852 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7853 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7854 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7855 (accg7_regnum): New constants.
7856 (last_spr_regnum, last_pseudo_regnum): Update.
7857 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7858 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7859 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7860 for accg registers.
7861 (frv_register_sim_regno): Update spr_map[].
7862
7863 2004-04-04 Andrew Cagney <cagney@redhat.com>
7864
7865 * config/mips/xm-riscos.h: Delete.
7866 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7867 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7868 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7869 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7870 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7871 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7872 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7873 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7874 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7875 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7876 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7877 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7878 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7879 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7880 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7881 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7882 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7883 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7884 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7885 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7886 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7887 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7888 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7889 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7890 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7891 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7892
7893 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7894 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7895 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7896 * configure.host: Remove m680[01]0-sun-sunos3*,
7897 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7898 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7899 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7900 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7901 mips-*-riscos*.
7902 * NEWS: Mention removed systems.
7903
7904 2004-04-04 Andrew Cagney <cagney@redhat.com>
7905
7906 GDB 6.1 release created from 6.1 branch.
7907
7908 2004-04-04 Andrew Cagney <cagney@redhat.com>
7909
7910 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7911 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7912 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7913
7914 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7915 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7916 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7917
7918 2004-04-03 Jim Blandy <jimb@redhat.com>
7919
7920 * MAINTAINERS: Chris Faylor has changed employers; add him to
7921 "paper trail" section, and update his E-mail address.
7922
7923 2004-04-03 Andrew Cagney <cagney@redhat.com>
7924
7925 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7926 generic dummy frames.
7927 * dummy-frame.c: Update copyright.
7928 (dummy_frame_sniffer): Delete check for generic dummy frames.
7929
7930 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7931 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7932 (REG_PARM_STACK_SPACE): Delete.
7933 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7934 Inline reference to REG_PARM_STACK_SPACE.
7935
7936 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7937 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7938 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7939 (FRAME_BASE_BEFORE_SIGTRAMP)
7940 (hppa32_hpux_frame_base_before_sigtramp)
7941 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7942 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7943 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7944 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7945 (FRAME_BASE_BEFORE_SIGTRAMP)
7946 (hppa64_hpux_frame_base_before_sigtramp)
7947 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7948
7949 2004-04-03 Andrew Cagney <cagney@redhat.com>
7950
7951 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7952
7953 2004-04-02 Andrew Cagney <cagney@redhat.com>
7954
7955 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7956 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7957 * dummy-frame.h: Delete out-of-date comments.
7958 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7959 * gdbarch.h, gdbarch.c: Re-generate.
7960
7961 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7962
7963 Committed by Andrew Cagney <cagney@redhat.com>.
7964 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7965 into account an instruction saving a register if we have already
7966 seen an earlier instruction saving that same register.
7967
7968 2004-04-02 Andrew Cagney <cagney@redhat.com>
7969
7970 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7971 * gdbarch.h, gdbarch.c: Re-generate.
7972 * frame.c (legacy_get_prev_frame): Delete references to
7973 DEPRECATED_INIT_FRAME_PC_FIRST.
7974
7975 * infrun.c (pc_in_sigtramp): Delete function.
7976 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7977 get_frame_type.
7978
7979 2004-04-02 Andrew Cagney <cagney@redhat.com>
7980
7981 * infrun.c (handle_step_into_function): Delete code conditional on
7982 legacy_frame_p.
7983 (handle_inferior_event, step_over_function): Ditto.
7984
7985 2004-04-02 Andrew Cagney <cagney@redhat.com>
7986
7987 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7988 "previous frame inner to this frame" test.
7989
7990 2004-04-02 Andrew Cagney <cagney@redhat.com>
7991
7992 * frame.c (safe_frame_unwind_memory): New function.
7993 * frame.h (safe_frame_unwind_memory): Declare. Update description
7994 of /safe_/ methods.
7995 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7996 "next_frame". Use safe_frame_unwind_memory.
7997 (tramp_frame_sniffer): Update call to tramp_frame_start.
7998
7999 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8000
8001 * dwarf2read.c (dwarf2_objfile_data_key): New.
8002 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8003 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8004 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8005 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8006 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8007 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8008 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8009 Remove variables.
8010 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8011 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8012 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8013 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8014 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8015 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8016 Remove macros.
8017 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8018 data.
8019 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8020 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8021 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8022 (read_partial_die, read_full_die, read_indirect_string)
8023 (dwarf_decode_line_header, dwarf_decode_macros)
8024 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8025 Update uses of removed variables.
8026 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8027 of removed macros.
8028 (_initialize_dwarf2_read): New function.
8029 * symfile.h (dwarf2_has_info): Update prototype.
8030 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8031 * elfread.c (elf_symfile_read): Likewise.
8032
8033 2004-04-01 Jim Blandy <jimb@redhat.com>
8034
8035 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8036 function for register numbers on all the rs6000-derived targets.
8037 (rs6000_gdbarch_init): Don't register a separate
8038 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8039 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8040 variants.
8041
8042 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8043 numbering.
8044
8045 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8046
8047 * valarith.c: Update copyright notice.
8048 (value_add): Handle range types.
8049 (value_sub): Ditto.
8050 (value_equal): Ditto.
8051 (value_less): Ditto.
8052 (value_neg): Ditto.
8053 (value_complement): Ditto.
8054 (value_binop): Simplify slightly by using is_integral_type and
8055 eliminiating unnecessary COERCE_ENUMs.
8056
8057 2004-03-31 Andrew Cagney <cagney@redhat.com>
8058
8059 * frame.h (frame_unwind_id): Declare.
8060 * frame.c (frame_unwind_id): New function.
8061 (get_prev_frame_1): New function.
8062 (frame_debug_got_null_frame): New function.
8063 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8064 code proper to prev_frame, update description.
8065 * infrun.c (step_over_function): Use frame_unwind_id.
8066
8067 2004-04-31 J. Brobecker <brobecker@gnat.com>
8068
8069 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8070 (hppa64_push_dummy_call): Likewise.
8071
8072 2004-03-30 Jim Blandy <jimb@redhat.com>
8073
8074 From Ulrich Weigand:
8075 * utils.c (query): Do not use a va_list variable multiple times.
8076
8077 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8078
8079 * Makefile.in (linux_nat_h): Update dependencies.
8080 * configure.in: Check for <gnu/libc-version.h>.
8081 * configure: Regenerate.
8082 * config.in: Regenerate.
8083 * linux-nat.h: Include "target.h". Add waitstatus field to
8084 struct lwp_info.
8085 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8086 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8087 to.
8088 (lin_lwp_handle_extended): New function. Handle clone events.
8089 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8090 thread exit events.
8091 (child_wait): Handle clone events.
8092 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8093 * linux-nat.c (linux_enable_event_reporting): Turn on
8094 PTRACE_O_TRACECLONE.
8095 (linux_handle_extended_wait): Handle clone events.
8096 * thread-db.c: Include <gnu/libc-version.h>.
8097 (struct private_thread_info): Add dying flag.
8098 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8099 higher.
8100 (attach_thread): Update comments. Handle dying threads.
8101 (detach_thread): Set the dying flag.
8102 (check_event): Always call attach_thread.
8103
8104 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8105
8106 * mips-tdep.c (mips_pdr_data): New.
8107 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8108 (_initialize_mips_tdep): Initialize mips_pdr_data.
8109
8110 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8111
8112 * minsyms.c (install_minimal_symbols): Move dropping leading
8113 char from linkage name from here...
8114 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8115 test for "__gnu_compiled*" symbols.
8116
8117 2004-03-28 Jim Blandy <jimb@redhat.com>
8118
8119 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8120 registers to temp register r0 and byte stores as prologue
8121 instructions.
8122
8123 2004-03-28 Andrew Cagney <cagney@redhat.com>
8124
8125 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8126 arm*-*-*.
8127
8128 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8129
8130 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8131 and switch the layout to force a display of register window.
8132
8133 2004-02-26 J. Brobecker <brobecker@gnat.com>
8134
8135 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8136 of the INTEGER class.
8137
8138 2004-03-26 Jim Blandy <jimb@redhat.com>
8139
8140 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8141 bytes long on PPC GNU/Linux.
8142
8143 2004-03-26 David Carlton <carlton@kealia.com>
8144
8145 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8146
8147 2004-03-25 Andrew Cagney <cagney@redhat.com>
8148
8149 * PROBLEMS: Add general section titles, remove references to
8150 specific releases.
8151
8152 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8153
8154 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8155 INT_REGISTER_SIZE.
8156 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8157 FP_REGISTER_VIRTUAL_SIZE.
8158 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8159 of DEPRECATED_REGISTER_RAW_SIZE.
8160 (arm_register_type): Add gdbarch argument.
8161 (arm_register_raw_size, arm_register_virtual_size): Delete.
8162 (arm_register_byte, arm_extract_return_value)
8163 (arm_store_return_value, arm_get_longjmp_target): Update references
8164 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8165 (arm_gdbarch_init): Likewise. Don't set
8166 deprecated_register_raw_size, deprecated_register_virtual_size,
8167 deprecated_max_register_raw_size,
8168 deprecated_max_register_virtual_size, or
8169 deprecated_max_register_virtual_type. Do set register_type.
8170 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8171 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8172 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8173 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8174 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8175 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8176 INT_REGISTER_SIZE.
8177 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8178 (remote_rdp_store_register): Likewise.
8179
8180 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8181
8182 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8183 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8184 to after osabi initialization.
8185 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8186 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8187 functions.
8188 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8189 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8190 variables.
8191 (mips_linux_init_abi): Append signal trampoline unwinders.
8192
8193 2004-03-24 Andrew Cagney <cagney@redhat.com>
8194
8195 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8196 * tramp-frame.c: Include "gdb_assert.h".
8197 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8198 correct sizeof.
8199 (tramp_frame_append): Validate the tramp frame's instructions.
8200 * Makefile.in (tramp-frame.o): Update dependencies.
8201
8202 2004-03-23 Andrew Cagney <cagney@redhat.com>
8203
8204 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8205
8206 2004-03-23 Andrew Cagney <cagney@redhat.com>
8207
8208 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8209 Nasser as past testsuite/lib/ (and other) maintainers.
8210
8211 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8212
8213 * infcmd.c (attach_command): Reread symbols if we already have
8214 an exec file.
8215
8216 2004-03-23 Andrew Cagney <cagney@redhat.com>
8217
8218 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8219
8220 2004-03-23 Andrew Cagney <cagney@redhat.com>
8221
8222 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8223 * gdbarch.h, gdbarch.c: Re-generate.
8224 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8225 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8226 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8227 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8228 (DEPRECATED_SIGTRAMP_START): Update.
8229 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8230 (DEPRECATED_SIGTRAMP_START): Update.
8231 * blockframe.c (find_pc_sect_partial_function): Update.
8232 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8233
8234 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8235
8236 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8237 if necessary.
8238
8239 2004-03-23 Andrew Cagney <cagney@redhat.com>
8240
8241 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8242 predicate, deprecate.
8243 * gdbarch.h, gdbarch.c: Re-generate.
8244 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8245 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8246 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8247 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8248 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8249 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8250 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8251 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8252 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8253 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8254 * blockframe.c (find_pc_partial_function): Update.
8255 * breakpoint.c (bpstat_what): Update.
8256 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8257 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8258 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8259 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8260 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8261 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8262 * i386-nto-tdep.c (i386nto_init_abi): Update.
8263 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8264 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8265 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8266 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8267 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8268 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8269 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8270 * infrun.c (pc_in_sigtramp): Update.
8271 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8272 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8273 * mips-tdep.c (mips_gdbarch_init): Update.
8274 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8275 * ppc-linux-tdep.c: Update comment.
8276 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8277 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8278 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8279 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8280 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8281 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8282 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8283 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8284 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8285 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8286
8287 2004-03-23 Andrew Cagney <cagney@redhat.com>
8288
8289 * tramp-frame.h, tramp-frame.h: New files.
8290 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8291 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8292
8293 * Makefile.in: Update all dependencies.
8294
8295 2004-03-23 Andrew Cagney <cagney@redhat.com>
8296
8297 * Makefile.in (trad_frame_h): Add $(frame_h).
8298 * trad-frame.h: Update copyright. Include "frame.h".
8299 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8300 (trad_frame_set_id, trad_frame_get_id): Declare.
8301 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8302 * trad-frame.c: Update copyright.
8303 (struct trad_frame_cache): Define.
8304 (trad_frame_cache_zalloc): New function.
8305 (trad_frame_set_id, trad_frame_get_id): New functions.
8306 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8307
8308 2004-03-22 Andrew Cagney <cagney@redhat.com>
8309
8310 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8311 s390_pltstub_unwind_cache.
8312 (s390_stub_frame_unwind_cache): Rename
8313 s390_pltstub_frame_unwind_cache.
8314 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8315 (s390_stub_frame_prev_register): Rename
8316 s390_pltstub_frame_prev_register.
8317 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8318 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8319
8320 From Ulrich Weigand:
8321 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8322 pointer calls like PLT calls.
8323
8324 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8325
8326 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8327 PC rather than the partial function start address. Use the start
8328 address to sanity check the found PDR.
8329
8330 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8333 linux_handle_extended_wait.
8334
8335 2004-03-22 Andrew Cagney <cagney@redhat.com>
8336
8337 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8338 function.
8339
8340 * frame.h (generic_pop_current_frame): Delete declaration.
8341 (deprecate_pop_dummy_frame): Deprecate
8342 generic_pop_dummy_frame.
8343 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8344 (generic_pop_current_frame): Delete function.
8345 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8346 generic_pop_current_frame.
8347 * v850-tdep.c (v850_pop_frame): Update.
8348 * mcore-tdep.c (mcore_pop_frame): Update.
8349 * sh64-tdep.c (sh64_pop_frame): Update.
8350 * h8300-tdep.c (h8300_pop_frame): Update.
8351
8352 2004-03-22 Andrew Cagney <cagney@redhat.com>
8353
8354 * frame.h (deprecated_pc_in_call_dummy): Rename
8355 generic_pc_in_call_dummy.
8356 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8357 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8358 generic_pc_in_call_dummy.
8359 (pc_in_dummy_frame): Make static.
8360 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8361 * gdbarch.h, gdbarch.c: Re-generate.
8362 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8363 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8364 (legacy_get_prev_frame): Ditto.
8365 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8366 comment.
8367
8368 2004-03-21 Andrew Cagney <cagney@redhat.com>
8369
8370 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8371 declaration and out-of-date comment.
8372 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8373 Delete function.
8374 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8375 deprecated_pc_in_call_dummy.
8376
8377 * infrun.c (handle_inferior_event): For non legacy frames, use the
8378 frame ID and frame type to identify a signal trampoline. Update
8379 comments.
8380
8381 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8382
8383 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8384 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8385
8386 2004-03-21 Andrew Cagney <cagney@redhat.com>
8387
8388 * frame-unwind.h: Update copyright.
8389 (struct frame_data): Add opaque declaration.
8390 (frame_sniffer_ftype): Declare.
8391 (struct frame_unwind): Add "unwind_data" and "sniffer".
8392 (frame_unwind_register_unwinder): Declare.
8393 (frame_unwind_find_by_frame): Add parameter "this_cache".
8394 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8395 (legacy_get_prev_frame, legacy_get_prev_frame)
8396 (get_frame_type): Pass the prologue_cache to
8397 frame_unwind_find_by_frame.
8398 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8399 "unwinder".
8400 (frame_unwind_register_unwinder): New function.
8401 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8402
8403 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8404
8405 * bcache.c (print_percentage): Use floating point to avoid
8406 incorrect results when portion*100 overflows.
8407
8408 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8409
8410 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8411 (ppc_linux_init_extra_frame_info)
8412 (ppc_linux_frameless_function_invocation)
8413 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8414 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8415 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8416 (rs6000_frame_chain): Delete declarations.
8417 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8418 (ppc_linux_init_extra_frame_info)
8419 (ppc_linux_frameless_function_invocation)
8420 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8421 (ppc_linux_init_abi): Remove registration of above deleted functions.
8422 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8423 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8424 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8425 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8426 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8427 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8428 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8429 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8430 frame management for all OSABIs.
8431
8432 2004-03-19 Andrew Cagney <cagney@redhat.com>
8433
8434 Committed by Kevin Buettner <kevinb@redhat.com>.
8435
8436 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8437 Update copyright.
8438 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8439 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8440 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8441 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8442 unwinders. #ifdef legacy frame code.
8443 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8444 "frame-base.h".
8445 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8446 (struct rs6000_frame_cache, rs6000_frame_cache)
8447 (rs6000_frame_this_id, rs6000_frame_prev_register)
8448 (rs6000_frame_sniffer, rs6000_frame_unwind)
8449 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8450 (rs6000_frame_base): Implement a traditional frame unwinder.
8451 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8452 frame unwinder.
8453
8454 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8455
8456 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8457 breakpoint address for watchpoints or the catch eventpoints.
8458 Add new paramter ``bptype''. Adjust all callers.
8459
8460 2004-03-19 Andrew Cagney <cagney@redhat.com>
8461
8462 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8463
8464 * PROBLEMS: Delete note that ARM does not use frame code, problem
8465 fixed.
8466
8467 2004-03-18 Andrew Cagney <cagney@redhat.com>
8468
8469 * stack.c (return_command): Delete code wrapped in #ifdef
8470 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8471
8472 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8473
8474 2004-03-18 Andrew Cagney <cagney@redhat.com>
8475
8476 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8477 DEPRECATED_IN_SIGTRAMP.
8478 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8479 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8480 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8481 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8482 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8483 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8484 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8485 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8486 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8487 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8488
8489 2004-03-18 Andrew Cagney <cagney@redhat.com>
8490
8491 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8492 (struct frame_base_table_entry): Define.
8493 (struct frame_base_table): Re-implement as a linked list.
8494 (frame_base_init): Re-implement.
8495 (frame_base_table): Delete function.
8496 (append_predicate): Delete function.
8497 (frame_base_append_sniffer): Update.
8498 (frame_base_set_default): Update.
8499 (frame_base_find_by_frame): Update.
8500 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8501 * Makefile.in (frame-base.o): Update dependencies.
8502
8503 2004-03-17 Andrew Cagney <cagney@redhat.com>
8504
8505 * frame.c (legacy_get_prev_frame): Pass correct frame to
8506 frame_unwind_find_by_frame.
8507
8508 2004-03-17 David Carlton <carlton@kealia.com>
8509
8510 * NEWS: Mention C++ nested types and namespaces
8511
8512 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8513
8514 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8515 and "Regressions since gdb 5.3.". Add known regressions since
8516 gdb 6.0.
8517
8518 2004-03-16 David Carlton <carlton@kealia.com>
8519
8520 * dwarf2read.c (process_structure_scope): Process children even
8521 when we're a declaration.
8522
8523 2004-03-16 Andrew Cagney <cagney@redhat.com>
8524
8525 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8526 * blockframe.c (find_pc_partial_function)
8527 (find_pc_sect_partial_function): Merge into a single
8528 find_pc_partial_function.
8529
8530 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8531
8532 * i386bsd-nat.c: s/regno/regnum/g.
8533 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8534 FP0_REGNUM.
8535 (store_inferior_registers): Likewise.
8536
8537 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8538
8539 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8540 of i387_fill_fsave.
8541 (store_inferior_registers): Call i387_collect_fsave and
8542 i387_collect_fxsave instead of i387_fill_fsave and
8543 i387_fill_fxsave.
8544
8545 2004-03-15 Andrew Cagney <cagney@redhat.com>
8546
8547 * Makefile.in (frame-unwind.o): Update dependencies.
8548 * frame-unwind.c: Include "gdb_obstack.h".
8549 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8550 parameter.
8551 (append_predicate): Delete function.
8552 (struct frame_unwind_table_entry): New structure.
8553 (struct frame_unwind_table): Replace "sniffer" with "head" and
8554 "tail".
8555 (frame_unwind_append_sniffer): Update.
8556 (frame_unwind_find_by_frame): Update.
8557 (_initialize_frame_unwind): Registe frame_unwind_init using
8558 gdbarch_data_register_pre_init.
8559
8560 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8561
8562 * i386bsd-nat.c: Update copyright year.
8563 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8564 define unconditionally.
8565
8566 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8567
8568 * i387-tdep.h (i387_collect_fsave): New prototype.
8569 * i387-tdep.c (i387_collect_fsave): New function containing most
8570 of the code from i387_fill_fsave.
8571 (i387_fill_fsave): Call i387_collect_fsave.
8572
8573 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8574
8575 * i386-linux-tdep.c: Update copyright year.
8576 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8577 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8578 svr4_ilp32_link_map_offsets instead of
8579 i386_linux_svr4_fetch_link_map_offsets.
8580
8581 2004-03-15 David Carlton <carlton@kealia.com>
8582
8583 Fix for PR c++/1553:
8584 * dwarf2read.c (read_structure_type): Determine type name by
8585 calling determine_class_name.
8586 (determine_class_name): New.
8587 (determine_prefix): Look at TYPE_TAG_NAME and call
8588 determine_class_name when appropriate.
8589 (determine_prefix_aux, class_name): Delete.
8590 (read_namespace): Set die->type.
8591
8592 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8593
8594 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8595 unused macro definition. The definition in target.h (or perhaps
8596 elsewhere) takes precedence.
8597
8598 2004-03-15 Andrew Cagney <cagney@redhat.com>
8599
8600 * ppc-tdep.h: Update copyright.
8601 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8602 function signatures to match "regsets.h".
8603 * ppc-linux-tdep.c: Include "regset.h".
8604 (ELF_GREGSET_SIZE): Delete.
8605 (right_supply_register): New function.
8606 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8607 using right_supply_register.
8608 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8609 functions.
8610 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8611 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8612 (_initialize_ppc_linux_tdep): Do not register
8613 ppc_linux_regset_core_fns.
8614 (ppc_linux_regset_from_core_section): Replace
8615 fetch_core_registers.
8616 (ppc_linux_regset_core_fns): Delete.
8617 * ppc-linux-nat.c: (right_fill_reg): New function.
8618 (supply_gregset): Update call to ppc_linux_supply_gregset.
8619 (fill_gregset): Clear the register set, use right_fill_reg.
8620 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8621 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8622
8623 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8624 unsigned.
8625
8626 2004-03-15 Andrew Cagney <cagney@redhat.com>
8627
8628 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8629 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8630 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8631 and register_gdbarch_data.
8632 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8633 (struct gdbarch_data): Replace "init" by "pre_init" and
8634 "post_init".
8635 * gdbarch.h, gdbarch.c: Re-generate.
8636 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8637 with"obstack", use OBSTACK_ZALLOC.
8638 (dwarf2_frame_ops): Delete.
8639 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8640 (dwarf2_frame_init_reg): Use gdbarch_data.
8641 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8642 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8643 (_initialize_svr4_solib): Update.
8644 * user-regs.c (_initialize_user_regs): Update.
8645 * reggroups.c (_initialize_reggroup): Update.
8646 * regcache.c (_initialize_regcache): Update.
8647 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8648 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8649 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8650 * frame-unwind.c (_initialize_frame_unwind): Update.
8651 * frame-base.c (_initialize_frame_base): Update.
8652 * user-regs.c (user_reg_add): Update.
8653 * reggroups.c (reggroup_add): Update.
8654 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8655 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8656 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8657 * frame-base.c (frame_base_table): Update.
8658 * remote.c (_initialize_remote): Update.
8659 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8660
8661 2004-03-15 Andrew Cagney <cagney@redhat.com>
8662
8663 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8664
8665 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8666
8667 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8668 * frv-linux-tdep.c: New file.
8669 * frv-tdep.c (struct gdbarch_tdep): Add new field
8670 ``sigcontext_reg_addr''.
8671 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8672 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8673 (frv_sigramp_frame_sniffer): New functions.
8674 (frv_sigtramp_frame_unwind): New static global.
8675 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8676 sniffers.
8677 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8678 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8679
8680 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8681
8682 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8683 but not via a call to error(), when unable to read memory.
8684
8685 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8686
8687 * frv-tdep.c (frv_call_dummy_words): Delete.
8688 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8689
8690 2004-03-15 Andrew Cagney <cagney@redhat.com>
8691
8692 * infrun.c (handle_step_into_function, step_over_function): Only
8693 update and use STEP_FRAME_ID when the system is using legacy
8694 frames. Update comments.
8695
8696 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8697
8698 * amd64-linux-tdep.h: Remove file.
8699 * amd64-linux-tdep.c: Don't include "inferior.h" and
8700 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8701 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8702 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8703 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8704 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8705 macros.
8706 (user_to_gdb_regmap): Remove variable.
8707 (amd64_linux_gregset_reg_offset): New variable.
8708 (amd64_core_fns): Remove variable.
8709 (fetch_core_registers): Remove function.
8710 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8711 functions.
8712 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8713 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8714 * Makefile.in (amd64_linux_tdep_h): Remove.
8715 (amd64-linux-nat.o): Update dependencies.
8716 (amd64-linux-tdep.o): Update dependencies.
8717
8718 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8719 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8720 functions.
8721 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8722
8723 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8724 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8725
8726 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8727
8728 * dwarf2read.c (read_structure_type): Rename from
8729 read_structure_scope. Don't create a symbol or call process_die.
8730 Return immediately if die->type is set. Call read_type_die before
8731 dwarf2_add_member_fn.
8732 (process_structure_scope): New function.
8733 (read_enumeration_type, process_enumeration_scope): New functions,
8734 broken out from read_enumeration. Don't create the enumeration
8735 type if it has already been created.
8736 (read_enumeration): Removed.
8737 (process_die): Call read_structure_type, process_structure_scope,
8738 read_enumeration_type, and process_enumeration_scope. Just call
8739 new_symbol for base and subrange types. Add a comment about other
8740 type dies.
8741 (read_type_die): Call read_enumeration_type.
8742 (add_partial_structure, new_symbol): Update comments.
8743
8744 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8745
8746 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8747
8748 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8749
8750 * tui/tui-win.h (tui_get_cmd_list): Declare.
8751 * tui/tui-win.c (tui_command): New function.
8752 (tui_get_cmd_list): New function.
8753 (_initialize_tui_win): Moved initialization of tui command in
8754 tui_get_cmd_list.
8755
8756 * tui/tui-data.c (init_content_element): Setup new data members.
8757 (init_win_info): Likewise.
8758 (free_content_elements): Free it.
8759 * tui/tui-data.h (struct tui_data_element): Store the register
8760 content to print.
8761 (struct tui_data_info): Keep the current register group.
8762
8763 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8764
8765 * tui/tui-regs.h (tui_show_registers): Update prototype.
8766 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8767 (tui_resize_all): No need to calculate anything for register window.
8768 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8769 (tui_set_register_element, tui_set_general_regs_content): Remove.
8770 (tui_set_special_regs_content): Remove.
8771 (tui_set_general_and_special_regs_content): Remove.
8772 (tui_set_float_regs_content): Remove.
8773 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8774 (tui_set_regs_content): Remove.
8775 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8776 (tui_v_show_registers_command_support): Remove.
8777 (tui_show_registers): Use a reggroup to specify the registers to show.
8778 (tui_show_register_group): New function.
8779 (tui_display_registers_from): Compute the layout of register window
8780 and refresh with new API; be sure to delete old register windows.
8781 (tui_check_register_values): Update to use tui_get_register and
8782 tui_display_data.
8783 (tui_display_register): Just refresh the register window part.
8784 (tui_register_format): Format registers and save in tui_data_element.
8785 (tui_get_register): New to combine tui_reg_value_has_changed and
8786 tui_get_register_raw_value; fix to use the new gdb API.
8787 (tui_show_float_command): Renamed tui_reg_float_command.
8788 (tui_show_general_command): Renamed tui_reg_general_command.
8789 (tui_show_special_command): Renamed tui_reg_system_command.
8790 (_initialize_tui_regs): Remove unused commands.
8791
8792 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8793
8794 * NEWS (New native configurations): Mention OpenBSD/amd64.
8795
8796 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8797 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8798 Remove defines.
8799 * config/i386/nm-fbsd64.h: Likewise.
8800 * config/i386/nm-obsd.h: Likewise.
8801 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8802 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8803
8804 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8805
8806 * frv-tdep.c (set_variant_scratch_registers): New function.
8807 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8808 New constants.
8809
8810 From Richard Sandiford <rsandifo@redhat.com>:
8811 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8812
8813 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8814
8815 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8816 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8817 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8818 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8819 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8820 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8821 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8822 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8823 definitions from frv-tdep.c to frv-tdep.h.
8824
8825 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8826
8827 Add shared library support for FR-V FDPIC ABI:
8828 * Makefile.in (solib-frv.o): Add dependencies.
8829 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8830 New functions.
8831 (frv_push_dummy_call): Add support for FDPIC ABI.
8832 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8833 for FDPIC ABI.
8834 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8835 (frv_fdpic_find_canonical_descriptor): Declare.
8836 * solib-frv.c: New file.
8837 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8838 * config/frv/tm-frv.h (solib.h): Include.
8839
8840 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8841
8842 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8843 (frv-tdep.o): Update dependencies.
8844 * frv-tdep.h: New file.
8845 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8846 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8847 constants.
8848 (struct gdbarch_tdep): Add new member ``frv_abi''.
8849 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8850 functions.
8851 (new_variant): Set ``frv_abi'' field.
8852 (gdb_arch_init): Detect FDPIC executables.
8853
8854 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8855
8856 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8857 wrapper.
8858
8859 2004-03-11 Andrew Cagney <cagney@redhat.com>
8860
8861 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8862
8863 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8864
8865 * solist.h (master_so_list): New function.
8866 * solib.c (master_so_list): Likewise.
8867 * solib-svr4.c (enable_break): Iterate over so_list entries
8868 obtained from master list instead of entries obtained directly
8869 via svr4_current_sos().
8870
8871 2004-03-10 Ben Elliston <bje@gnu.org>
8872
8873 * MAINTAINERS: Update my mail address.
8874
8875 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8876
8877 * remote-m32r-sdi.c: Support hardware watchpoint.
8878
8879 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8880
8881 * user-regs.c: Update copyright years.
8882 (struct user_regs): Rename to gdb_user_regs.
8883 (append_user_reg, builtin_user_regs, user_regs_init)
8884 (user_reg_add, user_reg_map_name_to_regnum)
8885 (usernum_to_user_reg): Update.
8886
8887 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8888
8889 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8890 (skip_children): New functions.
8891 (locate_pdi_sibling): Call skip_children.
8892
8893 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8894
8895 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8896 * gdbtypes.c (check_typedef): Update comments.
8897
8898 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8899
8900 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8901 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8902 pointer. Update comment about comp_unit_head.
8903 (struct abbrev_info): Shorten two int flags.
8904 (dwarf_alloc_abbrev): Take a CU argument.
8905 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8906 each time through the loop. Update cleanup argument.
8907 (psymtab_to_symtab_1): Update cleanup call.
8908 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8909 abbrev_obstack.
8910 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8911 Just call obstack_free and clear the pointer.
8912
8913 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8914
8915 * infrun.c (handle_inferior_event): Remove short-circuit code for
8916 events in a different thread.
8917
8918 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8921 print the whole transfer.
8922 (initialize_targets): Update description of "set debug target".
8923
8924 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8925
8926 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8927
8928 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8929
8930 * MAINTAINERS (write after approval): Add myself.
8931
8932 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8933
8934 * sh-tdep.c (sh_print_registers_info): Use for loop.
8935 Don't skip multiple registers when a float register is encountered.
8936
8937 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8938
8939 Fix PR tdep/1291.
8940 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8941 to official SH documentation.
8942
8943 2004-03-07 Andrew Cagney <cagney@redhat.com>
8944
8945 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8946 unused function.
8947
8948 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8949
8950 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8951 (arm_get_next_pc): Handle BX and BLX.
8952
8953 2004-03-07 Andrew Cagney <cagney@redhat.com>
8954
8955 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8956 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8957 HPPA_SP_REGNUM.
8958 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8959 (hppa_target_read_fp): Delete.
8960 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8961 register_virtual_size, max_register_raw_size,
8962 max_register_virtual_size, register_byte, register_size,
8963 target_read_fp, fp_regnum, and register_bytes. Set register_type
8964 instead of register_virtual_type.
8965 (hppa32_register_type, hppa64_register_type): Replace
8966 hppa32_register_virtual_type and hppa64_register_virtual_type.
8967 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8968 (HPPA_FP_REGNUM): Define.
8969
8970 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8971
8972 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8973 (pa_do_registers_info): Delete.
8974 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8975 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8976 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8977
8978 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8979 GDB_TARGET_IS_HPPA code.
8980 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8981 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8982 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8983 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8984 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8985 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8986 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8987 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8988 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8989 (hppa_frameless_function_invocation, hppa64_store_return_value)
8990 (hppa_store_struct_return, hppa64_extract_return_value)
8991 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8992 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8993 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8994 (find_proc_framesize, deposit_21, restore_pc_queue)
8995 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8996 (rp_saved, pc_in_linker_stub): Delete.
8997
8998 Unconditionally enable 64-bit frame and ABI code.
8999 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9000 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9001 push_dummy_frame, fix_call_dummy, push_arguments,
9002 call_dummy_location, extract_return_value, use_struct_convention,
9003 store_return_value, store_struct_return, saved_pc_after_call,
9004 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9005 frame_chain, frame_chain_valid, frameless_function_invocation,
9006 frame_saved_pc, and pop_frame.
9007
9008 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9009 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9010 (hppa_gdbarch_init): Do not set PC_REGNUM.
9011
9012 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9013
9014 * config/alpha/tm-fbsd.h: Remove file.
9015 * config/alpha/fbsd.mt: Tweak comment.
9016 (TM_FILE): Set to tm-alpha.h.
9017
9018 2004-03-05 Andrew Cagney <cagney@redhat.com>
9019
9020 * infrun.c (step_over_function): When non-legacy code, and no
9021 step_frame_id, use the unwinder to get the caller's frame ID.
9022
9023 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9024
9025 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9026 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9027 bfd_arch_unknown. Adjust comment.
9028
9029 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9030 * i386obsd-tdep.c: Correct spelling in comment.
9031 * i386nbsd-tdep.c: Correct spelling in comment.
9032 * sparc-tdep.c: Correct spelling in comments.
9033
9034 2004-03-05 David Carlton <carlton@kealia.com>
9035
9036 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9037 bug.
9038
9039 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9040
9041 * sparc-tdep.c: Fix typo in comment.
9042
9043 2004-03-04 J. Brobecker <brobecker@gnat.com>
9044
9045 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9046
9047 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * dwarf2read.c: Add comment describing memory lifetimes.
9050 (struct dwarf2_pinfo): Update comment.
9051 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9052 (read_enumeration, new_symbol): Don't use obsavestring.
9053
9054 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9055
9056 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9057 instead of amd64_fill_fxsave.
9058 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9059 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9060
9061 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9062 Reorganize code a bit.
9063
9064 2004-03-04 Orjan Friberg <orjanf@axis.com>
9065
9066 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9067 when the frame pointer is pushed. Don't set the frame pointer's
9068 address on the stack unless it's actually located there.
9069 Set the SRP's address on the stack correctly when the PC is still in
9070 the prologue.
9071 (cris_return_value): New function.
9072 (cris_gdbarch_init): Clear deprecated store_return_value,
9073 extract_return_value.
9074
9075 2004-03-02 Jim Blandy <jimb@redhat.com>
9076
9077 * stabsread.c (reg_value_complaint): The maximum register number
9078 is one less than the number of registers.
9079
9080 2004-03-02 Andrew Cagney <cagney@redhat.com>
9081
9082 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9083 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9084 trailing comma and redundant assignment of I386_ST0_REGNUM.
9085 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9086 32-bit segment registers.
9087
9088 2004-03-01 Andrew Cagney <cagney@redhat.com>
9089
9090 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9091 use frame_relative_level and get_next_frame.
9092
9093 2004-02-29 Andrew Cagney <cagney@redhat.com>
9094
9095 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9096 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9097 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9098 Delete macro.
9099
9100 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9101
9102 * inflow.c (terminal_inferior): Don't give up the terminal if we
9103 previously couldn't get the inferior's terminal state.
9104
9105 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9106
9107 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9108 PC_REGNUM.
9109
9110 2004-02-28 Andrew Cagney <cagney@redhat.com>
9111
9112 * NEWS: Refer to GDB 6.1.
9113 * README: Refer to GDB 6.1.
9114 * PROBLEMS: Refer to GDB 6.1.
9115
9116 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9117
9118 * thread-db.c (disable_thread_signals): Remove unused function.
9119
9120 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9121
9122 * amd64-nat.c: Include "gdb_string.h".
9123 (amd64_collect_native_gregset): Zero-extend the 32-bit
9124 general-purpose registers and %eip.
9125
9126 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9127 * amd64-tdep.c (amd64_collect_fxsave): New function.
9128 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9129
9130 * i387-tdep.h: Update copyright year.
9131 (i387_collect_fxsave): New prototype.
9132 * i387-tdep.c: Update copyright year.
9133 (i387_collect_fxsave): New function containing most of the code
9134 from i387_fill_fxsave.
9135 (i387_fill_fxsave): Call i387_collect_fxsave.
9136
9137 2004-02-28 Andrew Cagney <cagney@redhat.com>
9138
9139 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9140 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9141
9142 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9143
9144 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9145
9146 2004-02-28 Andrew Cagney <cagney@redhat.com>
9147
9148 * utils.c: Use "", instead of <>, to include readline.
9149 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9150 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9151 * source.c, solib.c, exec.c, event-top.c: Ditto.
9152 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9153 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9154 * Makefile.in: Update all dependencies.
9155 (readline_tilde_h, readline_history_h): Define.
9156 (readline_headers): Delete.
9157
9158 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9159
9160 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9161 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9162 "config/i386/tm-lx64.h".
9163
9164 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9165 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9166 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9167
9168 2004-02-28 Andrew Cagney <cagney@redhat.com>
9169
9170 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9171
9172 * breakpoint.c (_initialize_breakpoint): Use
9173 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9174 Add help to show command.
9175
9176 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9177
9178 * i386-nat.c: Reformat to be closer to coding standards.
9179 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9180 `retval'. Make variables `align' and `size' local to while-loop.
9181 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9182 (_initialize_i386_nat): New prototype.
9183
9184 * tui/tui.c: Include <readline/readline.h> instead of
9185 "readline/readline.h". Include it after <term.h> and
9186 "gdb_curses.h".
9187
9188 2004-02-27 Andrew Cagney <cagney@redhat.com>
9189
9190 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9191 the new frame unwind code.
9192 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9193 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9194 PCOQ_HEAD_REGNUM.
9195
9196 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9197 "return_value" and "push_dummy_call".
9198 (hppa32_use_struct_convention): Delete unused function.
9199 (hppa32_store_return_value): Delete unused function.
9200 (hppa32_extract_return_value): Delete unused function.
9201 (hppa32_stack_align): Delete function.
9202
9203 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9204
9205 * coffread.c (enter_linenos): Don't let rawptr reference memory
9206 outside linetab[]'s limits.
9207
9208 2004-02-27 Andrew Cagney <cagney@redhat.com>
9209
9210 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9211 inferior stack space - the stack needs to grow upwards.
9212 (hppa32_frame_align): New function.
9213 (hppa64_frame_align): Replace hppa_frame_align.
9214 (hppa_gdbarch_init): Update.
9215
9216 2004-02-26 Orjan Friberg <orjanf@axis.com>
9217
9218 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9219 (dwarf2-frame.h): Include.
9220 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9221 Remove static variables related to ABI setting.
9222 (struct gdbarch_tdep): Remove cris_abi member.
9223 (struct frame_extra_info): Remove.
9224 (cris_unwind_cache, stack_item): New structs.
9225 (cris_frame_unwind, cris_frame_base): New variables.
9226 (push_stack_item, pop_stack_item)
9227 (cris_frame_unwind_cache, cris_frame_this_id)
9228 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9229 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9230 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9231 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9232 (cris_reg_struct_has_addr): New functions.
9233 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9234 (cris_frame_saved_pc, cris_saved_pc_after_call,
9235 (cris_store_struct_return, cris_frameless_function_invocation)
9236 (cris_pop_frame, cris_skip_prologue_main)
9237 (cris_abi_original_store_return_value)
9238 (cris_abi_v2_store_return_value)
9239 (cris_abi_original_extract_return_value)
9240 (cris_abi_v2_extract_return_value)
9241 (cris_abi_original_reg_struct_has_addr)
9242 (cris_abi_v2_reg_struct_has_addr)
9243 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9244 (cris_push_return_address, cris_abi_update): Remove.
9245 (_initialize_cris_tdep): Remove ABI command.
9246 (cris_dump_tdep): Ditto.
9247 (cris_gdbarch_init): Remove ABI command.
9248 Set store_return_value, extract_return_value, push_dummy_code,
9249 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9250 frame_unwind_append_sniffer, frame_base_set_default.
9251 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9252 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9253 sizeof_call_dummy_words, get_saved_register, push_return_address,
9254 pop_frame, store_struct_return, frame_init_saved_regs,
9255 init_extra_frame_info, frameless_function_invocation, frame_chain,
9256 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9257 dummy_write_sp.
9258
9259 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9260
9261 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9262 * valprint.c (print_hex_chars): Change from static to external.
9263 (print_char_chars): New function.
9264 * printcmd.c (print_scalar_formatted): For integer and enum types
9265 that are longer than LONGEST, perform processing via appropriate
9266 print_*_chars routines.
9267
9268 2004-02-26 Andrew Cagney <cagney@redhat.com>
9269
9270 * Makefile.in: Update dependencies.
9271 Changes from Ulrich Weigand,
9272 * s390-tdep.c: Include "dwarf2-frame.h".
9273 (s390_dwarf2_frame_init_reg): New function.
9274 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9275 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9276
9277 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9278
9279 * breakpoint.c (pending_break_support): New setting variable.
9280 (break_command_1): Account for pending_break_support setting
9281 when creating pending breakpoints.
9282 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9283 (_initialize_breakpoint): Add "set breakpoint pending" and
9284 "show breakpoint pending" commands.
9285
9286 2004-02-26 Andrew Cagney <cagney@redhat.com>
9287
9288 Fix PR i18n/1570.
9289 * charset.c (backslashable, backslashed, represented): Remove 'e'
9290 from list of escaped characters, not part of ISO-C.
9291
9292 2004-02-25 J. Brobecker <brobecker@gnat.com>
9293
9294 From Peter Schauer <schauer@pdf.de>:
9295 * tui/tui.c: Move system header includes after local includes.
9296 Fixes a build failure on solaris systems.
9297
9298 2004-02-25 J. Brobecker <brobecker@gnat.com>
9299
9300 * configure.in: Refine the previous change.
9301 * configure: Regenerate.
9302
9303 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9304
9305 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9306 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9307 "amd64-tdep.h" instead of "x86-64-tdep.h".
9308 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9309 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9310 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9311 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9312 and "x86-64-tdep.c".
9313 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9314 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9315 and "x86-64-tdep.c".
9316 * amd64bsd-nat.c: Update copyright year.
9317 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9318 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9319 "x86-64-tdep.h".
9320 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9321 "x86-64-tdep.h".
9322 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9323 "x86-64-tdep.h".
9324 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9325 "x86-64-tdep.h".
9326 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9327 "x86-64-tdep.h".
9328 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9329 "x86-64-tdep.h".
9330 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9331 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9332 * Makefile.in (amd64_linux_tdep_h): Renamed from
9333 x86_64_linux_tdep_h.
9334 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9335 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9336 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9337 (amd64obsd-tdep.o): Update dependencies.
9338 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9339 dependencies.
9340 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9341 dependencies.
9342 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9343 amd64-linux-nat.c amd64-linux-tdep.c.
9344 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9345 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9346 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9347 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9348 amd64-tdep.o and amd64-linux-tdep.o.
9349 (TM_FILE): Set to tm-linux64.h.
9350 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9351 (NAT_FILE): Set to nm-linux64.h.
9352 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9353 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9354 amd64-tdep.o.
9355 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9356 amd64-tdep.o.
9357 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9358 amd64-tdep.o.
9359
9360 2004-02-25 Roland McGrath <roland@redhat.com>
9361
9362 * remote.c (remote_protocol_qPart_auxv): New variable.
9363 (init_all_packet_configs): Initialize it.
9364 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9365 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9366 (show_remote_cmd): Call it.
9367 (_initialize_remote): Initialize commands.
9368 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9369 service TARGET_OBJECT_AUXV requests.
9370
9371 2004-02-25 J. Brobecker <brobecker@gnat.com>
9372
9373 * configure.in: Make sure that the wborder function is available.
9374 Otherwise, search for it in the cur_colr library.
9375 * configure: Regenerate.
9376
9377 2004-02-25 Andrew Cagney <cagney@redhat.com>
9378
9379 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9380
9381 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9382
9383 * config/i386/tm-x86-64linux.h: Tweak comments.
9384
9385 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9386
9387 * MAINTAINERS: Add self to write-after-approval list.
9388
9389 2004-02-25 Andrew Cagney <cagney@redhat.com>
9390
9391 PR cli/1566. Problem found, and fix suggested by David Allan.
9392 * cli/cli-script.c (execute_control_command): Unconditionally
9393 install a cleanup. Default "ret" to "invalid_control". Use
9394 "break" instead of "return" to escape from the switch.
9395
9396 2004-02-24 J. Brobecker <brobecker@gnat.com>
9397
9398 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9399 with the lines macro defined in term.h on AiX.
9400 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9401 a collision with the label_width macro defined in term.h on AiX.
9402
9403 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9404
9405 Committed by Kevin Buettner <kevinb@redhat.com>.
9406
9407 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9408 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9409 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9410 instead of ia64_write_pc().
9411 * ia64-linux-tdep.c (regcache.h): Include.
9412 (ia64_linux_write_pc): New function.
9413
9414 2004-02-23 Roland McGrath <roland@redhat.com>
9415
9416 * auxv.c (info_auxv_command): Fix typos in error messages.
9417
9418 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9419
9420 * x86-64-tdep.h: Tweak comment.
9421 (enum amd64_regnum): New.
9422 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9423 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9424 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9425 (X86_64_XMM1_REGNUM): Removed.
9426 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9427 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9428 prototypes for renamed functions.
9429 * x86-64-tdep.c: Fix typo.
9430 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9431 register numbers.
9432 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9433 Use constants from `enum amd64_regnum' for register numbers.
9434 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9435 (amd64_analyze_prologue, amd64_frame_cache,
9436 amd64_sigtramp_frame_cache): Use constants from `enum
9437 amd64_regnum' for register numbers.
9438 (amd64_supply_fpregset): Adjust for renamed functions.
9439 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9440 `enum amd64_regnum' for register numbers.
9441 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9442 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9443 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9444 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9445 (amd64_linux_fill_gregset): Adjust for renamed macros.
9446 (fetch_core_registers): Adjust for renamed functions.
9447 (amd64_linux_init_abi): Adjust for renamed functions.
9448 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9449 renamed functions.
9450 * amd64-nat.c: Adjust for renamed macros.
9451 * amd64bsd-nat.c (fetch_inferior_registers)
9452 (store_inferior_registers): Use constants from `enum amd64_regnum'
9453 for register numbers. Adjust for renamed variables.
9454 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9455 renamed variables.
9456 (_initialize_amd64fbsd_nat): Use constants from `enum
9457 amd64_regnum' for register numbers.
9458 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9459 `enum amd64_regnum' for register numbers.
9460 (amd64fbsd_init_abi): Adjust for renamed functions.
9461 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9462 `enum amd64_regnum' for register numbers.
9463 (amd64nbsd_init_abi): Adjust for renamed functions.
9464 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9465 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9466 `enum amd64_regnum' for register numbers.
9467 (amd64obsd_init_abi): Adjust for renamed functions.
9468 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9469
9470 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9471
9472 * breakpoint.c (print_one_breakpoint): Do not output spaces
9473 after printing <PENDING> for a pending breakpoint.
9474
9475 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9476
9477 * printcmd.c (print_scalar_formatted): Initialize val_long
9478 to remove compiler warning message.
9479
9480 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9481
9482 * defs.h (nquery, yquery): New prototypes.
9483 * breakpoint.c (break_command_1): Use new nquery interface.
9484 * utils.c (defaulted_query, nquery, yquery): New functions.
9485
9486 2004-02-23 Andrew Cagney <cagney@redhat.com>
9487
9488 * hppa-tdep.c (hppa_frame_align): New function.
9489 (hppa32_push_dummy_call): New function.
9490 (hppa64_push_dummy_call): New function.
9491 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9492 disabled.
9493
9494 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9495 FIX_CALL_DUMMY when push_dummy_call is available.
9496 (call_function_by_hand, push_dummy_code): Ditto.
9497
9498 2004-02-22 Andrew Cagney <cagney@redhat.com>
9499
9500 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9501 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9502 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9503 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9504 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9505 call_dummy_location to ON_STACK.
9506
9507 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9508
9509 * x86-64-linux-tdep.c: Tweak comment.
9510 (amd64_linux_supply_gregset): Renamed from
9511 x86_64_linux_supply_gresget.
9512 (amd64_linux_fill_gregset): Renamed from
9513 x86_64_linux_fill_gregset.
9514 (fetch_core_registers): Adjust for renamed functions.
9515 (amd64_core_fns): Renamed from x86_64_core_fns.
9516 (amd64_linux_sigtramp_start): Renamed from
9517 x86_64_linux_sigtramp_start.
9518 (amd64_linux_pc_in_sigtramp): Renamed from
9519 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9520 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9521 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9522 (amd64_linux_sigcontext_addr): Renamed from
9523 x86_64_linux_sigcontext_addr.
9524 (amd64_linux_sc_reg_offset): Renamed from
9525 x86_64_linux_sc_reg_offset.
9526 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9527 Adjust for renamed functions and variables.
9528 (_initialize_amd64_linux_tdep): Renamed from
9529 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9530 variables.
9531 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9532 Adjust for renamed functions.
9533
9534 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9535 from x86_64_linux_gregset64_reg_offset.
9536 (amd64_linux_gregset32_reg_offset): Rename from
9537 x86_64_linux_gregset64_reg_offset.
9538 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9539 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9540 (amd64_linux_dr_set_control): Renamed from
9541 x86_64_linux_dr_set_control. Adjust for renamed functions.
9542 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9543 Adjust for renamed functions.
9544 (amd64_linux_dr_reset_addr): Renamed from
9545 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9546 (amd64_linux_dr_get_status): Renamed from
9547 x86_64_linux_dr_get_status. Adjust for renamed functions.
9548 (_initialize_amd64_linux_nat): Renamed from
9549 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9550 functions.
9551 * config/i386/nm-x86-64linux.h: Update copyright year.
9552 Adjust for renamed functions.
9553
9554 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9555 amd64fbsd_sigtramp_start.
9556 (amd64fbsd_sigtramp_end_addr): Renamed from
9557 amd64fbsd_sigtramp_end.
9558 (amd64fbsd_init_abi): Adjust for renamed variables.
9559 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9560 variables.
9561 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9562 amd64fbsd_sigtramp_start.
9563 (amd64fbsd_sigtramp_end_addr): Renamed from
9564 amd64fbsd_sigtramp_end.
9565
9566 2004-02-22 Andrew Cagney <cagney@redhat.com>
9567
9568 * hppa-tdep.c (hppa32_return_value): New function.
9569 (hppa64_return_value): New function.
9570 (hppa_gdbarch_init): Set return_value; keep disabled.
9571
9572 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9573 struct-return and inferior function call methods.
9574
9575 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9576 "frame-base.h".
9577 (struct hppa_frame_cache): Define.
9578 (hppa_frame_cache, hppa_frame_this_id): New functions.
9579 (hppa_frame_prev_register): New function.
9580 (hppa_frame_unwind, hppa_frame_base): New variables.
9581 (hppa_frame_unwind_sniffer): New function.
9582 (hppa_frame_base_address, hppa_unwind_pc): New function.
9583 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9584 sniffer, and frame base sniffer; keep disabled.
9585 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9586 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9587
9588 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9589 to predicates for "seriously old code".
9590
9591 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9592 runtime if(0).
9593
9594 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9595 unsigned.
9596 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9597
9598 * config/pa/tm-hppa.h: Update copyright.
9599 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9600 (deprecated_init_frame_pc_default): Delete declaration.
9601 (hppa_frame_init_saved_regs): Delete declaration.
9602 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9603 * hppa-tdep.c: Include "arch-utils.h".
9604 (hppa_gdbarch_init): Set deprecated init_frame_pc
9605 and deprecated frame_init_saved_regs.
9606 (hppa_frame_init_saved_regs): Make static.
9607
9608 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9609
9610 Remove old 386BSD support.
9611 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9612 * configure.host: Remove i[34567]86-*-bsd*.
9613 * configure.tgt: Remove i[34567]86-*-bsd*.
9614 * i386b-nat.c: Removed.
9615 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9616 (i386b-nat.o): Remove dependencies.
9617
9618 * config/i386/i386bsd.mh: Removed.
9619 * config/i386/i386bsd.mt: Removed.
9620 * config/i386/nm-i386bsd.h: Removed.
9621 * config/i386/tm-i386bsd.h: Removed.
9622 * config/i386/xm-i386bsd.h: Removed.
9623
9624 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9625
9626 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9627 (amd64fbsd_init_abi): Set link map offsets.
9628 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9629 (amd64nbsd_init_abi): Set link map offsets.
9630 * amd64obsd-tdep.c: Include "solib-svr4.h".
9631 (amd64obsd_init_abi): Set link map offsets.
9632 * i386fbsd-tdep.c: Include "solib-svr4.h".
9633 (i386fbsd_init_abi): Set link map offsets.
9634 * i386nbsd-tdep.c: Include "solib-svr4.h".
9635 (i386nbsdelf_init_abi): Set link map offsets.
9636 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9637 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9638 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9639 solib-legacy.o and core-aout.o. Reformat.
9640 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9641 solib-svr4.o, solib-legacy.o. Reformat.
9642 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9643 * config/i386/nbsdelf.mh: Reformat.
9644 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9645 solib-svr4.o, solib-legacy.o and corelow.o.
9646 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9647 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9648 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9649 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9650 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9651 (TM_FILE): Set to tm-fbsd.h.
9652 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9653 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9654 solib-svr4.o.
9655 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9656 solib-svr4.o.
9657 (TM_FILE): Set to nm-nbsd.h.
9658 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9659 Simplify shared library support. Don't include "elf/common.h".
9660 (SVR4_SHARED_LIBS): Don't define.
9661 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9662 "solib.h".
9663 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9664 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9665 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9666 Don't include "i386/tm-i386.h". Include "solib.h".
9667 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9668 Don't include "i386/tm-i386.h".
9669 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9670 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9671 Include "i386/xm-i386.h".
9672 (HOST_LONG_DOUBLE_FORMAT): Remove.
9673
9674 Fix OpenBSD/i386 sigtramp recognition.
9675 * i386-tdep.h: Update copyright year.
9676 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9677 (i386bsd_sigtramp_end): New prototypes.
9678 (i386fbsd_sigtramp_start_addr): Renamed from
9679 i386fbsd_sigtramp_start.
9680 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9681 (i386obsd_sigtramp_start_addr): Renamed from
9682 i386obsd_sigtramp_start.
9683 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9684 * i386bsd-tdep.c: Update copyright year.
9685 (i386bsd_pc_in_sigtramp): Make public.
9686 * i386fbsd-nat.c: Update copyright year.
9687 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9688 * i386fbsd-tdep.c: Update copyright year.
9689 (i386fbsd_sigtramp_start_addr): Renamed from
9690 i386fbsd_sigtramp_start.
9691 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9692 (i386fbsdaout_init_abi): Adjust for renamed variables.
9693 * i386obsd-nat.c: Update copyright year.
9694 (_initialize_i386obsd_nat): Adjust for renamed variables.
9695 * i386obsd-tdep.c: Include "target.h".
9696 (i386obsd_page_size): New variable.
9697 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9698 (i386obsd_sigtramp_end): New functions.
9699 (i386obsd_sigtramp_start_addr): Renamed from
9700 i386obsd_sigtramp_start.
9701 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9702 (i386obsd_init_abi): Adjust for renamed variables. Set
9703 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9704 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9705
9706 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9707 trampoline change in OpenBSD kernel.
9708
9709 * amd64-nat.c: Update copyright year.
9710 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9711 architecture from REGCACHE.
9712
9713 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9714 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9715
9716 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9717
9718 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9719 i[34567]86-*-openbsd3.[0-3].
9720 * config/i386/obsdaout.mh: New file.
9721
9722 * config/i386/obsd.mh (MH_FLAGS): Remove.
9723
9724 Fix PR build/1549.
9725 * i386obsd-tdep.c: Update copyright years. Include
9726 "solib-svr4.h".
9727 (i386obsd_init_abi): Don't set regset_from_core_section here.
9728 (i386obsd_aout_init_abi): New function. Set
9729 regset_from_core_section here.
9730 (i386obsd_elf_init_abi): New function.
9731 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9732 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9733 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9734 (TM_FILE): Set to tm-nbsd.h.
9735
9736 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9737 solib-sunos.o.
9738
9739 * solib-svr4.h: Update copyright year.
9740 (svr4_ilp32_fetch_link_map_offsets)
9741 (svr4_lp64_fetch_link_map_offsets): New prototype.
9742 * solib-svr4.c: Update copyright year.
9743 (svr4_ilp32_fetch_link_map_offsets)
9744 (svr4_lp64_fetch_link_map_offsets): New function.
9745
9746 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9749 to the partial symbol table.
9750
9751 2004-02-20 J. brobecker <brobecker@gnat.com>
9752
9753 * PROBLEMS: Add description of problem documented under gdb/1560.
9754
9755 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9756
9757 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9758 comments.
9759 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9760 functions.
9761 (amd64obsd_init_abi): Reorder initializations. Use
9762 amd64obsd_r_reg_offset to initialize the general-purpose register
9763 set details. Set regset_from_core_section.
9764 (_initialize_amd64obsd_tdep): Rename from
9765 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9766 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9767 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9768
9769 * NEWS (New native configurations): Mention OpenBSD/alpha.
9770 * configure.tgt: Add alpha*-*-openbsd*.
9771 * configure.host: Add alpha*-*-openbsd*.
9772 * alphanbsd-tdep.c: Update copyright year.
9773 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9774
9775 2004-02-20 Andrew Cagney <cagney@redhat.com>
9776
9777 Fix PR tdep/1372.
9778 * configure.tgt: Delete target "none-*-*".
9779 * configure.host: Delete host "none-*-*".
9780 * config/none/none.mh: Delete file.
9781 * config/none/none.mt: Delete file.
9782 * config/none/xm-none.h: Delete file.
9783 * config/none/tm-none.h: Delete file.
9784 * config/none/nm-none.h: Delete file.
9785
9786 2004-02-19 Fred Fish <fnf@redhat.com>
9787
9788 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9789 cache->uses_fp prior to setting it.
9790
9791 2004-02-19 Fred Fish <fnf@redhat.com>
9792
9793 Fix for PR breakpoint/1558.
9794 * sh-tdep.c (IS_JSR): New macro.
9795 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9796
9797 2004-02-19 Jim Blandy <jimb@redhat.com>
9798
9799 * findvar.c (value_from_register): Doc fix.
9800
9801 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9802
9803 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9804 type being greater than sizeof of host's LONGEST. Always use
9805 unpack_long() unless format 'f' chosen.
9806
9807 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9808
9809 Committed by Elena Zannoni <ezannoni@redhat.com>
9810
9811 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9812 contains a symbol wich is the best, non-exact match for the given
9813 pc. Update comments.
9814
9815 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9816
9817 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9818 macro, which was part of the now removed Mach 3 port.
9819 * utils.c (request_quit): Ditto.
9820
9821 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9822
9823 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9824 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9825
9826 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9827
9828 Committed by Mark Kettenis <kettenis@gnu.org>.
9829
9830 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9831 Define.
9832
9833 2004-02-18 Andrew Cagney <cagney@redhat.com>
9834
9835 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9836 CONFIG_INSTALL and CONFIG_UNINSTALL.
9837 * configure: Re-generate.
9838 * interps.h (INTERP_TUI): Define.
9839 * Makefile.in: Update dependencies.
9840 (TUI): New macro.
9841 (tui-main.o): Specify dependencies.
9842 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9843 * tui/tui-main.c: New file.
9844
9845 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9846
9847 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9848 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9849 dependencies.
9850 * configure.host: Add x86_64-*-openbsd*.
9851 * configure.tgt: Add x86_64-*-openbsd*.
9852 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9853
9854 * tui/tui.c: Don't include <malloc.h>.
9855
9856 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9857 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9858 amd64nbsd-tdep.c.
9859
9860 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9861 static. Remove extraneous whitespace.
9862 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9863 static.
9864
9865 2004-02-17 Jim Blandy <jimb@redhat.com>
9866
9867 * findvar.c (value_from_register): Doc fix.
9868
9869 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9870
9871 Committed by Jim Blandy <jimb@redhat.com>.
9872
9873 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9874 CORE_ADDR as type for selectors. Correct types for GNU run time
9875 message lookup function to use double indirection.
9876 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9877 * objc-lang.h (lookup_child_selector): Adapt prototype.
9878
9879 * s390-nat.c (SUBOFF): New macro.
9880 (supply_gregset, fill_gregset): Use it to handle debugging
9881 of 32-bit exectuables running under a 64-bit kernel.
9882 * s390-tdep.c: Include "solib-svr4.h".
9883 (s390_svr4_fetch_link_map_offset): New function.
9884 (s390x_svr_fetch_link_map_offset): Likewise.
9885 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9886 * Makefile.in (s390-tdep.o): Update dependencies.
9887
9888 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9889 "frame-unwind.h".
9890 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9891 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9892 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9893 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9894 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9895 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9896 S390_SIGNAL_FRAMESIZE,
9897 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9898 (struct frame_extra_info): Remove.
9899 (s390_memset_extra_info): Remove.
9900 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9901 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9902 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9903 (is_rse): Renamed to ...
9904 (is_rsy): ... this. Support long displacements.
9905 (is_rxe): Renamed to ...
9906 (is_rxy): ... this. Support long displacements.
9907 (compute_x_addr): Support long displacements.
9908 (struct s390_prologue_data): New data type.
9909 (s390_on_stack): Change API to use struct s390_prologue_data.
9910 (s390_store): Reimplement.
9911 (s390_load): New function.
9912 (s390_get_signal_frame_info): Remove.
9913 (s390_get_frame_info): Remove, replace by ...
9914 (s390_analyze_prolog): ... this new function.
9915 (s390_check_function_end): Remove.
9916 (s390_function_start): Remove.
9917 (s390_frameless_function_invokation): Remove.
9918 (s390_is_sigreturn): Remove.
9919 (s390_init_frame_pc_first): Remove.
9920 (s390_init_frame_extra_info): Remove.
9921 (s390_frame_init_saved_regs): Remove.
9922 (s390_frame_saved_pc_nofix): Remove.
9923 (s390_frame_saved_pc): Remove.
9924 (s390_frame_chain): Remove.
9925 (s390_fp_regnum, s390_read_fp): Remove.
9926 (s390_pop_frame_regular, s390_pop_frame): Remove.
9927 (s390_saved_pc_after_call): Remove.
9928 (s390_skip_prologue): Reimplement.
9929 (s390_in_function_epilogue_p): Support long displacements.
9930 (struct s390_unwind_cache): New data structure.
9931 (s390_frame_unwind_cache): New function.
9932 (s390_prologue_frame_unwind_cache): Likewise.
9933 (s390_backchain_frame_unwind_cache): Likewise.
9934 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9935 (s390_frame_unwind): Define.
9936 (s390_frame_sniffer): New function.
9937 (struct s390_pltstub_unwind_cache): New data structure.
9938 (s390_pltstub_frame_unwind_cache): New function.
9939 (s390_pltstub_frame_this_id): Likewise.
9940 (s390_pltstub_frame_prev_register): Likewise.
9941 (s390_pltstub_frame_unwind): Define.
9942 (s390_pltstub_frame_sniffer): New function.
9943 (struct s390_sigtramp_unwind_cache): New data structure.
9944 (s390_sigtramp_frame_unwind_cache): New function.
9945 (s390_sigtramp_frame_this_id): Likewise.
9946 (s390_sigtramp_frame_prev_register): Likewise.
9947 (s390_sigtramp_frame_unwind): Define.
9948 (s390_sigtramp_frame_sniffer): New function.
9949 (s390_frame_base_address, s390_local_base_address): New functions.
9950 (s390_frame_base): Define.
9951 (s390_unwind_pc, s390_unwind_sp): New function.
9952 (s390_push_dummy_call): Use new frame base location.
9953 (s390_unwind_dummy_id): Likewise.
9954 (s390_gdbarch_init): Remove calls to:
9955 set_gdbarch_frameless_function_invocation,
9956 set_gdbarch_deprecated_init_frame_pc,
9957 set_gdbarch_deprecated_frame_chain,
9958 set_gdbarch_deprecated_frame_init_saved_regs,
9959 set_gdbarch_deprecated_pop_frame,
9960 set_gdbarch_deprecated_init_extra_frame_info,
9961 set_gdbarch_deprecated_init_frame_pc_first,
9962 set_gdbarch_deprecated_target_read_fp,
9963 set_gdbarch_deprecated_frame_saved_pc,
9964 set_gdbarch_deprecated_saved_pc_after_call,
9965 set_gdbarch_deprecated_fp_regnum.
9966 Add calls to:
9967 set_gdbarch_in_solib_call_trampoline,
9968 frame_unwind_append_sniffer,
9969 frame_base_set_default,
9970 set_gdbarch_unwind_pc,
9971 set_gdbarch_unwind_sp.
9972 * Makefile.in (s390-tdep.o): Update dependencies.
9973
9974 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9975 (S390_STACK_FRAME_OVERHEAD): Remove.
9976 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9977 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9978 (s390_promote_integer_argument): Remove.
9979 (s390_cannot_extract_struct_value_address): Remove.
9980 (s390_use_struct_convention, s390_store_struct_return): Remove.
9981 (s390_extract_return_value, s390_store_return_value): Remove.
9982 (s390_return_value_convention, s390_return_value): New functions.
9983 (is_float_singleton): Handle typedefs.
9984 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9985 Remove, replace by ...
9986 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9987 s390_function_arg_integer): ... these new functions.
9988 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9989 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9990 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9991 Fill in tdep->abi.
9992 Remove calls to:
9993 set_gdbarch_deprecated_store_struct_return,
9994 set_gdbarch_deprecated_extract_return_value,
9995 set_gdbarch_deprecated_store_return_value,
9996 set_gdbarch_use_struct_convention,
9997 set_gdbarch_extract_struct_value_address,
9998 set_gdbarch_deprecated_pc_in_call_dummy,
9999 set_gdbarch_deprecated_push_arguments,
10000 set_gdbarch_deprecated_save_dummy_frame_tos,
10001 set_gdbarch_deprecated_push_return_address,
10002 set_gdbarch_deprecated_sizeof_call_dummy_words,
10003 set_gdbarch_deprecated_call_dummy_words,
10004 set_gdbarch_deprecated_dummy_write_sp.
10005 Add calls to:
10006 set_gdbarch_push_dummy_call,
10007 set_gdbarch_unwind_dummy_id,
10008 set_gdbarch_return_value.
10009
10010 * config/s390/nm-linux.h: Update comments.
10011 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10012 (STOPPED_BY_WATCHPOINT): Redefine.
10013 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10014 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10015 (s390_stopped_by_watchpoint): Likewise.
10016 (watch_area_cnt): Remove.
10017 * s390-nat.c: Update comments.
10018 (watch_area): Remove typedef.
10019 Global replace watch_area by struct watch_area.
10020 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10021 (s390_stopped_by_watchpoint): Remove pid argument,
10022 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10023 (s390_fix_watch_points): Remove pid argument,
10024 use s390_inferior_tid. Recompute area spanned by watchpoints.
10025 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10026 argument. Reimplement.
10027
10028 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10029 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10030 (FETCH_INFERIOR_REGISTERS): Define.
10031 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10032 core-regset.o.
10033 * config/s390/s390x.mt: Remove.
10034 * config/s390/tm-s390.h: Remove.
10035 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10036 (TARGET_ELF64): Remove.
10037 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10038 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10039 s390*-*-* case; always set gdb_target to s390.
10040 * regformats/reg-s390.dat: Remove control registers.
10041 * regformats/reg-s390x.dat: Likewise.
10042 * s390-tdep.h: New file.
10043 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10044 Include "inferior.h" and "s390-tdep.h".
10045 Remove private definition of offsetof.
10046 (s390_register_u_addr): Remove.
10047 (regmap_gregset, regmap_fpregset): Define.
10048 (supply_gregset, fill_gregset): Reimplement.
10049 (supply_fpregset, fill_fpregset): Likewise.
10050 (s390_inferior_tid): New function.
10051 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10052 (fetch_inferior_registers, store_inferior_registers): Likewise.
10053 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10054 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10055 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10056 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10057 (struct gdbarch_tdep): Define.
10058 (struct s390_register_info): Define.
10059 (s390_register_info): New variable.
10060 (s390_register_name): Reimplement.
10061 (s390_register_type): New function.
10062 (s390_register_raw_size, s390x_register_raw_size): Remove.
10063 (s390_cannot_fetch_register): Remove.
10064 (s390_register_byte): Remove.
10065 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10066 (s390_dwarf_regmap): New variable.
10067 (s390_dwarf_reg_to_regnum): New function.
10068 (s390_stab_reg_to_regnum): Remove.
10069 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10070 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10071 (s390_convert_register_p): Likewise.
10072 (s390_register_to_value, s390_value_to_register): Likewise.
10073 (s390_register_reggroup_p): Likewise.
10074 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10075 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10076 (s390_supply_regset, s390_regset_from_core_section): New functions.
10077 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10078 (S390_FPR_SIZE): Likewise.
10079 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10080 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10081 (S390_NUM_GPRS): Move here from tm-s390.h.
10082 (S390_NUM_FPRS): Likewise.
10083 (s390_in_function_epilogue_p): New function.
10084 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10085 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10086 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10087 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10088 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10089 Remove calls to:
10090 set_gdbarch_deprecated_max_register_raw_size,
10091 set_gdbarch_deprecated_max_register_virtual_size,
10092 set_gdbarch_deprecated_register_byte,
10093 set_gdbarch_cannot_fetch_register,
10094 set_gdbarch_cannot_store_register,
10095 set_gdbarch_deprecated_register_size,
10096 set_gdbarch_deprecated_register_raw_size,
10097 set_gdbarch_deprecated_register_virtual_size,
10098 set_gdbarch_deprecated_register_virtual_type,
10099 set_gdbarch_deprecated_register_bytes.
10100 Add calls to:
10101 set_gdbarch_num_pseudo_regs,
10102 set_gdbarch_register_type,
10103 set_gdbarch_convert_register_p,
10104 set_gdbarch_register_to_value,
10105 set_gdbarch_value_to_register,
10106 set_gdbarch_register_reggroup_p,
10107 set_gdbarch_regset_from_core_section,
10108 set_gdbarch_pseudo_register_read,
10109 set_gdbarch_pseudo_register_write,
10110 set_gdbarch_in_function_epilogue_p.
10111 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10112 (s390_tdep_h): New variable.
10113
10114 2004-02-17 Jim Blandy <jimb@redhat.com>
10115
10116 * findvar.c (value_from_register): If the type has no length, just
10117 return an acceptable value --- don't report an internal error.
10118
10119 * stabsread.c (read_type): If we find any type numbers that are
10120 forward references, complain if the references aren't resolved by
10121 the time we're finished reading.
10122 (cleanup_undefined_types): Make error message more appropriate for
10123 a complaint.
10124
10125 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10126
10127 * Makefile.in (defs_h): Remove dependency on progress_h.
10128 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10129 progress.h.
10130 * main.c (captured_main): Delete use of START_PROGRESS and
10131 END_PROGRESS.
10132
10133 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10134
10135 * objfiles.c (terminate_minimal_symbol_table): Add back
10136 initialization of MSYMBOL_TYPE.
10137
10138 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10139
10140 Committed by Andrew Cagney.
10141 * Makefile.in (ia64_tdep_h): New macro.
10142 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10143 (ia64-tdep.o): Likewise.
10144 * ia64-tdep.h: New file.
10145 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10146 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10147 (ia64_aix_sigcontext_register_address): Likewise.
10148 (ia64_linux_getunwind_table): Delete declaration.
10149 * ia64-linux-tdep.c: Likewise.
10150
10151 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10152
10153 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10154 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10155 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10156
10157 2004-02-17 Andrew Cagney <cagney@redhat.com>
10158
10159 * symtab.c (skip_prologue_using_sal): New function.
10160 * symtab.h (skip_prologue_using_sal): Declare.
10161 * frv-tdep.c: Include "symtab.h".
10162 (skip_prologue_using_sal): Delete function.
10163 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10164 * rs6000-tdep.c (refine_prologue_limit): Mention
10165 skip_prologue_using_sal.
10166 * ia64-tdep.c (refine_prologue_limit): Ditto.
10167 * Makefile.in: Update dependencies.
10168
10169 2004-02-16 Andrew Cagney <cagney@redhat.com>
10170
10171 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10172 START_INFERIOR_TRAPS_EXPECTED.
10173 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10174 START_INFERIOR_TRAPS_EXPECTED.
10175 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10176 Delete macro.
10177 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10178 macro, moved to "nm-osf.h". Update copyright.
10179 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10180 update copyright.
10181
10182 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10183 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10184 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10185 frameless_look_for_prologue.
10186 * frame.h (legacy_frameless_look_for_prologue): Rename
10187 frameless_look_for_prologue.
10188 * gdbarch.h, gdbarch.c: Re-generate.
10189 * sh64-tdep.c (sh64_gdbarch_init): Update.
10190 * sh-tdep.c (sh_gdbarch_init): Update.
10191 * s390-tdep.c (s390_gdbarch_init): Update.
10192 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10193 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10194 * m68k-tdep.c (m68k_gdbarch_init): Update.
10195 (delta68_frame_args_address): Update.
10196 * m32r-tdep.c (m32r_gdbarch_init): Update.
10197 * hppa-tdep.c (hppa_gdbarch_init): Update.
10198 * h8300-tdep.c (h8300_gdbarch_init): Update.
10199 * frv-tdep.c (frv_gdbarch_init): Update.
10200 (frv_frameless_function_invocation): Update.
10201 * cris-tdep.c (cris_gdbarch_init): Update.
10202 (cris_frameless_function_invocation): Update.
10203 * avr-tdep.c (avr_gdbarch_init): Update.
10204 * arm-tdep.c (arm_gdbarch_init): Update.
10205 * stack.c (frame_info): Update, call predicate.
10206 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10207 * frame.c (legacy_get_prev_frame): Update, call predicate..
10208 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10209 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10210 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10211 invocation.
10212 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10213 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10214 * vax-tdep.c (vax_gdbarch_init): Ditto.
10215
10216 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10217 function.
10218
10219 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10220
10221 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10222 initializations.
10223
10224 2004-02-16 Andrew Cagney <cagney@redhat.com>
10225
10226 * tui/tui-windata.c: Include "gdb_string.h".
10227 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10228 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10229 * Makefile.in: Update dependencies.
10230
10231 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10232
10233 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10234 * infrun.c: Include "gdb_assert.h".
10235 (singlestep_ptid, saved_singlestep_ptid)
10236 (stepping_past_singlestep_breakpoint): New variables.
10237 (resume): Set singlestep_ptid. Check for singlestep thread
10238 hop.
10239 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10240 (handle_inferior_event): Handle singlestep thread hop.
10241
10242 2004-02-16 Andrew Cagney <cagney@redhat.com>
10243
10244 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10245 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10246 (dwarf2_frame_init_reg): Ditto.
10247
10248 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10249 suggested by Joshua Neuheisel
10250
10251 * configure.in: Always check for curses, including pdcurses.
10252 Warn, instead of error, when no curses are found. Enable TUI when
10253 curses is available.
10254 * configure: Re-generate.
10255
10256 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10257
10258 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10259 sh_sh4_register_convert_to_virtual.
10260 (sh_register_convert_to_raw): Rename from
10261 sh_sh4_register_convert_to_raw.
10262 (sh_pseudo_register_read): Accomodate above name change.
10263 (sh_pseudo_register_write): Ditto.
10264
10265 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10266
10267 * sh-tdep.c (sh_generic_register_name): Remove.
10268 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10269
10270 2004-02-15 Andrew Cagney <cagney@redhat.com>
10271
10272 * configure.in (build_warnings): Add -Wunused-function.
10273 * configure: Re-generate.
10274
10275 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10276 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10277
10278 * procfs.c (procfs_init_inferior): Assume that
10279 START_INFERIOR_TRAPS_EXPECTED is defined.
10280 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10281 * config/ns32k/tm-nbsd.h: Delete file,
10282 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10283
10284 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10285 * config/vax/tm-vax.h: Delete file.
10286
10287 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10288 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10289 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10290 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10291 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10292 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10293 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10294
10295 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10296
10297 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10298 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10299 (struct dwarf2_frame_ops): New.
10300 (dwarf2_frame_default_init_reg): New function, based on
10301 dwarf2_frame_init_reg.
10302 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10303 (dwarf2_frame_init_reg): Call architecture-specific function.
10304 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10305 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10306 instead of dwarf2_frame_data.
10307 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10308 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10309
10310 2004-02-15 Andrew Cagney <cagney@redhat.com>
10311
10312 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10313 register_gdbarch_swap.
10314 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10315 * f-lang.c (_initialize_f_language): Update, use
10316 DEPRECATED_REGISTER_GDBARCH_SWAP.
10317 * remote.c (_initialize_remote): Ditto.
10318 * regcache.c (_initialize_regcache): Ditto.
10319 * parse.c (_initialize_parse): Ditto.
10320 * infrun.c (_initialize_infrun): Ditto.
10321 * mi/mi-main.c (_initialize_mi_main): Ditto.
10322 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10323
10324 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10325 poking .cacheable directly.
10326 * symfile.c (symfile_bfd_open): Ditto.
10327
10328 * Makefile.in: Update all dependencies.
10329
10330 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10331 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10332 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10333 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10334 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10335
10336 2004-02-14 Andrew Cagney <cagney@redhat.com>
10337
10338 * arch-utils.c (legacy_convert_register_p): Check
10339 DEPRECATED_REGISTER_CONVERTIBLE_P.
10340 * findvar.c (value_of_register): Ditto.
10341
10342 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10343 * gdbarch.h, gdbarch.c: Re-generate.
10344 * arch-utils.c (deprecated_register_convertible_not): Delete.
10345 * arch-utils.h (deprecated_register_convertible_not): Delete.
10346 * mi/mi-main.c (get_register): Update. Update copyright.
10347 * infcmd.c (default_print_registers_info): Update.
10348
10349 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10350 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10351 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10352 * gdbarch.h, gdbarch.c: Re-generate.
10353 * frame.c (deprecated_get_next_frame_hack): Delete function.
10354 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10355 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10356 Update.
10357 * infcall.c (call_function_by_hand): Update.
10358
10359 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10360
10361 * symfile.c (init_entry_point_info, entry_point_address): Move
10362 from here...
10363 * objfiles.c (init_entry_point_info, entry_point_address):..to
10364 here.
10365 * symfile.h (init_entry_point_info, entry_point_address): Remove
10366 prototypes.
10367 * objfiles.h (init_entry_point_info, entry_point_address):Add
10368 prototypes.
10369 * cris-tdep.c: Remove include of symfile.h. Add include of
10370 objfiles.h.
10371 * infcall.c: Ditto.
10372 * mcore-tdep.c: Ditto.
10373 * mn10300-tdep.c: Ditto.
10374 * sh64-tdep.c: Ditto.
10375 * v850-tdep.c: Ditto.
10376 * arm-tdep.c: Remove include of symfile.h.
10377 * blockframe.c: Ditto.
10378 * coffread.c: Ditto.
10379 * dbxread.c: Ditto.
10380 * dwarf2read.c: Ditto.
10381 * dwarfread.c: Ditto.
10382 * frv-tdep.c: Ditto.
10383 * ia64-tdep.c: Ditto.
10384 * mdebugread.c: Ditto.
10385 * mipsread.c: Ditto.
10386 * rs6000-tdep.c: Ditto.
10387 * s390-tdep.c: Ditto.
10388 * sh-tdep.c: Ditto.
10389 * xstormy16-tdep.c: Ditto.
10390 * gdbarch.sh: Remove include of symfile.h.
10391 * gdbarch.c: Regenerate.
10392 * solib-irix.c (enable_break): Use entry_point_address().
10393 Add comment about include file.
10394 * xcoffread.c: Add comment about include file.
10395 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10396 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10397 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10398 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10399 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10400
10401 2004-02-13 Andrew Cagney <cagney@redhat.com>
10402
10403 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10404 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10405 copyright.
10406 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10407
10408 2004-02-12 Fred Fish <fnf@redhat.com>
10409
10410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10411 set_gdbarch_store_return_value.
10412
10413 2004-02-12 Andrew Cagney <cagney@redhat.com>
10414
10415 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10416 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10417 (interrupt_query): Ditto.
10418 (ofunc): Delete unused variable.
10419 * cris-tdep.c (cris_abi): Delete unused function.
10420 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10421 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10422 (cris_get_asr_quick_shift_steps): Ditto.
10423 (cris_skip_prologue_frameless_p): Ditto.
10424 * arm-tdep.c (arm_push_return_address): Delete unused function.
10425 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10426 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10427 * s390-tdep.c (s390_function_start): Delete unused function.
10428
10429 2004-02-12 Andrew Cagney <cagney@redhat.com>
10430
10431 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10432 gdbarch.h, gdbarch.c: Re-generate.
10433 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10434 to generic_prologue_frameless_p.
10435 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10436 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10437
10438 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * mips-linux-tdep.c: Include "frame.h".
10441 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10442 (mips_linux_skip_resolver): New functions.
10443 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10444 and set_gdbarch_in_solib_call_trampoline.
10445 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10446 to after set_gdbarch_in_solib_return_trampoline. Only set the
10447 solib hooks to mips16 functions if the OS ABI is unknown.
10448 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10449 including "config/tm-linux.h".
10450 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10451 * Makefile.in (mips-linux-tdep.o): Update.
10452
10453 2004-02-11 David Carlton <carlton@kealia.com>
10454
10455 * linespec.c (decode_compound): Only look for a class symbol when
10456 considering all but the rightmost component.
10457
10458 2004-02-11 Andrew Cagney <cagney@redhat.com>
10459
10460 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10461 abi code are are separatly grouped.
10462
10463 2004-02-11 Andrew Cagney <cagney@redhat.com>
10464
10465 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10466 * gdbarch.h, gdbarch.c: Re-generate.
10467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10468 * v850-tdep.c (v850_gdbarch_init): Update.
10469 * sh64-tdep.c (sh64_gdbarch_init): Update.
10470 * sh-tdep.c (sh_gdbarch_init): Update.
10471 * s390-tdep.c (s390_gdbarch_init): Update.
10472 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10473 * mips-tdep.c (mips_gdbarch_init): Update.
10474 * mcore-tdep.c (mcore_gdbarch_init): Update.
10475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10476 * m32r-tdep.c (m32r_gdbarch_init): Update.
10477 * ia64-tdep.c (ia64_gdbarch_init): Update.
10478 * hppa-tdep.c (hppa_gdbarch_init): Update.
10479 * h8300-tdep.c (h8300_gdbarch_init): Update.
10480 * frv-tdep.c (frv_gdbarch_init): Update.
10481 * d10v-tdep.c (d10v_gdbarch_init): Update.
10482 * cris-tdep.c (cris_gdbarch_init): Update.
10483 * avr-tdep.c (avr_gdbarch_init): Update.
10484 * arm-tdep.c (arm_gdbarch_init): Update.
10485 * alpha-tdep.c (alpha_gdbarch_init): Update.
10486
10487 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10488
10489 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10490 comma.
10491 (sh_sh4al_dsp_register_name): Ditto.
10492
10493 2004-02-10 Andrew Cagney <cagney@redhat.com>
10494
10495 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10496 (mips_init_frame_pc_first): Delete function.
10497 (mips_frame_saved_pc): Delete function.
10498 (mips_frame_chain): Delete function.
10499 (mips_init_extra_frame_info): Delete function.
10500 (mips_xfer_register): Delete unused variable "reg".
10501 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10502 (mips_n32n64_return_value): Delete unused variable "reg".
10503 (mips_n32n64_return_value): Delete unused variable "pos".
10504 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10505 (mips_o32_return_value): Delete unused variable "pos".
10506 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10507 (mips_print_fp_register): Delete unused variable "namelen"
10508 (mips_print_fp_register): Delete unused variable "flt2"
10509 (get_frame_pointer): Delete function.
10510 (cached_proc_desc): Delete static variable.
10511 (mips_pop_frame): Delete function.
10512 (mips_find_saved_regs): Delete function.
10513 (mips_get_saved_register): Delete function.
10514 (mips_saved_pc_after_call): Delete function.
10515 (SIGFRAME_BASE): Delete macro.
10516 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10517 (SIGFRAME_PC_OFF): Delete macro.
10518 (SIGFRAME_REGSAVE_OFF): Delete macro.
10519 (mips_dump_tdep): Do not print deleted macro definitions.
10520
10521 2004-02-10 Andrew Cagney <cagney@redhat.com>
10522
10523 * Makefile.in (SFILES): Remove explictly listed tui files.
10524 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10525
10526 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10527
10528 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10529 to use paddr functions to format ia64 addresses and long values.
10530 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10531 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10532 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10533 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10534 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10535
10536 2004-02-10 Andrew Cagney <cagney@redhat.com>
10537
10538 * defs.h: Do not include "tui.h".
10539 * gdb_curses.h: New file.
10540 * tui/tui-hooks.h: New file.
10541 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10542 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10543 (tui_initialize_io): Delete declaration.
10544 (tui_initialize_readline: Delete redundant declaration.
10545 (struct tui_point): Delete definition.
10546 * tui/tui-data.h (struct tui_point): Define.
10547 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10548 * utils.c: Include "tui/tui.h".
10549 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10550 * printcmd.c [TUI]: Include "tui/tui.h".
10551 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10552 * tui/tui-command.c: Include "gdb_curses.h".
10553 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10554 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10555 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10556 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10557 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10558 * Makefile.in: Update all dependencies.
10559 (tui_hooks_h, gdb_curses_h): Define.
10560 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10561
10562 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10563
10564 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10565 auxf2. Add comments about some other rarely used fields.
10566
10567 2004-02-10 Andrew Cagney <cagney@redhat.com>
10568
10569 * Makefile.in (init.c): Fix script removing duplicates. Problem
10570 reported by Peter Schauer.
10571
10572 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10573
10574 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10575 obstack_specify_allocation.
10576 * objfiles.c (allocate_objfile): Ditto.
10577 * solib-sunos.c (solib_add_common_symbols)
10578 (allocate_rt_common_objfile): Ditto.
10579 * symfile.c (reread_symbols): Ditto.
10580 * gdb_obstack.h: Add comment.
10581
10582 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10583
10584 * linespec.c (decode_line_1, locate_first_half)
10585 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10586 commented out code.
10587
10588 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10589
10590 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10591 obstack_free.
10592
10593 2004-02-09 Andrew Cagney <cagney@redhat.com>
10594
10595 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10596 fails, try find_pc_section. Fix PR c++/1267.
10597 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10598 instead of find_pc_mapped_section.
10599 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10600 not default to the section containing PC. Fix PR symtab/1519.
10601
10602 2004-02-09 Andrew Cagney <cagney@redhat.com>
10603
10604 * Makefile.in (mips-tdep.o): Update dependencies.
10605 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10606 "trad-frame.h".
10607 (mips_unwind_pc): Return the pseudo PC register.
10608 (mips_unwind_dummy_id): New function.
10609 (mips16_fetch_instruction): New function.
10610 (mips32_fetch_instruction): New function.
10611 (struct mips_frame_cache): Define.
10612 (mips_mdebug_frame_cache): New function.
10613 (mips_mdebug_frame_this_id): New function.
10614 (mips_mdebug_frame_prev_register): New function.
10615 (mips_mdebug_frame_unwind): Define.
10616 (mips_mdebug_frame_sniffer): New function.
10617 (mips_mdebug_frame_base_address): New function.
10618 (mips_mdebug_frame_base): Define.
10619 (mips_mdebug_frame_base_sniffer): New function.
10620 (mips_gdbarch_init): Append unwind and base sniffers. Set
10621 unwind_dummy_id.
10622
10623 2004-02-08 Andrew Cagney <cagney@redhat.com>
10624
10625 * frame.c: Print both the register number and name.
10626
10627 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10628 and a sed into a single sed. Make .c and .o patterns more robust.
10629 (OBS): Delete.
10630 (INIT_FILES): Replace OBS with COMMON_OBS.
10631 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10632
10633 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10634
10635 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10636 the PT_WCOOKIE request.
10637
10638 2004-02-08 Andrew Cagney <cagney@redhat.com>
10639
10640 * mips-tdep.c (mips_unwind_pc): New function.
10641 (mips_gdbarch_init): Set mips_unwind_pc.
10642
10643 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10644 (get_frame_id): Allow the UNKNOWN_FRAME.
10645 (frame_register_unwind, get_frame_type): Ditto.
10646
10647 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10648 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10649 unwind_dummy_id indicates a legacy frame.
10650
10651 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10652 * configure: Re-generate.
10653
10654 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10655 methods.
10656
10657 2004-02-08 Andrew Cagney <cagney@redhat.com>
10658
10659 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10660 makefile macro.
10661 * configure: Re-generate.
10662 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10663 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10664 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10665 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10666 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10667 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10668 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10669 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10670 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10671 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10672
10673 2004-02-07 Andrew Cagney <cagney@redhat.com>
10674
10675 * Makefile.in: Update all dependencies.
10676
10677 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10678 * configure: Re-generate.
10679 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10680 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10681 (COMMON_OBS): Add "main.o" and "annotate.o".
10682 (ANNOTATE_OBS): Delete.
10683 (OBS): Remove ANNOTATE_OBS.
10684 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10685 CONFIG_INITS.
10686 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10687 against CONFIG_OBS and "main.o".
10688 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10689 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10690
10691 * tui/tui-command.c: Include "gdb_string.h", delete register
10692 attribute, use ISO-C function signatures.
10693 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10694 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10695 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10696 * tui/tui.c: Ditto.
10697
10698 * tui/tui-command.c: Change variable and function names to lower
10699 case.
10700 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10701 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10702 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10703 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10704 * tui/tui-winsource.c, tui/tui.c: Ditto.
10705
10706 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10707
10708 * buildsym.c (free_pending_blocks, finish_block)
10709 (record_pending_block, make_blockvector, end_symtab): Replace
10710 symbol_obstack with objfile_obstack.
10711 * coffread.c (process_coff_symbol, coff_read_struct_type)
10712 (coff_read_enum_type): Ditto.
10713 * cp-namespace.c (initialize_namespace_symtab)
10714 (check_one_possible_namespace_symbol): Ditto.
10715 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10716 (dwarf2_symbol_mark_computed): Ditto.
10717 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10718 * elfread.c (elf_symtab_read): Ditto.
10719 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10720 (hpread_read_enum_type, hpread_read_function_type)
10721 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10722 Ditto.
10723 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10724 (java_link_class_type): Ditto.
10725 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10726 (new_symbol): Ditto.
10727 * minsyms.c (install_minimal_symbols): Ditto.
10728 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10729 (terminate_minimal_symbol_table): Replace symbol_obstack with
10730 objfile_obstack.
10731 (free_objfile): Remove freeing of symbol_obstack.
10732 * objfiles.h: Remove symbol_obstack field.
10733 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10734 objfile_obstack.
10735 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10736 symbol_obstack.
10737 (solib_add_common_symbols): Replace symbol_obstack with
10738 objfile_obstack.
10739 * somsolib.c (som_solib_add): Ditto.
10740 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10741 (common_block_start, common_block_end): Ditto.
10742 * symfile.c (reread_symbols): Remove freeing and init of
10743 symbol_obstack.
10744 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10745 * symfile.h: Update comment.
10746 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10747 stats printing.
10748 * symtab.c (symbol_set_names): Replace symbol_obstack with
10749 objfile_obstack.
10750 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10751 Update comments.
10752 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10753 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10754 objfile_obstack.
10755
10756 2004-02-07 Andrew Cagney <cagney@redhat.com>
10757
10758 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10759 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10760 fields and variables.
10761 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10762 (m_beInvisible): Delete macro.
10763 * tui/tui-data.h: Fix case case fields and variables.
10764 (m_genWinPtrIsNull): Delete macro.
10765 (tui_win_list): Rename winList.
10766 (TUI_SRC_WIN): Rename srcWin.
10767 (TUI_DISASM_WIN): Rename disassemWin.
10768 (TUI_DATA_WIN): Rename dataWin.
10769 (TUI_CMD_WIN): Rename cmdWin.
10770 (m_genWinPtrNotNull): Delete macro.
10771 (m_winPtrIsNull): Delete macro.
10772 (m_winPtrNotNull): Delete macro.
10773 (tui_win_is_source_type): Replace m_winIsSourceType
10774 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10775 (tui_win_has_locator): Replace m_hasLocator.
10776 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10777 m_setWinHighlightOff.
10778 * tui/tui-data.c: Update references.
10779 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10780 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10781 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10782 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10783 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10784 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10785 * tui/tui-winsource.c, tui/tui.c: Ditto.
10786
10787 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10788
10789 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10790 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10791 StackGhost.
10792
10793 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10794 variable `i6' to `i7'.
10795 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10796
10797 2004-02-07 Andrew Cagney <cagney@redhat.com>
10798
10799 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10800 (TuiPoint, TuiPointPtr): Ditto.
10801 (TuiStatus, TuiStatusPtr): Ditto.
10802 (TuiWinType, TuiWinTypePtr): Ditto.
10803 (struct tui_point): Rename _TuiPoint.
10804 (tui_get_low_disassembly_address): Rename
10805 tuiGetLowDisassemblyAddress.
10806 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10807 (tuiFree): Delete declaration.
10808 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10809 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10810 * tui/tui.c (tuiFree): Delete function.
10811 * cli/cli-cmds.c (disassemble_command): Update references.
10812 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10813 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10814 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10815 * tui/tui-winsource.c: Ditto.
10816
10817 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10818
10819 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10820 coffstab_build_psymtabs, elfstab_build_psymtabs)
10821 (stabsect_build_psymtabs): Replace psymbol_obstack with
10822 objfile_obstack.
10823 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10824 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10825 Ditto.
10826 * dwarfread.c (scan_compilation_units): Ditto.
10827 * elfread.c (elfstab_offset_sections): Ditto.
10828 * hppa-tdep.c (read_unwind_info): Ditto.
10829 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10830 (hpread_end_psymtab): Ditto.
10831 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10832 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10833 Ditto.
10834 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10835 * objfiles.c (add_to_objfile_sections)
10836 (build_objfile_section_table): Ditto.
10837 (allocate_objfile): Remove init of psymbol_obstack.
10838 (free_objfile): Remove freeing of psymbol_obstack.
10839 * objfiles.h (struct objfile): Remove field
10840 psymbol_obstack. Update comments.
10841 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10842 psymbol_obstack with objfile_obstack.
10843 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10844 psymbol_obstack.
10845 * somread.c (som_symfile_offsets, init_import_symbols)
10846 (init_export_symbols): Replace psymbol_obstack with
10847 objfile_obstack.
10848 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10849 * symfile.c (default_symfile_offsets, syms_from_objfile)
10850 (reread_symbols): Remove freeing and init of psymbol_obstack.
10851 (cashier_psymtab): Update comment.
10852 * symmisc.c (print_objfile_statistics): Don't report stats for
10853 psymbol obstack.
10854 * symtab.h (struct general_symbol_info, struct partial_symtab):
10855 Update comments.
10856 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10857 (xcoff_symfile_offsets): Replace psymbol_obstack with
10858 objfile_obstack.
10859
10860 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10861
10862 * objfiles.h (struct objfile): Add objfile_obstack field.
10863 Remove type_obstack field.
10864
10865 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10866 read_structure_scope read_enumeration, new_symbol): Replace
10867 type_obstack with objfile_obstack.
10868 * dwarfread.c (struct_type, enum_type): Ditto.
10869 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10870 (lookup_fundamental_type): Ditto.
10871 * gdbtypes.h (TYPE_ALLOC): Ditto.
10872 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10873 (hpread_read_doc_function_type, hpread_read_struct_type)
10874 (fix_static_member_physnames, hpread_read_array_type)
10875 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10876 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10877 (java_link_class_type): Ditto.
10878 * mdebugread.c (parse_type): Ditto.
10879 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10880 * solib-sunos.c (solib_add_common_symbols): Ditto.
10881 * stabsread.c (define_symbol, read_type, read_member_functions,
10882 read_cpp_abbrev, read_one_struct_field): Ditto.
10883 * symfile.c (reread_symbols): Ditto.
10884 * symmisc.c (print_objfile_statistics): Ditto.
10885
10886 2004-02-07 Andrew Cagney <cagney@redhat.com>
10887
10888 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10889 (tui_exec_info_content): Rename TuiExecInfoContent.
10890 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10891 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10892 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10893 (TuiList, TuiListPtr): Ditto.
10894 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10895 (TuiDataType, TuiDataTypePtr): Ditto.
10896 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10897 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10898 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10899 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10900 (TuiDataElement, TuiDataElementPtr): Ditto.
10901 (TuiWinElement, TuiWinElementPtr): Ditto.
10902 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10903 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10904 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10905 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10906 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10907 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10908 * tui/tui-command.c, tui/tui-data.c: Update references.
10909 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10910 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10911 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10912 * tui/tui-winsource.c, tui/tui.c: Ditto.
10913
10914 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10915
10916 * dwarf2-frame.h: Update copyright.
10917 (enum dwarf2_frame_reg_rule): New.
10918 (struct dwarf2_frame_state_reg): New.
10919 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10920 * dwarf2-frame.c: Update copyright.
10921 (enum dwarf2_reg_rule): Remove.
10922 (struct dwarf2_frame_state): Remove defenition of `struct
10923 dwarf2_frame_state_reg'.
10924 (read_reg): Call get_frame_arch to get the architecture instead of
10925 using CURRENT_GDBARCH.
10926 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10927 DWARF2_FRAME_.
10928 (dwarf2_frame_init_reg): New function.
10929 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10930 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10931 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10932 tags with DWARF2_FRAME_.
10933 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10934 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10935 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10936
10937 2004-02-06 Andrew Cagney <cagney@redhat.com>
10938
10939 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10940 (enum tui_data_type): Rename _TuiDataType.
10941 (struct tui_layout_def): Rename _TuiLayoutDef.
10942 (struct tui_source_element): Rename _TuiSourceElement.
10943 (struct tui_data_element): Rename _TuiDataElement.
10944 (struct tui_command_element): Rename _TuiCommandElement.
10945 (struct tui_locator_element): Rename _TuiLocatorElement.
10946 (union tui_which_element): Define.
10947 (struct tui_win_element): Rename _TuiWinElement.
10948 (struct tui_data_info): Rename _TuiDataInfo.
10949 (struct tui_source_info): Rename _TuiSourceInfo.
10950 (struct tui_command_info): Rename _TuiCommandInfo.
10951 (tui_initialize_static_data): Rename initializeStaticData.
10952 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10953 (tui_alloc_win_info): Rename allocWinInfo.
10954 (tui_init_generic_part): Rename initGenericPart.
10955 (tui_init_win_info): Rename initWinInfo.
10956 (tui_alloc_content): Rename allocContent.
10957 (tui_add_content_elements): Rename addContentElements.
10958 (tui_init_content_element): Rename initContentElement.
10959 (tui_free_window): Rename freeWindow.
10960 (tui_free_win_content): Rename freeWinContent.
10961 (tui_free_data_content): Rename freeDataContent.
10962 (tui_free_all_source_wins_content): Rename
10963 freeAllSourceWinsContent.
10964 (tui_del_window): Rename tuiDelWindow.
10965 (tui_del_data_windows): Rename tuiDelDataWindows.
10966 (tui_partial_win_by_name): Rename partialWinByName.
10967 (tui_win_name): Rename winName.
10968 (tui_current_layout): Rename currentLayout.
10969 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10970 (tui_term_height): Rename termHeight.
10971 (tui_set_term_height_to): Rename setTermHeightTo.
10972 (tui_term_width): Rename termWidth.
10973 (tui_set_term_width_to): Rename setTermWidthTo.
10974 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10975 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10976 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10977 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10978 (tui_source_windows): Rename sourceWindows.
10979 (tui_clear_source_windows): Rename clearSourceWindows.
10980 (tui_clear_source_windows_detail): Rename
10981 clearSourceWindowsDetail.
10982 (tui_clear_win_detail): Rename clearWinDetail.
10983 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10984 (tui_default_tab_len): Rename tuiDefaultTabLen.
10985 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10986 (tui_win_with_focus): Rename tuiWinWithFocus.
10987 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10988 (tui_layout_def): Rename tuiLayoutDef.
10989 (tui_win_resized): Rename tuiWinResized.
10990 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10991 (tui_next_win): Rename tuiNextWin.
10992 (tui_prev_win): Rename tuiPrevWin.
10993 (tui_add_to_source_windows): Rename addToSourceWindows.
10994 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10995 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10996 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10997 * tui/tui.c, tui/tui-data.c: Ditto.
10998 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10999 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11000
11001 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11002 (struct symtab): Declare.
11003 (tui_set_source_content): Rename tuiSetSourceContent.
11004 (tui_show_symtab_source): Rename tuiShowSource.
11005 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11006 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11007 * tui/tui-source.c: Update copyright. Update references.
11008 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11009 * tui/tui-stack.c: Update references.
11010
11011 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11012 (struct tui_win_info): Declare.
11013 (tui_scroll_forward): Rename tuiScrollForward.
11014 (tui_scroll_backward): Rename tuiScrollBackward.
11015 (tui_scroll_left): Rename tuiScrollLeft.
11016 (tui_scroll_right): Rename tuiScrollRight.
11017 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11018 (tui_resize_all): Rename tuiResizeAll.
11019 (tui_refresh_all_win): Rename tuiRefreshAll.
11020 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11021 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11022 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11023 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11024
11025 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11026 (tui_erase_data_content): Rename tuiEraseDataContent.
11027 (tui_display_all_data): Rename tuiDisplayAllData.
11028 (tui_check_data_values): Rename tuiCheckDataValues.
11029 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11030 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11031 (tui_first_data_element_no_in_line): Rename
11032 tuiFirstDataElementNoInLine.
11033 (tui_delete_data_content_windows): Rename
11034 tuiDeleteDataContentWindows.
11035 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11036 (tui_display_data_from): Rename tuiDisplayDataFrom.
11037 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11038 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11039 * tui/tui-win.c, tui/tui-regs.c: Update references.
11040 * tui/tui-layout.c, tui/tui.c: Update references.
11041
11042 * tui/tui-wingeneral.h: Update copyright.
11043 (m_allBeVisible): Delete macro.
11044 (m_allBeInvisible): Delete macro.
11045 (struct tui_gen_win_info): Declare.
11046 (struct tui_win_info): Declare.
11047 (tui_unhighlight_win): Rename unhighlightWin.
11048 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11049 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11050 (tui_make_window): Rename makeWindow.
11051 (tui_copy_win): Rename copyWin.
11052 (tui_box_win): Rename boxWin.
11053 (tui_highlight_win): Rename highlightWin.
11054 (tui_check_and_display_highlight_if_needed): Rename
11055 checkAndDisplayHighlightIfNeeded.
11056 (tui_refresh_all): Rename refreshAll.
11057 (tui_delete_win): Rename tuiDelwin.
11058 (tui_refresh_win): Rename tuiRefreshWin.
11059 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11060 (tui_make_visible, tui_make_invisible): New functions.
11061 (tui_make_all_visible, tui_make_all_invisible): New functions.
11062 (make_all_visible): Rename makeAllVisible.
11063 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11064 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11065 * tui/tui-windata.c, tui/tui-win.c: Update references.
11066 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11067 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11068
11069 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11070
11071 * proc-api.c (write_with_trace): Initialize local variable to
11072 silence compiler warning.
11073
11074 2004-02-06 Andrew Cagney <cagney@redhat.com>
11075
11076 * tui/tui-source.h: Do not include "defs.h".
11077 (struct tui_win_info): Declare.
11078 (tui_set_source_content_nil): Declare.
11079 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11080 (union tui_line_or_address): Rename _TuiLineOrAddress.
11081 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11082 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11083 (tui_update_source_window_as_is): Rename
11084 tuiUpdateSourceWindowAsIs.
11085 (tui_update_source_windows_with_addr): Rename
11086 tuiUpdateSourceWindowsWithAddr.
11087 (tui_update_source_windows_with_line): Rename
11088 tuiUpdateSourceWindowsWithLine.
11089 (tui_clear_source_content): Rename tuiClearSourceContent.
11090 (tui_erase_source_content): Rename tuiEraseSourceContent.
11091 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11092 (tui_show_source_content): Rename tuiShowSourceContent.
11093 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11094 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11095 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11096 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11097 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11098 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11099 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11100 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11101 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11102 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11103 (struct tui_win_info): Declare.
11104 * tui/tui-stack.c: Update references.
11105 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11106 * tui/tui-win.c, tui/tui-source.c: Ditto.
11107 * tui/tui.c, tui/tui-disasm.c: Ditto.
11108
11109 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11110
11111 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11112 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11113
11114 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11115
11116 * infrun.c (handle_inferior_event): Allow for breakpoint
11117 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11118 and SIGEMT. Update comments.
11119 * NEWS (Revised SPARC target): Mention support for non-executable
11120 stack.
11121
11122 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11123
11124 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11125 * inftarg.c: Update copyright year.
11126 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11127 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11128 (sparc_xfer_wcookie): New function.
11129 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11130 * Makefile.in (sparc-nat.o): Update dependencies.
11131 * config/sparc/nm-nbsd.h: Include "target.h".
11132 (NATIVE_XFER_WCOOKIE): New define.
11133 (sparc_xfer_wcookie): New prototype.
11134
11135 2004-02-04 Andrew Cagney <cagney@redhat.com>
11136
11137 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11138 SYSCALL_TRAP function.
11139 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11140
11141 2004-02-04 Andrew Cagney <cagney@redhat.com>
11142 Daniel Jacobowitz <drow@mvista.com>
11143
11144 * objfiles.h: Delete comments refering to inside_entry_func and
11145 DEPRECATED_FRAME_CHAIN_VALID.
11146 * defs.h (inside_entry_func): Update prototype..
11147 * blockframe.c (inside_entry_func): Rename to
11148 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11149 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11150
11151 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11152
11153 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11154 outside of #ifdef SOLIB_ADD region.
11155 (do_restore_lang_radix_cleanup): Ditto.
11156 (resolve_pending_breakpoint): Ditto.
11157
11158 2004-02-03 Andrew Cagney <cagney@redhat.com>
11159
11160 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11161 (process_note_abi_tag_sections): Delete unused function.
11162 (ia64_read_fp): Delete unused function.
11163 (gdbarch_extract_struct_value_address): Delete declaration.
11164
11165 2004-02-02 Andrew Cagney <cagney@redhat.com>
11166
11167 * vax-tdep.c (vax_frame_chain): Delete call to
11168 deprecated_inside_entry_file.
11169 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11170
11171 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11172
11173 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11174 column that's "empty" or "same value" when eliminating REG_RA
11175 rules.
11176
11177 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11178
11179 * NEWS: Add information about new pending breakpoint support.
11180
11181 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11182
11183 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11184 and pending fields for pending breakpoint support.
11185 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11186 (condition_command): Only parse condition if not a pending
11187 breakpoint.
11188 (print_one_breakpoint): Add support for pending breakpoints.
11189 (describe_other_breakpoints): Add checks to verify we are not
11190 dealing with pending breakpoints.
11191 (check_duplicates): Don't check pending breakpoints.
11192 (set_raw_breakpoint): Initialize pending flag.
11193 (do_restore_lang_radix_cleanup): New cleanup routine.
11194 (resolve_pending_breakpoint): New function.
11195 (re_enable_breakpoints_in_shlibs): Try and resolve any
11196 pending breakpoints via resolve_pending_breakpoint.
11197 (mention): Add pending breakpoint support.
11198 (parse_breakpoint_sals): Add new parameter to pass to
11199 decode_line_1 to indicate silent errors when files or functions
11200 are not found. Change all callers.
11201 (do_captured_parse_breakpoint): New function.
11202 (break_command_1): Change prototype to return an rc value and to
11203 take an optional pending breakpoint pointer. Support creating
11204 a pending breakpoint if a "not found" form of error occurs when
11205 parsing the breakpoint. Also support resolving an existing pending
11206 breakpoint and be silent if the resolution fails.
11207 (create_breakpoints): Change prototype to take pending breakpoint
11208 pointer. When resolving a pending breakpoint, use the new pointer
11209 to provide a conditional or commands added by the end-user.
11210 (delete_breakpoint): Add appropriate check for pending.
11211 (breakpoint_re_set_one): Ditto.
11212 (do_enable_breakpoint): Ditto.
11213
11214 2004-02-02 David Carlton <carlton@kealia.com>
11215
11216 * valops.c (enum oload_classification): New.
11217 (find_overload_match): Break implementation into separate
11218 functions; delete #if 0'd code; look for symbols within
11219 namespaces.
11220 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11221 (find_oload_champ,oload_method_static,classify_oload_match): New.
11222 * cp-support.h: Add declaration for cp_func_name; update
11223 declaration for make_symbol_overload_list.
11224 * cp-support.c (cp_func_name): New.
11225 (overload_list_add_symbol): Fix comment, use
11226 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11227 (make_symbol_overload_list): Take a function name and a namespace
11228 instead of a symbol; change implementation.
11229 (make_symbol_overload_list_using): New.
11230 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11231
11232 2004-02-02 Fred Fish <fnf@redhat.com>
11233
11234 * main.c (gdb_stdtarg): Move definition to group with other
11235 gdb_stdtarg definitions and update copyright years.
11236 * remote-sim.c (gdb_os_write_stderr): Write output to
11237 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11238 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11239 gdb_stderr stream and update copyright years.
11240
11241 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11242
11243 * Makefile.in (mips-linux-nat.o): Update dependencies.
11244 * mips-linux-nat.c: Include mips-tdep.h.
11245
11246 2004-02-01 Roland McGrath <roland@redhat.com>
11247
11248 * sol-thread.c (sol_thread_xfer_partial): New function.
11249 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11250 (init_sol_core_ops): Likewise.
11251
11252 * procfs.c (procfs_xfer_partial): New function.
11253 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11254 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11255
11256 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11257 procfs_xfer_auxv function.
11258
11259 * procfs.c (procfs_make_note_section): If we can read
11260 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11261 * linux-proc.c (linux_make_note_section): Likewise.
11262
11263 * auxv.h: New file.
11264 * auxv.c: New file.
11265 * Makefile.in (auxv_h): New variable.
11266 (COMMON_OBS): Add auxv.o here.
11267 (auxv.o): New target.
11268
11269 * corelow.c (core_xfer_partial): New function.
11270 (init_core_ops): Use it for core_ops.to_xfer_partial.
11271
11272 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11273 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11274 macro if that is defined.
11275
11276 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11277
11278 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11279 and check the specified thread for each breakpoint.
11280 * breakpoint.h (bpstat_stop_status): Update prototype.
11281 * infrun.c (handle_inferior_event): Update calls to
11282 bpstat_stop_status.
11283
11284 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11285
11286 * Makefile.in (cli-cmds.o): Add $(readline_h).
11287
11288 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11289
11290 * cli/cli-cmds.c: Include readline.h.
11291 (complete_command): Pass the start of the last word to
11292 complete_line.
11293
11294 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11297 argument, and change first argument to a CORE_ADDR.
11298 * breakpoint.h (bpstat_stop_status): Update prototype.
11299 * infrun.c (adjust_pc_after_break): Add a new comment.
11300 (handle_inferior_event): Update calls to bpstat_stop_status.
11301
11302 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11303
11304 * breakpoint.h: Update copyright years.
11305
11306 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11307
11308 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11309 (bpstat_stop_status): Don't decrement PC.
11310 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11311 prototype.
11312 * infrun.c (adjust_pc_after_break): New function.
11313 (handle_inferior_event): Call it, early. Remove later references
11314 to DECR_PC_AFTER_BREAK.
11315 (normal_stop): Add commentary.
11316
11317 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11318
11319 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11320 2004-01-27 double-free fix.
11321
11322 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11323
11324 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11325 (sparc32_frame_prev_register): Handle StackGhost.
11326 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11327
11328 2004-01-29 Roland McGrath <roland@redhat.com>
11329
11330 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11331 * configure: Regenerated.
11332
11333 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11334 * Makefile.in (procfs.o): Add dep.
11335
11336 2004-01-28 Andrew Cagney <cagney@redhat.com>
11337
11338 * tui/tui-stack.h: Update copyright.
11339 (struct frame_info): Add opaque declaration.
11340 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11341 (tui_show_locator_content): Rename tuiShowLocatorContent.
11342 (tui_show_frame_info): Rename tuiShowFrameInfo.
11343 * tui/tui-stack.c: Update copyright. Update references.
11344 * tui/tui-winsource.c: Update references.
11345 * tui/tui-win.c: Update references.
11346 * tui/tui-layout.c: Update references.
11347 * tui/tui-hooks.c: Update copyright, update references.
11348 * tui/tui.c: Update copyright, update references.
11349 * tui/tui-disasm.c: Update references.
11350
11351 2004-01-28 David Carlton <carlton@kealia.com>
11352
11353 * dwarf2read.c (add_partial_structure): Use demangled name if
11354 namespace equals "".
11355
11356 2004-01-27 Jim Blandy <jimb@redhat.com>
11357
11358 Clean up misapplied patch:
11359 * dwarf2read.c (determine_prefix): Change one of the two forward
11360 declarations for 'determine_prefix_aux' to a declaration for this.
11361 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11362 argument to 'die_specification'.
11363
11364 * dwarf2read.c (read_func_scope): Re-indent comment.
11365
11366 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11367
11368 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11369 b->exp to NULL after freeing so that error during re-parsing or
11370 evaluation of expressions associated with breakpoint don't
11371 eventually lead to re-freeing of storage.
11372 Committed by Andrew Cagney.
11373
11374 2004-01-27 Andrew Cagney <cagney@redhat.com>
11375
11376 * source.c (ambiguous_line_spec): Delete undefined declaration.
11377 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11378 (m32r_set_server_address, m32r_set_download_path): Ditto.
11379 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11380
11381 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11382
11383 * dwarf2read.c: Update calls to changed and renamed functions, and
11384 references to moved variables.
11385
11386 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11387 language, language_defn, list_in_scope, and ftypes members.
11388 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11389 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11390 (baseaddr): Remove globals.
11391
11392 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11393 (set_cu_language, die_is_declaration, die_specification)
11394 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11395 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11396 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11397 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11398
11399 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11400 cu.list_in_scope. Don't initialize cu_header_offset.
11401 (add_partial_symbol): Add local baseaddr.
11402 (psymtab_to_symtab_1): Add local baseaddr. Use
11403 objfile->section_offsets for consistency. Don't initialize
11404 cu_header_offset; do initialize cu.header.offset and
11405 cu.list_in_scope.
11406 (read_file_scope, read_func_scope, read_lexical_block_scope)
11407 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11408
11409 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11410
11411 * PROBLEMS: Add gdb/1516.
11412
11413 2003-12-29 Robert Millan <robertmh@gnu.org>
11414
11415 Patch committed by Andrw Cagney.
11416 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11417 * configure.tgt: Match knetbsd*-gnu.
11418
11419 2004-01-26 Andrew Cagney <cagney@redhat.com>
11420
11421 * breakpoint.c (catch_command_1): Delete #ifdef code.
11422 (catch_fork_command_1): Delete #ifdef wrapper.
11423 (catch_exec_command_1): Ditto.
11424 (catch_load_command_1): Ditto.
11425 (catch_unload_command_1): Ditto.
11426
11427 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11428 (catch_breakpoint): Delete #if0ed function.
11429 (disable_catch_breakpoint): Ditto.
11430 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11431 (disable_catch, enable_catch, delete_catch): Ditto.
11432
11433 2004-01-26 Andrew Cagney <cagney@redhat.com>
11434
11435 * remote.c (echo_check, quit_flag): Delete variables.
11436 (cisco_kernel_mode): Delete variable.
11437 (minitelnet_return, tty_input, escape_count): Delete variables.
11438 (remote_cisco_mode): Delete variable.
11439 (remote_cisco_open, remote_cisco_close): Delete function.
11440 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11441 (init_remote_cisco_ops): Delete function.
11442 (_initialize_remote): Do not install "remote cisco" code.
11443 (read_frame): Delete cisco specific code.
11444 (remote_info_process): Delete function.
11445 (remote_wait): Delete cisco specific code.
11446 (remote_cisco_section_offsets): Delete function.
11447 (remote_cisco_objfile_relocate): Delete function.
11448 (remote_async_wait): Delete cisco specific code.
11449 (minitelnet, readtty, readsocket): Delete function.
11450
11451 2004-01-26 Andrew Cagney <cagney@redhat.com>
11452
11453 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11454 comments mentioning extract_returned_value_address.
11455 * infcmd.c (print_return_value): Update. Add comments on
11456 extract_returned_value_address.
11457 * stack.c (return_command): Add comments on
11458 extract_returned_value_address.
11459 * values.c: Update comment.
11460 * m32r-tdep.c: Update comment.
11461 * sparc-tdep.c: Update comment.
11462 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11464 * sh64-tdep.c (sh64_gdbarch_init): Update.
11465 * sh-tdep.c (sh_gdbarch_init): Update.
11466 * s390-tdep.c (s390_gdbarch_init): Update.
11467 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11468 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11469 * m68k-tdep.c (m68k_gdbarch_init): Update.
11470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11471 * m32r-tdep.c (m32r_gdbarch_init): Update.
11472 * ia64-tdep.c (ia64_gdbarch_init): Update.
11473 * h8300-tdep.c (h8300_gdbarch_init): Update.
11474 * frv-tdep.c (frv_gdbarch_init): Update.
11475 * arm-tdep.c (arm_gdbarch_init): Update.
11476 * alpha-tdep.c (alpha_gdbarch_init): Update.
11477
11478 2004-01-26 Andrew Cagney <cagney@redhat.com>
11479
11480 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11481 SYMBOL_LOCATION_FUNCS
11482 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11483 "struct symbol_ops".
11484 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11485 type to "struct symbol_ops".
11486 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11487 (struct symbol): Replace ".aux_value.loc.funcs" and
11488 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11489 (SYMBOL_OBJFILE): Delete macro.
11490 (SYMBOL_LOCATION_FUNCS): Delete macro.
11491 (SYMBOL_LOCATION_BATON): Update.
11492 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11493 intead of SYMBOL_LOCATION_FUNCS.
11494 * ax-gdb.c (gen_var_ref): Ditto.
11495 * printcmd.c (address_info): Ditto.
11496 * findvar.c (read_var_value): Ditto.
11497 (symbol_read_needs_frame): Ditto.
11498
11499 2004-01-26 Andrew Cagney <cagney@redhat.com>
11500
11501 * dwarf2read.c (read_func_scope): Document frame-base hack.
11502
11503 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11504
11505 * infcmd.c (print_return_value): Plug memory leak; delete
11506 ui_stream object. Rename argument `structure_return' to
11507 `struct_return'.
11508
11509 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11510
11511 * infcmd.c (print_return_value): Wrap long lines.
11512 (finish_command_continuation, finish_command): Remove unused
11513 variable `funcaddr'. Fix some coding-standards problems.
11514
11515 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11516 SECT_SIZE is large enough, not whether it's exactly the right size.
11517 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11518 TDEP->fpregset to zero.
11519
11520 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11521 floating-point registers for traditional NetBSD core files.
11522 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11523 TDEP->sizeof_fpregset here.
11524
11525 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11526
11527 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11528 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11529 function with code split out from
11530 sparc32nbsd_sigcontext_frame_cache.
11531 (sparc32nbsd_sigcontext_frame_cache): Use
11532 sparc32nbsd_sigcontext_saved_regs.
11533 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11534 OpenBSD.
11535 * sparcobsd-tdep.c: New file.
11536 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11537 (sparcobsd-tdep.o): New dependency.
11538 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11539 * config/sparc/obsd.mt: New file.
11540
11541 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11542 TDEP->fpregset to be initialized to enable core file register
11543 sets.
11544
11545 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11546
11547 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11548 Add opaque declarations.
11549 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11550 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11551 function with code split out from
11552 sparc64nbsd_sigcontext_frame_cache.
11553 (sparc64nbsd_sigcontext_frame_cache): Use
11554 sparc64nbsd_sigcontext_saved_regs.
11555 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11556 OpenBSD.
11557 * sparc64obsd-tdep.c: New file.
11558 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11559 (sparc64obsd-tdep.o): New dependency.
11560 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11561 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11562 * config/sparc/obsd64.mt: New file.
11563
11564 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11565 read the instruction at PC.
11566
11567 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11568 value of GDB_OSABI_DEFAULT.
11569 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11570 instead of GDB_OSABI_NETBSD_AOUT.
11571
11572 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11573
11574 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11575 copyright.
11576
11577 2004-01-23 Andrew Cagney <cagney@redhat.com>
11578
11579 * printcmd.c (display_command): Replace tui_set_display call with
11580 tui_set_layout_for_display_command.
11581 * tui/tui.h (enum tui_win_type): Define.
11582 (tui_set_layout): Delete declaration.
11583 (tui_set_layout_for_display_command): Rename set_tui_layout.
11584 * tui/tui-data.h (enum tui_layout_type): Define.
11585 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11586 "tui.h".
11587 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11588 (tui_default_win_height): Rename tuiDefaultWinHeight.
11589 (tui_default_win_viewport_height): Rename
11590 tuiDefaultWinViewportHeight.
11591 (tui_set_layout): RenametuiSetLayout.
11592 * tui/tui-layout.c: Update references.
11593 * tui/tui.c: Update references.
11594 * tui/tui-disasm.c: Update references.
11595
11596 2004-01-23 David Carlton <carlton@kealia.com>
11597
11598 Partial workaround for PR c++/1511:
11599 * cp-namespace.c: Include frame.h.
11600 (cp_lookup_transparent_type): New
11601 (cp_lookup_transparent_type_loop): New.
11602 * cp-support.h: Declare cp_lookup_transparent_type.
11603 * symtab.c (basic_lookup_transparent_type): Renamed from
11604 lookup_transparent_type.
11605 (lookup_transparent_type): Replace old body by a call to
11606 current_language->la_lookup_transparent_type.
11607 * symtab.h: Update copyright. Declare
11608 basic_lookup_transparent_type.
11609 * language.h: Update copyright.
11610 (struct language_defn): Add la_lookup_transparent_type.
11611 * language.c: Update copyright.
11612 (unknown_language_defn): Add basic_lookup_transparent_type.
11613 (auto_language_defn): Add basic_lookup_transparent_type.
11614 (local_language_defn): Add basic_lookup_transparent_type.
11615 * ada-lang.c: Update copyright.
11616 (ada_language_defn): Add basic_lookup_transparent_type.
11617 * c-lang.c: Update copyright.
11618 (c_language_defn): Add basic_lookup_transparent_type.
11619 (cplus_language_defn): Add basic_lookup_transparent_type.
11620 (asm_language_defn): Add basic_lookup_transparent_type.
11621 (minimal_language_defn): Add basic_lookup_transparent_type.
11622 * f-lang.c: Update copyright.
11623 (f_language_defn): Add basic_lookup_transparent_type.
11624 * jv-lang.c: Update copyright.
11625 (java_language_defn): Add basic_lookup_transparent_type.
11626 * m2-lang.c: Update copyright.
11627 (m2_language_defn): Add basic_lookup_transparent_type.
11628 * objc-lang.c: Update copyright.
11629 (objc_language_defn): Add basic_lookup_transparent_type.
11630 * p-lang.c: Update copyright.
11631 (p_language_defn): Add basic_lookup_transparent_type.
11632 * scm-lang.c: Update copyright.
11633 (scm_language_defn): Add basic_lookup_transparent_type.
11634 * Makefile.in (cp-namespace.o): Depend on frame.h.
11635
11636 2004-01-23 David Carlton <carlton@kealia.com>
11637
11638 Patch for PR c++/1520:
11639 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11640 properly if we have a specification die.
11641 (determine_prefix_aux): Rename from determine_prefix.
11642 (determine_prefix): Like the old determine_prefix, but never
11643 returns NULL.
11644
11645 2004-01-23 Theodore A. Roth <troth@openavr.org>
11646
11647 * avr-tdep.c: Update copyright.
11648 (avr_iaddr_p): Delete unused function.
11649 (avr_saddr_p): Delete unused function.
11650
11651 2004-01-23 David Carlton <carlton@kealia.com>
11652
11653 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11654 Fix for PR symtab/1534.
11655
11656 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11657
11658 * NEWS (New native configurations): Mention OpenBSD/sparc and
11659 OpenBSD/sparc64.
11660 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11661 * configure.host: Likewise.
11662 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11663 handler for OpenBSD.
11664 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11665
11666 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11667
11668 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11669 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11670
11671 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11672 * cli/cli-cmds.c (shell_escape): Likewise.
11673
11674 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11675 OpenBSD .note.openbsd.ident sections.
11676
11677 2004-01-22 David Carlton <carlton@kealia.com>
11678
11679 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11680 get_scope_pc_bounds.
11681 (read_file_scope): Ditto.
11682 (get_scope_pc_bounds): New function, produced by extracting code
11683 from the above two functions, consolidating it, and adding support
11684 for DW_TAG_namespace.
11685
11686 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11687
11688 * osabi.c (MAX_NOTESZ): New define.
11689 (check_note): New function.
11690 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11691 check_note.
11692
11693 2004-01-21 Roland McGrath <roland@redhat.com>
11694
11695 * MAINTAINERS (write after approval): Add myself.
11696
11697 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11698
11699 * utils.c (init_page_info): Move declarations of `rows' and
11700 `cols' before the __GO32__-specific code. Move the closing brace
11701 outside the #ifdef __GO32__..#endif block.
11702 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11703
11704 2004-01-21 Paul Brook <paul@codesourcery.com>
11705
11706 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11707 BPSTAT_WHAT_CHECK_SHLIBS.
11708
11709 2004-01-21 Paul Brook <paul@codesourcery.com>
11710
11711 * MAINTAINERS: Add myself to write-after-approval.
11712
11713 2004-01-20 Andrew Cagney <cagney@redhat.com>
11714
11715 * ax-gdb.c (print_axs_value): Delete unused function.
11716 * jv-lang.c (java_lookup_type): Delete unused function.
11717 * cli/cli-dump.c (dump_filetype): Delete unused function.
11718 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11719 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11720 (mips_getstring): Delete unused function.
11721 (pmon_insert_breakpoint): Delete #if0ed function.
11722 (PMON_MAX_BP): Delete #if0ed MACRO.
11723 (mips_pmon_bp_info): Delete #if0ed variable.
11724 (pmon_remove_breakpoint): Delete #if0ed function.
11725 * monitor.c (monitor_write_even_block): Delete unused function.
11726 (monitor_write_memory_block): Delete #if0ed code.
11727 * dink32-rom.c (dink32_load): Delete unused function.
11728 (_initialize_dink32_rom): Delete #if0ed code.
11729 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11730
11731 * tui/tui-command.c: Update references.
11732 * tui/tui-io.c: Update references.
11733 * tui/tui-command.h: Update copyright.
11734 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11735
11736 * source.c (ambiguous_line_spec): Delete never-defined function.
11737 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11738 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11739 * cli/cli-cmds.c (validate_comname): Ditto.
11740
11741 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11742 "tui-data.h".
11743 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11744 (tui_show_disassem): Rename tuiShowDisassem.
11745 (tui_show_disassem_and_update_source): Rename
11746 tuiVerticalDisassemScroll.
11747 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11748 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11749 * tui/tui.h: Update copyright.
11750 (enum tui_status): Define.
11751 * tui/tui-data.h (enum tui_scroll_direction): Define.
11752 * tui/tui-disasm.c: Update copyright. Update references.
11753 * tui/tui-winsource.c: Update copyright. Update references.
11754 * tui/tui-win.c: Update references.
11755 * tui/tui-layout.c: Update references.
11756
11757 2004-01-20 Andrew Cagney <cagney@redhat.com>
11758
11759 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11760 sym2 to start of block.
11761
11762 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11763
11764 * MAINTAINERS: Delete mmalloc.
11765 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11766 * NEWS: Mention removal of --with-malloc.
11767 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11768 * config.in: Regenerate.
11769 * configure: Regenerate.
11770 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11771 USE_MMALLOC, MMCHECK_FORCE.
11772 * gdbinit.in: Remove mmalloc.
11773 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11774 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11775 * config/i386/go32.mh: Likewise.
11776 * config/i386/interix.mh: Likewise.
11777 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11778
11779 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11780
11781 * linespec.c (decode_variable, symtab_from_filename): Call
11782 error_silent with error message instead of throwing an exception
11783 directly.
11784 * defs.h (error_silent, error_output_message): Add prototypes.
11785 (catch_exceptions_with_msg): Ditto.
11786 * utils.c (error_silent, error_output_message): New functions.
11787 * top.c (catch_exceptions_with_msg): New function.
11788
11789 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11790
11791 * mi/mi-cmds.h (enum print_values): Add definition.
11792
11793 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11794 type and value for simple data types and just the name and type
11795 for complex ones, if required.
11796
11797 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11798 children, if required.
11799
11800 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11801
11802 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11803 unused declarations.
11804
11805 2004-01-19 Andrew Cagney <cagney@redhat.com>
11806
11807 * top.h (mapped_symbol_files): Delete declaration.
11808 * main.c (captured_main): Delete option "m" and "mapped".
11809 * objfiles.c (mapped_symbol_files): Delete variable.
11810 * symfile.c (symbol_file_command): Delete mmap code.
11811 (symbol_file_add_with_addrs_or_offsets): Ditto.
11812 (add_symbol_file_command, reread_separate_symbols): Ditto.
11813 * objfiles.h (OBJF_MAPPED): Delete.
11814 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11815 (free_objfile) [USE_MMALLOC]: Ditto.
11816 (open_existing_mapped_file): Delete function.
11817 (open_mapped_file): Delete function.
11818 (map_to_file): Delete function.
11819
11820 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11821
11822 * infrun.c (step_into_function): Account for possible breakpoint
11823 adjustment when computing ``stop_func_start''.
11824
11825 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11826
11827 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11828 the region size against the size of a pointer, not the size of
11829 a register as given by DEPRECATED_REGISTER_SIZE.
11830
11831 2004-01-19 Andrew Cagney <cagney@redhat.com>
11832
11833 * tui/tui-regs.h: Include "tui-data.h".
11834 (tuiFirstRegElementNoInLine): Delete declaration.
11835 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11836 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11837 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11838 (tui_calculate_regs_column_count): Rename
11839 tuiCalculateRegsColumnCount.
11840 (tui_check_register_values): Rename tuiCheckRegisterValues.
11841 (tui_show_registers): Rename tuiShowRegisters.
11842 (tui_display_registers_from_line): Rename
11843 tuiDisplayRegistersFromLine.
11844 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11845 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11846 (tui_first_reg_element_no_inline): Rename
11847 tuiFirstRegElementNoInLine.
11848 * tui/tui-data.h: Update copyright.
11849 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11850 * tui/tui-windata.c: Update copyright, update references.
11851 * tui/tui-regs.c: Update copyright, update references.
11852 * tui/tui-win.c: Update copyright, update references.
11853 * tui/tui-layout.c: Update copyright, update references.
11854
11855 2004-01-18 Andrew Cagney <cagney@redhat.com>
11856
11857 * tui/tui-io.c: Update copyright.
11858 (key_is_end_sequence, key_is_backspace): New functions.
11859 (key_is_command_char, key_is_start_sequence): New function.
11860 (tui_getc): Update references.
11861 * tui/tui-io.h: Update copyright.
11862 (m_tuiStartNewLine): Delete macro.
11863 (m_isBackspace, m_isDeleteChar): Delete macros.
11864 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11865 (m_isNextPage, m_isPrevPage): Delete macros.
11866 (m_isLeftArrow, m_isRightArrow): Delete macros.
11867 (m_isXdbStyleCommandChar): Delete macro.
11868 (key_is_start_sequence): Declare, replace m_isStartSequence.
11869 (key_is_end_sequence): Declare, replace m_isEndSequence.
11870 (key_is_backspace): Declare ,replace m_isBackspace.
11871 (key_is_command_char): Declare, replace m_isCommandChar.
11872 * tui/tui-command.c: Update copyright.
11873 (tuiDispatchCtrlChar): Update references.
11874
11875 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11876 tuiSourceWin.h.
11877
11878 * tui/tui-command.c: Rename tui/tuiCommand.c.
11879 * tui/tui-command.h: Rename tui/tuiCommand.h.
11880 * tui/tui-data.c: Rename tui/tuiData.c.
11881 * tui/tui-data.h: Rename tui/tuiData.h.
11882 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11883 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11884 * tui/tui-io.c: Rename tui/tuiIO.c.
11885 * tui/tui-io.h: Rename tui/tuiIO.h.
11886 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11887 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11888 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11889 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11890 * tui/tui-source.c: Rename tui/tuiSource.c.
11891 * tui/tui-source.h: Rename tui/tuiSource.h.
11892 * tui/tui-stack.c: Rename tui/tuiStack.c.
11893 * tui/tui-stack.h: Rename tui/tuiStack.h.
11894 * tui/tui-win.c: Rename tui/tuiWin.c.
11895 * tui/tui-win.h: Rename tui/tuiWin.h.
11896 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11897 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11898 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11899 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11900 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11901 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11902 * tui/tui-file.c: Update includes.
11903 * tui/tui-hooks.c: Update includes.
11904 * tui/tui-interp.c: Update includes.
11905 * tui/tui.c: Update includes.
11906 * Makefile.in: Update all tui/ dependencies.
11907 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11908
11909 * Makefile.in: Update copyright. Update dependencies.
11910
11911 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11912 problem.
11913
11914 2004-01-18 Andrew Cagney <cagney@redhat.com>
11915
11916 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11917 instead of register_gdbarch_init.
11918
11919 * remote-sds.c (tohex): Delete unused function. Update copyright.
11920 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11921 * v850-tdep.c (v850_register_virtual_size): Ditto.
11922 * target.c (normal_target_post_startup_inferior): Ditto.
11923 * source.c (ambiguous_line_spec): Ditto.
11924 * remote.c (adapt_remote_get_threadinfo): Ditto.
11925 * mi/mi-out.c (out_field_fmt): Ditto.
11926 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11927 (output_control_change_notification): Ditto.
11928 * m68k-tdep.c (m68k_register_byte): Ditto.
11929 (m68k_remote_breakpoint_from_pc): Ditto.
11930 * ui-out.c (init_ui_out_state): Delete unused declaration.
11931 * stabsread.c (search_value): Ditto.
11932 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11933 * maint.c (print_section_table): Ditto.
11934 * infrun.c (set_follow_fork_mode_command): Ditto.
11935
11936 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11937
11938 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11939 DW_CFA_def_cfa_exporession. Add support for
11940 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11941 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11942
11943 2004-01-18 Andrew Cagney <cagney@redhat.com>
11944
11945 * ocd.c: Update copyright.
11946 (bdm_read_register_command): Delete unused function.
11947 (_initialize_remote_ocd): Delete commented out reference.
11948 (get_quoted_char, reset_packet): Delete #if0ed function.
11949 (output_packet, put_quoted_char): Delete #if0ed function.
11950 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11951 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11952 (BDM_BREAKPOINT): Delete #if0ed macro.
11953 (remote_timeout): Delete #if0ed variable.
11954
11955 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11956
11957 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11958 (core-sol2.o): Remove dependency.
11959 * core-sol2.c: Remove file.
11960
11961 2004-01-17 Andrew Cagney <cagney@redhat.com>
11962
11963 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11964 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11965 enums.
11966
11967 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11968
11969 * remote.c: Update copyright years.
11970
11971 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11972
11973 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11974
11975 2004-01-17 Andrew Cagney <cagney@redhat.com>
11976
11977 * mdebugread.c: Update copyright.
11978 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11979 (parse_type, parse_procedure): Ditto.
11980 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11981
11982 * cris-tdep.c (cris_store_struct_return): Put back accidently
11983 deleted function.
11984
11985 * gdbarch.sh: Update copyright year.
11986 * gdbarch.h, gdbarch.c: Re-generate.
11987
11988 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11989
11990 Suggested by George Anzinger.
11991 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11992 correct stack offset. Include unknown opcode numbers in the error
11993 message.
11994
11995 2004-01-17 Andrew Cagney <cagney@redhat.com>
11996
11997 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11998 extract_struct_value_address, i386 does not set it.
11999 * sparc64-tdep.c (sparc64_init_abi): Do not set
12000 extract_struct_value_address, never called.
12001 (sparc64_extract_struct_value_address): Delete function.
12002 * m68hc11-tdep.c: Update copyright.
12003 (m68hc11_gdbarch_init): Delete redundant assignment of
12004 extract_struct_value_address.
12005 * i386-tdep.c: Update copyright.
12006 (i386_gdbarch_init): Do not set extract_struct_value_address,
12007 never called.
12008 (i386_extract_struct_value_address): Delete function.
12009 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12010 extract_struct_value_address, never called.
12011 (sparc32_extract_struct_value_address): #if 0 function. Add
12012 comments explaining its future.
12013
12014 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * arm-tdep.c (arm_write_pc): New function.
12017 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12018
12019 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12020
12021 * breakpoint.c (must_shift_inst_regs): Delete.
12022 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12023 and SHIFT_INST_REGS.
12024 * infcmd.c (step_1, step_1_continuation): Delete references to
12025 SHIFT_INST_REGS.
12026 * infrun.c (keep_going): Likewise.
12027 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12028 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12029
12030 2004-01-17 Andrew Cagney <cagney@redhat.com>
12031
12032 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12033 * gdbarch.h, gdbarch.c: Re-generate.
12034 * infcmd.c (print_return_value): Delete reference to
12035 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12036
12037 * cris-tdep.c (cris_gdbarch_init): Do not set
12038 deprecated_extract_struct_value_address.
12039
12040 * xstormy16-tdep.c: Update copyright.
12041 (xstormy16_extract_struct_value_address): Update to current
12042 extract struct value address interface.
12043 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12044 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12045 current extract struct value address interface.
12046 (sh64_gdbarch_init): Set extract_struct_value_address.
12047
12048 * cris-tdep.c: Update copyright.
12049 (cris_extract_struct_value_address): Delete function.
12050 (struct_return_address): Delete variable.
12051 (cris_store_struct_return): Do not set struct_return_address.
12052
12053 * mcore-tdep.c: Update copyright.
12054 (mcore_extract_struct_value_address): Delete function. Update
12055 comments.
12056 (mcore_gdbarch_init): Update.
12057 * mn10300-tdep.c: Update copyright.
12058 (mn10300_extract_struct_value_address): Delete function.
12059 (mn10300_gdbarch_init): Update.
12060 * v850-tdep.c: Update copyright.
12061 (v850_extract_struct_value_address): Delete.
12062 (v850_gdbarch_init): Update.
12063 * ns32k-tdep.c: Update copyright.
12064 (ns32k_extract_struct_value_address): Delete.
12065 (ns32k_gdbarch_init): Update.
12066 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12067 (hppa_gdbarch_init): Update.
12068 * vax-tdep.c: Update copyright.
12069 (vax_extract_struct_value_address): Delete.
12070 (vax_gdbarch_init): Update.
12071
12072 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12073 * gdbarch.h, gdbarch.c: Re-generate.
12074 * procfs.c (procfs_fetch_registers): Delete reference to
12075 DEPRECATED_NPC_REGNUM.
12076 (procfs_store_registers): Ditto.
12077 * regcache.c (generic_target_write_pc): Simplify.
12078 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12079
12080 * core-sol2.c (fetch_core_registers): Replace
12081 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12082
12083 * hppa-tdep.c: Update copyright year.
12084 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12085 NPC_REGNUM.
12086 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12087
12088 * mips-tdep.c (mips_write_pc): New function.
12089 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12090 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12091 (mips_find_saved_regs, mips_software_single_step: Ditto.
12092 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12093 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12094
12095 2004-01-17 Andrew Cagney <cagney@redhat.com>
12096
12097 * mips-tdep.c: Re-indent. Group functions by ABI.
12098
12099 2004-01-17 Andrew Cagney <cagney@redhat.com>
12100
12101 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12102 * gdbarch.c: Re-generate.
12103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12104 DECR_PC_AFTER_BREAK to zero.
12105 * vax-tdep.c (vax_gdbarch_init): Ditto.
12106 * v850-tdep.c (v850_gdbarch_init): Ditto.
12107 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12108 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12109 * sh-tdep.c (sh_gdbarch_init): Ditto.
12110 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12111 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12112 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12113 * mips-tdep.c (mips_gdbarch_init): Ditto.
12114 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12116 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12117 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12118 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12119 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12120 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12121 * frv-tdep.c (frv_gdbarch_init): Ditto.
12122 * cris-tdep.c (cris_gdbarch_init): Ditto.
12123 * avr-tdep.c (avr_gdbarch_init): Ditto.
12124 * arm-tdep.c (arm_gdbarch_init): Ditto.
12125 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12126
12127 2004-01-17 J. Brobecker <brobecker@gnat.com>
12128
12129 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12130 Delete, no longer used.
12131 (read_subrange_type): New function, mostly extracted from
12132 read_array_type().
12133 (read_array_type): Replace extracted code by call to
12134 read_subrange_type().
12135 (dwarf2_get_attr_constant_value): New function.
12136 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12137 (add_partial_symbol): Likewise.
12138 (process_die): Likewise.
12139 (new_symbol): Likewise.
12140 (read_type_die): Likewise.
12141
12142 2004-01-16 Andrew Cagney <cagney@redhat.com>
12143
12144 * symfile.c: Update copyright year.
12145 (compare_symbols): Delete unused function.
12146 * stabsread.c: Update copyright year.
12147 (lrs_general_complaint): Delete unused function.
12148 (ref_search_value): Ditto.
12149 (get_substring): Delete declaration.
12150 * sh64-tdep.c: Update copyright year.
12151 (sh64_get_gdb_regnum): Delete unused function.
12152 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12153 Delete unused function.
12154
12155 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12156
12157 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12158 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12159
12160 2004-01-16 Andrew Cagney <cagney@redhat.com>
12161
12162 Changes from Peter Schauer.
12163 * rs6000-tdep.c: Update copyright year.
12164 (rs6000_push_dummy_call): Update the stack pointer before
12165 accessing the corresponding stack region.
12166 * rs6000-nat.c: Update copyright year.
12167 (set_host_arch): Set "info.abfd" to "exec_bfd".
12168
12169 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12170
12171 * blockframe.c: Update copyright year.
12172 (inside_entry_func): Don't treat a zero PC specially.
12173
12174 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12175
12176 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12177 variable.
12178 (gcore_create_callback): Ditto. Skip any memory segment that has
12179 no permissions set.
12180
12181 2004-01-14 David Carlton <carlton@kealia.com>
12182
12183 Change symbols for C++ nested types to contain the fully qualified
12184 name, if possible. (At least in the DWARF-2 case.) Partial fix
12185 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12186 c++/895.
12187 * c-exp.y (qualified_type): Handle types nested within classes.
12188 * cp-namespace.c: Update comments.
12189 (cp_set_block_scope): Delete #if 0.
12190 (cp_lookup_nested_type): Handle types nested within classes.
12191 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12192 when appropriate.
12193 (add_partial_symbol): Add the name of the enclosing namespace to
12194 types.
12195 (pdi_needs_namespace): New.
12196 (add_partial_namespace): Tweak comment.
12197 (add_partial_structure): New.
12198 (psymtab_to_symtab_1): Initialize processing_current_prefix
12199 here...
12200 (process_die): instead of here.
12201 (read_structure_scope): Try to figure out the name of the class or
12202 namespace that the structure might be defined within.
12203 (read_enumeration): Generate fully-qualified names, if possible.
12204 (read_namespace): Don't set name to NULL.
12205 (die_specification): New.
12206 (new_symbol): Generate fully-qualified names for types.
12207 (read_type_die): Determine appropriate prefix.
12208 (determine_prefix): New.
12209 (typename_concat): New.
12210 (class_name): New.
12211 * valops.c (value_aggregate_elt): Pass NOSIDE to
12212 value_struct_elt_for_reference.
12213 (value_struct_elt_for_reference): Make static, add NOSIDE
12214 parameter, call value_maybe_namespace_elt as a last resort.
12215 (value_namespace_elt): Break out code into
12216 value_maybe_namespace_elt.
12217 (value_maybe_namespace_elt): New.
12218
12219 2004-01-12 Andrew Cagney <cagney@redhat.com>
12220
12221 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12222 cooked floating-point registers.
12223 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12224 and value_to_register.
12225
12226 2004-01-13 Andrew Cagney <cagney@redhat.com>
12227
12228 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12229 * gdbarch.c: Re-generate.
12230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12231 FUNCTION_START_OFFSET.
12232 * v850-tdep.c (v850_gdbarch_init): Ditto.
12233 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12234 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12235 * sh-tdep.c (sh_gdbarch_init): Ditto.
12236 * s390-tdep.c (s390_gdbarch_init): Ditto.
12237 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12238 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12239 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12240 * mips-tdep.c (mips_gdbarch_init): Ditto.
12241 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12242 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12244 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12245 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12246 * i386-tdep.c (i386_gdbarch_init): Ditto.
12247 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12248 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12249 * frv-tdep.c (frv_gdbarch_init): Ditto.
12250 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12251 * cris-tdep.c (cris_gdbarch_init): Ditto.
12252 * avr-tdep.c (avr_gdbarch_init): Ditto.
12253 * arm-tdep.c (arm_gdbarch_init): Ditto.
12254 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12255
12256 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12257
12258 * infrun.c (follow_fork_mode_ask): Remove.
12259 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12260 (follow_fork): Simplify and remove internal error for
12261 follow_fork_mode_ask.
12262 (_initialize_infrun): Update "set follow-fork-mode" help text.
12263
12264 2004-01-13 Andrew Cagney <cagney@redhat.com>
12265
12266 * configure.in: Update copyright year.
12267 (build_warnings): Add -Wunused-label.
12268 * configure: Re-generate.
12269
12270 2004-01-12 Andrew Cagney <cagney@redhat.com>
12271
12272 * exec.h (exec_ops): Make "extern".
12273
12274 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12275 the function is void.
12276 (mips_pseudo_register_write): Ditto.
12277
12278 2004-01-12 Andrew Cagney <cagney@redhat.com>
12279
12280 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12281 call. Never defined.
12282 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12283 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12284 (struct sparc_gregset, struct regcache): Ditto.
12285 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12286
12287 2004-01-12 Andrew Cagney <cagney@redhat.com>
12288
12289 * mi/ChangeLog: Delete file. Renamed to ...
12290 * mi/ChangeLog-1999-2003: New file.
12291 * tui/ChangeLog: Delete file. Renamed to ...
12292 * tui/ChangeLog-1998-2003: New file.
12293
12294 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12295
12296 * sparc64nbsd-tdep.c: Include "regset.h".
12297 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12298 Remove variables.
12299 (fetch_core_registers): Remove function.
12300 (sparc64nbsd_core_fns): Remove variable.
12301 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12302 functions.
12303 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12304 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12305 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12306
12307 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12308 sparc_extract_struct_value_address.
12309 (sparc32_gdbarch_init): Set extract_struct_value_address.
12310 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12311 function.
12312 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12313 return_value_on_stack.
12314
12315 * NEWS: Mention that %cs and %ss have been added to the AMD64
12316 configurations
12317
12318 * frame.c: Update copyright year.
12319 (get_prev_frame): Improve comment.
12320
12321 * sparc64fbsd-tdep.c: Include "regset.h".
12322 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12323 Remove variables.
12324 (fetch_core_registers): Remove function.
12325 (sparc64fbsd_core_fns): Remove variable.
12326 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12327 functions.
12328 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12329 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12330 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12331
12332 * sparcnbsd-tdep.c: Include "regset.h".
12333 (fetch_core_registers): Remove function.
12334 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12335 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12336 functions.
12337 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12338 TDEP->fpregset.
12339 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12340
12341 * sparc-tdep.h (struct regset): Provide opaque declaration.
12342 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12343 fpregset and sizeof_fpregset members.
12344 * sparc-tdep.c (struct regset): Provide opaque declaration.
12345 (sparc_regset_from_core_section): New function.
12346 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12347 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12348 Set regset_from_core_section when appropriate.
12349
12350 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12351
12352 * x86-64-tdep.c (amd64_non_pod_p): New function.
12353 (amd64_classify_aggregate): Return class memory for non-POD
12354 C++ structure types.
12355
12356 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12357 argument. Use it to reserve a register if necessary.
12358 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12359 amd64_push_arguments.
12360
12361 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12362
12363 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12364 register numbers in comments.
12365 * x86-64-tdep.h: Update copyright year.
12366 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12367 Adjust for addition of %cs and %ss.
12368 * amd64fbsd-nat.c: Update copyright year.
12369 (reg_offset): Add register offsets for %cs and %ss.
12370 * amd64fbsd-tdep.c: Update copyright year.
12371 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12372 (amd64fbsd_sc_reg_offset): Likewise.
12373 * x86-64-linux-nat.c: Update copyright year.
12374 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12375 and %ss.
12376 * amd64nbsd-nat.c: Update copyright year.
12377 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12378 * amd64nbsd-tdep.c: Update copyright year.
12379 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12380 * x86-64-linux-tdep.c: Update copyright year.
12381 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12382 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12383 * regformats/reg-x86-64.dat: Add %cs and %ss.
12384
12385 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12386 variables to prevent long lines. Update comments to reflect
12387 reality.
12388
12389 2004-01-09 David Carlton <carlton@kealia.com>
12390
12391 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12392 * dwarf2read.c (read_namespace): Pull out name-generating code
12393 into namespace_name. Rename previous_namespace to previous_prefix
12394 and processing_current_namespace to processing_current_prefix..
12395 (namespace_name): New function.
12396 (add_partial_symbol): Substitute uses of pdi->name with
12397 actual_name.
12398 * cp-support.h: Rename processing_current_namespace to
12399 processing_current_prefix.
12400 Update copyright year.
12401 * cp-namespace.c: Rename processing_current_namespace to
12402 processing_current_prefix.
12403 Update copyright year.
12404
12405 2004-01-09 Andrew Cagney <cagney@redhat.com>
12406
12407 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12408
12409 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12410
12411 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12412 complaining.
12413 (process_one_symbol): Deal with N_PATCH stabs.
12414
12415 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12416
12417 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12418 ifdeffed code.
12419 Update copyright year.
12420
12421 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12422
12423 * config/pa/tm-hppa.h: Update extern declarations for
12424 hppa32_hpux_frame_saved_pc_in_sigtramp,
12425 hppa32_hpux_frame_base_before_sigtramp, and
12426 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12427
12428 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12429
12430 * config/pa/tm-hppah.h: Update copyright years.
12431
12432 2004-01-08 Andrew Cagney <cagney@redhat.com>
12433
12434 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12435 (mips_o32_reg_struct_has_addr): Delete function.
12436 (mips_gdbarch_init): Update.
12437 (mips_extract_struct_value_address): Delete function.
12438
12439 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12440
12441 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12442 reality.
12443
12444 2004-01-07 Andrew Cagney <cagney@redhat.com>
12445
12446 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12447 architecture's elf flags (when available).
12448
12449 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12450 FPU to the start, check the MIPS FPU when looking for an old
12451 architecture.
12452 (set_mipsfpu_single_command): Update the architecture.
12453 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12454
12455 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12456 (mips_mask_address_p): Add "tdep" parameter.
12457 (show_mask_address, mips_addr_bits_remove): Update.
12458 (mips_dump_tdep): Update.
12459 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12460 (MIPS_STACK_ARGSIZE): Delete macro.
12461 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12462 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12463 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12464 (mips_dump_tdep): Update.
12465 (MIPS_SAVED_REGSIZE): Delete macro.
12466 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12467 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12468 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12469 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12470 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12471 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12472 (mips_pop_frame, return_value_location): Update.
12473 (mips_n32n64_return_value, mips_dump_tdep): Update.
12474
12475 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12476 MIPS ABI.
12477
12478 * mips-tdep.c: Update copyright.
12479 (mips_gdbarch_init): Merge two code blocks handling the register
12480 name and number layout.
12481
12482 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12483
12484 * tracepoint.c (validate_actionline): Fix segv at EOF
12485
12486 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12487
12488 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12489 properly for static fields.
12490
12491 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12492 Jason Molenda <jmolenda@apple.com>
12493
12494 * disasm.c: Update copyright to include 2004.
12495 (do_mixed_source_and_assembly): For uiout asm list
12496 and tuple cleanups, initialize to null_cleanup instead of
12497 NULL and do so prior to loop. Only reset when we close off
12498 the tuple/list. Move check for whether to close off the
12499 asm tuple/list to after dump_insns call where it will be run
12500 on each loop iteration.
12501
12502 2004-01-05 Andrew Cagney <cagney@redhat.com>
12503
12504 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12505 should be a switch case and not a label.
12506 * mips-tdep.c (mips32_next_pc): Delete unused labels
12507 "greater_equal_branch" and "less_zero_branch".
12508 * jv-valprint.c (java_print_value_fields): Delete unused label
12509 "flush_it".
12510
12511 * target.c (unpush_target): Only close a target that is in the
12512 target stack.
12513
12514 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12515
12516 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12517 address from [sp + 64] instead of %o2.
12518
12519 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12520 fixes PR backtrace/1476.
12521
12522 2004-01-05 Andrew Cagney <cagney@redhat.com>
12523
12524 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12525 move to start of file.
12526 * i386-tdep.h (struct regcache): Add opaque declaration.
12527 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12528 declaration.
12529 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12530 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12531 * win32-nat.c (fake_create_process): Use ISO C style definition.
12532 * stabsread.c (define_symbol): Delete #ifndef
12533 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12534 stabs_argument_has_addr call, macro never defined.
12535
12536 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12537
12538 * op50-rom.c: Delete.
12539 * w89k-rom.c: Delete.
12540 * Makefile.in: Remove references.
12541
12542 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12543
12544 * x86-64-tdep.c: Update copyright year.
12545 (struct amd64_register_info): Rename from x86_64_register_info.
12546 (amd64_register_info): Rename from x86_64_register_info.
12547 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12548 (amd64_register_name): Rename from x86_64_register_name.
12549 (amd64_register_type): Rename from x86_64_register_type.
12550 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12551 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12552 (amd64_dwarf_reg_to_regnum): Rename from
12553 x86_64_dwarf_reg_to_regnum.
12554 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12555 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12556 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12557 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12558 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12559 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12560 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12561 (amd64_frame_cache): Rename from x86_64_frame_cache.
12562 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12563 (amd64_frame_prev_register): Rename from
12564 x86_64_frame_prev_register.
12565 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12566 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12567 (amd64_sigtramp_frame_cache): Rename from
12568 x86_64_sigtramp_frame_cache.
12569 (amd64_sigtramp_frame_prev_register): Rename from
12570 x86_64_sigtramp_frame_prev_register.
12571 (amd64_sigtramp_frame_unwind): Rename from
12572 x86_64_sigtramp_frame_unwind.
12573 (amd64_sigtramp_frame_sniffer): Rename from
12574 x86_64_sigtramp_frame_sniffer.
12575 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12576 (amd64_frame_base): Rename from x86_64_frame_base.
12577 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12578 (amd64_frame_align): Rename from x86_64_frame_align.
12579 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12580 (amd64_regset_from_core_section): Rename from
12581 x86_64_regset_from_core_section.
12582 (x86_64_init_abi): Update comments.
12583
12584 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12585
12586 * MAINTAINERS (write after approval): Add myself.
12587
12588 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12589
12590 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12591 `float' arguments.
12592
12593 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12594
12595 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12596 such that it mentions a specific version of GCC that exhibits this
12597 bug.
12598
12599 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12600
12601 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12602 structure that has a single `float' member, store it in %f1 in
12603 addition to %f0.
12604
12605 * sparc-sol2-nat.c: Add missing '\'.
12606
12607 * sparc-tdep.c (sparc32_return_value): New function.
12608 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12609 Remove functions.
12610 (sparc32_gdbarch_init): Set return_value, don't set
12611 extract_return_value, store_return_value, use_struct_convention
12612 and return_value_on_stack.
12613
12614 * sparc-sol2-nat.c: Add missing ')'.
12615
12616 2004-01-03 J. Brobecker <brobecker@gnat.com>
12617
12618 * infrun.c (handle_step_into_function): New function.
12619 (handle_inferior_event): Extract out some code into the new
12620 function above.
12621
12622 2004-01-03 J. Brobecker <brobecker@gnat.com>
12623
12624 * infrun.c (handle_inferior_event): Move the declaration of
12625 real_stop_pc inside the if blocks where it is used.
12626
12627 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12628
12629 * sparc64-tdep.c (sparc64_16_byte_align_p)
12630 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12631 Use check_typedef to get subtypes of structures and unions.
12632 (sparc64_store_return_value): Fix calculation of the appropriate
12633 offset into VALBUF when storing a structure or union.
12634 (sparc64_return_value): New function.
12635 (sparc64_use_struct_convention): Remove function.
12636 (sparc64_init_abi): Set return_value, don't set
12637 extract_return_value, store_return_value and
12638 use_struct_convention.
12639
12640 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12641
12642 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12643 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12644 gdb/config/alpha/xm-alphaosf.h,
12645 gdb/config/powerpc/tm-ppcle-eabi.h,
12646 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12647 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12648 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12649 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12650 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12651 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12652 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12653 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12654 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12655 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12656 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12657 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12658 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12659 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12660 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12661 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12662 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12663 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12664 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12665 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12666 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12667 Remove lines for .cvsignore files.
12668
12669 2004-01-03 J. Brobecker <brobecker@gnat.com>
12670
12671 * infrun.c: Back out the previous change.
12672
12673 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12674
12675 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12676 sparc-*-sunos4* to the list of REMOVED configurations.
12677
12678 * configure.tgt: Add back sparc-*-vxworks*.
12679 * remote-vxsparc.c: Remove all includes except for "defs.h",
12680 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12681 Include "sparc-tdep.h".
12682 (SPARC_R_G1): New define.
12683 (vxsparc_gregset): New variable.
12684 (ext_format_sparc): Remove extern declaration.
12685 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12686 sparc32_supply_fpregset.
12687 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12688 sparc_collect_rwindow and sparc32_collect_fpregset.
12689 * config/sparc/tm-vxworks.h: New file, based on recently removed
12690 tm-vxsparc.h.
12691 * config/sparc/vxworks.mt: New file, based on recently removed
12692 vxworks.mt.
12693
12694 2004-01-03 J. Brobecker <brobecker@gnat.com>
12695
12696 * infrun.c (handle_step_into_function): New function.
12697 (handle_inferior_event): Extract out some code into the new
12698 function above.
12699
12700 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12701
12702 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12703 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12704 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12705 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12706 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12707 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12708 (sparc_nat_h): New variable.
12709 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12710 (tm-sun4os4.h): Remove dependency.
12711 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12712 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12713 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12714 sparc-tdep.o): Update dependencies.
12715 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12716 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12717 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12718 dependencies.
12719 * configure.host: Remove existing sparc-*-lynxos*,
12720 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12721 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12722 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12723 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12724 triplets.
12725 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12726 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12727 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12728 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12729 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12730 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12731 sparc64-*-solaris2* and sparc64-*-* triplets.
12732 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12733 "symtab.h" and "objfiles.h".
12734 (BIAS): Remove define.
12735 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12736 (X_DISP19): Remove macros.
12737 (sparc_fetch_instruction): Remove function.
12738 (struct gdbarch_tdep): Remove definition.
12739 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12740 (sparc_breakpoint_from_pc): Remove function.
12741 (struct sparc64_frame_cache): Remove definition.
12742 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12743 sparc64_unwind_pc): Remove functions.
12744 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12745 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12746 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12747 (sparc64_frame_cache): Change return type to `struct
12748 sparc_frame_cache *'. Simply call sparc_frame_cache.
12749 (sparc64_frame_this_id, sparc64_frame_prev_register,
12750 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12751 instead of `struct sparc64_frame_cache.
12752 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12753 sparc_analyze_control_transfer, sparc_software_single_step,
12754 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12755 _initialize_sparc64_tdep): Remove functions.
12756 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12757 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12758 macros.
12759 (sparc64_supply_gregset, sparc64_collect_gregset,
12760 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12761 (sparc64_init_abi): New function.
12762 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12763 inclusion guard. Include "sparc-tdep.h".
12764 (BIAS): Define.
12765 (r_tstate_offset, r_fprs_offset): New defines.
12766 (enum sparc_regnum): Remove defenition.
12767 (enum sparc64_regnum): Reformat.
12768 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12769 (sparc64_init_abi, sparc64_supply_gregset,
12770 sparc64_collect_gregset, sparc64_supply_fpregset,
12771 sparc64_collect_fpregset): New prototypes.
12772 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12773 Add extern declarations.
12774 (sparc64_sol2_init_abi): New prototype.
12775 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12776 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12777 prototypes.
12778 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12779 "sparnbsd-nat.h".
12780 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12781 functions.
12782 (_initialize_sparc64fbsd_nat): Remove initialization of
12783 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12784 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12785 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12786 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12787 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12788 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12789 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12790 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12791 (sparc64fbsd_r_y_offset): Remove variables.
12792 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12793 Make static and const.
12794 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12795 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12796 functions.
12797 (sparc64fbsd_gregset): New variable.
12798 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12799 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12800 and sparc64_supply_fpregset.
12801 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12802 (sparc64fbsd_sigtramp_frame_this_id)
12803 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12804 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12805 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12806 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12807 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12808 * sparcnbsd-tdep.c: Update copyright year. Include
12809 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12810 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12811 "value.h" and "sparcnbsd-tdep.h".
12812 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12813 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12814 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12815 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12816 defines.
12817 (sparcnbsd_gregset): New variable.
12818 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12819 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12820 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12821 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12822 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12823 variables.
12824 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12825 (sparc32nbsd_sigcontext_frame_this_id)
12826 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12827 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12828 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12829 (sparcnbsd_get_longjmp_target_32,
12830 sparcnbsd_get_longjmp_target_64): Remove functions.
12831 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12832 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12833 sparcnbsd_init_elf): Remove.
12834 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12835 (sparcnbsd_elf_init_abi): New functions.
12836 (_initialize_sparcnbsd_tdep): New prototype.
12837 (_initialize_sparnbsd_tdep): Update.
12838 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12839 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12840 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12841 * config/sparc/linux.mh: Update comment.
12842 (XM_FILE, HOST_IPC): Remove variables.
12843 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12844 sparc-linux-nat.o.
12845 * config/sparc/linux.mt: Update comment.
12846 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12847 * config/sparc/nbsd.mt: Reformat.
12848 * config/sparc/nbsd64.mh: Update comment.
12849 (NATDEPFILES): Add sparc-nat.o.
12850 * config/sparc/nbsd64.mt: Update comment.
12851 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12852 (TM_FILE): Set to tm-nbsd.h.
12853 * config/sparc/nbsdelf.mh: Update comment.
12854 (NATDEPFILES): Add sparc-nat.o.
12855 (XM_FILE): Delete.
12856 * config/sparc/nbsdaout.mh: Update comment.
12857 (NATDEPFILES): Add sparc-nat.o
12858 (XM_FILE): Delete.
12859 * config/sparc/nm-linux.h: Update copyright year. Don't include
12860 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12861 inclusion.
12862 (KERNEL_U_SIZE): Remove define.
12863 (kernel_u_size): Remove prototype.
12864 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12865 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12866 "regcache.h".
12867 (CHILD_PREPARE_TO_STORE): Remove define.
12868 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12869 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12870 sparcnbsd-nat.c: Rewrite files.
12871 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12872 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12873 sparcnbsd-tdep.h: Remove files.
12874 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12875 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12876 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12877 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12878 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12879 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12880 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12881 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12882 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12883 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12884 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12885 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12886 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12887 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12888 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12889 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12890 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12891 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12892 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12893
12894 2004-01-02 Andrew Cagney <cagney@redhat.com>
12895
12896 From 2003-12-18 Kazuhiro Inaoka:
12897 * configure.host: Add m32r-linux target.
12898
12899 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12900
12901 * top.c (print_gdb_version): Update year to 2004.
12902
12903 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12904
12905 * MAINTAINERS: Add myself to the write-after-approval category.
12906
12907 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12908
12909 From Bernardo Innocenti <bernie@develer.com>:
12910 * configure.tgt: Add uClinux target.
12911
12912 2004-01-02 Andrew Cagney <cagney@redhat.com>
12913
12914 * utils.c (do_my_cleanups): Make static, add forward declaration.
12915 * defs.h (do_my_cleanups): Delete declaration.
12916
12917 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12918
12919 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12920 bfd/ChangeLog-0203.
12921
12922 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12923
12924 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12925 in <machine/reg.h>.
12926 * configure, config.in: Regenerate.
12927
12928 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12929 tui/ChangeLog-1998-2003.
12930 \f
12931 Local Variables:
12932 mode: change-log
12933 left-margin: 8
12934 fill-column: 74
12935 version-control: never
12936 End:
This page took 0.277276 seconds and 5 git commands to generate.