2004-10-08 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-08 Andrew Cagney <cagney@gnu.org>
2
3 * target.c (debug_target): Move to near start of file.
4 (target_stopped_data_address_p): Re-org logic, add casts.
5
6 2004-10-02 Mark Kettenis <kettenis@gnu.org>
7
8 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
9 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
10 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
11 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
12 New defines.
13
14 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
15
16 * target.h (to_stopped_data_address): Change prototype to
17 take a CORE_ADDR pointer and return an int.
18 * target.c (update_current_target): Change to_stopped_data_address
19 to match new prototype.
20 (debug_to_stopped_data_address): Change appropriately.
21 * breakpoint.c (bpstat_stop_status): Change call to
22 target_stopped_data_address to use new prototype.
23 * frv-tdep.c (frv_have_stopped_data_address): New function.
24 (frv_stopped_data_address): Change to new prototype and
25 functionality.
26 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
27 prototype and functionality.
28 (ia64_stopped_by_watchpoint): New function.
29 * i386-nat.c (i386_stopped_data_address): Change to new
30 prototype and functionality.
31 (i386_stopped_by_watchpoint): New function.
32 * remote.c (remote_stopped_data_address): Change to new prototype
33 and functionality.
34 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
35 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
36 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
37 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
38 new i386_stopped_by_watchpoint function.
39 (i386_stopped_by_watchpoint): New prototype.
40 (i386_stoppped_data_address): Change to new prototype.
41 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
42 new ia64_stopped_by_watchpoint function.
43 (ia64_stopped_by_watchpoint): New prototype.
44 (ia64_stopped_data_address): Ditto.
45
46 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
47
48 * ada-typeprint.c (ada_print_type): Use int_string for printing
49 modulus of modular type.
50 * ada-lang.h (ada_modulus): Change return type to unsigned.
51 * ada-lang.c (ada_language_arch_info): Correct type of
52 string_char_type.
53 (ada_modulus): Return unsigned result.
54 (ada_lookup_symbol): Remove user disambiguation and modify comment
55 accordingly.
56
57 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
58
59 Committed by Paul Hilfinger.
60 * ada-lang.c (decode_packed_array): On big-endian targets,
61 left-justify the value if it comes with a modular type.
62
63 2004-10-08 Joel Brobecker <brobecker@gnat.com>
64
65 Committed by Paul Hilfinger.
66 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
67 (is_name_suffix): Add support for "___JM" suffixes.
68 (ada_check_typedef): Renames ada_completed_type.
69 Update all users of CHECK_TYPEDEF, check_typedef, and
70 ada_complete_type to call ada_check_typedef.
71 * ada-typeprint.c: Likewise.
72 * ada-valprint.c: Likewise.
73
74 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
75
76 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
77
78 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
79
80 * MAINTAINERS: Update e-mail address.
81
82 2004-10-07 Daniel Jacobowitz <dan@debian.org>
83
84 From Maciej W. Rozycki <macro@mips.com>:
85 * mips-tdep.c (mips32_next_pc): Check the register's contents,
86 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
87
88 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
89
90 * m32r-tdep.c (decode_prologue): Support functions written
91 in assembler language. Recognize trap instructions as the
92 end of prologue.
93 (m32r_frame_unwind_cache): Ditto.
94 (m32r_skip_prologue): Extend search limit. Quit analyzing
95 prologue if pc's location is not readable.
96
97 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
98
99 * Makefile.in (.l.c): Do conversions of names of alloc and free
100 functions that are done for .y.c files, plus special one
101 for yy_flex_realloc. Also, correct missing-file tests here.
102 * ada-lex.l (malloc, free): Remove macros.
103 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
104 xrealloc.
105 (ada_flex_use): Dummy definition to remove warnings about unused
106 functions.
107 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
108 to suppress warning.
109
110 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
111
112 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
113 RETURN_VALUE.
114 (sh_return_value_fpu): Ditto for CPUs with FPU.
115 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
116 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
117 Install sh_return_value_nofpu resp. sh_return_value_fpu as
118 RETURN_VALUE functions.
119
120 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
121
122 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
123 (sh_pseudo_register_write): Ditto.
124
125 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
126
127 * sh-tdep.c (IS_MACL_STS): New define.
128 (IS_MOVI20): Ditto.
129 (IS_MACL_LDS): Ditto.
130 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
131 instructions in prologue.
132 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
133 instructions in epilogue.
134
135 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
136
137 * sh-tdep.c (SH_NUM_REGS): Define as 67.
138 (sh_sh_register_name): Add eight empty register names.
139 (sh_sh3_register_name): Ditto.
140 (sh_sh3e_register_name): Ditto.
141 (sh_sh2e_register_name): Ditto.
142 (sh_sh2a_register_name): New function, defining SH2A register set.
143 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
144 in nofpu case.
145 (sh_sh_dsp_register_name): Add eight empty register names.
146 (sh_sh3_dsp_register_name): Ditto.
147 (sh_sh4_register_name): Ditto.
148 (sh_sh4_nofpu_register_name): Ditto.
149 (sh_sh4al_dsp_register_name): Ditto.
150 (sh2a_show_regs): New function.
151 (sh2a_nofpu_show_regs): New function.
152 (sh_sh2a_register_type): New function.
153 (do_bank_register_info): New function.
154 (sh_print_pseudo_register): Call do_bank_register_info.
155 Call sh_print_pseudo_register for valid "bank" register.
156 (sh_sh2a_register_sim_regno): New function.
157 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
158 Increment pseudo register count by one for all sh variants with
159 pseudo registers to accomodate pseudo bank register.
160 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
161 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
162 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
163 Increment pseudo register numbers.
164
165 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
166
167 * dwarf2read.c (read_subroutine_type): Call make_function_type
168 instead of lookup_function_type.
169
170 2004-10-05 Jim Blandy <jimb@redhat.com>
171
172 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
173 (Previous change missed some uses.)
174
175 2004-10-05 Andrew Cagney <cagney@gnu.org>
176
177 * target.h (deprecated_child_ops): Rename child_ops.
178 * wince.c: Update copyright. Rename child_ops.
179 * win32-nat.c: Rename child_ops.
180 * target.c: Rename child_ops.
181 * rs6000-nat.c: Rename child_ops.
182 * linux-nat.c: Rename child_ops.
183 * infttrace.c: Rename child_ops.
184 * inftarg.c: Rename child_ops.
185 * infptrace.c: Rename child_ops.
186 * hppah-nat.c: Update copyright. Rename child_ops.
187 * hpux-thread.c: Update copyright. Rename child_ops.
188
189 2004-10-05 Daniel Jacobowitz <dan@debian.org>
190
191 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
192
193 2004-10-05 Andrew Cagney <cagney@gnu.org>
194
195 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
196
197 2004-10-05 Daniel Jacobowitz <dan@debian.org>
198
199 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
200 (die_ref_table): Remove.
201 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
202 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
203 the usage of this type.
204 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
205 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
206 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
207 (dwarf2_create_include_psymtab): Update comment.
208 (find_partial_die): Remove third argument. Remove unreachable call
209 to error ().
210 (dwarf2_find_containing_comp_unit): Update comments. Change one
211 assertion to an error. Remove an unreachable error.
212 (dwarf2_find_comp_unit): Update comments.
213 (type_at_offset): Remove dead code.
214 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
215 (store_in_ref_table): Add CU argument.
216 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
217 inter-compilation-unit references.
218 (load_full_comp_unit, process_full_comp_unit): New functions, based
219 on psymtab_to_symtab_1.
220 (psymtab_to_symtab_1): Use them.
221 (dwarf2_add_dependence): New function.
222 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
223 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
224 (partial_die_parent_scope, guess_structure_name): Update for changes
225 to find_partial_die.
226 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
227 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
228 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
229 (read_die_and_children): Update call to store_in_ref_table.
230 (do_free_die_list_cleanup): Remove.
231 (fixup_partial_die): Update for changes to find_partial_die.
232 (read_full_die): Handle queueing absolute references.
233 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
234 (dwarf2_attr, die_specification, die_type)
235 (die_containing_type, dwarf2_extension): Update calls to
236 follow_die_ref.
237 (dump_die): Update DW_FORM_ref* handling.
238 (dwarf2_get_ref_die_offset): Likewise.
239 (free_one_comp_unit): Release the dies list.
240 (dwarf2_mark_helper): New function.
241 (dwarf2_mark): Use it.
242
243 2004-10-05 Mark Kettenis <kettenis@jive.nl>
244
245 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
246 when writing to memory.
247
248 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
249
250 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
251 (m32r_extract_struct_value_address): Delete function.
252 (m32r_return_value): New function.
253 (m32r_gdbarch_init): Instead of store_return_value,
254 extract_return_value, deprecated_extract_struct_value_address
255 and deprecated_use_struct_convention, set return_value.
256
257 2004-10-03 Daniel Jacobowitz <dan@debian.org>
258
259 * dwarf2read.c (read_subrange_type): Add comment for variable
260 sized arrays.
261
262 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
263
264 * Makefile.in (.l.c): Modify rule for compatibility with recent
265 versions of flex, and remove most command-line options.
266 * ada-lex.l: Add %options line in place of -I -i and -s command-line
267 options.
268
269 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
270
271 Turn on initial Ada support (mainly expression evaluation).
272
273 * Makefile.in (SFILES): Remove ada-tasks.c.
274 (HFILES_NO_SRCDIR): Add ada-lang.h.
275 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
276 (YYOBJ): Add ada-exp.o.
277 (rule .l.c): Generalize to not mention ada.
278 * symtab.c: Include ada-lang.h.
279 (symbol_natural_name, symbol_demangled_name)
280 (symbol_search_name): Add Ada case.
281
282 2004-10-01 Andrew Cagney <cagney@gnu.org>
283
284 * Makefile.in (COMMON_OBS): Add inf-child.o.
285 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
286 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
287 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
288 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
289 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
290 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
291 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
292 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
293 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
294 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
295 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
296 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
297 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
298
299 * target.c (xfer_using_stratum): Change return type to LONGEST.
300 On each iteration offset, readbuf and writebuf.
301 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
302 partial_length, and read/modify/write predicate, update comments.
303 Pass buffer.word to ptrace write.
304
305 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
306
307 * symfile.c (init_filename_language_table): Add extensions for
308 Ada.
309 * defs.h (enum language): Add language_ada.
310 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
311 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
312 (add_symbols_from_enclosing_procs): Make a no-op for now.
313 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
314 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
315 (find_line_in_linetable, find_next_line_in_linetable)
316 (read_all_symtabs, is_plausible_func_for_line)
317 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
318 (is_runtime_sym_defined, check_size): Remove declaration.
319 (function_name_from_pc, ada_translate_error_message)
320 (ada_lookup_minimal_symbol): Remove definition.
321 (ada_add_block_symbols): Remove useless label.
322 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
323 useless declaration.
324 (ada_is_exception_sym): Likewise.
325
326 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
327
328 Add m32r-linux support.
329 * configure.tgt: Add m32r*-*-linux*.
330 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
331 and m32r-linux-tdep.c.
332 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
333 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
334 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
335 m32r-linux-tdep.c.
336 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
337 config/m32r/linux.mh, config/m32r/linux.mt,
338 config/m32r/nm-linux.h: New files.
339
340 2004-09-30 Joel Brobecker <brobecker@gnat.com>
341
342 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
343 (mips32_fetch_instruction): Remove, unused.
344
345 2004-09-30 Joel Brobecker <brobecker@gnat.com>
346
347 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
348 conditions that will always be true.
349
350 2004-09-30 Mark Kettenis <kettenis@gnu.org>
351
352 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
353 (vaxbsd_fetch_inferior_registers): Rename from
354 fetch_inferior_registers. Make static.
355 (vaxbsd_store_inferior_registers): Rename from
356 store_inferior_registers. Make static.
357 (_initialize_vaxbsd_nat): Construct and add target vector.
358 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
359 inftarg.o. Add inf-child.o and inf-ptrace.o.
360 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
361 inftarg.o. Add inf-child.o and inf-ptrace.o.
362 (NAT_FILE): Remove.
363 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
364 inftarg.o. Add inf-child.o and inf-ptrace.o.
365 (NAT_FILE): Remove.
366 * Makefile.in (vaxbsd-nat.o): Update dependencies.
367
368 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
369 (m88kbsd_fetch_inferior_registers): Rename from
370 fetch_inferior_registers. Make static.
371 (m88kbsd_store_inferior_registers): Rename from
372 store_inferior_registers. Make static.
373 (_initialize_m88kbsd_nat): New prototype and function.
374 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
375 inftarg.o. Add inf-child.o and inf-ptrace.o.
376 (NAT_FILE): Remove.
377 * Makefile.in (m88kbsd-nat.o): Update dependencies.
378
379 2004-09-30 Andrew Cagney <cagney@gnu.org>
380
381 * target.c (target_xfer_partial): New function.
382 (target_read_memory_partial, target_write_memory_partial)
383 (default_xfer_partial, target_read_partial, target_write_partial)
384 (xfer_using_stratum): Use.
385 (debug_to_xfer_partial): Delete function.
386 (setup_target_debug): Do not override to_xfer_partial.
387
388 2004-09-30 Mark Kettenis <kettenis@chello.nl>
389
390 * fork-child.c: Update copyright year. Fix coding style.
391
392 2004-09-29 Mark Kettenis <kettenis@gnu.org>
393
394 * defs.h (msavestring, mstrsave): Remove prototypes.
395 * utils.c (msavestring, mstrsave): Remove functions.
396 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
397 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
398 of mstrsave.
399 * source.c (find_and_open_source): Use xstrdup instead of
400 mstrsave.
401
402 2004-09-30 Andrew Cagney <cagney@gnu.org>
403
404 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
405 (inf_ptrace_xfer_memory): Delete.
406 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
407 (target_read_memory, target_write_memory): Use xfer_using_stratum
408 when target_xfer_partial_p.
409 (debug_target): Move to start of file.
410 (target_read_memory_partial, target_write_memory_partial): Use
411 to_xfer_partial when target_xfer_partial_p.
412
413 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
414 inf_ptrace_xfer_memory with equivalent code.
415 * inftarg.c (child_xfer_partial): When performing a write, pass
416 writebuf to child_xfer_memory.
417
418 * target.c (target_read_string): Use target_read_memory instead of
419 target_xfer_memory.
420
421 2004-09-29 Andrew Cagney <cagney@gnu.org>
422
423 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
424 the address of status.
425
426 * infptrace.c (ptrace_wait): Mention problem with HPUX.
427 (kill_inferior): Inline ptrace_wait call.
428 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
429 * inftarg.c (child_wait): Inline ptrace_wait call.
430
431 * target.h (struct target_ops): Delete field to_post_wait.
432 (target_post_wait): Delete macro.
433 (child_post_wait): Delete declaration.
434 * target.c (update_current_target, update_current_target)
435 (debug_to_post_wait, setup_target_debug): Delete functions and
436 references.
437 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
438 * inftarg.c (child_post_wait): Delete.
439 (init_child_ops): Do not set to_post_wait.
440 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
441 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
442 * inf-child.c (inf_child_post_wait): Delete.
443 (inf_child_target): Do not set to_post_wait.
444 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
445 (inf_ptrace_target): Do not set to_post_wait.
446
447 * wince.c (child_ops): Delete.
448 * win32-nat.c (child_ops): Delete.
449
450 * inftarg.c (inftarg_set_find_memory_regions)
451 (inftarg_set_make_corefile_notes): Delete functions.
452 (_initialize_linux_nat): Inline calls.
453
454 * target.h (child_ops): Declare.
455 * inftarg.c (child_ops): Move from here ...
456 * target.c (child_ops): ... to here.
457 * wince.c (child_ops): Delete extern declaration.
458 * win32-nat.c (child_ops): Delete extern declaration.
459 * linux-nat.c (child_ops): Delete extern declaration.
460 * hpux-thread.c (child_ops): Delete extern declaration.
461
462 2004-09-28 Mark Kettenis <kettenis@gnu.org>
463
464 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
465
466 2004-09-28 Mark Kettenis <kettenis@gnu.org>
467
468 * configure.in: Only set host_makefile_frag when building a native
469 debugger.
470 * configure: Regenerate.
471
472 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
473 for OpenBSD ELF.
474
475 2004-09-28 Andrew Cagney <cagney@gnu.org>
476
477 Problem identified by Paul Hilfinger.
478 * Makefile.in (ada_lex_c): Define.
479 (ada-lex.o): Delete rule.
480
481 * linux-proc.c: Delete file.
482 * Makefile.in: Update.
483 * config/sparc/linux64.mh (NATDEPFILES):
484 * config/sparc/linux.mh (NATDEPFILES): Update.
485 * config/s390/s390.mh (NATDEPFILES): Update.
486 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
487 * config/powerpc/linux.mh (NATDEPFILES): Update.
488 * config/pa/linux.mh (NATDEPFILES): Update.
489 * config/mips/linux.mh (NATDEPFILES): Update.
490 * config/m68k/linux.mh (NATDEPFILES): Update.
491 * config/ia64/linux.mh (NATDEPFILES): Update.
492 * config/i386/linux64.mh (NATDEPFILES): Update.
493 * config/i386/linux.mh (NATDEPFILES): Update.
494 * config/arm/linux.mh (NATDEPFILES): Update.
495 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
496 * linux-nat.c: Update copyright. Include <sys/param.h>,
497 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
498 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
499 (O_LARGEFILE): Possibly define.
500 (_initialize_linux_nat, linux_proc_pending_signals)
501 (add_line_to_sigset, linux_proc_xfer_memory)
502 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
503 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
504 (struct linux_corefile_thread_data)
505 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
506 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
507
508 2004-09-16 Andrew Cagney <cagney@gnu.org>
509
510 * lin-lwp.c: Delete file.
511 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
512 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
513 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
514 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
515 (linux_nat_attach, detach_callback, linux_nat_detach)
516 (resume_callback, resume_clear_callback, linux_nat_resume)
517 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
518 (stop_wait_callback, linux_nat_has_pending, flush_callback)
519 (status_callback, running_callback, count_events_callback)
520 (select_singlestep_lwp_callback, select_event_lwp_callback)
521 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
522 (child_wait, stop_and_resume_callback, linux_nat_wait)
523 (kill_callback, kill_wait_callback, linux_nat_kill)
524 (linux_nat_create_inferior, linux_nat_mourn_inferior)
525 (linux_nat_xfer_memory, linux_nat_thread_alive)
526 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
527 (_initialize_linux_nat): New functions.
528 * Makefile.in: Update all dependencies.
529 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
530 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
531 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
532 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
533 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
534 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
535 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
536 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
537 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
538 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
539 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
540 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
541 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
542
543 2004-09-27 Mark Kettenis <kettenis@gnu.org>
544
545 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
546 config/i386/obsd64.mh (NAT_FILE): Remove variable.
547
548 * configure.in: Don't comment out NATDEPFILES in the generated
549 Makefile if NAT_FILE is unset.
550 * configure: Regenerate.
551
552 2004-09-27 Andrew Cagney <cagney@gnu.org>
553
554 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
555 (insert_step_resume_breakpoint): Delete.
556 (insert_step_resume_breakpoint_at_frame): New function.
557 (insert_step_resume_breakpoint_at_sal): New function.
558 (handle_inferior_event, step_into_function)
559 (insert_step_resume_breakpoint): Simplify by using same.
560
561 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
562
563 2004-09-26 Mark Kettenis <kettenis@gnu.org>
564
565 * fbsd-proc.c: Remove file.
566 * Makefile.in (fbsd-proc.o): Remove dependency.
567
568 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
569 code together.
570
571 * config/i386/nm-fbsd64.h: Remove file.
572 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
573
574 2004-09-26 Mark Kettenis <kettenis@gnu.org>
575
576 * amd64-nat.h: Update copyright year.
577 (amd64bsd_target): New prototype.
578 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
579 (amd64bsd_target): New function.
580 (amd64bsd_fetch_inferior_registers): Rename from
581 fetch_inferior_registers. Make static.
582 (amd64bsd_store_inferior_registers): Rename from
583 store_inferior_registers. Make static.
584 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
585 (_initialize_amd64fbsd_nat): Construct and add target vector.
586 * amd64nbsd-nat.o: Include "target.h".
587 (_initialize_amd64nbsd_nat): Construct and add target vector.
588 * amd64obsd-nat.c: Include "target.h".
589 (_initialize_amd64obsd_nat): Construct and add target vector.
590 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
591 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
592 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
593 fbsd-nat.o.
594 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
595 Remove infptrace.o and inftarg.o. Add inf-child.o and
596 inf-ptrace.o.
597 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
598 (amd64obsd-nat.o): Update dependencies.
599
600 2004-09-25 Mark Kettenis <kettenis@gnu.org>
601
602 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
603 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
604 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
605 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
606 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
607
608 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
609 Inline attach call.
610 (inf_ptrace_detach): Inline detach call.
611
612 * configure.in: Check for waddstr instead of mvwaddstr when
613 searching for curses library. Check for wborder.
614 * configure, config.in: Regenerate.
615 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
616 available.
617
618 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
619
620 2004-09-24 Robert Picco <Robert.Picco@hp.com>
621
622 Committed by Andrew Cagney.
623 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
624 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
625 configuration.
626 (fetch_register_using_p): Implement 'p' packet. Based on code by
627 Fernando Nasser.
628 (remote_fetch_registers): Call fetch_register_using_p.
629 (init_all_packet_configs, show_remote_cmd)
630 (_initialize_remote): Add p-packet.
631
632 2004-09-24 Mark Kettenis <kettenis@gnu.org>
633
634 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
635 instead of call_ptrace. Call wait directly instead of
636 ptrace_wait.
637 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
638 (inf_ptrace_wait): Inline ptrace_wait call.
639
640 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
641
642 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
643 rolled back instead.
644
645 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
646
647 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
648 the new argument order.
649
650 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
651
652 * MAINTAINERS: Remove "broken" from XStormy16 entry.
653 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
654 (struct gdbarch_tdep): Remove.
655 (struct xstormy16_frame_cache): New frame cache structure.
656 (xstormy16_register_byte, xstormy16_register_raw_size)
657 (xstormy16_reg_virtual_type, xstormy16_register_type)
658 (xstormy16_push_arguments, xstormy16_push_return_address)
659 (xstormy16_pop_frame, xstormy16_store_struct_return)
660 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
661 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
662 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
663 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
664 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
665 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
666 (xstormy16_use_struct_convention): Drop gcc_p parameter.
667 (xstormy16_extract_return_value, xstormy16_store_return_value):
668 Regcachify. Drop useless struct convention handling.
669 (xstormy16_register_type, xstormy16_return_value)
670 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
671 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
672 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
673 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
674 (xstormy16_unwind_sp, xstormy16_unwind_pc)
675 (xstormy16_unwind_dummy_id) : New functions.
676 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
677 of xstormy16_scan_prologue.
678 (xstormy16_frame_unwind): New frame_unwind structure.
679 (xstormy16_frame_base): New frame_base structure.
680 (xstormy16_gdbarch_init): Accomodate all of the above changes.
681 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
682
683 2004-09-22 Mark Kettenis <kettenis@gnu.org>
684
685 * language.c (language_gdbarch_post_init): Fix off-by one error.
686
687 2004-09-21 Daniel Jacobowitz <dan@debian.org>
688
689 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
690 (struct dwarf2_offset_and_type): New.
691 (set_die_type, reset_die_and_siblings_types, get_die_type)
692 (offset_and_type_hash, offset_and_type_eq): New functions.
693 (read_structure_type, read_enumeration_type, read_array_type)
694 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
695 (read_tag_reference_type, read_tag_const_type)
696 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
697 (read_typedef, read_base_type, read_subrange_type): Use
698 set_die_type.
699
700 2004-09-20 Daniel Jacobowitz <dan@debian.org>
701
702 * Makefile.in (dwarf2read.o): Update dependencies.
703 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
704 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
705 and read_in_chain.
706 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
707 mark, and has_form_ref_addr.
708 (struct dwarf2_per_cu_data): New.
709 (dwarf2_max_cache_age): New.
710 (dwarf2_build_psymtabs_hard): Free cached compilation units
711 after loading. Create and manage the list of compilation units.
712 Remove unnecessary NULL initialization. Fix indentation.
713 (psymtab_to_symtab_1): Initialize all of CU.
714 (dwarf2_read_abbrevs): Set has_form_ref_addr.
715 (find_partial_die): Use dwarf2_find_containing_comp_unit
716 and load_comp_unit.
717 (free_stack_comp_unit): Update comments. Clear the per-cu
718 pointer. Handle aging.
719 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
720 (age_cached_comp_units, free_one_cached_comp_unit)
721 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
722 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
723 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
724 (show_dwarf2_cmd): New.
725 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
726 and "maint show dwarf2 max-cache-age".
727 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
728 externs.
729 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
730 global.
731
732 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
733
734 * dwarf2read.c (typename_concat): Change prototype to accept obstack
735 and dwarf2_cu struct pointer as arguments. Change function to use
736 obstack if provided and use dwarf2_cu to determine language-specific
737 separator.
738 (partial_die_parent_scope): Change comment to include java. Use
739 new version of typename_concat instead of obconcat.
740 (partial_die_full_name): Use typename_concat.
741 (read_namespace): Ditto.
742 (read_enumeration_type): Use typename_concat instead of obconcat.
743 (new_symbol): Ditto.
744 (add_partial_symbol): Enhance tests for C++ to also test for Java.
745 (guess_structure_name): Ditto.
746 (read_subroutine_type): Ditto.
747 (read_structure_type): Ditto.
748 (is_vtable_name): Add Java support.
749 (determine_class_name): Switch to new typename_concat call.
750 (determine_prefix): Switch to new typename_concat call.
751 * jv-exp.y (FuncStart): New pattern.
752 (MethodInvocation): Add support for simple function calls. Change
753 warning message for other forms of inferior call currently not
754 supported.
755 * valarith.c (value_subscript): Treat an array with upper-bound
756 of -1 as unknown size.
757
758 2004-09-20 Daniel Jacobowitz <dan@debian.org>
759
760 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
761 (lookup_partial_symtab): Use symtab_to_fullname.
762
763 2004-09-19 Jim Blandy <jimb@redhat.com>
764
765 * minsyms.c (lookup_minimal_symbol): Doc fix.
766
767 2004-09-20 Andrew Cagney <cagney@gnu.org>
768
769 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
770 CHILD_RESUME.
771 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
772 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
773 KILL_INFERIOR.
774 * infptrace.c: Update.
775
776 2004-09-19 Daniel Jacobowitz <dan@debian.org>
777
778 * symtab.c (output_source_filename): Mark first argument as const.
779 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
780 for "info sources" output.
781
782 2004-09-20 Mark Kettenis <kettenis@gnu.org>
783
784 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
785 <machine/vmparam.h>.
786 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
787 (register_u_addr): Remove prototype.
788
789 2004-09-19 Mark Kettenis <kettenis@gnu.org>
790
791 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
792 (i386bsd_fetch_inferior_registers): Rename from
793 fetch_inferior_registers. Make static.
794 (i386bsd_store_inferior_registers): Rename from
795 store_inferior_registers. Make static.
796 (i386bsd_target): New function.
797 * i386bsd-nat.h: New file.
798 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
799 "i386bsd-nat.h".
800 (i386fbsd_resume): Rename from child_resume. Make static.
801 (_initialize_i386fbsd_nat): Construct and add target vector.
802 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
803 (_initialize_i386nbsd_nat): Construct and add target vector.
804 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
805 Remove defines.
806 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
807 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
808 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
809 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
810 (LOADLIBES): New variable.
811 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
812 inf-ptrace.o. Remove inftarg.o.
813 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
814 inf-ptrace.o. Remove inftarg.o.
815 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
816 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
817 (LOADLIBES): New variable.
818 * Makefile.in (i386bsd_nat_h): New variable.
819 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
820 dependencies.
821
822 * sparc64nbsd-tdep.c: Include "objfiles.h".
823 (sparc64nbsd_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 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
827 "nbsd-tdep.h".
828 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
829 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
830 svr4_lp64_fetch_link_map_offsets.
831 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
832 dependencies.
833
834 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
835 * fbsd-nat.h: New file.
836 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
837 (fbsd_nat_h): New variable.
838 (fbsd-nat.o): New dependency.
839
840 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
841 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
842
843 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
844 comment.
845
846 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
847
848 * ada-exp.y (type_int): New function to add layer of abstraction
849 around references to expression types.
850 (type_long): Ditto.
851 (type_long_long): Ditto.
852 (type_float): Ditto.
853 (type_double): Ditto.
854 (type_long_double): Ditto.
855 (type_char): Ditto.
856 (type_system_address): Ditto.
857 (simple_exp): Use type_* functions in place of builtin_*
858 variables.
859 (exp): Ditto.
860 (write_var_from_name): Ditto.
861 (write_object_renaming): Ditto.
862 * ada-lang.c (ada_create_fundamental_type): Remove redundant
863 declaration.
864 (build_ada_types): Remove, replacing with...
865 (ada_language_arch_info): New function to initialize primitive
866 type vector in language_arch_info.
867 (ada_array_length): Remove use of builtin_type_ada_int.
868 (value_pos_atr): Ditto.
869 (ada_evaluate_subexp): Ditto.
870 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
871 builtin_type_ada_long_long, builtin_type_ada_char,
872 builtin_type_ada_float, builtin_type_ada_double,
873 builtin_type_ada_long_double, builtin_type_ada_natural,
874 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
875 (ada_builtin_types): Remove.
876 (ada_language_defn): Remove entries for la_builtin_type_vector and
877 string_char_type and use ada_language_arch_info.
878 (_initialize_ada_language): Do type-vector initialization along
879 the lines of c-lang.c.
880 (ada_create_fundamental_type): Break up line.
881 (ada_dump_symtab): Remove unused function.
882 (enum ada_primitive_types): Define.
883 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
884 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
885 builtin_type_ada_float, builtin_type_ada_double,
886 builtin_type_ada_long_double, builtin_type_ada_natural,
887 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
888 * ada-lex.l: Use type_* functions in place of builtin_* variables.
889 (processInt): Ditto.
890 (processReal): Ditto.
891 (name_lookup): Ditto.
892 * ada-typeprint.c (print_range): Use builtin_type_int, not
893 builtin_type_ada_int.
894
895 2004-09-18 Mark Kettenis <kettenis@gnu.org>
896
897 * i386-tdep.c (i386_register_name): Rename regno to regnum.
898
899 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
900 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
901 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
902 * configure.in: Improve checks for curses library by checking for
903 mvwaddstr instead of initscr. Drop HP curses in favour of
904 standard curses on HP-UX.
905 * configure: Regenerated.
906
907 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
908
909 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
910 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
911 Minor formatting changes.
912 (empty_array): Slight rewrite for formatting.
913 (emit_char,parse,ada_language_defn,build_ada_types,
914 ada_is_exception_sym, _initialize_ada_language): Move
915 definitions around.
916 (ada_dump_symtab): Remove unused definition.
917 (ada_maybe_exception_partial_symbol): Remove unused definition.
918
919 2004-09-16 Andrew Cagney <cagney@gnu.org>
920
921 * inf-child.c: Include "gdb_string.h".
922 (inf_child_core_file_to_sym_file): Delete.
923 (inf_child_target): Set to_fetch_registers and to_store_registers.
924 * inf-ptrace.c: Include "gdb_string.h".
925 * Makefile.in: Update all dependencies.
926
927 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
928 problem.
929
930 2004-09-14 Joel Brobecker <brobecker@gnat.com>
931
932 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
933 call to heuristic_proc_desc. Remove code that became redundant
934 as a consequence.
935 (read_next_frame_reg): Remove special case for SP_REGNUM.
936 (set_reg_offset): Fix small typo.
937 (reset_saved_regs): New procedure.
938 (mips32_heuristic_proc_desc): No longer compute a fake
939 procedure descriptor. Compute the full frame cache instead.
940 Some minor comment reformatting.
941
942 2004-09-14 Andrew Cagney <cagney@gnu.org>
943
944 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
945 maintainer.
946
947 * thread-db.c (thread_db_new_objfile): Assume that there is a
948 child process.
949
950 2004-09-13 Jim Blandy <jimb@redhat.com>
951
952 * valops.c (value_assign): Move 'buffer' to the enclosing block,
953 so that its storage isn't referenced after its lifetime ends.
954
955 * valops.c (value_assign): 'use_buffer' is initialized to zero,
956 and never assigned to. Delete it, and the 'if (use_buffer)'
957 clauses. Delete 'raw_buffer', since it is now unused.
958
959 2004-09-13 Andrew Cagney <cagney@gnu.org>
960
961 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
962 * configure: Re-generate.
963 * nlm/Makefile.in (TAGS): Update.
964 * Makefile.in (TAGS): Update.
965 * config/vax/nbsd.mt (TM_FILE): Update.
966 * config/sparc/vxworks.mt (TM_FILE): Update.
967 * config/sparc/sol2.mt (TM_FILE): Update.
968 * config/sparc/sol2-64.mt (TM_FILE): Update.
969 * config/sparc/obsd64.mt (TM_FILE): Update.
970 * config/sparc/obsd.mt (TM_FILE): Update.
971 * config/sparc/nbsd64.mt (TM_FILE): Update.
972 * config/sparc/nbsd.mt (TM_FILE): Update.
973 * config/sparc/linux64.mt (TM_FILE): Update.
974 * config/sparc/linux.mt (TM_FILE): Update.
975 * config/sparc/fbsd.mt (TM_FILE): Update.
976 * config/sh/wince.mt (TM_FILE): Update.
977 * config/sh/nbsd.mt (TM_FILE): Update.
978 * config/sh/linux.mt (TM_FILE): Update.
979 * config/sh/embed.mt (TM_FILE): Update.
980 * config/s390/s390.mt (TM_FILE): Update.
981 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
982 * config/rs6000/rs6000.mt (TM_FILE): Update.
983 * config/rs6000/aix4.mt (TM_FILE): Update.
984 * config/powerpc/vxworks.mt (TM_FILE): Update.
985 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
986 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
987 * config/powerpc/obsd.mt (TM_FILE): Update.
988 * config/powerpc/nbsd.mt (TM_FILE): Update.
989 * config/powerpc/linux.mt (TM_FILE): Update.
990 * config/powerpc/aix.mt (TM_FILE): Update.
991 * config/pa/obsd.mt (TM_FILE): Update.
992 * config/pa/linux.mt (TM_FILE): Update.
993 * config/pa/hppahpux.mt (TM_FILE): Update.
994 * config/pa/hppa64.mt (TM_FILE): Update.
995 * config/pa/hppa.mt (TM_FILE): Update.
996 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
997 * config/mips/wince.mt (TM_FILE): Update.
998 * config/mips/vxmips.mt (TM_FILE): Update.
999 * config/mips/nbsd.mt (TM_FILE): Update.
1000 * config/mips/linux.mt (TM_FILE): Update.
1001 * config/mips/irix6.mt (TM_FILE): Update.
1002 * config/mips/irix5.mt (TM_FILE): Update.
1003 * config/mips/embed.mt (TM_FILE): Update.
1004 * config/m68k/vxworks68.mt (TM_FILE): Update.
1005 * config/m68k/st2000.mt (TM_FILE): Update.
1006 * config/m68k/os68k.mt (TM_FILE): Update.
1007 * config/m68k/obsd.mt (TM_FILE): Update.
1008 * config/m68k/nbsd.mt (TM_FILE): Update.
1009 * config/m68k/monitor.mt (TM_FILE): Update.
1010 * config/m68k/linux.mt (TM_FILE): Update.
1011 * config/m68k/cisco.mt (TM_FILE): Update.
1012 * config/ia64/linux.mt (TM_FILE): Update.
1013 * config/ia64/aix.mt (TM_FILE): Update.
1014 * config/ia64/ia64.mt (TM_FILE): Update.
1015 * config/i386/vxworks.mt (TM_FILE): Update.
1016 * config/i386/obsd64.mt (TM_FILE): Update.
1017 * config/i386/obsd.mt (TM_FILE): Update.
1018 * config/i386/nto.mt (TM_FILE): Update.
1019 * config/i386/nbsd64.mt (TM_FILE): Update.
1020 * config/i386/nbsd.mt (TM_FILE): Update.
1021 * config/i386/linux64.mt (TM_FILE): Update.
1022 * config/i386/linux.mt (TM_FILE): Update.
1023 * config/i386/i386sol2.mt (TM_FILE): Update.
1024 * config/i386/i386lynx.mt (TM_FILE): Update.
1025 * config/i386/fbsd64.mt (TM_FILE): Update.
1026 * config/i386/fbsd.mt (TM_FILE): Update.
1027 * config/i386/cygwin.mt (TM_FILE): Update.
1028 * config/h8300/h8300.mt (TM_FILE): Update.
1029 * config/frv/frv.mt (TM_FILE): Update.
1030 * config/cris/cris.mt (TM_FILE): Update.
1031 * config/arm/wince.mt (TM_FILE): Update.
1032 * config/arm/nbsd.mt (TM_FILE): Update.
1033 * config/arm/linux.mt (TM_FILE): Update.
1034 * config/arm/embed.mt (TM_FILE): Update.
1035 * config/alpha/nbsd.mt (TM_FILE): Update.
1036 * config/alpha/fbsd.mt (TM_FILE): Update.
1037 * config/alpha/alpha.mt (TM_FILE): Update.
1038 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1039 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1040
1041 Eliminate event_loop_p, always has the value 1.
1042 * defs.h (event_loop_p): Delete macro.
1043 * breakpoint.c (until_break_command): Simplify.
1044 * utils.c (prompt_for_continue): Simplify.
1045 * tracepoint.c (read_actions): Simplify.
1046 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1047 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1048 (set_prompt, init_main): Simplify.
1049 (init_signals, disconnect): Delete, unused.
1050 * remote.c (remote_async_resume)
1051 (extended_remote_async_create_inferior): Simplify.
1052 * mi/mi-interp.c (mi_input): Delete, unused.
1053 (mi_interpreter_resume, mi_command_loop): Simplify.
1054 * interps.c (current_interp_command_loop): Simplify.
1055 * infrun.c (proceed): Simplify.
1056 * infcmd.c (run_command, continue_command, step_1, jump_command)
1057 (until_command, advance_command, finish_command)
1058 (interrupt_target_command): Simplify.
1059 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1060
1061 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1062 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1063 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1064 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1065 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1066 * mips-tdep.c (mips_dump_tdep): Do not print same.
1067
1068 2004-09-12 Andrew Cagney <cagney@gnu.org>
1069
1070 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1071 const.
1072 * Makefile.in (valprint.o): Delete explict rule.
1073
1074 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1075 reported by Dave Anderson.
1076
1077 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1078
1079 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1080
1081 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1082 Andrew Cagney <cagney@gnu.org>
1083
1084 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1085 (mi_cmd_data_list_register_values)
1086 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1087 the register number computation.
1088
1089 2004-09-12 Andrew Cagney <cagney@gnu.org>
1090
1091 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1092 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1093 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1094 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1095 target.
1096 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1097 inf-ptrace.o and inf-child.o.
1098 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1099 * Makefile.in: Update dependencies.
1100
1101 2004-09-11 Andrew Cagney <cagney@gnu.org>
1102
1103 * language.c (hex_string, hex_string_custom): Move from here ...
1104 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1105 (CELLSIZE): Increase to 50.
1106 * language.h (hex_string, hex_string_custom): Move from here ...
1107 * defs.h: ... to here.
1108 * Makefile.in: Update all dependencies.
1109
1110 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1111
1112 * language.c (local_hex_format_custom): Remove.
1113 (local_hex_string): Rename to hex_string, use C format, and move to
1114 utils.c
1115 (local_hex_string_custom): Rename to hex_string_custom and change
1116 interface. Now uses C format. Move to utils.c
1117 (local_octal_format_custom): Remove.
1118 (local_decimal_format_custom): Remove.
1119 (unknown_language_defn): Remove language-specific number
1120 formatting entries.
1121 (auto_language_defn): Ditto.
1122 (local_language_defn): Ditto.
1123 * language.h (struct language_format_info): Delete declaration.
1124 (struct language_defn): Remove language_format_info fields
1125 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1126 (local_binary_format): Remove macro.
1127 (local_binary_format_prefix): Remove macro.
1128 (local_binary_format_specifier): Remove macro.
1129 (local_binary_format_suffix): Remove macro.
1130 (local_octal_format): Remove macro.
1131 (local_octal_format_prefix): Remove macro.
1132 (local_octal_format_specifier): Remove macro.
1133 (local_octal_format_suffix): Remove macro.
1134 (local_decimal_format): Remove macro.
1135 (local_decimal_format_prefix): Remove macro.
1136 (local_decimal_format_specifier): Remove macro.
1137 (local_decimal_format_suffix): Remove macro.
1138 (local_hex_format): Remove macro.
1139 (local_hex_format_prefix): Remove macro.
1140 (local_hex_format_specifier): Remove macro.
1141 (local_hex_format_suffix): Remove macro.
1142 (local_decimal_format_custom): Remove.
1143 (local_octal_format_custom): Remove.
1144 (local_hex_format_custom): Remove.
1145 (local_hex_string): Rename to hex_string and move to defs.h.
1146 (local_hex_string_custom): Rename to hex_string_custom, change
1147 interface, and move to defs.h.
1148 * utils.c: (int_string): New function.
1149 (hex_string): New function (from language.c).
1150 (hex_string_custom): New function (from language.c).
1151 (octal2str): New function.
1152 (decimal2str): Add width parameter.
1153 (paddr_u): Use new decimal2str interface.
1154 (paddr_d): Ditto.
1155 * defs.h (hex_string): Declare.
1156 (hex_string_custom): Declare.
1157 (int_string): Declare.
1158 * printcmd.c (print_scalar_formatted): Remove localized binary
1159 formatting.
1160 * valprint.c (print_longest): Use int_string.
1161 (print_floating): Use C hex format.
1162 (print_hex_chars): Ditto.
1163 (print_binary_chars): Remove language-specific formatting.
1164 (print_octal_chars): Use C octal format.
1165 (print_decimal_chars): Delocalize format.
1166 (print_decimal): Remove.
1167 * ada-lang.c (ada_language_defn): Remove language-specific number
1168 formatting entries.
1169 * p-lang.c (pascal_language_defn): Ditto.
1170 * c-lang.c (c_language_defn): Ditto.
1171 (cplus_language_defn): Ditto.
1172 (asm_language_defn): Ditto.
1173 (minimal_language_defn): Ditto.
1174 * f-lang.c (f_language_defn): Ditto.
1175 * jv-lang.c (java_language_defn): Ditto.
1176 * m2-lang.c (m2_language_defn): Ditto.
1177 * scm-lang.c (scm_language_defn): Ditto.
1178 * objc-lang.c (objc_language_defn): Ditto.
1179 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1180 new interface.
1181 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1182 * ui-out.c (ui_out_field_core_addr): Ditto.
1183 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1184 * exec.c (print_section_info): Ditto.
1185 * i387-tdep.c (print_i387_status_word): Ditto.
1186 (print_i387_control_word): Ditto.
1187 (i387_print_float_info): Ditto.
1188 * maint.c (maint_print_section_info): Ditto.
1189 * solib.c (info_sharedlibrary_command): Ditto.
1190 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1191 * symtab.c (print_msymbol_info): Ditto.
1192 * tracepoint.c (tracepoints_info): Ditto.
1193 * solib-frv.c (lm_base): Ditto.
1194 (frv_current_sos): Ditto.
1195 (enable_break2): Ditto.
1196 (enable_break): Ditto.
1197 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1198 (process_one_symbol): Ditto.
1199 * infcmd.c (program_info): Ditto.
1200 * mdebugread.c (parse_partial_symbols): Ditto.
1201 * symfile.c (add_symbol_file_command): Ditto.
1202 * cli/cli-cmds.c (edit_command): Ditto.
1203 (list_command): Ditto.
1204 * infcall.c (call_function_by_hand): Ditto.
1205 * remote-vx.c (vx_run_files_info): Ditto.
1206 (vx_wait): Ditto.
1207 (vx_attach): Ditto.
1208 (vx_detach): Ditto.
1209 (vx_kill): Ditto.
1210 * aix-thread.c (pdc_symbol_addrs): Ditto.
1211 (pdc_read_regs): Ditto.
1212 (pdc_write_regs): Ditto.
1213 (pdc_read_data): Ditto.
1214 (pdc_write_data): Ditto.
1215 * d10v-tdep.c (display_trace): Ditto.
1216 * rs6000-nat.c (find_toc_address): Ditto.
1217 * aix-thread.c: Don't include language.h.
1218 * buildsym.c: Ditto.
1219 * dbxread.c: Ditto.
1220 * mdebugread.c: Ditto.
1221 * rs6000-nat.c: Ditto.
1222 * buildsym.c (make_blockvector): Use renamed hex_string.
1223
1224 2004-09-10 Jason Molenda (jmolenda@apple.com)
1225
1226 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1227 chars after 'if' or 'while' commands in user-defined commands.
1228
1229 2004-09-08 Jim Blandy <jimb@redhat.com>
1230
1231 Fix bug reported and analyzed by Olivier Crete:
1232 * symfile.c (copy_section_addr_info): New function.
1233 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1234 original set of address arguments, instead of handwritten code
1235 that uses one length to allocate and a different length to
1236 initialize. Use make_cleanup_free_section_addr_info.
1237 * symfile.h (copy_section_addr_info): New declaration.
1238 * utils.c: #include "symfile.h".
1239 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1240 New functions.
1241 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1242 * Makefile.in (utils.o): Update dependencies.
1243
1244 2004-09-08 Andrew Cagney <cagney@gnu.org>
1245
1246 * thread-db.c (keep_thread_db): Delete.
1247 (thread_db_new_objfile, thread_db_create_inferior)
1248 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1249
1250 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1251
1252 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1253 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1254 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1255 (i386_frameless_signal_p): Remove prototype.
1256 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1257 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1258 I386_SSE_NUM_REGS.
1259 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1260 instead of FP0_REGNUM.
1261 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1262 of FP0_REGNUM and FPC_REGNUM.
1263
1264 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1265 (sunos_solib_create_inferior_hook): Don't call
1266 sunos_relocate_main_executable.
1267
1268 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1269 solib_svr4_fetch_link_map_offsets to
1270 svr4_ilp32_fetch_link_map_offsets.
1271 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1272 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1273 svr4_ilp32_fetch_link_map_offsets.
1274 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1275
1276 2004-09-07 Jim Blandy <jimb@redhat.com>
1277
1278 * frame.h (frame_register): Doc fix.
1279
1280 2004-09-07 Andrew Cagney <cagney@gnu.org>
1281
1282 * vx-share/wait.h: Delete #ifdef USG.
1283 * utils.c (request_quit): Ditto.
1284 * tui/tui.c (tui_reset): Ditto.
1285 * remote.c: Ditto.
1286 * remote-sds.c: Ditto.
1287 * remote-rdi.c: Ditto.
1288 * mdebugread.c: Ditto.
1289 * m68klinux-nat.c: Ditto.
1290 * infttrace.c: Ditto.
1291 * infptrace.c: Ditto.
1292 * i386v-nat.c: Ditto.
1293 * exec.c: Ditto.
1294 * dbxread.c: Ditto.
1295 * core-aout.c: Ditto.
1296
1297 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1298
1299 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1300 heuristic_proc_desc.
1301 (mips_insn32_frame_cache): Likewise.
1302
1303 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1304
1305 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1306 left behind by error.
1307
1308 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1309
1310 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1311 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1312
1313 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1314
1315 * config/rs6000/xm-aix4.h: Remove this file.
1316 * config/rs6000/aix4.mh (XM_FILE): Delete.
1317
1318 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1319
1320 * config/rs6000/xm-rs6000.h: Remove this file.
1321 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1322
1323 2004-09-03 Andrew Cagney <cagney@gnu.org>
1324
1325 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1326 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1327 only use.
1328
1329 * mips-tdep.c (temp_saved_regs): Delete.
1330 (set_reg_offset): Replace saved_regs parameter with this_cache.
1331 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1332 (mips32_heuristic_proc_desc): Add this_cache parameter.
1333 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1334 (after_prologue): Pass a NULL this_cache.
1335
1336 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1337 non-kernel trap prologues.
1338
1339 * mips-tdep.c (find_proc_desc): Delete function.
1340 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1341 simplify.
1342 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1343 mips_insn32_frame_cache.
1344
1345 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1346 Simplify as NEXT_FRAME is NULL.
1347 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1348
1349 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1350 local variable.
1351 (mips_skip_prologue): Update.
1352
1353 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1354 "cur_frame" parameter.
1355 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1356 (mips_insn32_frame_cache, find_proc_desc): Update
1357
1358 * config/vax/nm-obsd.h: Delete file.
1359 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1360 * config/vax/nm-nbsd.h: Delete file.
1361 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1362 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1363 * config/sh/nm-nbsd.h: Delete file.
1364 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1365 * config/rs6000/nm-rs6000ly.h: Delete file.
1366 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1367 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1368 * config/powerpc/nm-obsd.h: Delete file.
1369 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1370 * config/powerpc/nm-nbsd.h: Delete file.
1371 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1372 * config/pa/nm-obsd.h: Delete file.
1373 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1374 * config/mips/nm-nbsd.h: Delete file.
1375 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1376 * config/m88k/nm-obsd.h: Delete file.
1377 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1378 * config/m68k/nm-nbsd.h: Delete file.
1379 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1380 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1381 * config/i386/nm-nbsd.h: Delete file.
1382 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1383 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1384 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1385 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1386 * config/i386/nm-i386lynx.h: Delete file.
1387 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1388 * config/arm/nm-nbsd.h: Delete file.
1389 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1390 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1391
1392 * config/i386/tm-fbsd.h: Delete file.
1393 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1394 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1395
1396 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1397 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1398 * config/rs6000/aix4.mt (TM_FILE): Set to
1399 config/rs6000/tm-rs6000.h.
1400 * config/powerpc/tm-ppc-aix.h: Delete file.
1401 * config/powerpc/aix.mt (TM_FILE): Set to
1402 config/rs6000/tm-rs6000.h.
1403 * config/m68k/tm-linux.h: Delete file.
1404 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1405 * config/i386/tm-linux64.h: Delete file.
1406 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1407 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1408
1409 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1410 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1411 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1412 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1413 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1414 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1415 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1416 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1417 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1418
1419 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1420 gdb_host_cpu.
1421
1422 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1423
1424 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1425 Minor reformatting. Some code factoring.
1426
1427 2004-09-02 Andrew Cagney <cagney@gnu.org>
1428
1429 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1430 * config/vax/tm-nbsd.h: Delete file.
1431 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1432 * config/sparc/tm-vxworks.h: Delete file.
1433 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1434 * config/sparc/tm-nbsd.h: Delete file.
1435 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1436 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1437 * config/sparc/tm-linux.h: Delete file.
1438 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1439 * config/s390/tm-linux.h: Delete file.
1440 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1441 * config/pa/tm-bsd.h: Delete file.
1442 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1443 * config/m68k/tm-obsd.h: Delete file.
1444 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1445 * config/m68k/tm-nbsd.h: Delete file.
1446 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1447 * config/i386/tm-vxworks.h: Delete file.
1448 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1449 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1450 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1451 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1452 * config/i386/tm-nbsd.h: Delete file.
1453 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1454 * config/i386/tm-i386lynx.h: Delete file.
1455 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1456 * config/cris/tm-cris.h: Delete file.
1457
1458 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1459 * configure: Re-generate.
1460 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1461 * config/arm/tm-nbsd.h: Delete file.
1462
1463 * config/powerpc/tm-ppcle-sim.h: Delete.
1464 * config/powerpc/tm-ppcle-eabi.h: Delete.
1465 * config/powerpc/tm-nbsd.h: Delete.
1466 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1467 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1468 tm-ppcle-eabi.h.
1469
1470 * config/i386/nto.mh (NAT_FILE): Delete.
1471 * config/i386/nm-nto.h: Delete.
1472
1473 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1474 * config/m68k/tm-os68k.h: Ditto.
1475 * config/m68k/tm-monitor.h: Ditto.
1476 * config/m68k/tm-cisco.h: Ditto.
1477 * config/m68k/st2000.mt (TM_FILE): Delete.
1478 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1479 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1480 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1481 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1482
1483 * config/m68k/tm-st2000.h: Delete.
1484 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1485 * config/sparc/fbsd.mt (TM_FILE): Delete.
1486 * config/sparc/tm-fbsd.h: Delete.
1487
1488 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1489 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1490 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1491
1492 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1493 GDB_TM_FILE and GDB_XM_FILE.
1494 * gdbarch.c: Re-generate.
1495 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1496 quotes in macro definition.
1497 * configure.in: Re-generate.
1498
1499 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1500 validating architecture methods.
1501 * gdbarch.c: Re-generate.
1502
1503 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1504 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1505 GDB_MULTI_ARCH_PARTIAL.
1506 * gdbarch.h: Re-generate.
1507
1508 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1509 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1510 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1511 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1512 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1513 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1514 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1515 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1516 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1517 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1518 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1519 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1520
1521 2004-09-01 Andrew Cagney <cagney@gnu.org>
1522
1523 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1524 and main_func_highpc.
1525 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1526 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1527 * nlmread.c (nlm_symfile_read): Update.
1528
1529 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1530
1531 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1532 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1533 (find_proc_desc): Remove dead code.
1534
1535 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1536
1537 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1538
1539 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1540
1541 * observer.sh: Add struct so_list declaration.
1542 * Makefile.in: Add dependencies on observer.h for solib.c and
1543 breakpoint.c.
1544 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1545 function.
1546 (_initialize_breakpoint): Register
1547 disable_breakpoints_in_unloaded_shlib as an observer of the
1548 "solib unloaded" observation event.
1549 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1550 call decode_line_1 so unfound breakpoint errors are silent.
1551 * solib.c (update_solib_list): When a solib is discovered to have
1552 been unloaded by the program, notify all observers of the
1553 "solib unloaded" observation event.
1554
1555 2004-09-01 Andrew Cagney <cagney@gnu.org>
1556
1557 * frame.c: Include "objfiles.h".
1558 (inside_main_func): New function.
1559 (get_prev_frame): Use new inside_main_func.
1560 * Makefile.in (frame.o): Update dependencies.
1561 * defs.h (inside_main_func): Delete declaration.
1562 * blockframe.c (inside_main_func): Delete function.
1563
1564 2004-08-31 Jim Blandy <jimb@redhat.com>
1565
1566 * dwarf2read.c (is_vtable_name): New function, based on logic from
1567 read_structure_type, but passing the correct length to strncmp,
1568 and using 'sizeof' instead of 'strlen'.
1569 (read_structure_type): Call it.
1570
1571 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1572
1573 * config/powerpc/aix.mh: Add comment.
1574
1575 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1576
1577 * MAINTAINERS: Add self to Write-After-Approval.
1578
1579 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1580
1581 * MAINTAINERS: Add self to Write-After-Approval.
1582
1583 2004-08-30 Andrew Cagney <cagney@gnu.org>
1584
1585 Fix PR breakpoints/1757.
1586 * infrun.c (struct execution_control_state): Replace
1587 remove_breakpoints_on_following_step with
1588 step_after_step_resume_breakpoint.
1589 (init_execution_control_state): Update.
1590 (handle_inferior_event): For signals, when stepping off a
1591 breakpoint, set step_after_step_resume_breakpoint. When
1592 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1593 (keep_going): Delete code handling
1594 remove_breakpoints_on_following_step.
1595
1596 2004-08-29 David Lecomber <david@streamline-computing.com>
1597
1598 Fix PR gdb/648
1599 * language.h (enum array_ordering): New enum.
1600 * language.h (struct language_defn): New la_array_ordering
1601 attribute.
1602 * language.c (unknown_language_defn, auto_language_defn)
1603 (local_language_defn): Ditto.
1604 * ada-lang.c (ada_language_defn): Ditto.
1605 * c-lang.c (c_language_defn, cplus_language_defn)
1606 (asm_language_defn, minimal_language_defn): Ditto.
1607 * f-lang.c (f_language_defn): Ditto.
1608 * jv-lang.c (java_language_defn): Ditto.
1609 * m2-lang.c (f_language_defn): Ditto.
1610 * objc-lang.c (objc_language_defn): Ditto.
1611 * p-lang.c (pascal_language_defn): Ditto.
1612 * scm-lang.c (scm_language_defn): Ditto.
1613 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1614 oriented large to small in type structure.
1615 * dwarf2read.c (read_array_order): New function.
1616 (read_array_type): Use read_array_order to check row/column
1617 major ordering.
1618
1619 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1620
1621 * target.c (target_resize_to_sections): Check
1622 current_target.to_sections for an old value when updating.
1623
1624 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1625
1626 * procfs.c (dbx_link_bpt_addr): New static global variable.
1627 (dbx_link_shadow_contents): New static global variable.
1628 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1629 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1630 if we just hit it.
1631 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1632 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1633 from run to run.
1634 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1635 after the inferior has been forked.
1636 (remove_dbx_link_breakpoint): New function.
1637 (dbx_link_addr): New function.
1638 (insert_dbx_link_bpt_in_file): New function.
1639 (insert_dbx_link_bpt_in_region): New function.
1640 (insert_dbx_link_breakpoint): New function.
1641 (proc_trace_syscalls_1): New function, extracted from
1642 proc_trace_syscalls.
1643 (proc_trace_syscalls): Replace extract code by call to
1644 proc_trace_syscalls_1.
1645 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1646 is no longer valid.
1647
1648 2004-08-25 Jim Blandy <jimb@redhat.com>
1649
1650 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1651
1652 2004-08-25 Andrew Cagney <cagney@gnu.org>
1653
1654 * infrun.c (struct execution_control_state): Delete field
1655 "stepping_through_sigtramp".
1656 (init_execution_control_state): Do not set same.
1657 (context_switch): Do not pass same to save_infrun_state and
1658 load_infrun_state.
1659 * gdbthread.h (struct thread_info): Delete field
1660 stepping_through_sigtramp.
1661 (save_infrun_state, load_infrun_state): Delete parameter
1662 stepping_through_sigtramp.
1663 * thread.c (load_infrun_state, save_infrun_state): Update.
1664
1665 * infrun.c: Re-indent. Move expression operators to the beginning
1666 of the line. Remove long disabled #if 0 code.
1667
1668 2004-08-24 Andrew Cagney <cagney@gnu.org>
1669
1670 * doublest.h (floatformat_ieee_quad): Rename
1671 floatformat_ia64_quad.
1672 * doublest.c (floatformat_ieee_quad): Rename
1673 floatformat_ia64_quad.
1674 (_initialize_doublest): Update.
1675
1676 2004-08-24 Jim Blandy <jimb@redhat.com>
1677
1678 * dwarf2expr.h (struct dwarf_expr_context): New members
1679 'num_pieces' and 'pieces', for returning the result of an
1680 expression that uses DW_OP_piece.
1681 (struct dwarf_expr_piece): New struct type.
1682 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1683 pieces.
1684 (free_dwarf_expr_context): Free pieces, if any.
1685 (add_piece): New function.
1686 (execute_stack_op): Implement DW_OP_piece.
1687 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1688 expression is a list of pieces, print an error message.
1689 (dwarf2_loc_desc_needs_frame): If the expression yields
1690 pieces, and any piece is in a register, then we need a frame.
1691
1692 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1693 the stack until we've decided what sort of result the evaluation
1694 has produced. Use separate variables, with more specific names.
1695
1696 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1697
1698 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1699 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1700 (arm_netbsd_init_abi_common): Register them.
1701
1702 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1703
1704 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1705
1706 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1707 safe_frame_unwind_memory instead of target_read_memory.
1708
1709 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1710 Reorder includes.
1711 (fetch_register, store_register): Remove prototypes.
1712 (child_resume): Reorganize code and comments such that it is
1713 grouped a bit more logically.
1714 (attach): Explicitly compare errno against 0.
1715 (detach): Likewise. Use perror_with_name instead of
1716 print_sys_errmsg.
1717 * Makefile.in (infptrace.o): Update dependencies.
1718
1719 * ia64-linux-nat.c: Update copyright year.
1720 (fetch_debug_register, store_debug_register)
1721 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1722 PTRACE_TYPE_ARG3.
1723 * config/ia64/nm-linux.h: Update copyright year.
1724 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1725
1726 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1727 from CORE_ADDR to struct frame_info *. Use
1728 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1729 (amd64_linux_sigtramp_p): Adjust for changed signature of
1730 and64_linux_sigtramp_start
1731
1732 * gdb_ptrace.h: GNU/Linux.
1733
1734 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1735 Remove defines.
1736
1737 * infptrace.c: Include "gdb_assert.h".
1738 (PTRACE_XFER_TYPE): Remove define.
1739 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1740 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1741 Tweak comment.
1742 (fetch_inferior_registers, store_inferior_registers): Remove
1743 redundant culry braces. Tweak comment. s/regno/regnum.
1744 * Makefile.in (infptrace.o): Update dependencies.
1745
1746 * configure.in: Change test for return type of ptrace to default
1747 to `long' instead of `int'.
1748 * configure: Regenerate.
1749
1750 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1751
1752 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1753
1754 * configure.in: Check for ttrace function.
1755 * configure, config.in: Regenerate.
1756
1757 * gdb_ptrace.h: New file.
1758 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1759 <sys/ptrace.h>.
1760 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1761 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1762 (attach): Don't define PT_ATTACH.
1763 (detach): Don't define PT_DETACH.
1764 * Makefile.in (gdb_ptrace_h): New variable.
1765 (infptrace.o): Update dependencies.
1766
1767 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1768
1769 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1770 instead of `int' if not already defined.
1771 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1772 PTRACE_TYPE_ARG3.
1773 * infptrace.c (call_ptrace): Revert change that replaced
1774 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1775
1776 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1777
1778 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1779 Remove defines.
1780
1781 * linux-nat.c (kill_inferior): Add missing third and fourth
1782 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1783
1784 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1785 PTRACE_TYPE_RET.
1786
1787 * proc-why.c (proc_prettyfprint_why): Fix format string.
1788
1789 * solib-osf.c (osf_current_sos): Remove unsused label.
1790
1791 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1792 curses headers.
1793 * configure, config.in: Regenerate.
1794 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1795 <ncurses/ncurses.h>.
1796
1797 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1798 * config/nm-nbsd.h: Update copyright year.
1799 (PTRACE_ARG3_TYPE): Remove define.
1800
1801 * sparc-nat.c (fetch_inferior_registers)
1802 (store_inferior_registers, sparc_xfer_wcookie):
1803 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1804
1805 * alphabsd-nat.c (fetch_inferior_registers):
1806 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1807 PTRACE_TYPE_ARG3.
1808 * amd64bsd-nat.c (fetch_inferior_registers)
1809 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1810 PTRACE_TYPE_ARG3.
1811 * armnbsd-nat.c: Update copyright year.
1812 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1813 (store_register, store_regs, store_fp_register, store_fp_regs):
1814 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1815 * hppabsd-nat.c (fetch_inferior_registers)
1816 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1817 PTRACE_TYPE_ARG3.
1818 * i386bsd-nat.c (fetch_inferior_registers)
1819 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1820 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1821 * m68kbsd-nat.c (fetch_inferior_registers)
1822 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1823 PTRACE_TYPE_ARG3.
1824 * m88kbsd-nat.c (fetch_inferior_registers)
1825 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1826 PTRACE_TYPE_ARG3.
1827 * mipsnbsd-nat.c: Update copyright year.
1828 (fetch_inferior_registers, store_inferior_registers):
1829 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1830 * ns32knbsd-nat.c: Update copyright year.
1831 (fetch_inferior_registers, store_inferior_registers):
1832 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1833 * ppcnbsd-nat.c (fetch_inferior_registers):
1834 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1835 PTRACE_TYPE_ARG3.
1836 * ppcobsd-nat.c (fetch_inferior_registers):
1837 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1838 PTRACE_TYPE_ARG3.
1839 * shnbsd-nat.c: Update copyright year.
1840 (fetch_inferior_registers, store_inferior_registers):
1841 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1842 * vaxbsd-nat.c (fetch_inferior_registers)
1843 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1844 PTRACE_TYPE_ARG3.
1845
1846 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1847 PTRACE_TYPE_ARG3.
1848 * infptrace.c (call_ptrace, child_resume, attach, detach)
1849 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1850 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1851 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1852 PTRACE_TYPE_ARG3.
1853
1854 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1855
1856 * defs.h: Remove out-of-date comment.
1857 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1858 [!GETENV_PROVIDED] (getenv): Remove prototype.
1859
1860 * standalone.c: Remove file.
1861 * Makefile.in (standalone.o): Remove dependency.
1862
1863 * i386-linux-nat.c (dummy_sse_values): Remove function and
1864 prototype.
1865 (i386_linux_dr_get): Fix typo in comment.
1866 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1867
1868 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1869
1870 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1871 from declaration.
1872 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1873 from definition.
1874
1875 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1876
1877 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1878 parenthesis in definition.
1879 * configure: Regenerated.
1880
1881 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1882
1883 * PROBLEMS: Mention build/1411.
1884
1885 2004-08-09 Robert Millan <robertmh@gnu.org>
1886
1887 Committed by Nathanael Nerode.
1888 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1889 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1890
1891 2004-08-12 Andrew Cagney <cagney@gnu.org>
1892
1893 * NEWS: Mention fixes in GDB 6.2.1.
1894 * PROBLEMS: Remove mention of mips-irix.
1895
1896 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1897
1898 * config/powerpc/xm-aix.h: Delete.
1899 * config/powerpc/aix.mh (MH_FILE): Remove.
1900 * config/powerpc/aix432.mh (MH_FILE): Remove.
1901
1902 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1903
1904 * config/powerpc/aix.mh: Remove obsolete comment.
1905 * config/powerpc/aix432.mh: Likewise.
1906
1907 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1908
1909 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1910
1911 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1912
1913 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1914 this file is now empty.
1915 * config/xm-aix4.h: Remove, this file is no longer included
1916 anywhere.
1917
1918 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1919
1920 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1921 that file is now empty.
1922 (termdef): Remove prototype, function no longer used.
1923
1924 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1925
1926 * doc/gdbint.texinfo (Host Definition): Remove documentation
1927 for USE_O_NOCTTY, no longer used.
1928 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1929 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1930
1931 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1932
1933 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1934 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1935 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1936
1937 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1938
1939 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1940 instead of FIVE_ARG_PTRACE.
1941
1942 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1943 (new_tty): Use O_NOCTTY unconditionally.
1944
1945 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1946
1947 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1948 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1949 fflush on stdout.
1950
1951 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1952
1953 * xcoff_symfile_finish: Replace last call to xmfree by call
1954 to xfree.
1955
1956 2004-08-10 Andrew Cagney <cagney@gnu.org>
1957
1958 * main.c (captured_main): Delete call to init_malloc.
1959 * defs.h (init_malloc): Delete declaration.
1960 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1961 (init_malloc): Delete functions.
1962
1963 * defs.h (xmfree): Delete.
1964 * utils.c (xmfree): Delete function.
1965 (xfree): Inline calls to xmfree and mfree.
1966 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1967 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1968 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1969 * somread.c (som_symfile_finish): Ditto.
1970 * objfiles.c (allocate_objfile, free_objfile):
1971 * nlmread.c (nlm_symfile_finish): Ditto.
1972 * hpread.c (hpread_symfile_finish): Ditto.
1973 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1974 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1975 * coffread.c (coff_symfile_finish): Ditto.
1976
1977 * defs.h (xmcalloc): Delete declaration.
1978 * utils.c (xmcalloc): Delete.
1979 (xcalloc): Inline calls to xmcalloc and mcalloc.
1980 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1981 xcalloc and xfree.
1982 * symtab.c (create_demangled_names_hash): Ditto.
1983
1984 * defs.h (xmrealloc): Delete.
1985 * utils.c (xmrealloc): Delete.
1986 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1987 * symmisc.c (extend_psymbol_list): Use xrealloc.
1988 * source.c (find_source_lines): Ditto.
1989 * hpread.c (hpread_lookup_type): Ditto.
1990 * dbxread.c (add_bincl_to_list): Ditto.
1991
1992 * utils.c (xmmalloc): Delete.
1993 (xmalloc): Inline xmmalloc and mmalloc calls.
1994 (msavestring): Use xmalloc.
1995 * defs.h (xmmalloc): Delete declaration.
1996 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1997 xmmalloc.
1998 * symmisc.c (extend_psymbol_list): Ditto.
1999 * symfile.c (init_psymbol_list): Ditto.
2000 * source.c (find_source_lines): Ditto.
2001 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2002 * elfread.c (elf_symtab_read): Ditto.
2003 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2004 * coffread.c (coff_symfile_init): Ditto.
2005
2006 2004-08-10 David Carlton <carlton@bactrian.org>
2007
2008 * MAINTAINERS: Remove David Carlton from c++ testsuite
2009 maintainers.
2010
2011 2004-08-10 Jerome Guitton <guitton@gnat.com>
2012
2013 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2014 print a line feed before the prompt.
2015
2016 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2017
2018 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2019
2020 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2021
2022 General cleanup of the AIX xm include file:
2023 * config/xm-aix4.h (fd_set): Remove undefine.
2024 Remove include of <sys/select.h>.
2025 (HAVE_TERMIO): Remove define.
2026 (USG): Likewise.
2027 (NULL): Remove redefine.
2028 (alloca): Remove #pragma.
2029 (vfork): Remove define.
2030 (termdef): Remove.
2031 (SIGWINCH_HANDLER): Remove.
2032 (SIGWINCH_HANDLER_BODY): Remove.
2033
2034 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2035
2036 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2037 GDB_OSABI_OPENBSD_ELF.
2038
2039 2004-08-07 Robert Millan <robertmh@gnu.org>
2040
2041 * bsd-kvm.c: Check for nlist.h before including it.
2042
2043 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2044
2045 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2046 sigcontext' offset consistency checks for ancient BSD.
2047
2048 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2049
2050 * configure.in: Check for <sys/types.h>. Check return and
2051 argument types of ptrace.
2052 * configure, config.in: Regenerate.
2053
2054 2004-08-09 Jim Blandy <jimb@redhat.com>
2055
2056 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2057 rs6000_register_sim_regno): Doc fixes.
2058
2059 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2060
2061 * mips-tdep.c: Include "floatformat.h".
2062 (n32n64_floatformat_always_valid): New function.
2063 (floatformat_n32n64_long_double_big): New constant.
2064 (mips_gdbarch_init): Set size and format of long double
2065 for N32 and N64 ABIs.
2066 * Makefile.in (mips-tdep.o): Update dependencies.
2067
2068 2004-08-08 Andrew Cagney <cagney@gnu.org>
2069
2070 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2071 print. Improve script's error messages.
2072 * gdbarch.h: Re-generate.
2073
2074 * gdbarch.sh (pformat): New function.
2075 (float_format, double_format, long_double_format): List with bit
2076 members. Use pformat when printing.
2077 * gdbarch.c, gdbarch.h: Re-generate.
2078
2079 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2080
2081 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2082 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2083 (ppcnbsd_supply_pcb): New function.
2084 (_initialize_ppcnbsd_nat): New prototype and function.
2085 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2086 (LOADLIBES): New variable.
2087 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2088
2089 2004-08-08 Andrew Cagney <cagney@gnu.org>
2090
2091 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2092 (builtin_type_ieee_double, builtin_type_ia64_quad)
2093 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2094 BE/LE floating-point types.
2095 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2096 (builtin_type_ieee_double, builtin_type_ia64_quad)
2097 (builtin_type_ia64_spill): Declare.
2098 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2099 (floatformat_ieee_double, floatformat_arm_ext)
2100 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2101 of LE/BE floatformats.
2102 * doublest.h: (struct floatformat, floatformat_ieee_single)
2103 (floatformat_ieee_double, floatformat_arm_ext)
2104 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2105
2106 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2107
2108 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2109
2110 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2111 instead of regcache_raw_supply when storing the registers.
2112
2113 * i386gnu-nat.c: Update copyright year.
2114 (gnu_store_registers): Don't use deprecated_registers and
2115 deprecated_registers_valid. Use regcache_valid_p and
2116 regcache_raw_supply instead.
2117
2118 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2119 frame_pc_unwind.
2120
2121 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2122 variables. Incapitalized "process".
2123
2124 * configure.in: Add cursesX to the list of possible curses libs.
2125 Add cursesX.h to the list of possible curses headers.
2126 * configure, config.in: Regenerate.
2127
2128 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2129
2130 * configure.in: Test for struct lwp in <sys/lwp.h>.
2131 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2132 the offset of l_addr in struct lwp.
2133
2134 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2135
2136 * bsd-kvm.c: Include "gdbcore.h"
2137 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2138
2139 2004-08-07 Andrew Cagney <cagney@gnu.org>
2140
2141 * gdbtypes.c (build_flt, build_complex): New functions.
2142 (gdbtypes_post_init): Use.
2143
2144 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2145
2146 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2147 through to builtin_type_uint128.
2148
2149 * c-exp.y: Use builtin_type function to obtain builtin types.
2150
2151 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2152 builtin_uint128.
2153 * gdbtypes.c (gdbtypes_post_init): Update.
2154 (build_gdbtypes): Move initialization of builtin_type_int0
2155 through to builtin_type_uint128 from here ...
2156 (_initialize_gdbtypes): ... to here.
2157 * d10v-tdep.c (d10v_register_type): Update.
2158
2159 * doublest.c: Update copyright.
2160 (floatformat_from_length): Call error when floatformat is NULL.
2161 (extract_floating_by_length): Remove NULL fmt check.
2162 (store_floating_by_length): Ditto.
2163
2164 2004-08-07 Andrew Cagney <cagney@gnu.org>
2165
2166 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2167 that the register is valid.
2168
2169 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2170
2171 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2172 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2173 struct frame_info *. Use safe_frame_unwind_memory instead of
2174 deprecated_read_memory_nobpt.
2175 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2176 changed signature of i386_linux_sigtramp_start and
2177 i386_linux_rt_sigtramp_start.
2178
2179 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2180 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2181 instead of deprecated_read_memory_nobpt.
2182 (i386nbsd_sigtramp_p): Adjust for changed signature of
2183 i386nbsd_sigtramp_offset.
2184
2185 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2186 safe_frame_unwind_memory instead of target_read_memory.
2187
2188 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2189 !NO_SYS_FILE.
2190 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2191 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2192 (_initialize_kernel_u_addr): Remove prototype and function.
2193 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2194 !NO_SYS_FILE.
2195 * xcoffread.c: Likewise.
2196
2197 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2198
2199 * vax-nat.c: New file.
2200 * vaxbsd-nat.c: Tweak comment.
2201 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2202 vaxnbsd-tdep.c.
2203 (vax-nat.o): New dependency.
2204 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2205 (vax-*-ultrix2*): Remove.
2206 * config/vax/vax.mh: New file.
2207 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2208 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2209 (vax_register_u_addr): New prototype.
2210 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2211 * config/vax/vaxult2.mh: Remove file.
2212 * config/vax/vaxult.mh: Remove file.
2213 * config/vax/vaxbsd.mh: Remove file.
2214 * config/vax/vax.mt (TM_FILE): Remove.
2215 * config/vax/tm-vaxbsd.h: Remove file.
2216
2217 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2218
2219 * aix-thread.c (get_signaled_thread): New function.
2220 (iter_trap): Delete, no longer used.
2221 (iter_tid): New function.
2222 (pd_update): Find the thread that received the SIGTRAP signal
2223 by first locating the kernel thread, and then finding its
2224 associated thread.
2225
2226 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2227
2228 * lin-lwp.c (child_wait): Continue inferior after processing
2229 PTRACE_EVENT_CLONE event.
2230
2231 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2232
2233 * MAINTAINERS: Add self to Write-After-Approval.
2234
2235 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2236
2237 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2238 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2239
2240 2004-08-05 Andrew Cagney <cagney@gnu.org>
2241
2242 * config/xm-sysv4.h: Delete file.
2243 * config/mips/xm-irix5.h: Delete file.
2244 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2245 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2246 * config/ia64/xm-aix.h: Delete file.
2247 * config/ia64/aix.mh (XM_FILE): Delete.
2248 * config/pa/xm-hppah.h: Delete file.
2249 * config/pa/hpux11w.mh (XM_FILE): Delete.
2250 * config/pa/hpux11.mh (XM_FILE): Delete.
2251 * config/pa/hpux1020.mh (XM_FILE): Delete.
2252 * config/pa/hppahpux.mh (XM_FILE): Delete.
2253
2254 * config/alpha/xm-alphalinux.h: Delete file.
2255 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2256 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2257 * config/alpha/xm-alphaosf.h: Delete file.
2258 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2259 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2260 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2261 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2262
2263 * config/i386/xm-i386v.h: Delete file.
2264 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2265 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2266 * config/i386/xm-i386sco.h: Delete file.
2267 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2268 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2269 * config/i386/xm-i386v4.h: Delete file.
2270 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2271 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2272 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2273 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2274
2275 * config/vax/xm-vax.h: Delete file.
2276 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2277 * config/vax/xm-vaxult2.h: Delete file.
2278 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2279 * config/vax/vaxult2.mh (XM_FILE): Delete.
2280 * config/vax/xm-vaxult.h: Delete file.
2281 * config/vax/vaxult.mh (XM_FILE): Delete.
2282 * config/vax/xm-vaxbsd.h: Delete file.
2283 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2284
2285 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2286 * gdbarch.h, gdbarch.c: Re-generate.
2287 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2288 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2289 * frame.h: Delete deprecated_read_fp from comments.
2290 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2291 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2292
2293 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2294
2295 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2296 trampoline in OpenBSD 3.5-current.
2297
2298 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2299 SSE registers.
2300
2301 * Makefile.in: Remove embedded page breaks.
2302
2303 2004-08-04 Jim Blandy <jimb@redhat.com>
2304
2305 * regcache.c (regcache_raw_read): Assert that, after calling
2306 target_fetch_registers, the register we're reading is cached.
2307
2308 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2309 a call to 'internal_error', with a more helpful error message.
2310 * rs6000-tdep.c (e500_pseudo_register_read,
2311 e500_pseudo_register_write, rs6000_store_return_value): Same.
2312
2313 2004-08-04 Andrew Cagney <cagney@gnu.org>
2314
2315 * Makefile.in: Update dependencies.
2316
2317 2004-08-04 Jim Blandy <jimb@redhat.com>
2318
2319 Change the layout of the PowerPC E500 raw register cache to allow
2320 the lower 32-bit halves of the GPRS to be their own raw registers,
2321 not pseudoregisters.
2322 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2323 add ppc_ev0_upper_regnum flag.
2324 * rs6000-tdep.c: #include "reggroups.h".
2325 (spe_register_p): Recognize the ev upper half registers as SPE
2326 registers.
2327 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2328 registers.
2329 (e500_move_ev_register): New function.
2330 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2331 vector registers are the pseudo-registers now, formed by splicing
2332 together the gprs and the upper-half registers.
2333 (e500_register_reggroup_p): New function.
2334 (P): Macro deleted.
2335 (P8, A4): New macro.
2336 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2337 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2338 macros.
2339 (registers_e500): Rearrange register set so that the raw register
2340 set contains 32-bit GPRs and upper-half registers, and the SPE
2341 vector registers become pseudo-registers.
2342 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2343 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2344 register numbers are now the same for the E500 as they are for
2345 other PowerPC variants. Register e500_register_reggroup_p as the
2346 register group function for the E500.
2347 * Makefile.in (rs6000-tdep.o): Update dependencies.
2348
2349 Adapt PPC E500 native support to the new raw regcache layout.
2350 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2351 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2352 (fetch_spe_register, store_spe_register): Handle fetching/storing
2353 all the SPE registers at once, if regno == -1. These now take
2354 over the job of fetch_spe_registers and store_spe_registers.
2355 (fetch_spe_registers, store_spe_registers): Deleted.
2356 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2357 unconditionally; they're always raw. Fetch/store SPE upper half
2358 registers, if present, instead of ev registers.
2359 (fetch_register, store_register): Remove sanity checks: gprs are
2360 never pseudo-registers now, so we never need to even mention any
2361 registers that are ever pseudoregisters.
2362
2363 Use a fixed register numbering when communicating with the PowerPC
2364 simulator.
2365 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2366 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2367 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2368 New functions.
2369 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2370 init_sim_regno_table.
2371 * Makefile.in (gdb_sim_ppc_h): New variable.
2372 (rs6000-tdep.o): Update dependencies.
2373
2374 2004-08-02 Andrew Cagney <cagney@gnu.org>
2375
2376 * cris-tdep.c (cris_register_size): Restore function, still used
2377 locally.
2378
2379 * gdbarch.sh (deprecated_target_read_fp)
2380 (deprecated_frame_locals_address, deprecated_frame_args_address)
2381 (deprecated_frame_chain_valid, deprecated_frame_chain)
2382 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2383 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2384 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2385 * gdbarch.h, gdbarch.c: Re-generate.
2386 * regcache.c (deprecated_read_fp): Do not call
2387 DEPRECATED_TARGET_READ_FP_P.
2388 * infcmd.c (default_print_registers_info): Do not call
2389 DEPRECATED_DO_REGISTERS_INFO.
2390 * frame-base.c (default_frame_locals_address): Do not call
2391 DEPRECATED_FRAME_LOCALS_ADDRESS.
2392 (default_frame_args_address): Do not call
2393 DEPRECATED_FRAME_ARGS_ADDRESS.
2394
2395 * gdbarch.sh (deprecated_register_raw_size)
2396 (deprecated_register_virtual_size:int): Delete.
2397 * gdbarch.h, gdbarch.c: Re-generate.
2398 * cris-tdep.c (cris_register_size): Delete.
2399 (cris_gdbarch_init): Update.
2400 * alpha-tdep.c (alpha_register_raw_size)
2401 (alpha_register_virtual_size): Delete.
2402 (alpha_gdbarch_init): Update.
2403
2404 * gdbarch.sh (deprecated_register_virtual_type)
2405 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2406 (deprecated_dummy_write_sp): Delete.
2407 * gdbarch.h, gdbarch.c: Re-generate.
2408
2409 * gdbarch.sh (deprecated_register_bytes): Delete.
2410 * gdbarch.h, gdbarch.c: Re-generate.
2411 * regcache.c (deprecated_register_bytes): New function.
2412 * regcache.h (deprecated_register_bytes): Declare.
2413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2414 * v850-tdep.c (v850_gdbarch_init): Update.
2415 * sh64-tdep.c (sh64_gdbarch_init): Update.
2416 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2417 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2418 * mcore-tdep.c (mcore_gdbarch_init): Update.
2419 * cris-tdep.c (cris_gdbarch_init): Update.
2420 * arm-tdep.c (arm_gdbarch_init): Update.
2421 * remote.c (init_remote_state): Update.
2422 * remote-vx.c (vx_prepare_to_store): Update.
2423 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2424 * irix5-nat.c (fetch_core_registers): Update.
2425 * cris-tdep.c (cris_register_bytes_ok): Update.
2426 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2427
2428 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2429 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2430 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2431 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2432 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2433 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2434 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2435 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2436 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2437 with mips_insn16 and mips_insn32.
2438
2439 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2440 * rs6000-tdep.c (rs6000_push_dummy_call)
2441 (rs6000_extract_return_value): Use register_size.
2442 * xstormy16-tdep.c (xstormy16_get_saved_register)
2443 (xstormy16_extract_return_value): Ditto.
2444 * valops.c (value_assign): Ditto.
2445 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2446 * v850-tdep.c (v850_extract_return_value): Ditto.
2447 * tracepoint.c (collect_symbol): Ditto.
2448 * target.c (debug_print_register): Ditto.
2449 * stack.c (frame_info): Ditto.
2450 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2451 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2452 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2453 (store_register_using_P): Ditto.
2454 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2455 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2456 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2457 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2458 * regcache.c (deprecated_read_register_bytes)
2459 (deprecated_write_register_bytes, read_register)
2460 (write_register): Ditto.
2461 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2462 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2463 * monitor.c (monitor_supply_register, monitor_fetch_register)
2464 (monitor_store_register): Ditto.
2465 * mn10300-tdep.c (mn10300_pop_frame_regular)
2466 (mn10300_print_register): Ditto.
2467 * mipsv4-nat.c (fill_fpregset): Ditto.
2468 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2469 (mips64_fill_fpregset): Ditto.
2470 * mi/mi-main.c (register_changed_p, get_register)
2471 (mi_cmd_data_write_register_values): Ditto.
2472 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2473 * irix5-nat.c (fill_gregset, fetch_core_registers):
2474 * infrun.c (write_inferior_status_register): Ditto.
2475 * infptrace.c (fetch_register, store_register): Ditto.
2476 * infcmd.c (default_print_registers_info): Ditto.
2477 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2478 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2479 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2480 * hpux-thread.c (hpux_thread_fetch_registers)
2481 (hpux_thread_store_registers): Ditto.
2482 * hppah-nat.c (store_inferior_registers, fetch_register):
2483 * findvar.c (value_from_register): Ditto.
2484 * dve3900-rom.c (fetch_bitmapped_register):
2485 * cris-tdep.c (cris_gdbarch_init): Ditto.
2486 * alpha-tdep.h: Ditto.
2487 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2488
2489 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2490 DEPRECATED_REGISTER_RAW_SIZE from comments.
2491 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2492 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2493 DEPRECATED_REGISTER_RAW_SIZE.
2494 * findvar.c (value_of_register): Simplify by assuming that the
2495 registers raw and virtual sizes are identical.
2496 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2497 comment.
2498 * arch-utils.c (generic_register_size): Simplify by assuming
2499 register_type.
2500
2501 * regcache.c (legacy_read_register_gen, real_register)
2502 (legacy_write_register_gen): Delete, not used.
2503
2504 * regcache.c (struct regcache_descr): Delete legacy_p.
2505 (init_legacy_regcache_descr): Delete function.
2506 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2507 Do not use deprecated register functions.
2508 (regcache_raw_read, deprecated_write_register_gen):
2509 (deprecated_read_register_gen, regcache_raw_write): Delete code
2510 predicated on legacy_p.
2511 (register_size): Delete check against register raw size.
2512
2513 * cris-tdep.c (cris_register_type): Replace
2514 cris_register_virtual_type.
2515 (cris_gdbarch_init): Update, set register_type.
2516
2517 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2518 * gdbarch.h, gdbarch.c: Re-generate.
2519 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2520 (arm_gdbarch_init) Do not set frameless function invocation.
2521 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2522 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2523 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2524 (frv_gdbarch_init): Do not set frameless function invocation.
2525 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2526 * sh-tdep.c (sh_gdbarch_init): Ditto.
2527 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2528 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2529 * avr-tdep.c (avr_gdbarch_init): Ditto.
2530
2531 * blockframe.c (legacy_frame_chain_valid): Delete function.
2532
2533 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2534 and pc. Update comments.
2535 (pc_in_dummy_frame): Delete function.
2536 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2537 use the "id".
2538 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2539 call_hi, top and pc, use the id.
2540 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2541
2542 * dummy-frame.c: Include "gdb_string.h".
2543 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2544 (generic_save_dummy_frame_tos): Delete.
2545 (dummy_frame_push): New function, replaces above.
2546 * dummy-frame.h: Update copyright.
2547 (dummy_frame_push): Declare.
2548 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2549 (generic_save_call_dummy_addr): Delete declarations.
2550 * infcall.c: Include "dummy-frame.h".
2551 (call_function_by_hand): Add locals caller_regcache,
2552 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2553 with call to frame_save_as_regcache plus cleanup. Delete calls to
2554 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2555 Move clear_proceed_status to just before the resume, add call to
2556 dummy_frame_push (discard cleanup).
2557 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2558 (dummy-frame.o): Add $(gdb_string_h).
2559
2560 2004-08-01 Andrew Cagney <cagney@gnu.org>
2561
2562 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2563 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2564 * dummy-frame.c (find_dummy_frame): Delete.
2565 (struct dummy_frame_cache, dummy_frame_sniffer)
2566 (dummy_frame_prev_register, dummy_frame_this_id)
2567 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2568 frame unwinder using a dummy_frame_cache.
2569
2570 2004-08-01 Andrew Cagney <cagney@gnu.org>
2571
2572 * frame.h (frame_save_as_regcache): Declare.
2573 * frame.c (frame_save_as_regcache): New function.
2574 (do_frame_read_register): Replace do_frame_unwind_register.
2575 (frame_pop): Use frame_save_as_regcache.
2576 * dummy-frame.c (generic_push_dummy_frame): Use
2577 frame_save_as_regcache.
2578
2579 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2580
2581 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2582 file as included until we record the first line in the linetable.
2583
2584 2004-08-01 Andrew Cagney <cagney@gnu.org>
2585
2586 * frame.h (deprecated_pop_dummy_frame)
2587 (deprecated_read_register_dummy)
2588 (deprecated_generic_find_dummy_frame): Delete.
2589 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2590 (deprecated_read_register_dummy)
2591 (deprecated_find_dummy_frame_regcache)
2592 (discard_innermost_dummy)
2593 (deprecated_pop_dummy_frame): Delete.
2594 (dummy_frame_this_id): Simplify.
2595 (struct dummy_frame): Delete "fp" and "sp".
2596 (find_dummy_frame): Simplify.
2597 (generic_push_dummy_frame): Do not set "fp" or "sp".
2598 (fprint_dummy_frames): Do not print "fp" and "sp"
2599
2600 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2601
2602 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2603 (struct i386_insn): New structure.
2604 (i386_match_insn): New function.
2605 (i386_frame_setup_skip_insns): New variable.
2606 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2607 array i386_frame_setup_insns of instructions that should be
2608 skipped inside the frame setup sequence.
2609
2610 2004-08-01 Andrew Cagney <cagney@gnu.org>
2611
2612 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2613 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2614 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2615 * stack.c (frame_info): Delete references to
2616 DEPRECATED_FRAME_INIT_SAVED_REGS and
2617 deprecated_get_frame_saved_regs.
2618 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2619 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2620 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2621 (frame_unwind_register_signed)
2622 (frame_unwind_register_unsigned)
2623 (frame_unwind_unsigned_register): Use register_size.
2624 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2625 (deprecated_frame_xmalloc_with_cleanup)
2626 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2627 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2628
2629 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2630 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2631 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2632 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2633
2634 * infcall.c (call_function_by_hand): Do not use
2635 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2636 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2637 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2638 DEPRECATED_STACK_ALIGN.
2639
2640 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2641
2642 Committed by Andrew Cagney.
2643 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2644
2645 2004-08-01 Andrew Cagney <cagney@gnu.org>
2646
2647 * mips-tdep.c (mips16_frame_cache)
2648 (mips16_frame_this_id, mips16_frame_prev_register)
2649 (mips16_frame_unwind, mips16_frame_sniffer)
2650 (mips16_frame_base_address, mips16_frame_base)
2651 (mips16_frame_base_sniffer, mips32_frame_cache)
2652 (mips32_frame_this_id, mips32_frame_prev_register)
2653 (mips32_frame_unwind, mips32_frame_sniffer)
2654 (mips32_frame_base_address, mips32_frame_base)
2655 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2656 separate heuristic mips16 and mips32 unwinders.
2657 (mips_stub_frame_cache, mips_stub_frame_this_id)
2658 (mips_stub_frame_prev_register)
2659 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2660 (mips_stub_frame_base_address, mips_stub_frame_base)
2661 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2662 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2663 match true mdebug frames.
2664 (non_heuristic_proc_desc): Add forward declaration.
2665
2666 2004-08-01 Andrew Cagney <cagney@gnu.org>
2667
2668 * config/mips/tm-irix6.h: Delete file.
2669 * config/mips/tm-irix5.h: Delete file.
2670 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2671 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2672
2673 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2674 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2675 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2676 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2677 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2678 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2679 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2680 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2681 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2682 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2683 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2684 (TARGET_SIGNAL_RAW_VALUES): Delete.
2685 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2686 Delete.
2687 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2688 (TARGET_HW_WATCH_LIMIT): Delete.
2689 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2690 * minimon.h: Delete file.
2691
2692 * trad-frame.c (trad_frame_get_this_base)
2693 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2694 functions.
2695 * trad-frame.h (trad_frame_set_this_base)
2696 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2697
2698 2004-07-31 Andrew Cagney <cagney@gnu.org>
2699
2700 * trad-frame.c (trad_frame_get_prev_register): Rename
2701 trad_frame_get_prev_register.
2702 * vax-tdep.c (vax_frame_prev_register): Update.
2703 * trad-frame.h: Update.
2704 * trad-frame.c (trad_frame_get_register): Update.
2705 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2706 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2707 Update.
2708 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2709 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2710 Update.
2711 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2712 Update.
2713 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2714 Update.
2715 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2716 Update.
2717 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2718 Update.
2719 * s390-tdep.c (s390_frame_prev_register)
2720 (s390_stub_frame_prev_register)
2721 (s390_sigtramp_frame_prev_register): Update.
2722 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2723 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2724 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2725 * m88k-tdep.c (m88k_frame_prev_register)
2726 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2727 * m32r-tdep.c (m32r_frame_prev_register): Update.
2728 * hppa-tdep.c (hppa_frame_prev_register_helper)
2729 * frv-tdep.c (frv_frame_prev_register): Update.
2730 * d10v-tdep.c (d10v_frame_prev_register): Update.
2731 * cris-tdep.c (cris_frame_prev_register): Update.
2732 * avr-tdep.c (avr_frame_prev_register): Update.
2733 * arm-tdep.c (arm_prologue_prev_register)
2734 (arm_sigtramp_prev_register): Update.
2735
2736 2004-07-31 Andrew Cagney <cagney@gnu.org>
2737
2738 * frame.h (legacy_saved_regs_unwind)
2739 (legacy_frame_chain_valid, legacy_frame_p)
2740 (enum frame_type): Delete UNKNOWN_FRAME.
2741 * dummy-frame.c (dummy_frame_this_id): Simplify.
2742 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2743 * frame.c (struct frame_info): Delete the field "type".
2744 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2745 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2746 (legacy_saved_regs_unwind, legacy_frame_p)
2747 (frame_type_from_pc): Delete.
2748 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2749 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2750
2751 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2752
2753 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2754 indentation.
2755
2756 * mips-nat.c: Remove file.
2757 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2758 (mips-nat.o): Remove dependency.
2759
2760 * infptrace.c: Update copyright year.
2761 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2762 explicitly setting the buffer to all zeroes.
2763
2764 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2765 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2766
2767 2004-07-30 Andrew Cagney <cagney@gnu.org>
2768
2769 * GDB 6.2 released from gdb_6_2-branch.
2770
2771 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2772
2773 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2774
2775 * exec.c (exec_file_attach):
2776 * nto-tdep.c (nto_find_and_open_solib):
2777 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2778 * solib.c (solib_open):
2779 * somsolib.c (som_solib_sizeof_symbol_table):
2780 * source.c (is_regular_file, openp, open_source_file):
2781 * symfile.c (symfile_bfd_open):
2782 * wince.c (upload_to_device): Differentiate between the search for
2783 binary and source files.
2784
2785 2004-07-30 Andrew Cagney <cagney@gnu.org>
2786
2787 * complaints.c (_initialize_complaints): Pass NULL to
2788 add_setshow_zinteger_cmd for help_doc.
2789 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2790
2791 2004-07-30 Andrew Cagney <cagney@gnu.org>
2792
2793 Fix PR i18n/761.
2794 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2795 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2796 $(PACKAGE).pot and update-po.
2797 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2798 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2799 (update-po): New rules.
2800 (localedir): Define using autoconf.
2801 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2802 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2803 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2804 * configure.in: Generate CATALOGS and LINGUAS from contents of
2805 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2806 * configure: Re-generate.
2807 * po/gdbtext: New file
2808
2809 2004-07-30 Jerome Guitton <guitton@gnat.com>
2810
2811 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2812 order.
2813
2814 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2815
2816 * dwarf2read.c (read_file_scope): Set producer if attribute
2817 present.
2818 (struct dwarf2_cu): Added new member producer.
2819
2820 2004-07-30 Jerome Guitton <guitton@gnat.com>
2821
2822 * inflow.c (kill_command): release file handles in BFD.
2823 * exec.c (exec_file_attach): Ditto.
2824 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2825
2826 2004-07-29 Andrew Cagney <cagney@gnu.org>
2827
2828 * PROBLEMS (mips-irix): Note that it is broken.
2829
2830 2004-07-29 Andrew Cagney <cagney@gnu.org>
2831
2832 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2833 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2834
2835 * config/xm-nbsd.h: Delete file.
2836 * config/arm/xm-nbsd.h: Delete file.
2837 * config/i386/xm-nbsd.h: Delete file.
2838 * config/ns32k/xm-nbsd.h: Delete file.
2839 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2840 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2841 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2842 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2843 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2844
2845 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2846 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2847 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2848 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2849 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2850 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2851
2852 * config/powerpc/xm-linux.h: Delete empty file.
2853 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2854 * config/powerpc/linux.mh (XM_FILE): Delete.
2855 * config/m68k/xm-linux.h: Delete empty file.
2856 * config/m68k/linux.mh (XM_FILE): Delete.
2857 * config/ia64/xm-linux.h: Delete empty file.
2858 * config/ia64/linux.mh (XM_FILE): Delete.
2859 * config/arm/xm-linux.h: Delete empty file.
2860 * config/arm/linux.mh (XM_FILE): Delete.
2861
2862 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2863 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2864 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2865 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2866 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2867 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2868 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2869 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2870
2871 * config/m68k/xm-m68k.h: Delete file.
2872 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2873 copyright.
2874 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2875 * config/pa/xm-linux.h: Delete empty file.
2876 * config/pa/linux.mh (XM_FILE): Delete.
2877 * config/i386/xm-i386.h: Delete empty file.
2878 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2879 "i386/xm-i386.h".
2880 * config/i386/obsdaout.mh (XM_FILE): Delete.
2881 * config/i386/obsd64.mh (XM_FILE): Delete.
2882 * config/i386/fbsd64.mh (XM_FILE): Delete.
2883 * config/i386/nto.mh (XM_FILE): Delete.
2884 * config/i386/obsd.mh (XM_FILE): Delete.
2885 * config/i386/linux64.mh (XM_FILE): Delete.
2886 * config/i386/linux.mh (XM_FILE): Delete.
2887 * config/i386/i386sol2.mh (XM_FILE): Delete.
2888 * config/i386/i386gnu.mh (XM_FILE): Delete.
2889 * config/i386/fbsd.mh (XM_FILE): Delete.
2890 * config/i386/nbsd64.mh (XM_FILE): Delete.
2891
2892 2004-07-29 Andrew Cagney <cagney@gnu.org>
2893
2894 * config/pa/xm-linux.h: Do not include "floatformat.h".
2895 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2896 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2897 * config/i386/xm-i386.h: Do not include "floatformat.h".
2898 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2899 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2900 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2901 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2902 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2903 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2904 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2905 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2906 * configure, config.in: Regenerate.
2907 * configure.host (gdb_host_float_format, gdb_host_double_format)
2908 (gdb_host_long_double_format): Set according to the host.
2909
2910 2004-07-29 Andrew Cagney <cagney@gnu.org>
2911
2912 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2913
2914 2004-07-28 Andrew Cagney <cagney@gnu.org>
2915
2916 * PROBLEMS: Mention threads/1650.
2917 * NEWS: Mention the NPTL fix.
2918
2919 2004-07-28 Andrew Cagney <cagney@gnu.org>
2920
2921 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2922 (add_setshow_cmd_full): Make static.
2923 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2924 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2925 * cli/cli-decode.c (add_setshow_filename_cmd)
2926 (add_setshow_string_cmd): New functions.
2927 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2928 * mips-tdep.c (_initialize_mips_tdep): Update.
2929 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2930 * cli/cli-logging.c (_initialize_cli_logging): Update.
2931 * complaints.c (_initialize_complaints): Update.
2932 * remote.c (_initialize_remote): Update.
2933
2934 2004-07-28 Andrew Cagney <cagney@gnu.org>
2935
2936 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2937 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2938 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2939 print parameters. Make string parameters constant.
2940 * command.h: Update. Update copyright.
2941 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2942 * observer.c (_initialize_observer): Ditto.
2943 * frame.c (_initialize_frame): Ditto.
2944 * complaints.c (_initialize_complaints): Ditto.
2945 * maint.c (_initialize_maint_cmds): Ditto.
2946 * target.c (initialize_targets): Ditto.
2947 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2948 * infcall.c (_initialize_infcall): Ditto.
2949 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2950 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2951 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2952 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2953 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2954
2955 2004-07-28 Andrew Cagney <cagney@gnu.org>
2956
2957 * gdbtypes.c (lookup_primitive_typename): Delete function.
2958 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2959 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2960 * gdbtypes.c (lookup_typename): Ditto.
2961 * f-exp.y (yylex): Ditto.
2962 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2963
2964 * scm-lang.c (c_builtin_types): Delete extern declaration.
2965 (scm_language_defn): Replace
2966 string_char_type and primitive_type_vector with
2967 la_language_arch_info.
2968 * jv-lang.c (java_language_defn): Replace
2969 string_char_type and primitive_type_vector with
2970 la_language_arch_info.
2971 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2972 c_builtin_types in comment.
2973 * c-lang.h (struct language_arch_info): Declare opaque.
2974 (c_language_arch_info): Declare.
2975 (c_builtin_types): Delete declaration.
2976 * c-lang.c (c_language_arch_info): Set string_char_type to
2977 builtin_char, not builtin_true_char. Make global.
2978 (c_builtin_types): Delete array.
2979 (asm_language_defn, minimal_language_defn): Replace
2980 string_char_type and primitive_type_vector with
2981 la_language_arch_info.
2982
2983 2004-07-28 Andrew Cagney <cagney@gnu.org>
2984
2985 * gdbtypes.h (struct builtin_type): Rename true_char to
2986 builtin_true_char.
2987 * gdbtypes.c (gdbtypes_post_init): Update.
2988 * c-lang.c (arch_info): New function.
2989 (enum c_primitive_types): New enum.
2990 (c_language_defn): Instead of string_char_type and
2991 primitive_type_vector set la_language_arch_info.
2992
2993 2004-07-28 Andrew Cagney <cagney@gnu.org>
2994
2995 * language.h (struct language_arch_info): Fix typo
2996 s/primative/primitive/.
2997 * gdbtypes.c (lookup_primitive_typename): Ditto.
2998 * language.c (language_lookup_primitive_type_by_name)
2999 (unknown_language_arch_info): Ditto.
3000
3001 2004-07-27 Andrew Cagney <cagney@gnu.org>
3002
3003 * defs.h (enum language): Add nr_languages.
3004 * language.h (struct language_arch_info): Define.
3005 (struct language_defn): Add la_language_arch_info.
3006 (language_lookup_primative_type_by_name): Declare.
3007 (language_string_char_type): Declare.
3008 * language.c (_initialize_language, language_gdbarch_post_init)
3009 (struct language_gdbarch, language_gdbarch_data): Implement
3010 per-architecture language information.
3011 (unknown_language_arch_info, language_string_char_type)
3012 (language_lookup_primative_type_by_name): New functions.
3013 (unknown_language_defn, auto_language_defn)
3014 (local_language_defn): Set la_language_arch_info to
3015 unknown_language_arch_info.
3016 (unknown_builtin_types): Delete.
3017 * gdbtypes.c (lookup_primitive_typename): Use
3018 language_lookup_primative_type_by_name.
3019 (create_string_type): Use language_string_char_type.
3020 * values.c (value_from_string): Use language_string_char_type.
3021 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3022 * p-lang.c (pascal_language_defn): Ditto.
3023 * m2-lang.c (m2_language_defn): Ditto.
3024 * jv-lang.c (java_language_defn): Ditto.
3025 * objc-lang.c (objc_language_defn): Ditto.
3026 * f-lang.c (f_language_defn): Ditto.
3027 * c-lang.c (c_language_defn, cplus_language_defn)
3028 (asm_language_defn, minimal_language_defn): Ditto.
3029
3030 2004-07-27 Andrew Cagney <cagney@gnu.org>
3031
3032 * gdbtypes.h (struct builtin_type): Declare.
3033 (builtin_type): Declare.
3034 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3035 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3036 (gdbtypes_post_init): New function.
3037 (builtin_type): New function.
3038
3039 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3040
3041 * remote-m32r-sdi.c: Fix breakpoint bug.
3042 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3043 recv_char_data, recv_long_data): New functions to replace communication
3044 sequences.
3045
3046 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3047
3048 Document PR threads/1650.
3049 * PROBLEMS (Threads): Document problem with many threads
3050
3051 2004-07-26 Andrew Cagney <cagney@gnu.org>
3052
3053 * gdb-mi.el: Move from here ...
3054 * mi/gdb-mi.el: ... to here.
3055
3056 2004-07-26 Andrew Cagney <cagney@gnu.org>
3057
3058 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3059 * main.c (captured_main): When in batch mode always detach.
3060
3061 2004-07-26 Andrew Cagney <cagney@gnu.org>
3062
3063 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3064 and h8300 as broken.
3065 * NEWS: END-OF-LIFE frame compatibility module.
3066 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3067 specific comments.
3068
3069 2004-07-26 Andrew Cagney <cagney@gnu.org>
3070
3071 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3072 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3073 * wince.c (_initialize_wince): Update.
3074 * win32-nat.c (_initialize_win32_nat): Update.
3075 * varobj.c (_initialize_varobj): Update.
3076 * valops.c (_initialize_valops): Update.
3077 * utils.c (initialize_utils, initialize_utils): Update.
3078 * tui/tui-win.c (_initialize_tui_win): Update.
3079 * top.c (init_main): Update.
3080 * symfile.c (_initialize_symfile): Update.
3081 * source.c (_initialize_source): Update.
3082 * somsolib.c (_initialize_som_solib): Update.
3083 * solib.c (_initialize_solib): Update.
3084 * solib-frv.c (_initialize_frv_solib): Update.
3085 * serial.c (_initialize_serial): Update.
3086 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3087 * remote.c (_initialize_remote, _initialize_remote): Update.
3088 * remote-vx.c (_initialize_vx): Update.
3089 * remote-utils.c (_initialize_sr_support): Update.
3090 * remote-sds.c (_initialize_remote_sds): Update.
3091 * remote-mips.c (_initialize_remote_mips): Update.
3092 * remote-e7000.c (_initialize_remote_e7000): Update.
3093 * proc-api.c (_initialize_proc_api): Update.
3094 * printcmd.c: Update.
3095 * parse.c (_initialize_parse): Update.
3096 * pa64solib.c (_initialize_pa64_solib): Update.
3097 * p-valprint.c (_initialize_pascal_valprint): Update.
3098 * monitor.c (_initialize_remote_monitors): Update.
3099 * mips-tdep.c (_initialize_mips_tdep): Update.
3100 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3101 * maint.c (_initialize_maint_cmds): Update.
3102 * lin-lwp.c (_initialize_lin_lwp): Update.
3103 * language.c (_initialize_language): Update.
3104 * kod.c (_initialize_kod): Update.
3105 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3106 * i386-tdep.c (_initialize_i386_tdep): Update.
3107 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3108 * gdbarch.sh: Update.
3109 * gdbarch.c: Re-generate.
3110 * gdb-events.sh: Update.
3111 * gdb-events.c: Re-generate.
3112 * frame.c (_initialize_frame): Update.
3113 * exec.c: Update.
3114 * demangle.c (_initialize_demangler): Update.
3115 * dcache.c (_initialize_dcache): Update.
3116 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3117 * cp-valprint.c (_initialize_cp_valprint): Update.
3118 * corefile.c (_initialize_core): Update.
3119 * command.h: Update.
3120 * cli/cli-decode.h: Update.
3121 * cli/cli-cmds.c (init_cli_cmds): Update.
3122 * charset.c (_initialize_charset): Update.
3123 * breakpoint.c (_initialize_breakpoint): Update.
3124 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3125 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3126 * aix-thread.c (_initialize_aix_thread): Update.
3127
3128 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3129
3130 Partial fix for PR backtrace/1718.
3131 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3132 that GCC migrates into the prolugue. Don't handle any
3133 instructions that clobber %ebx.
3134
3135 2004-07-23 Andrew Cagney <cagney@gnu.org>
3136
3137 Use regcache_raw_collect instead of regcache_collect.
3138 * regcache.h (regcache_collect): Delete declaration.
3139 * regcache.c (regcache_colect): Delete function.
3140 * win32-nat.c (do_child_store_inferior_registers): Update.
3141 * sol-thread.c (sol_thread_store_registers): Update.
3142 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3143 * rs6000-nat.c (store_register): Update.
3144 * remote.c (store_register_using_P, remote_store_registers): Update.
3145 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3146 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3147 (fill_vrregset, store_spe_registers, fill_gregset)
3148 (fill_gregset): Update.
3149 * nto-procfs.c (procfs_store_registers): Update.
3150 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3151 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3152 * m68klinux-nat.c (store_register, fill_gregset): Update.
3153 * m68k-tdep.c (fill_gregset): Update.
3154 * infptrace.c (store_register): Update.
3155 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3156 * i386-linux-nat.c (store_register, fill_gregset): Update.
3157 * hppa-linux-nat.c (fill_gregset): Update.
3158 * go32-nat.c (store_register): Update.
3159 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3160 (store_fp_regs): Update.
3161 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3162 (store_nwfpe_extended, store_fpregister, store_fpregs)
3163 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3164 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3165 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3166 (store_regs_user_thread, store_regs_kernel_thread): Update.
3167
3168 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3169
3170 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3171 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3172 encoding.
3173 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3174 member of `struct comp_unit'.
3175
3176 2004-07-23 Andrew Cagney <cagney@gnu.org>
3177
3178 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3179 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3180
3181 2004-07-23 Martin Hunt <hunt@redhat.com>
3182 Kevin Buettner <kevinb@redhat.com>
3183
3184 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3185 alignment was being added to the offset instead of multiplied.
3186
3187 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3188
3189 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3190 changed signal trampoline in OpenBSD 3.5-current.
3191
3192 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3193 <machine/pcb.h> and "bsd-kvm.h".
3194 (sparc64nbsd_supply_pcb): New function.
3195 (_initialize_sparc64nbsd_nat): Renamed from
3196 _initialize_sparcnbsd_nat. Enable libkvm interface.
3197 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3198 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3199 (LOADLIBES): New variable.
3200
3201 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3202
3203 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3204
3205 2004-07-21 Andrew Cagney <cagney@gnu.org>
3206
3207 Use regcache_raw_supply instead of supply_register.
3208 * regcache.h (supply_register): Delete declaration.
3209 * regcache.c (supply_register): Delete function.
3210 * wince.c (do_child_fetch_inferior_registers): Update.
3211 * win32-nat.c (do_child_fetch_inferior_registers)
3212 (fetch_elf_core_registers): Update.
3213 * v850ice.c (v850ice_fetch_registers): Update.
3214 * thread-db.c (thread_db_store_registers): Update.
3215 * sol-thread.c (sol_thread_store_registers): Update.
3216 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3217 * rs6000-nat.c (fetch_register): Update.
3218 * rom68k-rom.c (rom68k_supply_one_register): Update.
3219 * remote.c (remote_wait, remote_async_wait): Update.
3220 * remote-st.c (get_hex_regs): Update.
3221 * remote-sim.c (gdbsim_fetch_register): Update.
3222 * remote-sds.c (sds_fetch_registers): Update.
3223 * remote-rdp.c (remote_rdp_fetch_register): Update.
3224 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3225 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3226 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3227 * remote-hms.c (init_hms_cmds): Update.
3228 * remote-est.c (init_est_cmds): Update.
3229 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3230 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3231 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3232 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3233 (fetch_register, supply_vrregset, supply_vrregset)
3234 (fetch_spe_registers): Update.
3235 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3236 * monitor.c (monitor_supply_register): Update.
3237 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3238 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3239 (mipsnbsd_supply_fpreg): Update.
3240 * mips-nat.c (fetch_inferior_registers)
3241 (fetch_core_registers): Update.
3242 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3243 (supply_fpregset, mips64_supply_gregset)
3244 (mips64_supply_fpregset): Update.
3245 * m68klinux-nat.c (fetch_register, supply_gregset)
3246 (supply_fpregset): Update.
3247 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3248 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3249 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3250 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3251 * infptrace.c (fetch_register): Update.
3252 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3253 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3254 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3255 (gnu_fetch_registers, gnu_store_registers): Update.
3256 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3257 * i386-linux-nat.c (fetch_register, supply_gregset)
3258 (dummy_sse_values): Update.
3259 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3260 * hppah-nat.c (fetch_register): Update.
3261 * hppa-linux-nat.c (fetch_register, supply_gregset)
3262 (supply_fpregset): Update.
3263 * go32-nat.c (fetch_register): Update.
3264 * dve3900-rom.c (fetch_bitmapped_register)
3265 (_initialize_r3900_rom): Update.
3266 * cris-tdep.c (supply_gregset): Update.
3267 * abug-rom.c (init_abug_cmds): Update.
3268 * core-aout.c (fetch_core_registers): Update.
3269 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3270 (fetch_register, fetch_fp_register): Update.
3271 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3272 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3273 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3274 * alphanbsd-tdep.c (fetch_core_registers): Update.
3275 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3276 * alpha-nat.c (fetch_osf_core_registers)
3277 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3278 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3279 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3280
3281 2004-07-21 Andrew Cagney <cagney@gnu.org>
3282
3283 * PROBLEMS: Mention breakpoints/1702.
3284 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3285 that is known to work.
3286
3287 2004-07-21 Andrew Cagney <cagney@gnu.org>
3288
3289 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3290 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3291 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3292 (handle_inferior_event): Wrap call to deprecated
3293 IGNORE_HELPER_CALL in #ifdef.
3294 * config/mips/tm-nbsd.h: Update.
3295
3296 2004-07-20 Jim Blandy <jimb@redhat.com>
3297
3298 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3299 bfd_mach_ppc has no segment registers.
3300
3301 Include PowerPC SPR numbers for special-purpose registers.
3302 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3303 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3304 new member in initializer.
3305 (S, S4, SN4, S64): New macros for defining special-purpose
3306 registers.
3307 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3308 registers_403, registers_403GC, registers_505, registers_860,
3309 registers_601, registers_602, registers_603, registers_604,
3310 registers_750, registers_e500): Use them.
3311
3312 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3313 replace references with expression used to initialize variable.
3314
3315 2004-07-20 Andrew Cagney <cagney@gnu.org>
3316
3317 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3318 read_memory_nobpt.
3319 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3320 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3321 (s390_sigtramp_frame_sniffer): Update.
3322 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3323 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3324 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3325 (mips32_fetch_instruction): Update.
3326 * mcore-tdep.c (get_insn): Update.
3327 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3328 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3329 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3330 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3331 (i386_linux_rt_sigtramp_start): Update.
3332 * i386-linux-nat.c (child_resume): Update.
3333 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3334 * hppa-linux-tdep.c (insns_match_pattern): Update.
3335 * gdbcore.h: Update.
3336 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3337 * frame.c (safe_frame_unwind_memory): Update.
3338 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3339 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3340 * alpha-tdep.c (alpha_read_insn): Update.
3341
3342 2004-07-20 Andrew Cagney <cagney@gnu.org>
3343
3344 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3345 containing both bytes and mask. Add "frame_type".
3346 * tramp-frame.c (tramp_frame_start): Update.
3347 (tramp_frame_prepend_unwinder): Update.
3348 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3349 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3350 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3351 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3352
3353 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3354
3355 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3356 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3357 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3358 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3359
3360 2004-07-17 Andrew Cagney <cagney@gnu.org>
3361
3362 * NEWS, PROBLEMS: Update for 6.2.
3363
3364 * README: Update to 6.2.
3365
3366 * utils.c (xvasprintf): Call xstrvprintf.
3367
3368 * parse.c: Update copyright.
3369 (null_post_parser): Eliminate ARGSUSED.
3370
3371 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3372 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3373 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3374
3375 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3376 * ppc-linux-nat.c: Use "Linux kernel".
3377 * hppa-linux-tdep.c: Use GNU/Linux.
3378 * hppa-linux-nat.c: Use GNU/Linux.
3379 * dwarfread.c: Add [sic] to use of Linux.
3380
3381 * hppa-linux-nat.c: Do not include <string.h>.
3382 (supply_fpregset): Remove "register" attribute.
3383
3384 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3385
3386 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3387
3388 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3389 * configure, config.in: Regenerated.
3390
3391 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3392 "bsd-kvm.h".
3393 (vaxbsd_supply_pcb): New function.
3394 (_initialize_vaxbsd_nat): New prototype and function.
3395 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3396 solib-sunos.o.
3397 (LOADLIBES): New variable.
3398 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3399 (LOADLIBES): New variable.
3400 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3401 (LOADLIBES): New variable.
3402 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3403
3404 2004-07-16 Andrew Cagney <cagney@gnu.org>
3405
3406 * defs.h (event_loop_p): Replace variable declaration with macro,
3407 always 1.
3408 * main.c (captured_main): Delete options "-async" and "-noasync".
3409 (event_loop_p): Delete variable.
3410 * NEWS: Mention that "-async" and "-noasync" were removed.
3411
3412 2004-07-16 Andrew Cagney <cagney@gnu.org>
3413
3414 * remote-m32r-sdi.c: Re-indent.
3415
3416 2004-07-16 Jim Blandy <jimb@redhat.com>
3417
3418 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3419 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3420 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3421 missing MPC823 SPRs.
3422 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3423 incorrect. (This was corrected in GDB's register name tables on
3424 2004-07-14.)
3425
3426 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3427 should be "esasrr" ("ESA Save and Restore Register").
3428
3429 2004-07-16 Andrew Cagney <cagney@gnu.org>
3430
3431 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3432 calls, no longer applicable. Update comments and rename parameter
3433 "step_frame" to "return_frame".
3434
3435 2004-07-16 Andrew Cagney <cagney@gnu.org>
3436
3437 * frame.c (fprint_field): New function.
3438 (fprint_frame_id): Use fprint_field.
3439
3440 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3441
3442 * ada-lang.c (ada_language_defn): Remove commented out code.
3443
3444 2004-07-15 Jim Blandy <jimb@redhat.com>
3445
3446 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3447 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3448
3449 2004-07-14 Jim Blandy <jimb@redhat.com>
3450
3451 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3452
3453 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3454
3455 * ppc-tdep.h (ppc_num_srs): New enum constant.
3456
3457 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3458 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3459 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3460 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3461 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3462 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3463 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3464 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3465 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3466 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3467 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3468 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3469 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3470 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3471 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3472 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3473 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3474 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3475 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3476 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3477 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3478 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3479 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3480 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3481 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3482 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3483 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3484 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3485 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3486 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3487 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3488 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3489 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3490 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3491 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3492 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3493 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3494 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3495 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3496 special-purpose register numbers.
3497
3498 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3499 manual mentions 'md_twb', but many mention 'm_twb', and at that
3500 point in the register list.)
3501
3502 2004-07-14 Andrew Cagney <cagney@gnu.org>
3503
3504 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3505 instead of "internal-error".
3506
3507 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3508
3509 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3510 that was inserted inside a comment.
3511
3512 2004-07-10 Randolph Chung <tausq@debian.org>
3513
3514 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3515 function.
3516 (hppa_hpux_push_dummy_code): New function.
3517 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3518 Set find_global_pointer method.
3519
3520 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3521
3522 * NEWS: Mention BSD libkvm interface.
3523
3524 2004-07-10 Michael Snyder <msnyder@redhat.com>
3525
3526 * symfile.c (generic_load): Comment typo.
3527 * stack.c (get_selected_block): Ditto.
3528 * regcache.c (regcache_cooked_read): Ditto.
3529 * monitor.c (monitor_debug): Ditto.
3530 * mips-tdep.c (mips_read_pc): Ditto.
3531 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3532 * gdb_mbuild.sh: Ditto.
3533 * gdbarch.sh: Ditto.
3534 * gdbarch.h: Ditto.
3535
3536 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3537
3538 * ada-tasks.c: Remove file.
3539
3540 Remove ARI problems:
3541
3542 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3543 beginning of line.
3544
3545 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3546 Add comment.
3547 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3548 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3549 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3550 (UMIN_OF_SIZE): Remove.
3551 (max_of_type): New function to replace orphan macro in gdbtypes.h
3552 (min_of_type): Ditto.
3553 (discrete_type_high_bound): Use max_of_type.
3554 (discrete_type_low_bound): Use min_of_type.
3555 (possible_user_operator_p): Move operator to beginning of line.
3556 (ada_is_variant_part): Ditto.
3557 (ensure_lval): Rewrite to avoid deprecated operations.
3558 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3559 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3560 (ada_enum_name): Remove assignments in 'if' statements.
3561 (build_ada_types): Add gdbarch parameter.
3562 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3563 with gdbarch_data_register_post_init.
3564 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3565 add_show_from_set.
3566
3567 * ada-valprint.c (inspect_it): Remove declaration.
3568 (repeat_count_threshold): Remove declaration.
3569 (ada_print_floating): Remove assignments in 'if' statements.
3570 (print_str): Move operator to beginning of line.
3571
3572 2004-07-08 Jim Blandy <jimb@redhat.com>
3573
3574 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3575
3576 2004-07-08 Bob Rossi <bob@brasko.net>
3577
3578 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3579
3580 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3581
3582 * language.h (struct_language_defn): Add new function pointer:
3583 la_class_name_from_physname. Also add new prototype for
3584 language_class_name_from_physname.
3585 * language.c (language_class_name_from_physname): New function.
3586 (unk_lang_class_name): Ditto.
3587 (unknown_language_defn, auto_language_defn): Change
3588 to add unk_lang_class_name function pointer for
3589 la_class_name_from_physname.
3590 (local_language_defn): Ditto.
3591 * dwarf2read.c (guess_structure_name): Change to call
3592 language_class_name_from_physname.
3593 (determine_class_name): Ditto.
3594 * cp-support.c (class_name_from_physname): Renamed.
3595 (cp_class_name_from_physname): New name of function.
3596 * cp-support.h: Ditto.
3597 * c-lang.c (c_language_defn): Change to add NULL
3598 for class_name_from_physname function pointer.
3599 (cplus_language_defn): Change to add cp_class_name_from_physname.
3600 * jv-lang.c (java_class_name_physname): New function.
3601 (java_find_last_component): New static routine.
3602 (java_language_defn): Add java_class_name_from_physname pointer.
3603 * ada-lang.c (ada_language_defn): Change to add NULL
3604 for class_name_from_physname function pointer.
3605 * f-lang.c (f_language_defn): Ditto.
3606 * m2-lang.c (m2_language_defn): Ditto.
3607 * objc-lang.c (objc_language_defn): Ditto.
3608 * p-lang.c (pascal_language_defn): Ditto.
3609 * scm-lang.c (scm_language_defn): Ditto.
3610
3611 2004-07-06 Andrew Cagney <cagney@gnu.org>
3612
3613 Patch from Bart Robinson.
3614 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3615 (O_LARGEFILE): Define to 0, if not defined.
3616
3617 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3618
3619 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3620 <machine/pcb.h> and "bsd-kvm.h".
3621 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3622 (m68kbsd_supply_pcb): New function.
3623 (_initialize_m68kbsd_nat): New prototype and function.
3624 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3625 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3626 (LOADLIBES): New variable.
3627 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3628 (LOADLIBES): New variable.
3629
3630 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3631
3632 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3633
3634 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3635 <sys/proc.h>.
3636 (bsd_kvm_cmdlist): New variable.
3637 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3638 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3639 command and "kvm proc" command.
3640 * Makefile.in (bsd-kvm.o): Update dependencies.
3641
3642 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3643
3644 * osabi.c: Update copyright year.
3645 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3646 notes if EI_OSABI is set to ELFOSABI_HPUX.
3647
3648 2004-07-01 Michael Snyder <msnyder@redhat.com>
3649
3650 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3651 that seems to have gotten whacked out of line.
3652
3653 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3654
3655 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3656 code.
3657
3658 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3659
3660 * ada-lang.c (decode_packed_array): Minor change to comment.
3661 (ada_value_slice_ptr): New function.
3662 (ada_value_slice): New function.
3663 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3664 test. Don't know why it is there.
3665 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3666 to avoid dereferencing huge arrays from which one is slicing.
3667 (empty_array): Correct to return an array rather than
3668 a subrange value.
3669 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3670 on empty arrays (let'em use 'FIRST instead).
3671
3672 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3673
3674 Address complaints from gdb_ari.sh:
3675
3676 * ada-exp.y: Include gdb_string.h rather than string.h.
3677 (convert_char_literal): Reformat declaration.
3678 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3679 * ada-lex.l: Change use of free to xfree (the macro would do so
3680 anyway, but this is harmless).
3681 Include gdb_string.h rather than string.h.
3682 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3683
3684 * ada-lang.c (parse): Remove K&Rism in parameter list.
3685 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3686
3687 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3688
3689 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3690 dead code.
3691
3692 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3693
3694 * alphabsd-nat.c: Update copyright year.
3695 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3696
3697 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3698
3699 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3700 (i386_cygwin_in_solib_call_trampoline): New function.
3701 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3702 and skip_trampoline_code gdbarch methods.
3703
3704 2004-06-29 Jim Blandy <jimb@redhat.com>
3705
3706 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3707 name actually used in the dependency lists.
3708
3709 2004-06-29 Randolph Chung <tausq@debian.org>
3710
3711 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3712
3713 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3714
3715 * win32-nat.c (child_pid_to_exec_file): New function.
3716 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3717 functionality.
3718
3719 2004-06-28 Andrew Cagney <cagney@gnu.org>
3720
3721 * defs.h (xstrvprintf): Declare.
3722 * utils.c (xstrvprintf): New function.
3723 (internal_vproblem, xstrprintf, xasprintf)
3724 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3725 * serial.c (serial_printf): Ditto.
3726 * complaints.c (vcomplaint): Ditto.
3727
3728 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3729
3730 * infcmd.c (attach_command): Move call to target_terminal_inferior
3731 behind loading symbol table.
3732
3733 2004-06-28 Andrew Cagney <cagney@gnu.org>
3734
3735 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3736 change - add back extern deprecated_ui_loop_hook declaration.
3737
3738 2004-06-28 Andrew Cagney <cagney@gnu.org>
3739
3740 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3741 xstrprintf.
3742 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3743 (c_value_of_variable): Ditto.
3744 * utils.c (internal_vproblem): Ditto.
3745 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3746 * remote.c (add_packet_config_cmd): Ditto.
3747 * remote-rdp.c (rdp_set_command_line): Ditto.
3748 * regcache.c (regcache_dump): Ditto.
3749 * frv-tdep.c (new_variant, new_variant): Ditto.
3750 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3751 (fbsd_find_memory_regions): Ditto.
3752 * breakpoint.c (create_thread_event_breakpoint)
3753 (create_breakpoints): Ditto.
3754 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3755 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3756
3757 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3758
3759 * ada-lang.c: Re-indent file, with some massaging to help indent
3760 a bit when the result is otherwise really too ugly.
3761
3762 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3763
3764 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3765 code_addr_p and special_addr_p to 'unsigned int'.
3766
3767 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3768
3769 * i386v4-nat.c: Update copyright year and tweak comment.
3770 (regmap): Remove trailing comma.
3771 (supply_gregset): Rename local variable i to regnum. Call
3772 regcache_raw_supply instead of supply_register.
3773 (fill_gregset): Rename argument regno to regnum. Call
3774 regcache_raw_collect instead of regcache_collect.
3775
3776 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3777
3778 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3779 and special_addr_p.
3780 (frame_id_build, frame_id_build_special): Update comments.
3781 (frame_id_build_wild): New prototype.
3782 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3783 struct frame_id fields.
3784 (frame_id_build_wild): New function.
3785 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3786
3787 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3788
3789 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3790 hppabsd-tdep.c.
3791
3792 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3793
3794 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3795
3796 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3797
3798 * ada-lang.c: Re-indent file.
3799
3800 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3801
3802 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3803 (no_symtab_msg): Likewise.
3804
3805 2004-06-27 Andreas Schwab <schwab@suse.de>
3806
3807 * source.c: Fix whitespace.
3808
3809 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3810
3811 * configure.in: Include <sys/param.h> for td_pcb test.
3812 * configure: Regenerated.
3813
3814 * i386nbsd-nat.c: New file.
3815 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3816 i386obsd-nat.c and i386obsd-tdep.c.
3817 (i386nbsd-nat.o): New dependency.
3818 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3819 bsd-kvm.o.
3820 (LOADLIBES): New variable.
3821 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3822 bsd-kvm.o.
3823 (LOADLIBES): New variable.
3824
3825 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3826 (LOADLIBES): New variable.
3827
3828 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3829 fetching from BSD_KVM_PADDR. Correctly lookup address for
3830 "_thread0".
3831
3832 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3833 "bsd-kvm.h".
3834 (amd64fbsd_supply_pcb): New funcion.
3835 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3836
3837 2004-06-27 <david@streamline-computing.com>
3838
3839 Partial fix for PR cli/1056.
3840 * valarith.c: Check for zero in division and remainder
3841 evaluation.
3842
3843 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3844
3845 * i387-tdep.c: Remove excessive whitespace.
3846
3847 2004-06-26 Andrew Cagney <cagney@gnu.org>
3848
3849 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3850 * gdb-events.h, gdb-events.c: Re-generate.
3851 * tui/tui-hooks.c (tui_install_hooks): Update.
3852 (tui_remove_hooks): Update.
3853 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3854
3855 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3856
3857 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3858 (gregset_t, fpregset_t): Remove typedefs.
3859 (REG_OFFSET): Rename argument.
3860 (amd64bsd_r_reg_offset): Rename from reg_offset.
3861 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3862 Remove functions.
3863 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3864 of reg_offset.
3865 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3866
3867 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3868
3869 * vax-tdep.c: Tweak comment.
3870
3871 Add OpenBSD/hppa support.
3872 * NEWS (New native configurations): Mention OpenBSD/hppa.
3873 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3874 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3875 files.
3876 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3877 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3878 * configure.host: Add hppa*-*-openbsd*.
3879 * configure.tgt: Add hppa*-*-openbsd*.
3880
3881 2004-06-25 Andrew Cagney <cagney@gnu.org>
3882
3883 * defs.h (deprecated_ui_loop_hook): Deprecated.
3884 * wince.c (child_wait): Update.
3885 * win32-nat.c (child_wait): Update.
3886 * v850ice.c (v850ice_wait): Update.
3887 * top.c (deprecated_ui_loop_hook): Update.
3888 * serial.h: Update.
3889 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3890 (do_unix_readchar): Update.
3891 * ser-tcp.c (net_open): Update.
3892 * remote-sim.c (gdb_os_poll_quit): Update.
3893 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3894
3895 2004-06-24 Andrew Cagney <cagney@gnu.org>
3896
3897 * defs.h (deprecated_pre_add_symbol_hook)
3898 (deprecated_post_add_symbol_hook): Deprecated.
3899 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3900 (symbol_file_add_with_addrs_or_offsets): Update references.
3901
3902 2004-06-24 Andrew Cagney <cagney@gnu.org>
3903
3904 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3905 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3906 * wince.c (ui_loop_hook): Delete extern declaration.
3907 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3908 * v850ice.c (ui_loop_hook): Delete extern declaration..
3909 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3910 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3911 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3912 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3913 ui_loop_hook declaration.
3914
3915 2004-06-24 Andrew Cagney <cagney@gnu.org>
3916
3917 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3918 entry_func_highpc fields.
3919 * objfiles.c (init_entry_point_info): Do not clear
3920 entry_func_lowpc and entry_func_highpc.
3921 (objfile_relocate): Do not relocate entry_func_lowpc and
3922 entry_func_highpc.
3923 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3924 entry_func_highpc.
3925 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3926 entry_func_highpc.
3927 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3928 entry_func_lowpc and entry_func_highpc with call to
3929 inside_entry_func.
3930
3931 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3932
3933 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3934 quad-precision floating point arguments in registers.
3935
3936 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3937
3938 From Michael Mueller <m.mueller99@kay-mueller.de>:
3939 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3940 account.
3941
3942 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3943
3944 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3945 to -1.
3946 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3947 untriggered watchpoints to a separate if clause. Update function
3948 comment regarding STOPPED_BY_WATCHPOINT argument.
3949
3950 2004-06-22 Jim Blandy <jimb@redhat.com>
3951
3952 * gdbarch.sh: Doc fix.
3953
3954 2004-06-21 Martin Hunt <hunt@redhat.com>
3955 Kevin Buettner <kevinb@redhat.com>
3956
3957 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3958 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3959 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3960 to set_gdbarch_sp_regnum(). Use cooked register number.
3961 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3962
3963 2004-06-21 Andrew Cagney <cagney@gnu.org>
3964
3965 * gdbarch.sh: When the macro field is empty, do not generate a
3966 macro definition. When the macro field is "=", generate the macro
3967 name from the upper-case function name.
3968 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3969 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3970 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3971 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3972 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3973 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3974 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3975 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3976 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3977 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3978 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3979 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3980 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3981 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3982 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3983 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3984 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3985 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3986 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3987 (DEPRECATED_USE_STRUCT_CONVENTION)
3988 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3989 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3990 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3991 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3992 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3993 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3994 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3995 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3996 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3997 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3998 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3999 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4000 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4001 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4002 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4003 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4004 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4005 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4006
4007 2004-06-21 Andrew Cagney <cagney@gnu.org>
4008
4009 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4010 macro name, and the function rather than macro value. Only wrap
4011 macro print statements in #ifdef. Move format logic to where it
4012 is needed.
4013 * gdbarch.c: Re-generate.
4014
4015 * gdbarch.sh (read): Delete "print_p" and "description", add
4016 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4017 Delete references to print_p.
4018 (TARGET_ARCHITECTURE): Delete print predicate.
4019 * gdbarch.c: Re-generate.
4020
4021 * gdbarch.sh: Check that multi-arch methods do not provide a
4022 macro.
4023 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4024 (print_registers_info, print_float_info, print_vector_info)
4025 (adjust_breakpoint_address, remote_translate_xfer_address)
4026 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4027 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4028 name from the multi-arch definition.
4029
4030 2004-06-20 Andrew Cagney <cagney@gnu.org>
4031
4032 * gdbarch.sh: Sort by the function, instead of macro name.
4033 * gdbarch.c: Re-generate.
4034
4035 2004-06-20 Andrew Cagney <cagney@gnu.org>
4036
4037 * gdbarch.sh: Use the function, instead of macro name in
4038 errors and the log file.
4039 (return_value): Remove stray ":" in spec.
4040
4041 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4042 * gdbarch.h, gdbarch.c: Re-generate.
4043 * Makefile.in (arch-utils.o): Update dependencies.
4044 * values.c (using_struct_return): Move code calling
4045 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4046 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4047 to legacy_return_value, simplify.
4048 * infcmd.c (print_return_value): Move code calling
4049 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4050 to legacy_return_value, simplify.
4051 * infcall.c (call_function_by_hand): Move code calling
4052 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4053 * arch-utils.c: Update copyright. Include "gdbcore.h".
4054 (legacy_return_value): New function.
4055 * arch-utils.h: Update copyright.
4056 (legacy_return_value): Declare.
4057
4058 2004-06-20 Andrew Cagney <cagney@gnu.org>
4059
4060 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4061 * gdbarch.h, gdbarch.c: Re-generate.
4062 * values.c (using_struct_return): Update call.
4063 * mcore-tdep.c: Update comment.
4064 * infcall.c (call_function_by_hand): Update comment.
4065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4066 * arch-utils.h (always_use_struct_convention): Update.
4067 * v850-tdep.c (v850_gdbarch_init): Update.
4068 * sh64-tdep.c (sh64_gdbarch_init): Update.
4069 * sh-tdep.c (sh_gdbarch_init): Update.
4070 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4071 * mips-tdep.c (mips_gdbarch_init): Update.
4072 * mcore-tdep.c (mcore_gdbarch_init): Update.
4073 * m32r-tdep.c (m32r_gdbarch_init): Update.
4074 * ia64-tdep.c (ia64_gdbarch_init): Update.
4075 * h8300-tdep.c (h8300_gdbarch_init): Update.
4076 * frv-tdep.c (frv_gdbarch_init): Update.
4077 * cris-tdep.c (cris_gdbarch_init): Update.
4078 * arm-tdep.c (arm_gdbarch_init): Update.
4079 * alpha-tdep.c (alpha_gdbarch_init): Update.
4080
4081 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4082
4083 * PROBLEMS: Add more specific information, and a work-around,
4084 for PR gdb/1458.
4085
4086 2004-06-18 Andrew Cagney <cagney@gnu.org>
4087
4088 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4089 * gdbarch.h, gdbarch.c: Re-generate.
4090 * ada-lang.c (ada_finish_decode_line_1): Update.
4091 * infrun.c (handle_inferior_event): Update.
4092 * infcall.c (find_function_addr): Update.
4093 * linespec.c (minsym_found): Update.
4094 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4095 Update.
4096 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4097 * cli/cli-cmds.c (disassemble_command): Update.
4098 * vax-tdep.c (vax_gdbarch_init): Update.
4099
4100 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4101
4102 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4103
4104 2004-06-17 Andrew Cagney <cagney@gnu.org>
4105
4106 GDB 6.1.1 released from the GDB 6.1 branch.
4107 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4108 * PROBLEMS: Ditto.
4109
4110 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4111
4112 PR gdb/1658
4113 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4114 operation as a uleb128. Found by Michael Coulter.
4115
4116 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4117
4118 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4119 make it non-static.
4120 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4121 to ada-lang.h; this is needed to be able to implement the kill command
4122 in multi-task mode.
4123 (task_ptid): Ditto.
4124 (task_entry): Ditto.
4125 (task_list): Ditto.
4126 (ada_build_task_list): Ditto.
4127
4128 * ada-lang.c: Conditionalize routines and data structures related
4129 to breakpoints, exceptions, completion, and symbol caching on
4130 GNAT_GDB, since these are not yet used in the submitted public sources.
4131 (ada_main_name): Editorial: Move definition out of exception-related
4132 code.
4133
4134 2004-06-15 Andrew Cagney <cagney@gnu.org>
4135
4136 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4137 deprecated_pc_in_call_dummy.
4138
4139 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4140
4141 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4142 bfd_get_section_size_before_reloc or _raw_size.
4143 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4144 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4145 (dwarf2_read_section): Likewise.
4146 * elfread.c (elf_locate_sections): Likewise.
4147 * gcore.c (derive_heap_segment): Likewise.
4148 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4149 * remote-e7000.c (e7000_load): Likewise.
4150 * remote-m32r-sdi.c (m32r_load): Likewise.
4151 * remote-mips.c (mips_load_srec): Likewise.
4152 (pmon_load_fast): Likewise.
4153 * remote.c (compare_sections_command): Likewise.
4154 * symfile.c (add_section_size_callback): Likewise.
4155 (load_section_callback): Likewise.
4156 (pc_in_unmapped_range): Likewise.
4157 (pc_in_mapped_range): Likewise.
4158 (sections_overlap): Likewise.
4159 (list_overlays_command): Likewise.
4160 (simple_overlay_update_1): Likewise.
4161 (simple_overlay_update): Likewise.
4162 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4163 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4164
4165 2004-06-14 Randolph Chung <tausq@debian.org>
4166
4167 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4168 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4169 static.
4170 (hppa_hpux_inferior_created): New function.
4171 (hppa_hpux_init_abi): Register observer.
4172 * symfile.c (hp_cxx_exception_support_initialized)
4173 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4174 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4175
4176 2004-06-14 Randolph Chung <tausq@debian.org>
4177
4178 * MAINTAINERS (Write After Approval): Alphabetize my entry
4179 correctly.
4180
4181 2004-06-14 Andrew Cagney <cagney@gnu.org>
4182
4183 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4184 testsuite maintainer.
4185
4186 2004-06-13 Andrew Cagney <cagney@gnu.org>
4187
4188 * infcmd.c (print_return_value): Fix logic, allow
4189 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4190
4191 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4192 defining any macros.
4193 * gdbarch.h: Re-generate.
4194
4195 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4196 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4197 * gdbarch.h: Re-generate.
4198
4199 * values.c (generic_use_struct_convention): Don't check gcc_p.
4200
4201 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4202 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4203 * gdbarch.h, gdbarch.c: Regenerate.
4204 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4205 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4206 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4207 deprecated_max_register_raw_size and
4208 deprecated_max_register_virtual_size.
4209 * v850-tdep.c (v850_gdbarch_init): Ditto.
4210 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4211 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4212 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4213 * cris-tdep.c (cris_gdbarch_init): Ditto.
4214
4215 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4216 * gdbarch.h, gdbarch.c: Re-generate.
4217 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4218 (m68hc11_use_struct_convention): Delete function.
4219 (m68hc11_extract_struct_value_address): Delete function.
4220 (m68hc11_return_value): New function.
4221 (m68hc11_gdbarch_init): Instead of store_return_value,
4222 extract_return_value, return_value_on_stack,
4223 deprecated_extract_struct_value_address and use_struct_convention,
4224 set return_value.
4225 * values.c (using_struct_return): Do not call
4226 RETURN_VALUE_ON_STACK.
4227 * arch-utils.h (generic_return_value_on_stack_not): Delete
4228 declaration.
4229 * arch-utils.c (generic_return_value_on_stack_not): Delete
4230 function.
4231
4232 2004-06-12 Andrew Cagney <cagney@gnu.org>
4233
4234 * values.c (register_value_being_returned): Delete function.
4235 * infcmd.c (legacy_return_value): Delete function.
4236 * infcall.c (call_function_by_hand): Inline
4237 "register_value_being_returned", simplify.
4238 * values.c (using_struct_return): Update comment, refer to
4239 print_return_value instead of register_value_being_returned.
4240 * infcmd.c (print_return_value): Inline calls to
4241 register_value_being_returned and legacy_return_value. Simplify.
4242
4243 2004-06-11 Randolph Chung <tausq@debian.org>
4244
4245 * somread.c (som_symtab_read): Exclude gcc local symbols.
4246
4247 2004-06-11 Randolph Chung <tausq@debian.org>
4248
4249 * infrun.c (handle_inferior_event): Handle the case when a
4250 trampoline ends up in the runtime resolver, and if the trampoline
4251 has no name. Rearrange the code so that all the trampoline
4252 processing happens before other step-out-of-range handling.
4253
4254 2004-06-11 Martin Hunt <hunt@redhat.com>
4255
4256 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4257 has no fpu.
4258
4259 2004-06-10 Andrew Cagney <cagney@gnu.org>
4260
4261 * blockframe.c (legacy_inside_entry_func): Delete.
4262 (legacy_frame_chain_valid): Inline call to
4263 legacy_inside_entry_func, simplify.
4264
4265 2004-06-10 Bob Rossi <bob@brasko.net>
4266
4267 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4268 * dwarf2read.c (partial_die_info): Add dirname field.
4269 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4270 (read_partial_die): Save away DW_AT_comp_dir.
4271 * defs.h (symtab_to_filename): Removed.
4272 * source.c (find_and_open_source): Added.
4273 (open_source_file): Just calls find_and_open_source.
4274 (symtab_to_filename): Removed.
4275 (symtab_to_fullname, psymtab_to_fullname): Added.
4276 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4277 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4278 symtab_to_filename.
4279 * symtab.h (partial_symtab): Add dirname field.
4280 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4281 (mi_cmd_file_list_exec_source_file): Call new function
4282 symtab_to_fullname to find fullname.
4283 (mi_cmd_file_list_exec_source_files): Added.
4284 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4285 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4286
4287 2004-06-10 Andrew Cagney <cagney@gnu.org>
4288
4289 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4290 to generic_use_struct_convention, the default value.
4291
4292 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4293 of abort.
4294
4295 * ns32k-tdep.c (ns32k_push_arguments): New function.
4296 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4297 * infcall.c (call_function_by_hand): Call error instead of
4298 legacy_push_arguments.
4299 * value.h (legacy_push_arguments): Delete declaration.
4300 * valops.c (legacy_push_arguments): Delete function.
4301 (value_push): Delete function.
4302
4303 2004-06-10 Brian Ford <ford@vss.fsi.com>
4304
4305 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4306 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4307 info.
4308 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4309
4310 2004-06-10 Andrew Cagney <cagney@gnu.org>
4311
4312 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4313 * gdbarch.h, gdbarch.c: Re-generate.
4314 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4315 parameters.
4316 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4317 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4318 deprecated_pc_in_call_dummy instead of
4319 DEPRECATED_PC_IN_CALL_DUMMY.
4320 (arm_skip_prologue): Ditto.
4321 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4322 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4323 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4324 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4325 Ditto.
4326 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4327 (sh64_init_extra_frame_info, sh64_get_saved_register)
4328 (sh64_pop_frame): Ditto.
4329 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4330 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4331 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4332 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4333 (h8300_pop_frame): Ditto.
4334 * blockframe.c (legacy_inside_entry_func)
4335 (legacy_frame_chain_valid): Ditto.
4336 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4337 to deprecated_pc_in_call_dummy.
4338
4339 2004-06-09 Andrew Cagney <cagney@gnu.org>
4340
4341 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4342 provide a default value.
4343 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4344 * gdbarch.h, gdbarch.c: Re-generate.
4345 * arch-utils.c (generic_convert_register_p): Rename
4346 legacy_convert_register_p
4347 (legacy_register_to_value, legacy_value_to_register): Delete
4348 functions.
4349 * arch-utils.h (generic_convert_register_p): Rename
4350 legacy_convert_register_p.
4351 (legacy_register_to_value, legacy_value_to_register): Delete
4352 declarations.
4353
4354 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4355 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4356 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4357 * gdbarch.h, gdbarch.c: Re-generate.
4358 * infcmd.c (default_print_registers_info): Simplify.
4359 * findvar.c (value_of_register): Simplify.
4360 * mi/mi-main.c (get_register): Simplify.
4361 * arch-utils.c (legacy_convert_register_p): Always return 0.
4362 (legacy_register_to_value, legacy_value_to_register): Always call
4363 internal_error.
4364
4365 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4366 #ifdef CLEAR_INSN_CACHE code.
4367 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4368 Delete #ifdef CLEAR_DEFERRED_STORES code.
4369
4370 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4371
4372 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4373 copyright.
4374 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4375
4376 * config/mips/mipsv4.mh: Delete file.
4377
4378 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4379 unreferenced macro.
4380 (hpread_adjust_stack_address): Delete declaration.
4381
4382 2004-06-08 Andrew Cagney <cagney@gnu.org>
4383
4384 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4385 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4386 PTRACE_ATTACH / PTRACE_DETACH available call error.
4387 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4388 * infttrace.c (update_thread_state_after_attach, attach, detach):
4389 Remove #ifdef wrappers.
4390 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4391 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4392 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4393 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4394 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4395 * config/nm-linux.h (ATTACH_DETACH): Delete.
4396 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4397 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4398 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4399 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4400 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4401
4402 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4403
4404 * configure.in: Set $configdir to the right OS specific value.
4405 Use value when setting $tcldir and $tkdir.
4406 * configure: Regenerate.
4407
4408 2004-06-06 Paul Brook <paul@codesourcery.com>
4409
4410 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4411 records.
4412
4413 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4414
4415 * ada-lang.c (lookup_symbol_in_language): New function to allow
4416 re-use of another language's symbol lookup code. (Placed here
4417 temporarily while Ada support is being integrated into the public
4418 tree).
4419 (restore_language): New auxiliary function for
4420 lookup_symbol_in_language.
4421 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4422 temporarily while Ada support is being integrated into the public
4423 tree).
4424
4425 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4426
4427 * Makefile.in (check//%): New.
4428
4429 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4430 (mn10300_store_return_value): Rewrite.
4431 (mn10300_type_align): New.
4432 (mn10300_use_struct_convention): Rewrite.
4433 (mn10300_return_value): New, using all of the above.
4434 (mn10300_pop_frame_regular): Add saved_regs_size.
4435 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4436
4437 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4438 regs if PC is on movm.
4439
4440 2004-06-07 Jim Blandy <jimb@redhat.com>
4441
4442 Add native Linux support for the PowerPC E500.
4443 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4444 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4445 all architectures except the E500.
4446 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4447 #definitions.
4448 (struct gdb_evrregset_t): New type.
4449 (have_ptrace_getsetevrregs): New variable.
4450 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4451 fetch_spe_registers): New functions.
4452 (fetch_register): Call fetch_spe_register as appropriate.
4453 Assert that we're only passed raw register numbers.
4454 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4455 Don't fetch gprs if they're pseudoregisters.
4456 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4457 store_spe_registers): New functions.
4458 (store_register): Call store_spe_register as appropriate.
4459 Assert that we're only passed raw register numbers.
4460 (store_ppc_registers): Call store_spe_registers as appropriate.
4461 Don't store gprs if they're pseudoregisters.
4462
4463 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4464
4465 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4466 struct if one exists, even if we are dealing with a zombie thread.
4467
4468 2004-06-07 Andrew Cagney <cagney@gnu.org>
4469
4470 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4471 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4472 Rename PC_REQUIRES_RUN_BEFORE_USE.
4473 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4474 #ifdef.
4475
4476 2004-06-07 Randolph Chung <tausq@debian.org>
4477
4478 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4479 unwinding after sp has been saved to the stack but before the end
4480 of the prologue, and after the fp has been modified but before it has
4481 been saved to the stack.
4482 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4483 Remove superfluous definitions.
4484 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4485
4486 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4487
4488 Committed by Randolph Chung.
4489 * hppa-linux-nat.c: Include the correct version of the header file
4490 depending on the kernel version.
4491
4492 2004-06-06 Randolph Chung <tausq@debian.org>
4493
4494 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4495 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4496
4497 2004-06-06 Randolph Chung <tausq@debian.org>
4498
4499 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4500 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4501 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4502 * hppa-tdep.c (hppa_symbol_address): New function definition.
4503 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4504
4505 2004-06-06 Randolph Chung <tausq@debian.org>
4506
4507 * hppa-tdep.h (struct value): Forward declaration.
4508 (gdbarch_tdep): Define tdep find_global_pointer method.
4509 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4510 associated with the function we are trying to call, and write it
4511 to the gp register.
4512 (hppa32_convert_from_funct_ptr_addr): New function.
4513 (hppa_find_global_pointer): New function.
4514 (hppa_gdbarch_init): Set default find_global_pointer method; set
4515 convert_from_func_ptr_addr method.
4516 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4517 (hppa_linux_init_abi): Set find_global_pointer method.
4518 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4519
4520 2004-06-06 Randolph Chung <tausq@debian.org>
4521
4522 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4523 to struct value *function.
4524 * gdbarch.c: Regenerate.
4525 * gdbarch.h: Likewise.
4526 * infcall.c (call_function_by_hand): Pass entire function value
4527 to push_dummy_call.
4528
4529 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4530 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4531 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4532 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4533 * arm-tdep.c (arm_push_dummy_call): Likewise.
4534 * avr-tdep.c (avr_push_dummy_call): Likewise.
4535 * cris-tdep.c (cris_push_dummy_call): Likewise.
4536 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4537 * frv-tdep.c (frv_push_dummy_call): Likewise.
4538 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4539 * hppa-tdep.c (hppa32_push_dummy_call)
4540 (hppa64_push_dummy_call): Likewise.
4541 * i386-tdep.c (i386_push_dummy_call): Likewise.
4542 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4543 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4544 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4545 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4546 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4547 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4548 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4549 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4550 (ppc64_sysv_abi_push_dummy_call): Likewise.
4551 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4552 (ppc64_sysv_abi_push_dummy_call): Likewise.
4553 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4554 * s390-tdep.c (s390_push_dummy_call): Likewise.
4555 * sh-tdep.c (sh_push_dummy_call_fpu)
4556 (sh_push_dummy_call_nofpu): Likewise.
4557 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4558 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4559 * vax-tdep.c (vax_push_dummy_call): Likewise.
4560
4561 2004-06-04 Jim Blandy <jimb@redhat.com>
4562
4563 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4564 gdbarch argument to register_size.
4565
4566 * rs6000-tdep.c (rs6000_store_return_value): Use
4567 regcache_cooked_write_part instead of
4568 deprecated_write_register_bytes.
4569 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4570 not gdbarch_deprecated_store_return_value.
4571
4572 * ppc-linux-nat.c (store_register, fetch_register): Remove
4573 incorrect assertions. Simplify and generalize handling of
4574 transfers whose sizes are not multiples of, or less than, sizeof
4575 (PTRACE_XFER_TYPE).
4576
4577 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4578
4579 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4580 as a new thread event.
4581 * thread-db.c (thread_get_info_callback): If the thread is a
4582 zombie, return TD_THR_ZOMBIE.
4583 (thread_from_lwp): If thread_get_info_callback returns
4584 TD_THR_ZOMBIE, check if the thread is still on the thread list
4585 and return a -1 ptid if not found.
4586 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4587 change the status to TARGET_WAITKIND_SPURIOUS.
4588
4589 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4590
4591 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4592 double values in little endian mode.
4593
4594 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4595
4596 Committed by Andrew Cagney.
4597 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4598 after last enum constant to avoid error from IBM C
4599 compiler.
4600
4601 2004-06-02 Jim Blandy <jimb@redhat.com>
4602
4603 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4604 to 'message', and make it local to the lone block that uses it.
4605
4606 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4607
4608 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4609
4610 * ada-exp.y: Update copyright notice.
4611 Include block.h.
4612
4613 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4614 SPECIAL_VARIABLE and unify the treatment of these cases.
4615
4616 (write_attribute_call0): Remove.
4617 (write_attribute_call1): Remove.
4618 (write_attribute_calln): Remove.
4619 (save_qualifier): Add missing semicolon.
4620
4621 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4622 temporarily disabled to allow compilation with FSF head version.
4623
4624 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4625 use individual operators (OP_*) for all attributes.
4626 (exp syntax): Use write_int.
4627 Handle STRING literals with OP_STRING.
4628 (variable syntax): Add limit parameter to calls to
4629 write_object_renaming.
4630
4631 (temp_parse_space): New definition to hold entities that need
4632 only live until the next call to ada_parse.
4633 (string_to_operator): Rename fields of ada_opname_table entries.
4634
4635 (write_var_from_sym): Record block.
4636 (write_var_from_name): Minor reformatting.
4637 Make sure saved name is properly encoded in the case of multiple
4638 matches, and set its language to Ada.
4639 Update comment.
4640 Modify to indicate unresolved name as symbol in the UNRESOLVED
4641 namespace, allocated in temp_parse_space.
4642 (write_int): New function.
4643
4644 (write_object_renaming): Add max_depth parameter to limit
4645 chains of object renamings.
4646 Handle case where root of renaming expression is itself a renaming.
4647 Use temp_parse_space for temporary name buffer.
4648 Handle renamings to dereferenced pointers (___XEXA suffices).
4649
4650 (ada_parse, yyerror, string_to_operator,
4651 write_var_from_sym, write_var_from_name, write_attribute_call0,
4652 write_attribute_call1, write_attribute_calln,
4653 write_object_renaming): Protoize.
4654
4655 (_initialize_ada_exp): New function.
4656
4657 * ada-lang.c: Update copyright notice.
4658 General terminology change to conform to GNAT compiler usage:
4659 mangle => encode, demangle => decode
4660 Include gdb_obstack.h.
4661 Include gdb_regex.h
4662 Include frame.h
4663 Include hashtab.h
4664 Include completer.h
4665 Include gdb_stat.h
4666 Include block.h
4667 Include infcall.h
4668
4669 (ADA_RETAIN_DOTS): Make sure this is defined.
4670 (TRUNCATION_TOWARDS_ZERO): Define.
4671 (struct string_vector): Define.
4672 (unresolved_names): Remove definition.
4673 (xnew_string_vector): New function.
4674 (string_vector_append): New function.
4675 (extract_string): Make static.
4676 (ada_unqualified_name): New function.
4677 (add_angle_brackets): New function.
4678 (function_name_from_pc): New function.
4679 (place_on_stack): Rename to ensure_lval.
4680
4681 (ensure_lval): Renamed from place_on_stack.
4682 Make identity on lvals.
4683 Update comment.
4684 (is_nonfunction): New interface.
4685 Only symbols in LOC_CONST class can be enumerals.
4686 (fill_in_ada_prototype): Remove; now independent of language.
4687 (add_defn_to_vec): Add obstack and symtab arguments.
4688 Use obstack to hold collected definitions.
4689 (num_defns_collected): New function.
4690 (defns_collected): New function.
4691 (ada_resolve_subexp): Rename to resolve_subexp.
4692 (resolve_subexp): Renamed from ada_resolve_subexp.
4693 (ada_op_name): Return non-const result.
4694 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4695 other purposes.
4696
4697 (to_fixed_array_type): Add declaration.
4698 (coerce_unspec_val_to_type): Remove offset parameter.
4699 (find_sal_from_funcs_and_line): New interface.
4700 (find_line_in_linetable): Ditto.
4701
4702 (all_sals_for_line): Rename to ada_sals_for_line and make
4703 global.
4704 Add new parameter. When set, do not ask the user to choose the
4705 instance, but use the first one found instead.
4706 Use given line number in returned sals.
4707 Fix comment.
4708 Skip the prologue if funfirstline is set.
4709 Correct for memory leak when 0 lines found.
4710
4711 (value_pos_atr): Use pos_atr.
4712 (pos_atr): New function.
4713 (standard_lookup): Add block parameter.
4714
4715 (makeTimeStart): Remove declaration and uses.
4716 (makeTimeStop): Remove declaration and uses.
4717
4718 (ada_completer_word_break_characters): Allow for VMS.
4719 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4720 (raise_sym_name): New constant.
4721 (raise_unhandled_sym_name): New constant.
4722 (raise_assert_sym_name): New constant.
4723 (process_raise_exception_name): New constant.
4724 (longest_exception_template): New constant.
4725 (warning_limit): New variable to limit warnings during expression
4726 evaluation.
4727 (warnings_issued): New variable to keep track of warnings issued.
4728 (known_runtime_file_name_patterns): New constant.
4729 (known_auxiliary_function_name_patterns): New constant.
4730 (symbol_list_obstack): New variable.
4731
4732 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4733 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4734 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4735 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4736 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4737 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4738 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4739 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4740 and strcmp.
4741
4742 (ada_get_field_index): New function.
4743 (lim_warning): New function.
4744 (ada_translate_error_message): New function.
4745 (MAX_OF_SIZE): New function.
4746 (MIN_OF_SIZE): New function.
4747 (UMAX_OF_SIZE): New function.
4748 (UMIN_OF_SIZE): New function.
4749 (discrete_type_high_bound): New function.
4750 (discrete_type_low_bound): New function.
4751 (base_type): New function.
4752 (do_command): Remove.
4753
4754 (ada_update_initial_language): Use language_ada, not language_unknown.
4755 (ada_encode): Renamed from ada_mangle.
4756 Obey ADA_RETAIN_DOTS.
4757 (ada_decode): Renamed from ada_demangle.
4758 Update coding conventions.
4759 (decoded_names_store): New hash table.
4760 (ada_decode_symbol): New function.
4761 (ada_la_decode): New function.
4762
4763 (modify_general_field): Correct computations of offset and bit
4764 position.
4765 (desc_base_type): Handle ref types, too.
4766 (ada_is_direct_array_type): New function.
4767
4768 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4769 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4770 (ada_is_bogus_array_descriptor,ada_type_of_array,
4771 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4772 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4773 ada_is_array_descriptor_type.
4774
4775 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4776 (ada_is_packed_array_type): Handle pointers or
4777 references to packed arrays as well.
4778 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4779 (decode_packed_array_type): Search for the packed array type
4780 symbol in the currently selected block and associated
4781 superblocks too.
4782 Use lookup_symbol again.
4783
4784 (decode_packed_array): Handle pointers and references.
4785 Update call to coerce_unspec_val_to_type.
4786 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4787 (ada_value_primitive_packed_val): Improve comment.
4788
4789 (ada_index_type): Substitute int type for "undefined".
4790 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4791 ada_array_langth, ada_is_string_type): Use renamed
4792 ada_is_simple_array_type.
4793 (empty_array): New function.
4794
4795 (ada_resolve): Rename to resolve.
4796 (resolve): Make static.
4797 Call renamed resolve_subexp.
4798 Update comment.
4799 (ada_resolve_subexp): Rename to resolve_subexp.
4800 (resolve_subexp): Update comment.
4801 Decomment disabled code.
4802 Add LOC_COMPUTED* cases.
4803 Modify to use temporary struct symbols (marked as being in
4804 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4805 OP_UNRESOLVED_VALUE.
4806 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4807 Add OP_STRING case.
4808 Remove OP_ARRAY.
4809 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4810 Use new ada_lookup_symbol_list interface.
4811 Use new ada_resolve_function interface.
4812 Remove OP_TYPE case.
4813
4814 (ada_args_match): Idiot proof against null actuals.
4815 Use intermediate variables to clarify.
4816 (ada_resolve_function): Update comment and interface.
4817 (mangled_ordered_before): Rename to encoded_ordered_before and
4818 update comment.
4819 (sort_choices): Update comment and interface.
4820 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4821 (user_select_syms): New interface.
4822 Use new sort_choices interface.
4823 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4824 (possible_user_operator_p): Idiot-proof against null values.
4825 (ada_simple_renamed_entity): Don't make cleanup; rely on
4826 caller to free result string.
4827 Remove const from return type.
4828 (make_array_descriptor): Rename uses of place_on_stack to
4829 ensure_lval.
4830 Make sure that arrays are on stack.
4831
4832 (HASH_SIZE): Define.
4833 (struct cache_entry): Define.
4834 (cache_space): Define.
4835 (cache): Define.
4836 (clear_ada_sym_cache): New function.
4837 (find_entry): New function.
4838 (lookup_cached_symbol): New function.
4839 (defn_vector_size): Define.
4840 (cache_symbol): New function.
4841 (defn_symbols): Remove.
4842
4843 (standard_lookup): Use lookup_symbol_in_language to get effect of
4844 C lookup.
4845 Cache results.
4846
4847 (symbol_completion_match): New function.
4848 (symbol_completion_add): New function.
4849 (ada_make_symbol_completion_list): New function.
4850
4851 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4852 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4853 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4854 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4855
4856 (ada_lookup_simple_minsym): New function.
4857 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4858
4859 (add_symbols_from_enclosing_procs): New interface.
4860 Conditionalize more helpfully.
4861 Don't bother if program isn't running.
4862 Use new interface to get_frame_block.
4863 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4864
4865 (remove_extra_symbols): New interface.
4866 (xget_renaming_scope): New function.
4867 (is_package_name): New function.
4868 (renaming_is_visible): New function.
4869 (remove_out_of_scope_renamings): New function.
4870
4871 (ada_lookup_symbol_list): New interface.
4872 Properly reinitialize the symbol list obstack.
4873 Don't call add_symbols_from_enclosing_procs if we start from a
4874 static or global block.
4875 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4876 add_symbols_from_enclosing_procs.
4877 Add symtab data to cached entries.
4878 Handle symbols prefixed with
4879 "standard__" specially; strip prefix and don't look in local symbols.
4880 Do not include out of scope renaming symbols in list of
4881 symbols returned.
4882 Add const to block parameter.
4883 Move check for non-local, non-global symbols earlier.
4884 Remove timing stuff.
4885 (ada_lookup_symbol): New interface.
4886 Find symtab as well.
4887 (ada_lookup_symbol_nonlocal): New function.
4888
4889 (is_name_suffix): Enhance suffix detection to recognize
4890 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4891 (is_dot_digits_suffix): New function.
4892 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4893
4894 (ada_add_block_symbols): New interface. Use obstack to return results
4895 in a vector of struct ada_symbol_infos. Add symtab argument.
4896 Use new interface to add_defn_to_vec.
4897 Remove calls to fill_in_ada_prototype.
4898 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4899
4900 (ada_finish_decode_line_1): Add const qualification to local to fix
4901 warning.
4902 Start looking in static block for functions to avoid attempts
4903 to search frame chain for up-level variables.
4904 Adapt to new ada_sals_for_line interface.
4905 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4906 Handle quoting of the function name inside the spec string.
4907 Skip prologue when funfirstline is set and update the
4908 function documentation to that effect.
4909
4910 (debug_print_lines, debug_print_block, debug_print_blocks,
4911 debug_print_symtab): Remove.
4912
4913 (ada_main_name): New function.
4914 (ada_exception_breakpoint_type): New function.
4915 (is_known_support_routine): New function.
4916 (ada_find_printable_frame): Renamed from find_printable_frame and made
4917 global.
4918 Remove level parameter.
4919 Use new interface to select_frame.
4920
4921 (begin_command): Remove.
4922 (ada_adjust_exception_stop): New function.
4923 (ada_print_exception_stop): New function.
4924 (exception_name_from_cond): New function.
4925 (ada_report_exception_break): Replace disabled code with
4926 conditionalization on GNAT_GDB.
4927 Get the exception name from the condition string.
4928 Remove and move functionality into new functions
4929 ada_print_exception_breakpoint_task and
4930 ada_print_exception_breakpoint_nontask.
4931 (error_breakpoint_runtime_sym_not_found): New function.
4932 (is_runtime_sym_defined): New function.
4933 (ada_breakpoint_rewrite): Uncomment suppressed code.
4934 Use symbolic error-message and runtime-symbol names.
4935 Surround runtime symbol names in quotes.
4936 Allow non-specific breakpoints on exceptions and assertions before
4937 program starts.
4938
4939 (ada_is_tagged_type): Add parameter.
4940 (ada_is_tag_type): New function.
4941 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4942 (ada_variant_discrim_type): Ditto.
4943 (value_tag_from_contents_and_address): New function.
4944 (type_from_tag): New function.
4945 (struct tag_args): New structure used to communicate with
4946 ada_tag_name_1.
4947 (ada_tag_name_1): New function.
4948 (ada_tag_name): New function.
4949
4950 (ada_scan_number): Update comment.
4951 (find_struct_field): New function.
4952 (ada_search_struct_field): Make static.
4953 (ada_value_struct_elt): New version that returns references when
4954 given pointers or references to structs.
4955 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4956 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4957 interface.
4958 (ada_value_ind): Use new ada_to_fixed_value interface.
4959 (ada_coerce_ref): Ditto.
4960 (field_offset): Remove.
4961
4962 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4963 (ada_find_renaming_symbol): New function.
4964 (ada_prefer_type): Prefer named types over unnamed ones.
4965 (variant_field_index): New function.
4966 (contains_variant_part): Removed: subsumed by variant_field_index.
4967 (ada_template_to_fixed_record_type): New function, mostly from
4968 template_to_fixed_record_type.
4969 (template_to_fixed_record_type):
4970 Do not scan the type fields beyond the last one; prevents a
4971 potential SEGV.
4972 Handle case where variant field is listed BEFORE discriminant it
4973 depends on.
4974 Fix calculation of record length when bit length is
4975 not evenly divisible by char length.
4976 Move code to ada_template_to_fixed_record_type and call it.
4977
4978 (template_to_static_fixed_type): Revise comment.
4979 Modify to work on ordinary record types as well as templates,
4980 so as to handle fields that use ___XVE or ___XVU encodings.
4981 (to_record_with_fixed_variant_part): Fill out comment.
4982 Initialize C++ stuff in right type.
4983 Allow case where DVAL is null.
4984 Handle case where variant field is not last.
4985 Fix typo concerning record length.
4986 (to_fixed_record_type): Decomment disabled code.
4987 (to_fixed_record_type): Use variant_field_index instead of
4988 contains_variant_part.
4989 (to_fixed_variant_branch_type): Ditto.
4990 (to_fixed_array_type): Decomment disabled code.
4991 (ada_to_fixed_type): Convert tagged types to the specific type.
4992 Deactivate the size-check for array types in order to avoid
4993 some false size alarms.
4994 (to_static_fixed_type): Decomment disabled code.
4995 Modify to call template_to_static_fixed_type
4996 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4997 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4998 Remove valaddr argument, as it is never really used.
4999 (ada_to_fixed_value): Change interface to act on single struct value*
5000 operand.
5001 (adjust_pc_past_prologue): New function.
5002 (ada_attribute_name): Modify to take enum exp_opcode argument.
5003
5004 (ada_enum_name): Recognize new homonym-distinguishing convention.
5005 Adjust local variable's type to remove compiler warning.
5006 Fix a small problem in the part that unqualifies the enumeration name.
5007 (ada_value_binop): New function.
5008 (ada_value_equal): New function.
5009
5010 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5011 Don't give error message when not doing normal evaluation
5012 and a tagged type doesn't seem to contain a structure member.
5013 Give error message for packed arrays.
5014 For indexing arrays, handle pointers to packed arrays correctly.
5015 Handle case of 'first and 'last attributes of bare integral type
5016 without encoded subtype info.
5017 Remove some unnecessary casts.
5018 Fix uninitialized value of type in computing 'first, 'last, or 'length
5019 of array object.
5020 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5021 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5022 calls.
5023 Attributes are now exp_opcode values.
5024 Correct treatment of 'modulus.
5025 Better error message for taking 'length of wrong kind of type;
5026 improve comment.
5027 Change EVAL_NORMAL to noside for consistency.
5028 Use ada_value_binop for DIV, MOD, REM.
5029 Make special case out of array of length 0, since an argument
5030 of 0 upsets some platforms' malloc.
5031 Use OP_STRING instead of OP_ARRAY.
5032 For slice, add check that we have an array type before extracting
5033 a slice out of it. Avoids a SEGV.
5034 When evaluating an array slice, if the array type is a reference to
5035 an aligner type, then replace the aligner type by the actual type.
5036 Decomment disabled code.
5037 Remove some dead code.
5038 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5039 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5040 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5041 and UNOP_MBR to UNOP_IN_RANGE.
5042 If an array type has a parallel ___XVE type, then use it.
5043 Turn arrays into pointers for lvalue arrays.
5044 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5045 bounds error and handle 0-length slices.
5046 Use lim_warning.
5047 When selecting fields, apply ada_to_fixed_value (because the fields
5048 might have ___XVU or ___XVE encodings even if not dynamic.)
5049 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5050 (ada_is_system_address_type): New function.
5051
5052 (get_var_value): Use new interface to ada_lookup_symbol_list.
5053 (get_int_var_value): New interface.
5054 (to_fixed_range_type): Allow unknown bound, with warning.
5055 (ada_is_modular_type): Decomment disabled code.
5056 (ADA_OPERATORS): New definition.
5057 (ada_operator_length): New function.
5058 (ada_expr_op_name): New function.
5059 (ada_forward_operator_length): New function.
5060 (ada_dump_subexp_body): New function.
5061 (ada_print_subexp): New function.
5062 (ada_exp_descriptor): New constant.
5063 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5064 (ada_language_defn): Add ada_exp_descriptor entry.
5065 Change ada_parse => parse.
5066 Add post-parser entry.
5067 Use ada-specific non-local symbol lookup.
5068 Don't use C-style arrays.
5069 String lower-bound is 1.
5070 Decomment disabled code.
5071 (parse): New function.
5072 New fields ada_translate_error_message, ada_lookup_symbol,
5073 ada_lookup_minimal_symbol.
5074
5075 * ada-lang.h: Update copyright dates.
5076 Replace the mangle/demangle terminology throughout by the
5077 more appropriate encode/decode one.
5078 Include breakpoint.h.
5079 Forward declare struct partial_symbol, struct block.
5080 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5081 (EXTRACT_ADDRESS): Remove.
5082 (EXTRACT_INT): Remove.
5083 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5084 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5085 (MAX_RENAMING_CHAIN_LENGTH): Define.
5086 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5087
5088 (enum task_states): Remove.
5089 ada_task_states: Remove.
5090 (fat_string): Remove.
5091 (struct entry_call): Remove.
5092 (struct task_fields): Remove.
5093 (struct task_entry): Remove.
5094
5095 (struct ada_symbol_info): Define.
5096 (enum ada_attribute): Remove.
5097 (enum ada_operator): Define.
5098
5099 (ada_get_field_index): Declare.
5100 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5101 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5102 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5103 (ada_lookup_symbol_list): New interface.
5104 (ada_decode_symbol): Declare.
5105 (ada_decode): Declare.
5106 (ada_lookup_symbol): New interface.
5107 (ada_update_initial_language): Declare.
5108 (ada_lookup_simple_minsym): Declare.
5109 (user_select_syms): New interface.
5110 (ada_sals_for_line): Declare.
5111 (ada_is_tagged_type): New interface.
5112 (ada_tag_name): Declare.
5113 (ada_lookup_struct_elt_type): Remove declaration.
5114 (ada_search_struct_field): Remove declaration.
5115 (ada_attribute_name): New interface.
5116 (ada_is_system_address_type): Declare.
5117 (ada_to_fixed_value): Remove declaration.
5118 (ada_template_to_fixed_record_type_1): Declare.
5119 (get_int_var_value): New interface.
5120 (ada_find_any_symbol): Declare.
5121 (ada_find_renaming_symbol): Declare.
5122 (ada_mangle): Rename to ada_encode.
5123 (ada_simple_renamed_entity): Remove const.
5124 (ada_main_name): Declare.
5125 (get_current_task): Rename to ada_get_current_task.
5126 (get_entry_number): Remove declaration.
5127 (ada_report_exception_break): Remove declaration.
5128 (ada_print_exception_breakpoint_nontask): Declare.
5129 (ada_print_exception_breakpoint_task): Declare.
5130 (ada_find_printable_frame): Declare.
5131
5132 * ada-lex.l: Update copyright notices.
5133 Use xmalloc and xfree instead of malloc and free.
5134 Use new interface to name_lookup.
5135 Use new interface to
5136 ada_mangle=>ada_encode.
5137 Redo handling of '$...' variable to parallel current treatment
5138 in c-exp.y.
5139 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5140 digit_to_int, strtoulst, processInt, processReal, processId,
5141 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5142 yywrap): Protoize.
5143
5144 (processInt): Use cast to remove harmless warning.
5145 (processReal): Modify to get rid of compiler warning on scan formats.
5146
5147 (processId): Replace xmalloc with obstack_alloc for name and remove
5148 call to ada_name_string_cleanup.
5149 Remove obsolete disabled code.
5150 (name_lookup): Ditto.
5151 New interface.
5152 Use obsavestring on temp_parse_space instead of savestring
5153 on name, and remove call to ada_name_string_cleanup.
5154 Free string returned from ada_simple_renamed_entity.
5155 Use new interface to ada_lookup_symbol_list.
5156 Decomment disabled code.
5157 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5158 not types.
5159 When a type name lookup succeeds as a result of
5160 lookup_primitive_typename, check for regular type entry that has not
5161 yet been read in.
5162 Limit length of chain of renamed symbols we are willing to follow.
5163 Do not break names beginning with "standard__" into segments.
5164 (block_lookup): Use new interface to ada_lookup_symbol_list.
5165
5166 * ada-typeprint.c: Update copyright notice.
5167 (demangled_type_name): Rename to decoded_type_name.
5168 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5169 (print_range_bound): Correct handling of negative
5170 bounds that make the index type looked unsigned under STABS.
5171 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5172 (print_range_type_named): Use the builtin int type if no type
5173 corresponding to the given type name could be found.
5174 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5175 Add some bullet-proofing.
5176 (print_variant_clauses): Allow for variant branches with ___XVU
5177 encodings that are not dynamic fields.
5178 Use new interface to ada_is_tagged_type.
5179 (print_record_type): Allow for fields with ___XVE encodings that
5180 are not dynamic fields.
5181 Use new interface to ada_is_tagged_type.
5182 (ada_print_type): ada_is_array_descriptor =>
5183 ada_is_array_descriptor_type.
5184
5185 * ada-valprint.c: Update copyright notice.
5186 Include gdb_string.h
5187 Include infcall.h
5188 (ui_memcpy): New function.
5189 (ada_print_floating): New function.
5190 (ada_print_str): Order arguments correctly.
5191 Correct handling of empty arrays and arrays of 0-length items.
5192 ada_is_array_descriptor => ada_is_array_descriptor_type
5193 Print values of type System.Address in hexadecimal format.
5194 Use ada_print_floating to print floating-point numbers in Ada format.
5195 Print class tag values with type names.
5196 No longer print the address of reference values. Avoids
5197 a potential confusion.
5198 (ada_value_print): Stop printing the object type for reference
5199 values, but preserve that behavior for access types. Avoids
5200 a potential confusion.
5201 Simplify one conditional expression, as the first part is now
5202 necessarily true.
5203 ada_is_array_descriptor => ada_is_array_descriptor_type
5204 Add check for arrays for null records, and print them by hand.
5205
5206 2004-06-01 Jim Blandy <jimb@redhat.com>
5207
5208 * ppc-tdep.h: Delete unused 'regoff' member.
5209 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5210
5211 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5212
5213 Fix PR symtab/1661.
5214 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5215 (hpread_read_struct_type): Likewise.
5216
5217 2004-06-01 Andrew Cagney <cagney@gnu.org>
5218
5219 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5220 instead of xasprintf.
5221 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5222 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5223 (mi_cmd_data_list_register_names)
5224 (mi_cmd_data_list_changed_registers)
5225 (mi_cmd_data_list_register_values)
5226 (get_register, mi_cmd_data_write_register_values)
5227 (mi_cmd_data_write_register_values)
5228 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5229 (mi_cmd_target_download, mi_cmd_target_select)
5230 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5231 (mi_execute_cli_command, mi_execute_async_cli_command)
5232 (mi_execute_async_cli_command): Ditto.
5233 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5234 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5235
5236 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5237 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5238 error_last_message instead of mi_error_last_message.
5239 * mi/mi-main.c (mi_error_last_message): Delete function.
5240
5241 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5242 "invalid number of columns" error. Delete redundant "out of
5243 memory" check.
5244
5245 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5246
5247 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5248 (gregset_t, fpregset_t): Remove typedefs.
5249 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5250 (REG_OFFSET): Rename argument.
5251 (i386bsd_r_reg_offset): Rename from reg_offset.
5252 (REG_ADDR): Remove macro.
5253 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5254 functions.
5255 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5256 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5257 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5258 instead of supply_gregset.
5259 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5260 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5261 instead of fill_gregset.
5262 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5263
5264 * i386bsd-nat.c: Don't include "gregset.h".
5265 (supply_gregset, fill_gregset): Make static.
5266 (supply_fpregset, fill_fpregset): Remove.
5267 * Makefile.in (i386bsd-nat.o): Update dependencies.
5268
5269 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5270
5271 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5272 "gdb_assert.h". Con't include "gregset.h".
5273 (fbsd_make_corefile_notes): Use regset-based core file support
5274 instead off fill_gregset and fill_fpregset.
5275 * Makefile.in (fbsd-proc.o): Update dependencies.
5276
5277 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5278 instructions.
5279 (m88k_frame_prev_register): Simplify code a bit.
5280
5281 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5282 (amd64_collect_fpregset): New function.
5283 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5284
5285 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5286
5287 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5288 (i386_collect_gregset): New function.
5289 (i386_supply_fpregset): Adjust comment.
5290 (i386_collect_fpregset): New function.
5291 (i386_regset_from_core_section): Use i386_collect_gregset and
5292 i386_collect_fpregset.
5293
5294 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5295 handle VALUEP being null.
5296
5297 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5298
5299 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5300
5301 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5302
5303 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5304 assembler in OpenBSD 3.5-current.
5305 (amd64obsd_sigcontext_addr): Likewise.
5306
5307 2004-05-28 Jim Blandy <jimb@redhat.com>
5308
5309 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5310 register set, so our regcache isn't declared "legacy" and our E500
5311 pseudoregister read and write functions aren't ignored.
5312 (rs6000_register_byte, rs6000_register_raw_size,
5313 rs6000_register_virtual_type, rs6000_register_convertible,
5314 rs6000_register_convert_to_virtual,
5315 rs6000_register_convert_to_raw): Deleted.
5316 (rs6000_register_type, rs6000_convert_register_p,
5317 rs6000_register_to_value, rs6000_value_to_register): New
5318 functions.
5319 (rs6000_gdbarch_init): Don't register
5320 gdbarch_deprecated_register_size,
5321 gdbarch_deprecated_register_bytes,
5322 gdbarch_deprecated_register_byte,
5323 gdbarch_deprecated_register_raw_size,
5324 gdbarch_deprecated_register_virtual_type,
5325 gdbarch_deprecated_register_convertible,
5326 gdbarch_deprecated_register_convert_to_virtual, or
5327 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5328 register gdbarch_register_type, gdbarch_convert_register_p,
5329 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5330
5331 2004-05-26 Jim Blandy <jimb@redhat.com>
5332
5333 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5334 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5335 functions, updated to match the register numberings used in GCC.
5336 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5337 rs6000_dwarf2_reg_to_regnum as register number conversions
5338 functions for STABS and Dwarf2.
5339
5340 2004-05-26 Randolph Chung <tausq@debian.org>
5341
5342 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5343 in header file.
5344
5345 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5346
5347 * NEWS: Document new "start" command.
5348
5349 2004-05-25 Randolph Chung <tausq@debian.org>
5350
5351 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5352 hppa-linux.
5353
5354 2004-05-25 Randolph Chung <tausq@debian.org>
5355
5356 * hppa-hpux-tdep.c (offsetof): Define.
5357 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5358 (hppa32_hpux_frame_base_before_sigtramp)
5359 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5360 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5361 (hppa64_hpux_frame_base_before_sigtramp)
5362 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5363 functions.
5364 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5365 (hppa_hpux_sigtramp_frame_unwind_cache)
5366 (hppa_hpux_sigtramp_frame_this_id)
5367 (hppa_hpux_sigtramp_frame_prev_register)
5368 (hppa_hpux_sigtramp_frame_unwind)
5369 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5370 (hppa_hpux_init_abi): Register sigtramp unwinder.
5371 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5372
5373 2004-05-25 Randolph Chung <tausq@debian.org>
5374
5375 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5376 and multiple stack unwinds.
5377 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5378
5379 2004-05-25 Andrew Cagney <cagney@gnu.org>
5380
5381 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5382 * symfile-mem.h: Delete file.
5383 * symfile-mem.c: Do not include "symfile-mem.h".
5384 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5385 "struct bfd_section". When an error do not bother returning NULL.
5386 (add_symbol_file_from_memory_command): Use "struct bfd" and
5387 "struct bfd_section".
5388 * Makefile.in (symfile_mem_h): Delete.
5389 (symfile-mem.o): Update dependencies.
5390
5391 2004-05-25 Nick Roberts <nickrob@gnu.org>
5392
5393 * gdb-mi.el: New file.
5394
5395 2004-05-25 Andrew Cagney <cagney@gnu.org>
5396
5397 * inftarg.c: Include "observer.h".
5398 (child_attach, child_create_inferior): Notify inferior_created.
5399 * corelow.c: Include "observer.h".
5400 (core_open): Notify inferior_created.
5401 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5402
5403 2004-05-25 Andrew Cagney <cagney@gnu.org>
5404
5405 * target.h (struct target_ops): Add from_tty to
5406 to_create_inferior.
5407 (target_create_inferior, find_default_create_inferior): Update.
5408 * infcmd.c (run_command): Update.
5409 * wince.c (child_create_inferior): Update.
5410 * win32-nat.c (child_create_inferior): Update.
5411 * uw-thread.c (uw_thread_create_inferior): Update.
5412 * thread-db.c (thread_db_create_inferior): Update.
5413 * target.c (debug_to_create_inferior)
5414 (find_default_create_inferior): Update.
5415 (maybe_kill_then_create_inferior): Update.
5416 * sol-thread.c (sol_thread_create_inferior): Update.
5417 * remote.c (extended_remote_async_create_inferior)
5418 (extended_remote_create_inferior): Update.
5419 * remote-vx.c (vx_create_inferior): Update.
5420 * remote-st.c (st2000_create_inferior): Update.
5421 * remote-sim.c (gdbsim_create_inferior): Update.
5422 * remote-sds.c (sds_create_inferior): Update.
5423 * remote-rdp.c (remote_rdp_create_inferior): Update.
5424 * remote-rdi.c (arm_rdi_create_inferior): Update.
5425 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5426 * remote-e7000.c (e7000_create_inferior): Update.
5427 * procfs.c (procfs_create_inferior): Update.
5428 * ocd.c (ocd_create_inferior): Update.
5429 * ocd.h (ocd_create_inferior): Update.
5430 * nto-procfs.c (procfs_create_inferior): Update.
5431 * monitor.c (monitor_create_inferior): Update.
5432 * lin-lwp.c (lin_lwp_create_inferior): Update.
5433 * inftarg.c (child_create_inferior): Update.
5434 * hpux-thread.c (hpux_thread_create_inferior): Update.
5435 * gnu-nat.c (gnu_create_inferior): Update.
5436
5437 2004-05-25 Andrew Cagney <cagney@gnu.com>
5438
5439 * MAINTAINERS: Update e-mail address.
5440
5441 2004-05-24 Randolph Chung <tausq@debian.org>
5442
5443 * thread.c (info_threads_command, thread_apply_all_command)
5444 (thread_apply_command, thread_command, do_captured_thread_select):
5445 Remove HPUXHPPA-specific code.
5446
5447 2004-05-24 Randolph Chung <tausq@debian.org>
5448
5449 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5450 unused symbols.
5451 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5452 references.
5453
5454 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5455
5456 * infcmd.c (kill_if_already_running): New function, extracted
5457 from run_command().
5458 (run_command): Replace extracted code by call to
5459 kill_if_already_running().
5460 (start_command): New function.
5461 (_initialize_infcmd): Add "start" command.
5462
5463 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5464
5465 Add OpenBSD/m88k support.
5466 * NEWS (New native configurations): Mention OpenBSD/m88k.
5467 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5468 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5469 * Makefile.in (m88k_tdep_h): New variable.
5470 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5471 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5472 * configure.host: Add m88*-*-openbsd*.
5473 * configure.tgt: Add m88*-*-openbsd*.
5474
5475 2004-05-24 Jim Blandy <jimb@redhat.com>
5476
5477 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5478 to approve changes.
5479
5480 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5481
5482 * symtab.c (fixup_section): Search section table when lookup by
5483 name fails.
5484
5485 2004-05-24 Randolph Chung <tausq@debian.org>
5486
5487 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5488 be "small_struct".
5489
5490 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5491
5492 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5493 register number in regcache_raw_collect call.
5494 (m68kbsd_collect_fpregset): Likewise.
5495 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5496
5497 * regset.h (struct regset): Add back `regset' member.
5498
5499 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5500
5501 * configure.in: Check for td_pcb in `struct thread'.
5502 * configure, config.in: Regenerated.
5503
5504 * dpx2-nat.c: Remove file.
5505 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5506 (dpx2-nat.o): Remove dependencies.
5507
5508 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5509 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5510 (amd64obsd_supply_pcb): New function.
5511 (_initialize_amd64obsd_nat): Enable libkvm interface.
5512 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5513 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5514 (LOADLIBES): New variable.
5515
5516 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5517 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5518 (sparc32nbsd_supply_pcb): New function.
5519 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5520 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5521 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5522 (LOADLIBES): New variable.
5523
5524 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5525
5526 * bsd-kvm.c, bsd-kvm.h: New files.
5527 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5528 "bsd-kvm.h".
5529 (i386fbsd_supply_pcb): New function.
5530 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5531 (i386fbsd-nat.o): Update dependencies.
5532 (bsd_kvm_h): New variable.
5533 (bsd-kvm.o): New dependency.
5534 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5535 (LOADLIBES): New variable.
5536
5537 * regset.c: Tweak comment.
5538 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5539 macro.
5540 * regset.h: Update copyright year.
5541 (struct regset): Remove `descr' member, add `gdbarch' member.
5542 (regset_alloc): Adjust prototype and comment.
5543 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5544 (i386_supply_fpregset): Likewise.
5545 (i386_regset_from_core_section): Update call to regset_alloc.
5546 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5547 REGSET->arch.
5548 (i386obsd_aout_regset_from_core_section): Update call to
5549 regset_alloc.
5550 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5551 REGSET->arch.
5552 (i386nbsd_aout_regset_from_core_section): Update call to
5553 regset_alloc.
5554 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5555 REGSET->arch.
5556 (amd64_regset_from_core_section): Update call to regset_alloc.
5557 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5558 REGSET->arch.
5559 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5560 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5561 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5562 (sparc32nbsd_init_abi): Update call to regset_alloc.
5563 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5564 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5565 (sparc64obsd_init_abi): Update call to regset_alloc.
5566 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5567 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5568 (sparc64nbsd_init_abi): Update call to regset_alloc.
5569 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5570 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5571 (sparc64fbsd_init_abi): Update call to regset_alloc.
5572
5573 2004-05-22 Jim Blandy <jimb@redhat.com>
5574
5575 * ppc-tdep.h (spe_register_p): New declaration.
5576 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5577 ppc_spefscr_regnum.
5578 * rs6000-tdep.c (spe_register_p): New function.
5579 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5580 spefscr.
5581 (rs6000_gdbarch_init): Initialize the new members of the tdep
5582 structure.
5583
5584 2004-05-21 Jim Blandy <jimb@redhat.com>
5585
5586 * ppc-linux-nat.c (fetch_register): Move code back to be next
5587 to the comment that describes it. (Moved code, instead of
5588 comment, for symmetry with store_register.)
5589
5590 Allocate regset structures in the gdbarch's obstack, not using
5591 xmalloc.
5592 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5593 Add 'arch' argument. Allocate the regset on arch's obstack, not
5594 using xmalloc.
5595 * regset.h (regset_alloc): Update declaration.
5596 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5597 gdbarch argument.
5598 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5599 * i386-tdep.c (i386_regset_from_core_section): Same.
5600 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5601 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5602 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5603 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5604 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5605 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5606
5607 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5608
5609 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5610
5611 2004-05-21 Jim Blandy <jimb@redhat.com>
5612
5613 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5614 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5615
5616 2004-05-20 Jim Blandy <jimb@redhat.com>
5617
5618 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5619
5620 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5621
5622 * regset.h: Make prototype const-correct.
5623 * regset.c (regset_xmalloc): Make const-correct.
5624
5625 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5626
5627 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5628 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5629 (symbol_search_name): Declare.
5630
5631 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5632 (iter_name_next_hashed): Ditto.
5633 (iter_name_next_linear): Ditto.
5634 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5635
5636 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5637 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5638 (symbol_search_name): New function.
5639
5640 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5641
5642 * minsyms.c (build_minimal_symbol_hash_tables): Change
5643 test for adding to demangled hash table to check for difference
5644 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5645
5646 2004-05-19 Jim Blandy <jimb@redhat.com>
5647
5648 Use a constructor function to create regset structures.
5649 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5650 (struct regset): Use supply_regset_ftype. Add new
5651 'collect_regset' member.
5652 (regset_xmalloc): New declaration.
5653 * regset.c: New file.
5654 * am64-tdep.c (amd64_regset_from_core_section): Use
5655 regset_xmalloc to construct regset structures.
5656 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5657 * i386-tdep.c (i386_regset_from_core_section): Same.
5658 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5659 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5660 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5661 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5662 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5663 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5664 * Makefile.in (COMMON_OBS): Add regset.o.
5665 (regset.o): New rule.
5666
5667 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5668
5669 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5670 and pthread_cond_wait.c.
5671
5672 2004-05-18 Jim Blandy <jimb@redhat.com>
5673
5674 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5675 before the mach-specific switch, and then let the individual cases
5676 override the defaults, rather than leaving them uninitialized
5677 until the switch and then setting them in each case.
5678
5679 2004-05-18 Randolph Chung <tausq@debian.org>
5680
5681 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5682 millicode functions.
5683
5684 2004-05-18 Randolph Chung <tausq@debian.org>
5685
5686 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5687 references to dld_flags_buffer consistent.
5688
5689 2004-05-18 Randolph Chung <tausq@debian.org>
5690
5691 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5692 it for unwinding the stack.
5693
5694 2004-05-18 Randolph Chung <tausq@debian.org>
5695
5696 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5697 Undefine these so we can overide them using gdbarch.
5698
5699 2004-05-18 Randolph Chung <tausq@debian.org>
5700
5701 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5702 handling for 64-bit HPUX (elf).
5703
5704 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5705
5706 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5707 constants.
5708 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5709 * ia64-tdep.c (examine_prologue): Likewise.
5710 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5711 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5712
5713 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5714
5715 * vax-tdep.c (vax_return_value): Implement
5716 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5717
5718 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5719
5720 * vax-tdep.c (vax_return_value): Fix typo.
5721
5722 2004-05-17 Andrew Cagney <cagney@redhat.com>
5723
5724 * MAINTAINERS: Mark Salter was also responsible for
5725 testsuite/config/
5726
5727 * NEWS: Mention signal fixes.
5728
5729 2004-05-17 Randolph Chung <tausq@debian.org>
5730
5731 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5732 check to see if we are unwinding an export stub. Export stubs clobber
5733 the %rp in the call path and stores the original rp in a stack slot.
5734
5735 2004-05-17 Jim Blandy <jimb@redhat.com>
5736
5737 * MAINTAINERS: Update address for J.T. Conklin.
5738
5739 2004-05-17 Randolph Chung <tausq@debian.org>
5740
5741 * hppa-tdep.c: Remove superfluous #include's.
5742 * Makefile.in (hppa-tdep.o): Update dependencies.
5743
5744 2004-05-17 Randolph Chung <tausq@debian.org>
5745
5746 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5747 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5748 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5749 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5750 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5751 Remove static function declarations.
5752
5753 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5754
5755 * alphabsd-nat.c: Update copyright year.
5756 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5757
5758 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5759 and M68K_A2_REGNUM.
5760
5761 * m68k-tdep.c (m68k_svr4_return_value): Implement
5762 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5763
5764 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5765
5766 * sol-thread.c Update copyright year. Fix various coding
5767 standards violations. Tweak a few comments.
5768 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5769 Delete prototypes.
5770
5771 2004-05-15 Randolph Chung <tausq@debian.org>
5772
5773 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5774 as pointer instead of array reference since HPUX compiler does
5775 not accept unsized array arguments.
5776 * somsolib.c (dld_flags_buffer): Use constant array size.
5777
5778 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5779
5780 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5781 offset with decimal offset.
5782 (amd64obsd_sigcontext_addr): Return correct address for entire
5783 signal trampoline.
5784
5785 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5786 instead of get_frame_base.
5787
5788 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5789 (fill_gregset): Use regcache_raw_collect.
5790
5791 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5792 ppcobsd-tdep.c.
5793
5794 * config/sparc/tm-nbsd64.h: Remove file.
5795 * config/tm-sunos.h: Remove file.
5796
5797 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5798
5799 * rs6000-tdep.c (store_param_on_stack_p): New function,
5800 an improved version of some code extracted from skip_prologue().
5801 (skip_prologue): Use store_param_on_stack_p() to detect
5802 instructions saving a parameter on the stack. Detect when r0
5803 is used to save a parameter.
5804 Do not mark "li rx, SIMM" instructions as part of the prologue,
5805 unless the following instruction is also part of the prologue.
5806
5807 2004-05-14 Andrew Cagney <cagney@redhat.com>
5808
5809 * infrun.c (handle_inferior_event): Simplify
5810 STEP_OVER_UNDEBUGGABLE.
5811
5812 * infrun.c (handle_step_into_function): Delete function.
5813 (handle_inferior_event): Inline calls to
5814 handle_step_into_function.
5815
5816 2004-05-14 Jerome Guitton <guitton@gnat.com>
5817
5818 * rs6000-nat.c: Fix a comment.
5819
5820 2004-05-12 David Anderson <davea@sgi.com>
5821
5822 Committed by Jim Blandy <jimb@redhat.com>:
5823 * regcache.c (struct regcache_descr): fix comment spelling.
5824
5825 2004-05-13 J. Brobecker <brobecker@gnat.com>
5826
5827 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5828 Fixes a link link failure.
5829
5830 2004-05-13 J. Brobecker <brobecker@gnat.com>
5831
5832 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5833 error that was causing the build to fail.
5834
5835 2004-05-13 J. Brobecker <brobecker@gnat.com>
5836
5837 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5838 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5839
5840 2004-05-13 Andrew Cagney <cagney@redhat.com>
5841
5842 * infrun.c (handle_inferior_event): Check for
5843 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5844 calls. Update comments.
5845
5846 2004-05-13 Jim Blandy <jimb@redhat.com>
5847
5848 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5849 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5850 (store_regs_user_thread, store_regs_kernel_thread): Use
5851 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5852 * ppc-linux-nat.c (fill_gregset): Same.
5853 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5854 (ppc_linux_sigtramp_cache): Same.
5855 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5856 (ppcnbsd_sigtramp_cache_init): Same.
5857 * rs6000-nat.c (fetch_core_registers): Same.
5858 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5859 (rs6000_frame_cache): Same.
5860
5861 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5862 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5863 of assuming that the gprs are numbered starting with zero.
5864 * ppc-linux-nat.c (fill_gregset): Same.
5865 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5866 * ppcnbsd-nat.c (getregs_supplies): Same.
5867 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5868 * rs6000-nat.c (fetch_core_registers): Same.
5869 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5870
5871 2004-05-07 Michael Snyder <msnyder@redhat.com>
5872
5873 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5874 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5875
5876 2004-05-13 Andrew Cagney <cagney@redhat.com>
5877
5878 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5879
5880 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5881
5882 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5883 base_address for shared libraries.
5884
5885 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5886
5887 * MAINTAINERS (write after approval): Add myself.
5888
5889 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5890
5891 * breakpoint.c (bpstat_stop_status): Add new argument
5892 STOPPED_BY_WATCHPOINT. Use it instead of testing
5893 target_stopped_data_address agaist 0 to check whether
5894 or not we stopped due to a hardware watchpoint.
5895 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5896 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5897 with new argument.
5898
5899 2004-05-12 Jim Blandy <jimb@redhat.com>
5900
5901 * configure.in: When checking whether we should use the -bbigtoc
5902 option, don't forget to restore the original value of LDFLAGS.
5903 * configure: Regenerated.
5904
5905 2004-05-12 Andrew Cagney <cagney@redhat.com>
5906
5907 * thread.c (load_infrun_state): Delete step_sp.
5908 * infrun.c (context_switch): Ditto.
5909 * inferior.h (step_sp): Ditto.
5910 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5911 * gdbthread.h (struct thread_info, save_infrun_state)
5912 (restore_infrun_state): Ditto.
5913
5914 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5915
5916 * MAINTAINERS (write after approval): Add myself.
5917
5918 2004-05-12 Andrew Cagney <cagney@redhat.com>
5919
5920 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5921 eliminate reference to step_sp.
5922 (struct execution_control_state, init_execution_control_state)
5923 (handle_inferior_event, keep_going): Delete update_step_sp and
5924 step_sp.
5925 * infcmd.c (step_sp): Note that variable is unused.
5926
5927 2004-05-11 Andrew Cagney <cagney@redhat.com>
5928
5929 * infrun.c (step_over_function): Delete function.
5930 (handle_step_into_function): Use insert_step_resume_breakpoint.
5931 (insert_step_resume_breakpoint): Fix assertion.
5932
5933 2004-05-11 Nick Roberts <nickrob@gnu.org>
5934
5935 * utils.c (defaulted_query): Just use the normal query input type
5936 when printing the annotations.
5937
5938 2004-05-11 Andrew Cagney <cagney@redhat.com>
5939
5940 * infrun.c (handle_inferior_event): Simplify code handling
5941 step-into or return-from a signal trampoline.
5942
5943 2004-05-11 Andrew Cagney <cagney@redhat.com>
5944
5945 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5946 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5947
5948 2004-05-10 Jim Blandy <jimb@redhat.com>
5949
5950 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5951 with a call to internal_error.
5952
5953 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5954 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5955 processor variant lacks those registers.
5956 (ppc_floating_point_unit_p): Change description to make it clear
5957 that this returns info about the ISA, not the ABI.
5958 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5959 return true or false by checking tdep->ppc_fp0_regnum and
5960 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5961 arch/mach switching done in rs6000_gdbarch_init; it's better to
5962 keep that logic there, and just check the results here.
5963 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5964 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5965 floating-point registers.
5966 (ppc_supply_fpregset, ppc_collect_fpregset)
5967 (rs6000_push_dummy_call, rs6000_extract_return_value)
5968 (rs6000_store_return_value): Assert that we have floating-point
5969 registers.
5970 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5971 (rs6000_frame_cache): Don't note the locations at which
5972 floating-point registers were saved if we have no fprs.
5973 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5974 registers.
5975 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5976 (store_regs_user_thread, store_regs_kernel_thread): Only call
5977 supply_fprs / fill_fprs if we actually have floating-point
5978 registers.
5979 (special_register_p): Check ppc_fpscr_regnum before matching
5980 against it.
5981 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5982 supply / collect fpscr if we don't have it.
5983 * ppc-bdm.c: #include "gdb_assert.h".
5984 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5985 have floating-point registers, since I can't test this code on
5986 FP-free systems to adapt it.
5987 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5988 fpscr and floating point register numbers if they don't exist.
5989 (fetch_register): Assert that we have floating-point registers
5990 before we reach the code that handles them.
5991 (store_register): Same. And use tdep instead of calling
5992 gdbarch_tdep again.
5993 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5994 don't have them.
5995 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5996 fprs and fpscr if we don't have them.
5997 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5998 don't have them.
5999 * ppcnbsd-nat.c: #include "gdb_assert.h".
6000 (getfpregs_supplies): Assert that we have floating-point registers.
6001 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6002 * ppcobsd-tdep.c: #include "gdb_assert.h".
6003 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6004 have floating-point registers.
6005 * rs6000-nat.c (regmap): Don't match against the fpscr and
6006 floating point register numbers if they don't exist.
6007 (fetch_inferior_registers, store_inferior_registers,
6008 fetch_core_registers): Only fetch / store / supply the
6009 floating-point registers and the fpscr if we have them.
6010 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6011 (ppcobsd-tdep.o): Update dependencies.
6012
6013 2004-05-10 Andrew Cagney <cagney@redhat.com>
6014
6015 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6016 (context_switch): Do not switch through_sigtramp_breakpoint.
6017 * gdbthread.h (save_infrun_state, load_infrun_state)
6018 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6019 and structure member.
6020 * thread.c (load_infrun_state, save_infrun_state): Update.
6021
6022 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6023
6024 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6025
6026 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6027
6028 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6029 throughout.
6030 * aclocal.m4: Regenerate.
6031
6032 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6033
6034 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6035
6036 2004-05-10 Andrew Cagney <cagney@redhat.com>
6037
6038 * infrun.c (check_sigtramp2): Delete function.
6039 (handle_inferior_event): When single stepping, and taking a
6040 signal, set a breakpoint at the signal return address. Delete
6041 redundant calls to check_sigtramp2.
6042 (insert_step_resume_breakpoint): New function.
6043 (through_sigtramp_breakpoint, handle_inferior_event)
6044 (follow_exec, wait_for_inferior, fetch_inferior_event)
6045 (currently_stepping, keep_going): Delete most uses of
6046 through_sigtramp_breakpoint, not that it should be deleted.
6047 (delete_breakpoint_current_contents): Delete function.
6048
6049 2004-05-10 Randolph Chung <tausq@debian.org>
6050
6051 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6052 target.
6053 * config/pa/tm-linux.h: New file.
6054
6055 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6056
6057 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6058 of prefixes. Don't print the prefix twice in the CLI.
6059
6060 2004-05-10 Jim Blandy <jimb@redhat.com>
6061
6062 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6063 collect all the gprs.
6064
6065 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6066 loop collecting gprs.
6067
6068 2004-05-09 Andrew Cagney <cagney@redhat.com>
6069
6070 * remote-vx.c (net_step): Delete step-range code.
6071 * remote.c (remote_resume, init_all_packet_configs)
6072 (set_remote_protocol_E_packet_cmd)
6073 (show_remote_protocol_E_packet_cmd)
6074 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6075 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6076 (show_remote_protocol_e_packet_cmd): Ditto.
6077
6078 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6079
6080 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6081
6082 * hppa-tdep.h: Update copyright year.
6083 (struct trad_frame_saved_reg): Add opaque declaration.
6084
6085 * amd64-tdep.c (amd64_return_value): Implement
6086 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6087
6088 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6089 (m68k_value_to_register): New functions.
6090 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6091 value_to_register.
6092
6093 * defs.h (enum return_value_convention): Add
6094 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6095 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6096 * infcmd.c (legacy_return_value): New function.
6097 (print_return_value): Rwerite to implement
6098 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6099 * values.c (using_struct_return): Check for inequality to
6100 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6101 RETURN_VALUE_STRUCT_CONVENTION.
6102 * i386-tdep.c (i386_return_value): Implement
6103 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6104
6105 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6106 include "symtab.h", "opcode/vax.h" and "inferior.h".
6107 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6108 to read_memory_unsigned_integer.
6109 (vax_gdbarch_init): Reorder.
6110 (_initialize_vax_tdep): Spell out prototype.
6111 * Makefile.in (vax-tdep.o): Update dependencies.
6112
6113 2004-05-08 Andrew Cagney <cagney@redhat.com>
6114
6115 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6116 * target.c (target_detach, target_disconnect): Ditto.
6117
6118 * infcall.c (call_function_by_hand): When no
6119 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6120 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6121 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6122 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6123 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6124
6125 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6126 * gdbarch.h, gdbarch.c: Re-generate.
6127 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6128 deprecated_fix_call_dummy.
6129 * v850-tdep.c (v850_gdbarch_init): Ditto.
6130 * infcall.c (call_function_by_hand): Do not call
6131 DEPRECATED_FIX_CALL_DUMMY.
6132
6133 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6134 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6135 * gdbarch.h, gdbarch.c: Re-generate.
6136 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6137 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6138 deprecated_sizeof_call_dummy_words.
6139 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6141 * v850-tdep.c (v850_gdbarch_init): Ditto.
6142 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6143 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6144 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6146 * arch-utils.h (legacy_call_dummy_words)
6147 (legacy_sizeof_call_dummy_words): Delete declarations.
6148 * arch-utils.c (legacy_call_dummy_words)
6149 (legacy_sizeof_call_dummy_words): Delete variables.
6150
6151 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6152 * gdbarch.h, gdbarch.c: Re-generate.
6153 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6154 * infcall.c (call_function_by_hand): Eliminate call to
6155 DEPRECATED_PUSH_DUMMY_FRAME.
6156 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6157 push_dummy_frame.
6158 (ns32k_push_dummy_frame): Delete function.
6159
6160 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6161 deprecated_call_dummy_breakpoint_offset or
6162 deprecated_call_dummy_start_offset.
6163 * dummy-frame.c, arm-tdep.c: Update comments.
6164 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6165 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167
6168 * infcall.c (legacy_push_dummy_code): Delete function.
6169 (push_dummy_code): Delete call.
6170
6171 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6172 * gdbarch.h, gdbarch.c: Re-generate.
6173 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6174 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6175 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6176 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6177
6178 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6179 (struct frame_info): Delete opaque declaration.
6180 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6181 * frame.c (get_frame_type): Delete call.
6182
6183 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6184 pc_in_call_dummy.
6185 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6186 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6187
6188 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6189
6190 * alphanbsd-tdep.c: Include "gdb_string.h".
6191 * armnbsd-tdep.c: Update copyright year.
6192 Include "gdb_string.h".
6193 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6194 dependencies.
6195
6196 * delta68-nat.c: Remove file.
6197 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6198 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6199 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6200 (delta68-nat.o): Remove dependency.
6201
6202 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6203 function.
6204 (m68k_gdbarch_init): Don't set
6205 deprecated_frameless_function_invocation.
6206
6207 2004-05-07 Randolph Chung <tausq@debian.org>
6208
6209 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6210 read_memory_nobpt for code reading when doing frame unwinding.
6211 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6212
6213 2004-05-07 Randolph Chung <tausq@debian.org>
6214
6215 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6216 instead of sp, handle sigaltstack case.
6217 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6218 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6219 signal handler and not that of the caller.
6220 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6221 hppa_linux_sigtramp_find_sigcontext.
6222
6223 2004-05-07 Randolph Chung <tausq@debian.org>
6224
6225 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6226 hppa-linux-nat.c.
6227 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6228 * hppa-linux-nat.c (fetch_register, store_register): Define.
6229 (fetch_inferior_registers, store_inferior_registers): Define.
6230 (supply_gregset): Add comment and clean up some unneeded code.
6231 (fill_gregset): Add comment and fix so that it saves registers in
6232 the right place in the gregset.
6233 (fill_fpregset): Fix buffer overrun problem.
6234 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6235
6236 2004-05-07 Randolph Chung <tausq@debian.org>
6237
6238 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6239 do common handling of the pcoqt register.
6240 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6241 to use helper function.
6242 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6243 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6244 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6245 generic fallback unwinder when all else fails.
6246 (hppa_gdbarch_init): Add fallback sniffer.
6247 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6248 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6249 to use helper function.
6250
6251 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6252
6253 * config/djgpp/fnchange.lst: Add translation rules for
6254 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6255
6256 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6257
6258 * frame.c (get_prev_frame_1): Work around GCC bug.
6259 * frame.h: Add comment about GCC bug.
6260
6261 2004-05-07 Andrew Cagney <cagney@redhat.com>
6262
6263 * observer.c: Include "commands.h" and "gdbcmd.h".
6264 (observer_debug, _initialize_observer): Add the
6265 command "set/show debug observer".
6266 * observer.sh: When observer debugging, log notify calls.
6267 * Makefile.in (observer.o): Update dependencies.
6268
6269 2004-05-07 Jason Molenda (jmolenda@apple.com)
6270
6271 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6272
6273 2004-05-07 Jim Blandy <jimb@redhat.com>
6274
6275 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6276 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6277 to recognize gpr regnums, instead of assuming that
6278 tdep->ppc_fp0_regnum marks the end of the general-purpose
6279 registers.
6280
6281 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6282 the given architecture has floating-point registers.
6283
6284 2004-05-07 Andrew Cagney <cagney@redhat.com>
6285
6286 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6287 macro defined to 1.
6288 * gdbarch.h, gdbarch.c: Re-generate.
6289 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6290 deprecated_use_generic_dummy_frames.
6291
6292 2004-05-07 Brian Ford <ford@vss.fsi.com>
6293
6294 * NEWS: Mention Cygwin DWARF 2 support.
6295
6296 2004-05-07 Andrew Cagney <cagney@redhat.com>
6297
6298 * objfiles.h (struct entry_info): Delete unused fields
6299 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6300 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6301 * mipsread.c (mipscoff_symfile_read): Update.
6302 * mdebugread.c (parse_partial_symbols): Update.
6303 * dwarfread.c (read_file_scope): Update.
6304 * dwarf2read.c (read_file_scope): Update.
6305 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6306 * coffread.c (complete_symtab): Update.
6307
6308 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6309
6310 * infcall.c (_initialize_infcall): Fix typo.
6311
6312 2004-05-07 Andrew Cagney <cagney@redhat.com>
6313
6314 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6315 * command.h (add_setshow_zinteger_cmd): Declare.
6316
6317 2004-05-06 Randolph Chung <tausq@debian.org>
6318
6319 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6320 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6321 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6322 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6323 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6324 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6325 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6326 definitions ...
6327 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6328 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6329 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6330 (hppa64_hpux_frame_find_saved_regs_in_sig)
6331 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6332 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6333 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6334 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6335 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6336 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6337 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6338 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6339 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6340 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6341 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6342 (hppa32_register_type, hppa_cannot_store_register)
6343 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6344 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6345 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6346 * pa64solib.c (pa64_solib_have_load_event)
6347 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6348 (pa64_solib_unloaded_library_pathname): Likewise.
6349 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6350 (som_solib_library_pathname): Likewise.
6351
6352 2004-05-05 Jim Ingham <jingham@apple.com>
6353
6354 * breakpoint.c (create_breakpoints): Copy the ignore count and
6355 thread id over from the pended breakpoint to the actual
6356 breakpoint.
6357
6358 2004-05-05 Andrew Cagney <cagney@redhat.com>
6359
6360 * gdbarch.sh (PARM_BOUNDARY): Delete.
6361 gdbarch.h, gdbarch.c: Re-generate.
6362 * valops.c (PARM_BOUNDARY): Delete macro.
6363 (value_push): Delete PARM_BOUNDARY code.
6364 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6365
6366 2004-05-04 Jim Blandy <jimb@redhat.com>
6367
6368 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6369 Don't assume that the gprs, fprs, and UISA sprs are
6370 contiguous, start at register number zero, and end with fpscr.
6371 Instead, use the numbers from the tdep structure.
6372
6373 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6374 should no longer be used in code specific to the RS6000 and its
6375 derivatives.
6376 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6377 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6378 tdep->ppc_fp0_regnum.
6379 (ppc_supply_fpregset, ppc_collect_fpregset)
6380 (rs6000_push_dummy_call, rs6000_extract_return_value)
6381 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6382 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6383 FP0_REGNUM.
6384 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6385 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6386 Same.
6387 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6388 bdm_ppc_store_registers): Same.
6389 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6390 (store_register, fill_fpregset): Same.
6391 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6392 (ppc_linux_supply_fpregset): Same.
6393 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6394 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6395 Same.
6396 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6397 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6398 ppc64_sysv_abi_return_value): Same.
6399 * rs6000-nat.c (regmap, fetch_inferior_registers)
6400 (store_inferior_registers, fetch_core_registers): Same.
6401
6402 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6403
6404 * m68knbsd-nat.c: Remove file.
6405 * m68knbsd-tdep.c: Remove file.
6406 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6407 dependencies.
6408 * configure.host: Add m68k-*-netbsdelf*.
6409 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6410 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6411 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6412 (XM_FILE): Remove.
6413 * config/m68k/nbsdelf.mh: New file.
6414 * config/m68k/nbsd.mt: New file.
6415 * config/m68k/nbsdaout.mt: Remove file.
6416 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6417 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6418 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6419 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6420 (use_struct_convention): Remove prototype.
6421 (USE_STRUCT_CONVENTION): Remove define.
6422 * config/m68k/xm-nbsd.h: Remove file.
6423
6424 2004-05-04 Michael Snyder <msnyder@redhat.com>
6425
6426 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6427 reg_struct_return method (as gcc usually does for cross targets).
6428
6429 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6430
6431 Committed by Andrew Cagney.
6432 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6433 alignment padding when accessing ucontext struct members.
6434
6435 2004-05-04 Jim Blandy <jimb@redhat.com>
6436
6437 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6438 'ppc_gplast_regnum' member.
6439 (ppc_num_gprs): New enum constant.
6440 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6441 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6442 * rs6000-nat.c (regmap, fetch_inferior_registers,
6443 store_inferior_registers): Same.
6444 * rs6000-tdep.c (e500_pseudo_register_read)
6445 (e500_pseudo_register_write): Same.
6446 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6447
6448 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6449 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6450 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6451 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6452 FPLAST_REGNUM.
6453 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6454 Same.
6455 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6456 * rs6000-nat.c (regmap, fetch_inferior_registers)
6457 (store_inferior_registers): Same.
6458
6459 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6460 with FPLAST_REGNUM.
6461
6462 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6463
6464 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6465 failure detected by recent versions of GCC.
6466 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6467 to be consistent with the usage in dwarf2_create_include_psymtab.
6468
6469 2004-05-03 Michael Snyder <msnyder@redhat.com>
6470
6471 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6472 (heuristic_proc_start): Whitespace cleanup.
6473
6474 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6475
6476 * sun3-nat.c: Remove file.
6477 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6478 dependencies.
6479 (ALLDEPFILES): Remove sun3-nat.c.
6480 (sun3-nat.o): Remove dependencies.
6481
6482 * i386-interix-nat.c, i386-interix-tdep.c,
6483 config/i386/nm-interix.h, config/i386/interix.mh,
6484 config/i386/interix.mt: Remove files.
6485 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6486 dependencies.
6487
6488 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6489
6490 * m68k-tdep.h (struct gdbarch_tdep): Add member
6491 struct_value_regnum.
6492 (m68k_svr4_init_abi): New prototype.
6493 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6494 different calling conventions.
6495 (m68k_extract_return_value): Remove code dealing with single-field
6496 structs.
6497 (m68k_store_return_value): Remove code dealing with single-field
6498 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6499 (m68k_extract_struct_value_address): Remove function.
6500 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6501 (m68k_reg_struct_return_p, m68k_return_value)
6502 (m68k_svr4_return_value): New functions.
6503 (m68k_use_struct_convention): Remove function.
6504 (m68k_push_dummy_call): Use new struct_value_regnum member of
6505 `struct gdbarch_tdep' instead of hardcoded register number to
6506 store STRUCT_ADDR.
6507 (m68k_svr4_init_abi): New function.
6508 (m68k_gdbarch_init): Don't set extract_return_value,
6509 store_return_values, deprecated_extract_struct_value_address and
6510 use_struct_convention. Set return_value instead. Initialize new
6511 struct_value_regnum member of `struct gdbarch_tdep'.
6512 * m68klinux-tdep.c: Update copyright year.
6513 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6514 (m68k_linux_extract_struct_value_address): Remove function.
6515 (m68k_linux_init_abi): Don't set extract_return_value,
6516 store_return_values, deprecated_extract_struct_value_address and
6517 use_struct_convention. Call m68k_svr4_init_abi but override the
6518 new struct_value_regnum member of `struct gdbarch_tdep'.
6519 * Makefile.in (m68k-tdep.o): Update dependencies.
6520
6521 2004-05-03 J. Brobecker <brobecker@gnat.com>
6522
6523 * dwarf2read.c (line_header): Add new included_p field in
6524 field file_names.
6525 (partial_die_info): New field has_stmt_list. New field line_offset.
6526 (dwarf2_create_include_psymtab): New function.
6527 (dwarf2_build_include_psymtabs): New function.
6528 (add_file_name): Add forward declaration. Initialize new field.
6529 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6530 to be able to determine the list of files included by the
6531 given unit, and build their associated psymtabs.
6532 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6533 files as well.
6534 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6535 (read_file_scope): Update call to dwarf_decode_lines.
6536 (read_partial_die): Handle DW_AT_stmt_list attributes.
6537
6538 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6539
6540 Unfix PR gdb/1626.
6541 * configure.in: Revert special case for osf5.*.
6542 * configure: Regenerate.
6543
6544 2004-05-02 Jim Blandy <jimb@redhat.com>
6545
6546 Move the symbol-file-from-memory functions into their own file.
6547 * symfile-mem.c, symfile-mem.h: New files.
6548 * symfile.c (symbol_file_add_from_bfd): New function.
6549 (symbol_file_add): Call symbol_file_add_from_bfd.
6550 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6551 Moved to symfile-mem.c.
6552 (_initialize_symfile): Move definition of
6553 add-symbol-file-from-memory command to symfile-mem.c.
6554 * symfile.h (symbol_file_add_from_bfd): New declaration.
6555 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6556 * config/powerpc/linux.mt (TDEPFILES): Same.
6557 * Makefile.in (SFILES): Add symfile-mem.c.
6558 (symfile_mem_h): New variable.
6559 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6560 (symfile-mem.o): New rule.
6561
6562 2004-05-01 Andrew Cagney <cagney@redhat.com>
6563
6564 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6565 frame_find_by_id instead of frame_relative_level.
6566 (do_enable_breakpoint): Ditto.
6567 * thread.c: Update copyright.
6568 (info_threads_command): Ditto, simplify.
6569
6570 * frame.c (deprecated_generic_get_saved_register): Delete
6571 function, moved to "xstormy16-tdep.c".
6572 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6573 deprecated_generic_get_saved_register from "frame.c".
6574 (xstormy16_frame_saved_register): Call
6575 xstormy16_get_saved_register.
6576 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6577 static.
6578 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6579 * frame.h (deprecated_generic_get_saved_register): Delete.
6580
6581 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6582
6583 * dwarfread.c: Update documentation on the state of dwarf-1.
6584
6585 2004-05-01 Andrew Cagney <cagney@redhat.com>
6586
6587 * stack.c (select_frame_command): Delete call to
6588 frame_relative_level.
6589 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6590 Delete #if0 code.
6591 (frame_info): Do not print FRAMELESS.
6592 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6593 (catch_info): Delete #if0 code.
6594
6595 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6596 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6597 of frame_relative_level.
6598 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6599 to SENTINEL_FRAME.
6600 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6601 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6602 frame_relative_level.
6603
6604 * frame.h (deprecated_set_frame_type): Delete declaration.
6605 * frame.c (deprecated_set_frame_type): Delete function, update
6606 comments.
6607
6608 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6609 * gdbarch.h, gdbarch.c: Re-generate.
6610 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6611 (shnbsd_pc_in_sigtramp): Delete.
6612 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6613 pc_in_sigtramp.
6614 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6615 pc_in_sigtramp.
6616 * frame.h: Update comments.
6617 * ppc-linux-tdep.c: Update comments.
6618 * breakpoint.c (bpstat_what): Update comments.
6619
6620 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6621 m68klinux-tdep.o's dependencies, were previously added to
6622 m68klinux-nat.o.
6623
6624 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6625 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6626 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6627 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6628 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6629
6630 * Makefile.in (m68klinux-nat.o): Update dependencies.
6631 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6632 (m68k_linux_sigtramp_frame_cache)
6633 (m68k_linux_sigtramp_frame_this_id)
6634 (m68k_linux_sigtramp_frame_prev_register)
6635 (m68k_linux_sigtramp_frame_unwind)
6636 (m68k_linux_sigtramp_frame_sniffer)
6637 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6638 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6639 names, use trad-frame.h.
6640 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6641 (struct m68k_sigtramp_info): Delete.
6642 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6643 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6644 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6645 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6646 "m68klinux-tdep.c".
6647
6648 * infrun.c (check_sigtramp2): Delete check for
6649 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6650
6651 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6652
6653 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6654
6655 2004-05-01 Andrew Cagney <cagney@redhat.com>
6656
6657 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6658 (frv_linux_sigtramp_frame_cache)
6659 (frv_linux_sigtramp_frame_this_id)
6660 (frv_linux_sigtramp_frame_prev_register)
6661 (frv_linux_sigtramp_frame_unwind)
6662 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6663 include "linux" in function and variable names, directly call
6664 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6665 the latest trad-frame code.
6666 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6667 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6668 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6669 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6670 * frv-tdep.c (frv_sigtramp_frame_cache)
6671 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6672 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6673 frv-linux-tdep.c.
6674 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6675 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6676 (frv_set_sigcontext_reg_addr): Delete function.
6677
6678 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6679 (DEPRECATED_SIGTRAMP_END): Delete.
6680 * gdbarch.h, gdbarch.c: Re-generate.
6681 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6682 * config/vax/tm-vaxbsd.h: Update copyright.
6683 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6684 (DEPRECATED_IN_SIGTRAMP): Define.
6685 * config/m68k/tm-nbsd.h: Update copyright.
6686 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6687 (DEPRECATED_IN_SIGTRAMP): Define.
6688
6689 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6690
6691 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6692 encondings. Fixes PR gdb/1628.
6693
6694 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6695 DW_CFA_restore state without a matching DW_CFA_remember_state
6696 instead of aborting. Fixes PR backtrace/1589.
6697
6698 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6699
6700 * MAINTAINERS: Add self as AIX maintainer.
6701 Update my e-mail address in write-after-approval section.
6702
6703 2004-04-30 Andrew Cagney <cagney@redhat.com>
6704
6705 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6706 (legacy_get_prev_frame): Ditto.
6707
6708 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6709 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6710 * mipsread.c (sigtramp_address): Delete extern variable.
6711 (mipscoff_new_init): Delete reference.
6712 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6713 (fixup_sigtramp): Delete function.
6714 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6715 (fixup_sigtramp): Delete declarations.
6716
6717 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6718 deprecated_pc_in_sigtramp.
6719 (ppcnbsd_pc_in_sigtramp): Delete function.
6720
6721 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6722
6723 * config/m68k/nm-nbsd.h: Tweak comments.
6724 * config/m68k/nm-nbsdaout.h: Likewise.
6725
6726 2004-04-30 Andrew Cagney <cagney@redhat.com>
6727
6728 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6729 legacy_pc_in_sigtramp.
6730 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6731
6732 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6733
6734 Add OpenBSD/m68k support.
6735 * NEWS (New native configurations): Mention OpenBSD/m68k.
6736 * m68kbsd-tdep.c: New file.
6737 * m68kbsd-nat.c: New file.
6738 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6739 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6740 * configure.host: Add m68k-*-openbsd.
6741 * configure.tgt: Add m68k-*-openbsd.
6742 * config/m68k/tm-obsd.h: New file.
6743 * config/m68k/obsd.mt: New file.
6744 * config/m68k/obsd.mh: New file.
6745 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6746 m68kbsd-tdep.c.
6747
6748 2004-04-30 Andrew Cagney <cagney@redhat.com>
6749
6750 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6751 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6752
6753 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6754
6755 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6756 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6757
6758 2004-04-30 Brian Ford <ford@vss.fsi.com>
6759
6760 Revert 2004-04-16 change.
6761 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6762 (i386_coff_init_abi): Remove.
6763 * i386-tdep.h (i386_coff_init_abi): Remove.
6764 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6765
6766 2004-04-30 Andrew Cagney <cagney@redhat.com>
6767
6768 * blockframe.c (find_pc_partial_function): Delete use of
6769 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6770 DEPRECATED_SIGTRAMP_END.
6771
6772 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6773 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6774 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6775 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6776 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6777
6778 * defs.h (deprecated_inside_entry_file): Delete declaration.
6779 * blockframe.c (deprecated_inside_entry_file): Delete function.
6780 (legacy_frame_chain_valid): Delete call.
6781 * sh64-tdep.c (sh64_frame_chain): Delete call.
6782 * objfiles.h: Update comments.
6783 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6784 call.
6785 * frame.c (get_prev_frame): Delete call, update comments.
6786
6787 2004-04-30 Brian Ford <ford@vss.fsi.com>
6788
6789 * MAINTAINERS (Write After Approval): Add myself.
6790
6791 2004-04-30 Andrew Cagney <cagney@redhat.com>
6792
6793 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6794 * gdbarch.h, gdbarch.c: Re-generate.
6795 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6796 code.
6797
6798 2004-04-30 Andrew Cagney <cagney@redhat.com>
6799
6800 * gdb-events.sh (selected_thread_changed)
6801 (selected_frame_level_changed, target_changed): Delete.
6802 * gdb-events.h, gdb-events.c: Re-generate.
6803 * valops.c (value_assign): Update.
6804 * stack.c (select_frame_command, up_silently_base)
6805 (down_silently_base): Update.
6806
6807 2004-04-29 Andrew Cagney <cagney@redhat.com>
6808
6809 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6810 registers correctly.
6811 (print_gp_register_row, mips32_heuristic_proc_desc)
6812 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6813 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6814 references to mips_isa_regsize.
6815
6816 2004-04-29 Andrew Cagney <cagney@redhat.com>
6817
6818 * mips-tdep.c (struct gdbarch_tdep): Delete
6819 mips_fp_register_double.
6820 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6821 mips_abi_regsize.
6822 (mips_gdbarch_init): Do not set mips_fp_register_double.
6823 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6824
6825 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6826
6827 Committed by Andrew Cagney.
6828 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6829 function calls.
6830
6831 2004-04-29 Andrew Cagney <cagney@redhat.com>
6832
6833 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6834 gdbarch, use mips_abi, update callers.
6835 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6836 mips_abi_regsize, update callers.
6837 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6838 mips_default_abi_regsize.
6839 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6840 mips_default_abi_regsize.
6841
6842 2004-04-29 Andrew Cagney <cagney@redhat.com>
6843
6844 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6845 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6846 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6847 mips_default_abi_regsize.
6848 (mips_isa_regsize): Rename mips_regisze.
6849 * mipsnbsd-tdep.c: Update.
6850 * mips-linux-tdep.c: Update.
6851 * irix5-nat.c: Update.
6852 * mips-tdep.h (mips_isa_regsize): Update.
6853
6854 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6855 Delete all disabled code.
6856 * gdb-events.h, gdb-events.c: Re-generate.
6857
6858 2004-04-19 Jerome Guitton <guitton@gnat.com>
6859 Mark Kettenis <kettenis@gnu.org>
6860
6861 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6862 the function begins with a branch instruction.
6863
6864 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6865
6866 * i386-tdep.c: Fix spelling mistakes.
6867
6868 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6869 Andrew Cagney <cagney@redhat.com>
6870
6871 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6872 <sys/proc.h>.
6873 * acconfig.h: Provide default _KMEMUSER value.
6874 * config.in, configure: Re-generate.
6875 * NEWS: Mention fix.
6876
6877 2004-04-24 Randolph Chung <tausq@debian.org>
6878
6879 * configure.host (hppa*-*-linux*): New target.
6880 * configure.tgt (hppa*-*-linux*): Likewise.
6881 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6882 gdbarch_init_osabi() call earlier so that osabi-specific frame
6883 unwinders can be registered first.
6884 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6885 hppa-linux-nat.c.
6886 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6887 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6888 * config/pa/linux.mh: New file.
6889 * config/pa/linux.mt: New file.
6890 * config/pa/nm-linux.h: New file.
6891 * config/pa/xm-linux.h: New file.
6892 * hppa-linux-nat.c: New file.
6893 * hppa-linux-tdep.c: New file.
6894
6895 2004-04-28 Randolph Chung <tausq@debian.org>
6896
6897 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6898 return values.
6899 (hppa32_push_dummy_call): Fix small struct and floating point argument
6900 passing, and make sure the stack frame is properly aligned.
6901
6902 2004-04-28 Andrew Cagney <cagney@redhat.com>
6903
6904 * stack.c (print_stack_frame): Fix description.
6905
6906 * NEWS: Mention gdb/gdbserver/configure execute permission
6907 changed. PR server/519.
6908
6909 2004-04-28 Andrew Cagney <cagney@redhat.com>
6910
6911 * stack.c (print_stack_frame_stub): Delete declaration.
6912 (struct print_stack_frame_args, print_stack_frame)
6913 (print_frame_info, print_frame): Replace "source" with print what.
6914 Replace "print" with "print_level". Replace "args" with
6915 "print_args".
6916 * frame.h (show_and_print_stack_frame, print_stack_frame)
6917 (print_frame_info): Update declarations.
6918 * stack.c (select_and_print_frame, frame_command)
6919 (current_frame_command, up_command, down_command): Update calls -
6920 use get_selected_frame, pass "enum print_what" for source, do not
6921 call frame_relative_level.
6922 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6923 * remote-rdp.c (remote_rdp_open): Ditto.
6924 * remote-mips.c (common_open): Ditto.
6925 * remote-e7000.c (e7000_start_remote): Ditto.
6926 * ocd.c (ocd_start_remote): Ditto.
6927 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6928 * infrun.c (normal_stop): Ditto.
6929 * inflow.c (kill_command): Ditto.
6930 * infcmd.c (finish_command): Ditto.
6931 * corelow.c (core_open): Ditto.
6932 * tracepoint.c (finish_tfind_command): Ditto.
6933 * thread.c (info_threads_command, info_threads_command)
6934 (restore_current_thread, do_captured_thread_select): Ditto.
6935 * ada-tasks.c (task_command): Ditto.
6936
6937 2004-04-26 Orjan Friberg <orjanf@axis.com>
6938
6939 * frame.c: Include "observer.h".
6940 (frame_observer_target_changed): New function.
6941 (_initialize_frame): Attach target_changed observer.
6942 * regcache.c: Include "observer.h".
6943 (regcache_observer_target_changed): New function.
6944 (_initialize_regcache): Attach target_changed observer.
6945 * valops.c: Include "observer.h".
6946 (value_assign): Notify target_changed event when modifying register.
6947 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6948
6949 2004-04-26 Orjan Friberg <orjanf@axis.com>
6950
6951 From Paul Koning <pkoning@equallogic.com>:
6952 * breakpoint.c (free_valchain): New function.
6953 (insert_bp_location, delete_breakpoint): Use free_valchain.
6954 (remove_breakpoint): Do not remove the valchain.
6955 (bpstat_stop_status): If not stopped by watchpoint, skip
6956 watchpoints when generating stop status list.
6957 * infrun.c (handle_inferior_event): Make
6958 stepped_after_stopped_by_watchpoint a global variable.
6959 * remote.c (remote_stopped_data_address): Return watch data
6960 address rather than zero if stepped_after_stopped_by_watchpoint is
6961 set.
6962
6963 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6964
6965 Fix PR gdb/1626.
6966 * configure.in: Check for curses after termcap.
6967 On osf5.*, do not check for ncurses.
6968 * configure: Regenerate.
6969
6970 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6971
6972 * ppcobsd-nat.c: Include "ppc-tdep.h".
6973 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6974
6975 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6976 Fixes PR tdep/1623 and PR tdep/1624.
6977
6978 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6979
6980 * xmodem.h, xmodem.c: Remove files.
6981 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6982
6983 2004-04-23 Randolph Chung <tausq@debian.org>
6984
6985 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6986 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6987 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6988 for handling stackless frames.
6989 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6990
6991 2004-04-23 Randolph Chung <tausq@debian.org>
6992
6993 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6994 starts at a pc before the frame is created.
6995
6996 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6997
6998 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6999
7000 2004-04-23 Jerome Guitton <guitton@gnat.com>
7001
7002 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7003 use convert_typed_floating to get the appropriate format.
7004
7005 2004-04-22 Randolph Chung <tausq@debian.org>
7006
7007 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7008 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7009 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7010 (hppa_sign_extend): Add prototype.
7011 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7012 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7013 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7014 hppa targets will also use these functions.
7015 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7016 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7017 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7018 (hppa_gdbarch_init): Remove gdbarch setting of
7019 skip_trampoline_code, in_solib_call_trampoline and
7020 in_solib_return_trampoline.
7021 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7022 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7023 hppa_in_solib_call_trampoline.
7024 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7025 Moved from hppa-tdep.c.
7026 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7027 in_solib_call_trampoline and in_solib_return_trampoline.
7028
7029 2004-04-22 Randolph Chung <tausq@debian.org>
7030
7031 * hppa-tdep.c (hppa_debug): New variable.
7032 (find_unwind_entry, hppa_frame_cache): Add debug output.
7033 (_initialize_hppa_tdep): Add command to set debug flag.
7034
7035 2004-04-22 Andrew Cagney <cagney@redhat.com>
7036
7037 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7038 "trad-frame.h".
7039 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7040 signal trampoline unwinder.
7041 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7042
7043 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7044
7045 Add OpenBSD/powerpc support.
7046 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7047 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7048 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7049 (ppc_collect_fpregset): New prototypes.
7050 * ppcobsd-nat.c: New file.
7051 * ppcobsd-tdep.c: New file.
7052 * ppcobsd-tdep.h: New file.
7053 * rs6000-tdep.c: Include "regset.h".
7054 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7055 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7056 New functions.
7057 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7058 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7059 (rs6000-tdep.o): Update dependencies.
7060 * configure.host: Add powerpc-*-openbsd.
7061 * configure.tgt: Add powerpc-*-openbsd.
7062 * config/powerpc/obsd.mh: New file.
7063 * config/powerpc/nm-obsd.h: New file.
7064 * config/powerpc/obsd.mt: New file.
7065
7066 2004-04-22 Andrew Cagney <cagney@redhat.com>
7067
7068 * frame.h (show_frame_info): Delete declaration.
7069
7070 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7071 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7072 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7073 * frv-tdep.c (frv_frame_this_id): Ditto.
7074 * avr-tdep.c (avr_frame_this_id): Ditto.
7075
7076 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7077
7078 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7079
7080 2004-04-22 Jim Blandy <jimb@redhat.com>
7081
7082 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7083 register number zero.
7084
7085 2004-04-21 Michael Snyder <msnyder@redhat.com>
7086
7087 * mips-tdep.c (heuristic_proc_start):
7088 Warning() already prefixes "Warning: ".
7089
7090 2004-04-21 Andrew Cagney <cagney@redhat.com>
7091
7092 * annotate.h (deprecated_annotate_starting_hook)
7093 (deprecated_annotate_stopped_hook)
7094 (deprecated_annotate_exited_hook)
7095 (deprecated_annotate_signal_hook)
7096 (deprecated_annotate_signalled_hook): Deprecate.
7097 * tracepoint.h (deprecated_create_tracepoint_hook)
7098 (deprecated_delete_tracepoint_hook)
7099 (deprecated_modify_tracepoint_hook)
7100 (deprecated_trace_find_hook)
7101 (deprecated_trace_start_stop_hook): Deprecate.
7102 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7103 * remote.h (deprecated_target_resume_hook)
7104 (deprecated_target_wait_loop_hook): Deprecate.
7105 * gdbcore.h (deprecated_exec_file_display_hook)
7106 (deprecated_file_changed_hook): Deprecate.
7107 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7108 * defs.h (deprecated_modify_breakpoint_hook)
7109 (deprecated_command_loop_hook, deprecated_show_load_progress)
7110 (deprecated_print_frame_info_listing_hook)
7111 (deprecated_query_hook, deprecated_warning_hook)
7112 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7113 (deprecated_delete_breakpoint_hook)
7114 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7115 (deprecated_readline_begin_hook, deprecated_readline_hook)
7116 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7117 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7118 (deprecated_context_hook, deprecated_target_wait_hook)
7119 (deprecated_attach_hook, deprecated_detach_hook)
7120 (deprecated_call_command_hook, deprecated_set_hook)
7121 (deprecated_error_hook, deprecated_error_begin_hook)
7122 (deprecated_ui_load_progress_hook): Deprecate.
7123 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7124 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7125 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7126 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7127 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7128 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7129 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7130 * annotate.c, aix-thread.c: Update.
7131
7132 2004-04-21 Andrew Cagney <cagney@redhat.com>
7133
7134 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7135 * vaxnbsd-tdep.c: Include "gdb_string.h".
7136
7137 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7138 (add_symbol_file_from_memory_command): #if 0 function body, call
7139 error instead.
7140
7141 2004-04-21 Andrew Cagney <cagney@redhat.com>
7142
7143 * gdbcore.h: Update copyright.
7144 (deprecated_add_core_fns): Rename add_core_fns.
7145 * win32-nat.c (_initialize_core_win32): Update.
7146 * sun3-nat.c (_initialize_core_sun3): Update.
7147 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7148 * rs6000-nat.c (_initialize_core_rs6000): Update.
7149 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7150 * nto-tdep.c (_initialize_nto_tdep): Update.
7151 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7152 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7153 * mips-nat.c (_initialize_core_mips): Update.
7154 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7155 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7156 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7157 * lynx-nat.c (_initialize_core_lynx): Update.
7158 * irix5-nat.c (_initialize_core_irix5): Update.
7159 * i386-interix-nat.c (_initialize_core_interix): Update.
7160 * cris-tdep.c (_initialize_cris_tdep): Update.
7161 * corelow.c (deprecated_add_core_fns): Update.
7162 * core-regset.c (_initialize_core_regset): Update.
7163 * core-aout.c (_initialize_core_aout): Update.
7164 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7165 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7166 * alpha-nat.c (_initialize_core_alpha): Update.
7167
7168 2004-04-21 Jim Blandy <jimb@redhat.com>
7169
7170 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7171
7172 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7173
7174 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7175 Delete.
7176 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7177 (read_attribute_value): Update calls to dwarf_alloc_block.
7178 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7179 dwarf2_tmp_obstack.
7180 (psymtab_to_symtab_1): Likewise. Clean up using
7181 free_stack_comp_unit.
7182 (add_to_cu_func_list): Use the comp_unit_obstack.
7183
7184 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7185
7186 * dwarf2read.c (dwarf2_flag_true_p): New function.
7187 (die_is_declaration): Use the function above. Add some comments.
7188
7189 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7190
7191 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7192 architecture when registering sparcnbsd_core_osabi_sniffer.
7193 Adjust comment.
7194
7195 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7196
7197 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7198 return value.
7199
7200 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7201 * i386-tdep.c: Correct register numbering scheme comments
7202 throughout.
7203 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7204 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7205 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7206 (i386_gdb_arch_init): Likewise.
7207
7208 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7209 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7210 ppcnbsd-tdep.o.
7211
7212 * m68k-tdep.h: Tweak comments.
7213 * m68k-tdep.c: Tweak comment.
7214
7215 2004-04-17 Randolph Chung <tausq@debian.org>
7216
7217 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7218 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7219 (hppa_hpux_som_init_abi): Set is_elf to 0.
7220 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7221 * hppa-tdep.c (low_text_segment_address): Remove global.
7222 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7223 section offset to calculate segment address.
7224 (internalize_unwinds): Define low_text_segment_address as local and
7225 pass to record_text_segment_lowaddr for ELF targets.
7226 (hppa_gdbarch_init): Zero fill tdep structure.
7227 (hppa_dump_tdep): Print tdep structure.
7228 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7229
7230 2004-04-17 Randolph Chung <tausq@debian.org>
7231
7232 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7233 (hppa_gdbarch_init): Set pseudo_register_read.
7234 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7235 * regcache.c (supply_register): Remove check for
7236 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7237
7238 2004-04-17 Randolph Chung <tausq@debian.org>
7239
7240 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7241 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7242 (hpread_adjust_stack_address): Move to hpread.c.
7243 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7244 obj_private_struct): Move from tm-hppa.h.
7245 * hpread.c (hppa-tdep.h): Include.
7246 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7247 (hpread_read_function_type, hpread_read_doc_function_type)
7248 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7249 directly.
7250 * pa64solib.c (hppa-tdep.h): Include.
7251 * somsolib.c (hppa-tdep.h): Include.
7252 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7253 inferior_status): Remove unused forward declarations.
7254 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7255 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7256 obj_private_struct): Move to hppa-tdep.h.
7257 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7258
7259 2004-04-17 Randolph Chung <tausq@debian.org>
7260
7261 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7262 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7263 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7264 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7265 Remove forward declaration and make static.
7266 (hppa_reg_struct_has_addr): Remove.
7267
7268 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7269
7270 * observer.sh: Move comments in sed command to first column.
7271
7272 2004-04-16 Jason Molenda (jmolenda@apple.com)
7273
7274 * frame.c: Minor typeo corrections in comments.
7275
7276 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7277
7278 * observer.c (observer_test_first_notification_function): Update
7279 function profile.
7280 (observer_test_second_notification_function): Likewise.
7281 (observer_test_third_notification_function): Likewise.
7282
7283 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7284
7285 From Brian Ford <ford@vss.fsi.com>:
7286 * i386-tdep.c (i386_coff_init_abi): New function.
7287 * i386-tdep.h (i386_coff_init_abi): New prototype.
7288 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7289 register number translation functions for DWARF and DWARF 2.
7290
7291 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7292
7293 * dwarf2read.c: Back out my previous change, it was incorrect.
7294
7295 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7296
7297 * dwarf2read.c: Include "hashtab.h".
7298 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7299 has_namespace_info.
7300 (struct partial_die_info): Add comments. Use bitfields to reduce
7301 memory footprint. Add scope, scope_set, has_specification,
7302 spec_offset, die_parent, die_child, and die_sibling.
7303 (peek_die_abbrev): Add prototype.
7304 (partial_read_comp_unit_head): New function, broken out from
7305 dwarf2_build_psymtabs_hard.
7306 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7307 Use partial_read_comp_unit_head. Initialize the CU and
7308 comp_unit_obstack. Update calls to read_partial_die and
7309 scan_partial_symbols. Use free_stack_comp_unit and
7310 load_partial_dies.
7311 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7312 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7313 Update calls to helper functions. Remove NAMESPACE argument.
7314 Update comments.
7315 (partial_die_parent_scope, partial_die_full_name): New functions.
7316 (add_partial_symbol): Remove namespace argument. Update call to
7317 pdi_needs_namespace. Use partial_die_full_name. Handle
7318 DW_TAG_namespace. Check has_namespace_info flag.
7319 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7320 tag. Handle namespaces.
7321 (add_partial_namespace, add_partial_enumeration): Simplify.
7322 (guess_structure_name): New function, derived from
7323 add_partial_structure.
7324 (add_partial_structure): Remove.
7325 (determine_class_name): Update comment.
7326 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7327 (is_type_tag_for_partial, load_partial_dies): New functions.
7328 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7329 Record specifications instead of following them immediately.
7330 (find_partial_die_in_comp_unit, find_partial_die)
7331 (fixup_partial_die, free_stack_comp_unit)
7332 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7333 (partial_die_hash, partial_die_eq): New functions.
7334 * Makefile.in (hashtab_h): Define.
7335 (dwarf2read.o): Update dependencies.
7336 (observer_inc, observer_h): Move to the correct section.
7337
7338 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7339
7340 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7341 (die_is_declaration): Use the function above. Add comment.
7342
7343 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7344
7345 * dwarf2read.c (read_structure_scope): Identify stub types
7346 using die_is_declaration() only.
7347
7348 2004-04-15 Roland McGrath <roland@redhat.com>
7349
7350 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7351 argument instead of NAME.
7352 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7353 in call to symbol_file_add_with_addrs_or_offsets.
7354 (build_addr_info): New function, helper for ...
7355 (symbol_file_add_from_memory): New function.
7356 (add_symbol_file_from_memory_command): New function using that.
7357 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7358 (pre_add_symbol_hook): Add const to argument type.
7359 * symfile.h (symbol_file_add_from_memory): Declare it.
7360
7361 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7362
7363 * NEWS (New native configurations): Mention OpenBSD/vax.
7364 * configure.host: Add vax-*-openbsd*.
7365 * config/vax/obsd.mh: New file.
7366 * config/vax/nm-obsd.h: New file.
7367
7368 * vax-tdep.c: Include "regset.h".
7369 (vax_supply_gregset): New function.
7370 (vax_gregset): New variable.
7371 (vax_regset_from_core_section): New function.
7372 (vax_gdbarch_init): Set regset_from_core_section.
7373 * Makefile.in (vax-tdep.o): Update dependencies.
7374
7375 2004-04-15 Andrew Cagney <cagney@redhat.com>
7376
7377 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7378 (observer_normal_stop_notification_stub)
7379 (observer_attach_normal_stop, observer_detach_normal_stop):
7380 Delete, replaced by #include "observer.inc".
7381 * infrun.c (normal_stop): Pass "stop_bpstat" to
7382 observer_notify_normal_stop.
7383 * Makefile.in (observer_inc): Define.
7384 (observer.o): Update dependencies.
7385 (observer.h, observer.inc): New rules.
7386 * observer.h: Delete file.
7387 * observer.sh: New file.
7388
7389 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7390
7391 * vax-tdep.c (vax_frame_cache): Fix typo.
7392
7393 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7394
7395 * NEWS (New native configurations): Mention NetBSD/vax.
7396 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7397 * config/vax/nbsdelf.mh: New file.
7398 * config/vax/nbsdaout.mh: New file.
7399 * config/vax/nm-nbsd.h: New file.
7400 * config/vax/nm-nbsdaout.h: New file.
7401
7402 * vaxnbsd-tdep.c: New file.
7403 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7404 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7405 * config/vax/nbsd.mt: New file.
7406 * config/vax/tm-nbsd.h: New file.
7407
7408 * Makefile.in (vaxbsd-nat.o): New dependency.
7409
7410 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7411 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7412 struct_addr arguments. Don't push return value address.
7413 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7414 arguments to vax_store_arguments. Store return value address in
7415 R1.
7416 (vax_store_struct_return, vax_extract_return_value)
7417 (vax_store_return_value): Remove functions.
7418 (vax_return_value): New function.
7419 (vax_gdbarch_init): Set return value. Don't set
7420 deprecated_store_struct_return, deprecated_extract_struct_return
7421 and deprecated_store_return_value.
7422
7423 2004-04-14 Andreas Schwab <schwab@suse.de>
7424
7425 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7426 value buffer.
7427 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7428
7429 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7430
7431 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7432 (vax_unwind_dummy_id): New functions.
7433 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7434 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7435 variables.
7436 (vax_fix_call_dummy): Remove function.
7437 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7438 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7439 call_dummy_location, deprecated_call_dummy_words,
7440 deprecated_sizeof_call_dummy_words,
7441 deprecated_call_dummy_breakpoint_offset,
7442 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7443 and deprecated_dummy_write_sp.
7444
7445 2004-04-13 David Carlton <carlton@kealia.com>
7446
7447 * MAINTAINERS: Move myself to "paper trail" section.
7448
7449 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7450
7451 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7452 "trad-frame.h".
7453 (vax_frame_init_saved_regs): Remove function.
7454 (vax_sigtramp_saved_pc): Remove function.
7455 (vax_frame_saved_pc): Remove function.
7456 (vax_frame_args_address): Remove function.
7457 (vax_frame_num_args): Rewrite.
7458 (vax_frame_chain): Remove function.
7459 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7460 VAX_FP_REGNUM.
7461 (vax_pop_frame): Likewise.
7462 (vax_saved_pc_after_call): Remove function.
7463 (struct vax_frame_cache): New structure.
7464 (vax_frame_cache): New function.
7465 (vax_frame_this_id): New function.
7466 (vax_frame_prev_register): New function.
7467 (vax_frame_unwind): New variable.
7468 (vax_frame_sniffer): New function.
7469 (vax_frame_base_address): New function.
7470 (vax_frame_args_address): New function.
7471 (vax_frame_base): New variable.
7472 (vax_unwind_pc): New function.
7473 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7474 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7475 deprecated_frame_chain, deprecated_frame_saved_pc,
7476 deprecated_frame_args_address and
7477 deprecated_frame_init_saved_regs.
7478 * Makefile.in (vax-tdep.o): Update dependencies.
7479
7480 * vaxbsd-nat.c: New file.
7481
7482 * vax-tdep.h: Update copyright year. Adjust comments.
7483 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7484 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7485 (vax_regnum): New enum. Replacing...
7486 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7487 (VAX_PS_REGNUM): ... these removed macros.
7488 * vax-tdep.c (vax_register_name): Remove prototype.
7489 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7490 (vax_register_byte, vax_register_raw_size,
7491 vax_register_virtual_size, vax_register_virtual_type): Remove
7492 functions.
7493 (vax_register_type): New function.
7494 (vax_breakpoint_from_pc): Reorganize.
7495 (vax_gdbarch_init): Set register_type. Don't set
7496 deprecated_register_size, deprecated_register_bytes,
7497 deprecated_register_byte, deprecated_register_raw_size,
7498 deprecated_max_register_raw_size,
7499 deprecated_register_virtual_size,
7500 deprecated_max_register_virtual_size and
7501 deprecated_register_virtual_type. Add comment on stack direction.
7502
7503 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7504
7505 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7506 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7507 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7508
7509 2004-04-10 Randolph Chung <tausq@debian.org>
7510
7511 * MAINTAINERS (write after approval): Add myself.
7512
7513 2004-04-07 Randolph Chung <tausq@debian.org>
7514
7515 * hppa-tdep.c (hppa_inner_than): Remove.
7516 (is_pa_2): Remove unused static variable.
7517 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7518
7519 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7520
7521 * language.h (language_defn): Add new la_post_parser field.
7522 * parser-defs.h (null_post_parser): New declaration (default for
7523 la_post_parser).
7524
7525 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7526 insert call to that function.
7527 (parse_exp_in_context): New function, including code formerly in
7528 parse_exp_1. Calls language-dependent post-parser after
7529 prefixification.
7530 (parse_expression_in_context): New exported function.
7531 (null_post_parser): New definition.
7532 * expression.h (parse_expression_in_context): Add declaration.
7533
7534 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7535 * c-lang.c (c_language_defn): Ditto.
7536 (cplus_language_defn): Ditto.
7537 (asm_language_defn): Ditto.
7538 (minimal_language_defn): Ditto.
7539 * f-lang.c (f_language_defn): Ditto.
7540 * jv-lang.c (java_language_defn): Ditto.
7541 * language.c (unknown_language_defn): Ditto.
7542 (auto_language_defn): Ditto.
7543 (local_language_defn): Ditto.
7544 * m2-lang.c (m2_language_defn): Ditto.
7545 * scm-lang.c (scm_language_defn): Ditto.
7546 * obj-lang.c (objc_language_defn): Ditto.
7547
7548 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7549
7550 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7551 (amd64nbsd_mcontext_addr): New function.
7552 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7553 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7554 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7555
7556 * corelow.c (core_xfer_partial): Fix coding standards violation.
7557 Add support for TARGET_OBJECT_WCOOKIE.
7558
7559 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7560 deprecated_pc_in_sigtramp.
7561 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7562 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7563 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7564 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7565 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7566 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7567 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7568
7569 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7570 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7571 Fix typo.
7572
7573 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7574 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7575 (amd64_collect_fxsave): Likewise.
7576
7577 * i386-sol2-tdep.c: Include "gdb_string.h".
7578 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7579 name.
7580 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7581
7582 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7583
7584 * i386-sol2-tdep.c: Include "solib-svr4.h".
7585 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7586 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7587 * config/i386/tm-i386sol2.h: Include :solib.h".
7588 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7589 solib-svr4.o and solib-legacy.o.
7590 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7591 solib-svr4.o.
7592
7593 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7594
7595 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7596 whether a register is supplied by PTRACE_GETFPREGS.
7597 (store_inferior_registers): Likewise.
7598 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7599 whether a register is supplied by PT_GETFPREGS.
7600 (store_inferior_registers): Likewise.
7601
7602 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7603 * config/i386/linux64.mt (TDEPFILES): Likewise.
7604
7605 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7606
7607 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7608 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7609 the program counter is in the range specified by `struct
7610 gdbarch_tdep'.
7611 * amd64-linux-tdep.c: Include "symtab.h".
7612 (amd64_linux_pc_in_sigtramp): Remove function.
7613 (amd64_linux_sigtramp_p): New function.
7614 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7615 deprecated_pc_in_sigtramp.
7616 * amd64nbsd-tdep.c: Include "symtab.h".
7617 (amd64nbsd_sigtramp_p): New function.
7618 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7619 deprecated_pc_in_sigtramp.
7620 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7621 few comments.
7622 (amd64obsd_pc_in_sigtramp): Remove function.
7623 (amd64obsd_sigtramp_p): New function.
7624 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7625 deprecated_pc_in_sigtramp.
7626 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7627 (i386bsd_pc_ins_sigtramp): Remove prototype.
7628 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7629 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7630 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7631 the program counter is in the range specified by `struct
7632 gdbarch_tdep'.
7633 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7634 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7635 (i386_go32_pc_in_sigtramp): Remove function.
7636 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7637 Initialize TDEP->sigtramp_p.
7638 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7639 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7640 deprecated_pc_in_sigtramp.
7641 * i386-linux-tdep.c: Adjust comments.
7642 (i386_linux_pc_in_sigtramp): Remove function.
7643 (i386_linux_sigtramp_p): New function.
7644 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7645 deprecated_pc_in_sigtramp.
7646 * i386-nto-tdep.c: Update copyright year.
7647 (i386nto_pc_in_sigtramp): Remove function.
7648 (i386nto_sigtramp_p): New function.
7649 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7650 SP_REGNUM.
7651 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7652 deprecated_pc_in_sigtramp.
7653 * i386-sol2-tdep.c: Update copyright year.
7654 (i386_sol2_pc_in_sigtramp): Remove function.
7655 (i386_sol2_sigtramp_p): New function.
7656 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7657 deprecated_pc_in_sigtramp.
7658 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7659 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7660 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7661 deprecated_sigtramp_start and deprecated_sigtramp_end.
7662 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7663 (i386nbsd_pc_in_sigtramp): Remove function.
7664 (i386nbsd_sigtramp_p): New function.
7665 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7666 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7667 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7668 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7669 (i386obsd_pc_in_sigtramp): Remove function.
7670 (i386obsd_sigtramp_p): New function.
7671 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7672 functions.
7673 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7674 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7675 TDEP->sigtramp_p.
7676 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7677 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7678 dependencies.
7679
7680 * config/i386/i386aout.mt: Remove file.
7681
7682 * configure.tgt: Remove i[34567]86-*-go32*,
7683 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7684 and i[34567]86-*-isc*. Set gdb_target to i386 for
7685 i[34567]86-*-netware* and i[34567]86-*-*.
7686 * config/i386/i386.mt: New file.
7687 * config/i386/embed.mt: Remove file.
7688 * config/i386/go32.mt: Remove file.
7689 * config/i386/i386nw.mt: Remove file.
7690 * config/i386/i386v.mt: Remove file.
7691 * config/i386/tm-go32.h: Remove file.
7692
7693 * tui/tui-hooks.c: Include "readline/readline.h" after
7694 "gdb_curses.h" instead of before.
7695 * tui/tui-io.c: Likewise.
7696
7697 * tui/tui.c: Fix typo in comment.
7698
7699 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7700
7701 2004-04-08 Andrew Cagney <cagney@redhat.com>
7702
7703 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7704 (deprecated_exception_support_initialized): Declare.
7705 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7706 (initialize_hp_cxx_exception_support)
7707 (child_enable_exception_callback): Update.
7708 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7709 (deprecated_exception_support_initialized): Rename
7710 deprecated_exception_catchpoints_are_fragile and
7711 deprecated_exception_support_initialized.
7712 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7713
7714 * symtab.c (deprecated_hp_som_som_object_present): Rename
7715 hp_som_som_object_present.
7716 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7717 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7718 Update. Delete extern declaration.
7719 * valops.c (hp_som_som_object_present): Ditto.
7720 * parse.c (deprecated_hp_som_som_object_present)
7721 (parse_nested_classes_for_hpacc): Ditto.
7722 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7723 * hppa-hpux-tdep.c (hp_som_som_object_present)
7724 (initialize_hp_cxx_exception_support): Ditto.
7725 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7726 * cp-valprint.c (hp_som_som_object_present)
7727 (cp_print_class_method): Ditto.
7728 * c-typeprint.c (hp_som_som_object_present):
7729 (c_type_print_base): Ditto.
7730 * c-exp.y (hp_som_som_object_present): Ditto.
7731
7732 2004-04-08 Andrew Cagney <cagney@redhat.com>
7733
7734 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7735 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7736 (frame_unwind_find_by_frame): Re-implement the unwind code so
7737 that it can both prepend and append sniffers. Replace
7738 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7739 * tramp-frame.c (tramp_frame_append): Use
7740 frame_unwind_prepend_unwinder.
7741 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7742 frame_unwind_register_unwinder.
7743 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7744 tramp_frame_append.
7745 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7746 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7747 (mips_linux_init_abi): Update.
7748
7749 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7750
7751 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7752 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7753 file support.
7754
7755 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7756
7757 * ia64-tdep.c (elf.h): Don't include.
7758 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7759
7760 2004-04-07 Jason Molenda (jmolenda@apple.com)
7761
7762 * frame.h: Typeo corrections in comments.
7763
7764 2004-04-07 Jim Blandy <jimb@redhat.com>
7765
7766 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7767 %esp and %ebp
7768
7769 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7770
7771 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7772 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7773 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7774 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7775 and solib-legacy.o.
7776 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7777 solib-svr4.o.
7778 * config/sparc/tm-sol2.h: Update copyright year. Include
7779 "solib.h".
7780
7781 * sparc-sol2-tdep.c: Update copyright year. Include
7782 "solib-svr4.h".
7783 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7784 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7785 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7786 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7787 dependencies.
7788
7789 2004-04-06 Andrew Cagney <cagney@redhat.com>
7790
7791 * infttrace.c: Include "infttrace.h".
7792 * infttrace.h: Include "target.h".
7793 * Makefile.in (infttrace_h): Update.
7794 (infttrace.o): Update.
7795
7796 2004-04-06 Andrew Cagney <cagney@redhat.com>
7797
7798 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7799 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7800 move extern declarations from here ...
7801 * infttrace.h: ... to here.
7802 * Makefile.in (hppah-nat.o): Update dependencies.
7803
7804 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7805 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7806 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7807 (hppa_breakpoint_from_pc): Delete.
7808
7809 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7810
7811 2004-04-05 Andrew Cagney <cagney@redhat.com>
7812
7813 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7814 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7815 <sys/file.h>.
7816
7817 2004-04-06 Randolph Chung <tausq@debian.org>
7818
7819 Committed by Andrew Cagney (mechanical change).
7820 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7821 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7822 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7823 child_enable_exception_callback, current_ex_event,
7824 null_symtab_and_line, child_get_current_exception_event,
7825 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7826 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7827 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7828 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7829 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7830 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7831 Move hpux-specific definitions ...
7832 * hppa-hpux-tdep.c: ... to here.
7833
7834 2004-04-05 Andrew Cagney <cagney@redhat.com>
7835
7836 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7837 skip_prologue_using_sal.
7838
7839 2004-04-05 Andrew Cagney <cagney@redhat.com>
7840
7841 * config/i386/tm-i386.h: Delete file.
7842 * config/i386/tm-vxworks.h: Update copyright, do not include
7843 "tm-i386.h".
7844 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7845 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7846 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7847 * config/i386/ncr3000.mt (TM_FILE): Delete.
7848 * config/i386/interix.mt (TM_FILE): Delete.
7849 * config/i386/i386v.mt (TM_FILE): Delete.
7850 * config/i386/i386nw.mt (TM_FILE): Delete.
7851 * config/i386/i386gnu.mt (TM_FILE): Delete.
7852 * config/i386/i386aout.mt (TM_FILE): Delete.
7853 * config/i386/embed.mt (TM_FILE): Delete.
7854
7855 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7856
7857 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7858 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7859 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7860 (accg7_regnum): New constants.
7861 (last_spr_regnum, last_pseudo_regnum): Update.
7862 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7863 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7864 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7865 for accg registers.
7866 (frv_register_sim_regno): Update spr_map[].
7867
7868 2004-04-04 Andrew Cagney <cagney@redhat.com>
7869
7870 * config/mips/xm-riscos.h: Delete.
7871 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7872 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7873 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7874 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7875 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7876 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7877 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7878 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7879 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7880 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7881 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7882 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7883 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7884 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7885 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7886 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7887 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7888 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7889 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7890 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7891 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7892 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7893 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7894 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7895 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7896 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7897
7898 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7899 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7900 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7901 * configure.host: Remove m680[01]0-sun-sunos3*,
7902 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7903 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7904 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7905 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7906 mips-*-riscos*.
7907 * NEWS: Mention removed systems.
7908
7909 2004-04-04 Andrew Cagney <cagney@redhat.com>
7910
7911 GDB 6.1 release created from 6.1 branch.
7912
7913 2004-04-04 Andrew Cagney <cagney@redhat.com>
7914
7915 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7916 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7917 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7918
7919 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7920 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7921 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7922
7923 2004-04-03 Jim Blandy <jimb@redhat.com>
7924
7925 * MAINTAINERS: Chris Faylor has changed employers; add him to
7926 "paper trail" section, and update his E-mail address.
7927
7928 2004-04-03 Andrew Cagney <cagney@redhat.com>
7929
7930 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7931 generic dummy frames.
7932 * dummy-frame.c: Update copyright.
7933 (dummy_frame_sniffer): Delete check for generic dummy frames.
7934
7935 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7936 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7937 (REG_PARM_STACK_SPACE): Delete.
7938 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7939 Inline reference to REG_PARM_STACK_SPACE.
7940
7941 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7942 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7943 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7944 (FRAME_BASE_BEFORE_SIGTRAMP)
7945 (hppa32_hpux_frame_base_before_sigtramp)
7946 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7947 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7948 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7949 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7950 (FRAME_BASE_BEFORE_SIGTRAMP)
7951 (hppa64_hpux_frame_base_before_sigtramp)
7952 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7953
7954 2004-04-03 Andrew Cagney <cagney@redhat.com>
7955
7956 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7957
7958 2004-04-02 Andrew Cagney <cagney@redhat.com>
7959
7960 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7961 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7962 * dummy-frame.h: Delete out-of-date comments.
7963 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7964 * gdbarch.h, gdbarch.c: Re-generate.
7965
7966 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7967
7968 Committed by Andrew Cagney <cagney@redhat.com>.
7969 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7970 into account an instruction saving a register if we have already
7971 seen an earlier instruction saving that same register.
7972
7973 2004-04-02 Andrew Cagney <cagney@redhat.com>
7974
7975 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7976 * gdbarch.h, gdbarch.c: Re-generate.
7977 * frame.c (legacy_get_prev_frame): Delete references to
7978 DEPRECATED_INIT_FRAME_PC_FIRST.
7979
7980 * infrun.c (pc_in_sigtramp): Delete function.
7981 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7982 get_frame_type.
7983
7984 2004-04-02 Andrew Cagney <cagney@redhat.com>
7985
7986 * infrun.c (handle_step_into_function): Delete code conditional on
7987 legacy_frame_p.
7988 (handle_inferior_event, step_over_function): Ditto.
7989
7990 2004-04-02 Andrew Cagney <cagney@redhat.com>
7991
7992 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7993 "previous frame inner to this frame" test.
7994
7995 2004-04-02 Andrew Cagney <cagney@redhat.com>
7996
7997 * frame.c (safe_frame_unwind_memory): New function.
7998 * frame.h (safe_frame_unwind_memory): Declare. Update description
7999 of /safe_/ methods.
8000 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8001 "next_frame". Use safe_frame_unwind_memory.
8002 (tramp_frame_sniffer): Update call to tramp_frame_start.
8003
8004 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8005
8006 * dwarf2read.c (dwarf2_objfile_data_key): New.
8007 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8008 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8009 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8010 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8011 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8012 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8013 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8014 Remove variables.
8015 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8016 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8017 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8018 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8019 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8020 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8021 Remove macros.
8022 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8023 data.
8024 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8025 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8026 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8027 (read_partial_die, read_full_die, read_indirect_string)
8028 (dwarf_decode_line_header, dwarf_decode_macros)
8029 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8030 Update uses of removed variables.
8031 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8032 of removed macros.
8033 (_initialize_dwarf2_read): New function.
8034 * symfile.h (dwarf2_has_info): Update prototype.
8035 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8036 * elfread.c (elf_symfile_read): Likewise.
8037
8038 2004-04-01 Jim Blandy <jimb@redhat.com>
8039
8040 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8041 function for register numbers on all the rs6000-derived targets.
8042 (rs6000_gdbarch_init): Don't register a separate
8043 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8044 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8045 variants.
8046
8047 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8048 numbering.
8049
8050 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8051
8052 * valarith.c: Update copyright notice.
8053 (value_add): Handle range types.
8054 (value_sub): Ditto.
8055 (value_equal): Ditto.
8056 (value_less): Ditto.
8057 (value_neg): Ditto.
8058 (value_complement): Ditto.
8059 (value_binop): Simplify slightly by using is_integral_type and
8060 eliminiating unnecessary COERCE_ENUMs.
8061
8062 2004-03-31 Andrew Cagney <cagney@redhat.com>
8063
8064 * frame.h (frame_unwind_id): Declare.
8065 * frame.c (frame_unwind_id): New function.
8066 (get_prev_frame_1): New function.
8067 (frame_debug_got_null_frame): New function.
8068 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8069 code proper to prev_frame, update description.
8070 * infrun.c (step_over_function): Use frame_unwind_id.
8071
8072 2004-04-31 J. Brobecker <brobecker@gnat.com>
8073
8074 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8075 (hppa64_push_dummy_call): Likewise.
8076
8077 2004-03-30 Jim Blandy <jimb@redhat.com>
8078
8079 From Ulrich Weigand:
8080 * utils.c (query): Do not use a va_list variable multiple times.
8081
8082 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8083
8084 * Makefile.in (linux_nat_h): Update dependencies.
8085 * configure.in: Check for <gnu/libc-version.h>.
8086 * configure: Regenerate.
8087 * config.in: Regenerate.
8088 * linux-nat.h: Include "target.h". Add waitstatus field to
8089 struct lwp_info.
8090 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8091 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8092 to.
8093 (lin_lwp_handle_extended): New function. Handle clone events.
8094 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8095 thread exit events.
8096 (child_wait): Handle clone events.
8097 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8098 * linux-nat.c (linux_enable_event_reporting): Turn on
8099 PTRACE_O_TRACECLONE.
8100 (linux_handle_extended_wait): Handle clone events.
8101 * thread-db.c: Include <gnu/libc-version.h>.
8102 (struct private_thread_info): Add dying flag.
8103 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8104 higher.
8105 (attach_thread): Update comments. Handle dying threads.
8106 (detach_thread): Set the dying flag.
8107 (check_event): Always call attach_thread.
8108
8109 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8110
8111 * mips-tdep.c (mips_pdr_data): New.
8112 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8113 (_initialize_mips_tdep): Initialize mips_pdr_data.
8114
8115 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8116
8117 * minsyms.c (install_minimal_symbols): Move dropping leading
8118 char from linkage name from here...
8119 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8120 test for "__gnu_compiled*" symbols.
8121
8122 2004-03-28 Jim Blandy <jimb@redhat.com>
8123
8124 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8125 registers to temp register r0 and byte stores as prologue
8126 instructions.
8127
8128 2004-03-28 Andrew Cagney <cagney@redhat.com>
8129
8130 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8131 arm*-*-*.
8132
8133 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8134
8135 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8136 and switch the layout to force a display of register window.
8137
8138 2004-02-26 J. Brobecker <brobecker@gnat.com>
8139
8140 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8141 of the INTEGER class.
8142
8143 2004-03-26 Jim Blandy <jimb@redhat.com>
8144
8145 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8146 bytes long on PPC GNU/Linux.
8147
8148 2004-03-26 David Carlton <carlton@kealia.com>
8149
8150 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8151
8152 2004-03-25 Andrew Cagney <cagney@redhat.com>
8153
8154 * PROBLEMS: Add general section titles, remove references to
8155 specific releases.
8156
8157 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8158
8159 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8160 INT_REGISTER_SIZE.
8161 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8162 FP_REGISTER_VIRTUAL_SIZE.
8163 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8164 of DEPRECATED_REGISTER_RAW_SIZE.
8165 (arm_register_type): Add gdbarch argument.
8166 (arm_register_raw_size, arm_register_virtual_size): Delete.
8167 (arm_register_byte, arm_extract_return_value)
8168 (arm_store_return_value, arm_get_longjmp_target): Update references
8169 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8170 (arm_gdbarch_init): Likewise. Don't set
8171 deprecated_register_raw_size, deprecated_register_virtual_size,
8172 deprecated_max_register_raw_size,
8173 deprecated_max_register_virtual_size, or
8174 deprecated_max_register_virtual_type. Do set register_type.
8175 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8176 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8177 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8178 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8179 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8180 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8181 INT_REGISTER_SIZE.
8182 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8183 (remote_rdp_store_register): Likewise.
8184
8185 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8186
8187 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8188 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8189 to after osabi initialization.
8190 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8191 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8192 functions.
8193 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8194 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8195 variables.
8196 (mips_linux_init_abi): Append signal trampoline unwinders.
8197
8198 2004-03-24 Andrew Cagney <cagney@redhat.com>
8199
8200 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8201 * tramp-frame.c: Include "gdb_assert.h".
8202 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8203 correct sizeof.
8204 (tramp_frame_append): Validate the tramp frame's instructions.
8205 * Makefile.in (tramp-frame.o): Update dependencies.
8206
8207 2004-03-23 Andrew Cagney <cagney@redhat.com>
8208
8209 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8210
8211 2004-03-23 Andrew Cagney <cagney@redhat.com>
8212
8213 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8214 Nasser as past testsuite/lib/ (and other) maintainers.
8215
8216 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8217
8218 * infcmd.c (attach_command): Reread symbols if we already have
8219 an exec file.
8220
8221 2004-03-23 Andrew Cagney <cagney@redhat.com>
8222
8223 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8224
8225 2004-03-23 Andrew Cagney <cagney@redhat.com>
8226
8227 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8228 * gdbarch.h, gdbarch.c: Re-generate.
8229 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8230 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8231 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8232 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8233 (DEPRECATED_SIGTRAMP_START): Update.
8234 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8235 (DEPRECATED_SIGTRAMP_START): Update.
8236 * blockframe.c (find_pc_sect_partial_function): Update.
8237 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8238
8239 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8240
8241 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8242 if necessary.
8243
8244 2004-03-23 Andrew Cagney <cagney@redhat.com>
8245
8246 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8247 predicate, deprecate.
8248 * gdbarch.h, gdbarch.c: Re-generate.
8249 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8250 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8251 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8252 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8253 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8254 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8255 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8256 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8257 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8258 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8259 * blockframe.c (find_pc_partial_function): Update.
8260 * breakpoint.c (bpstat_what): Update.
8261 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8262 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8263 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8264 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8265 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8266 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8267 * i386-nto-tdep.c (i386nto_init_abi): Update.
8268 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8269 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8270 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8271 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8272 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8273 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8274 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8275 * infrun.c (pc_in_sigtramp): Update.
8276 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8277 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8278 * mips-tdep.c (mips_gdbarch_init): Update.
8279 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8280 * ppc-linux-tdep.c: Update comment.
8281 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8282 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8283 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8284 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8285 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8286 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8287 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8288 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8289 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8290 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8291
8292 2004-03-23 Andrew Cagney <cagney@redhat.com>
8293
8294 * tramp-frame.h, tramp-frame.h: New files.
8295 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8296 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8297
8298 * Makefile.in: Update all dependencies.
8299
8300 2004-03-23 Andrew Cagney <cagney@redhat.com>
8301
8302 * Makefile.in (trad_frame_h): Add $(frame_h).
8303 * trad-frame.h: Update copyright. Include "frame.h".
8304 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8305 (trad_frame_set_id, trad_frame_get_id): Declare.
8306 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8307 * trad-frame.c: Update copyright.
8308 (struct trad_frame_cache): Define.
8309 (trad_frame_cache_zalloc): New function.
8310 (trad_frame_set_id, trad_frame_get_id): New functions.
8311 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8312
8313 2004-03-22 Andrew Cagney <cagney@redhat.com>
8314
8315 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8316 s390_pltstub_unwind_cache.
8317 (s390_stub_frame_unwind_cache): Rename
8318 s390_pltstub_frame_unwind_cache.
8319 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8320 (s390_stub_frame_prev_register): Rename
8321 s390_pltstub_frame_prev_register.
8322 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8323 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8324
8325 From Ulrich Weigand:
8326 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8327 pointer calls like PLT calls.
8328
8329 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8330
8331 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8332 PC rather than the partial function start address. Use the start
8333 address to sanity check the found PDR.
8334
8335 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8336
8337 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8338 linux_handle_extended_wait.
8339
8340 2004-03-22 Andrew Cagney <cagney@redhat.com>
8341
8342 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8343 function.
8344
8345 * frame.h (generic_pop_current_frame): Delete declaration.
8346 (deprecate_pop_dummy_frame): Deprecate
8347 generic_pop_dummy_frame.
8348 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8349 (generic_pop_current_frame): Delete function.
8350 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8351 generic_pop_current_frame.
8352 * v850-tdep.c (v850_pop_frame): Update.
8353 * mcore-tdep.c (mcore_pop_frame): Update.
8354 * sh64-tdep.c (sh64_pop_frame): Update.
8355 * h8300-tdep.c (h8300_pop_frame): Update.
8356
8357 2004-03-22 Andrew Cagney <cagney@redhat.com>
8358
8359 * frame.h (deprecated_pc_in_call_dummy): Rename
8360 generic_pc_in_call_dummy.
8361 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8362 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8363 generic_pc_in_call_dummy.
8364 (pc_in_dummy_frame): Make static.
8365 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8366 * gdbarch.h, gdbarch.c: Re-generate.
8367 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8368 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8369 (legacy_get_prev_frame): Ditto.
8370 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8371 comment.
8372
8373 2004-03-21 Andrew Cagney <cagney@redhat.com>
8374
8375 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8376 declaration and out-of-date comment.
8377 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8378 Delete function.
8379 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8380 deprecated_pc_in_call_dummy.
8381
8382 * infrun.c (handle_inferior_event): For non legacy frames, use the
8383 frame ID and frame type to identify a signal trampoline. Update
8384 comments.
8385
8386 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8387
8388 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8389 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8390
8391 2004-03-21 Andrew Cagney <cagney@redhat.com>
8392
8393 * frame-unwind.h: Update copyright.
8394 (struct frame_data): Add opaque declaration.
8395 (frame_sniffer_ftype): Declare.
8396 (struct frame_unwind): Add "unwind_data" and "sniffer".
8397 (frame_unwind_register_unwinder): Declare.
8398 (frame_unwind_find_by_frame): Add parameter "this_cache".
8399 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8400 (legacy_get_prev_frame, legacy_get_prev_frame)
8401 (get_frame_type): Pass the prologue_cache to
8402 frame_unwind_find_by_frame.
8403 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8404 "unwinder".
8405 (frame_unwind_register_unwinder): New function.
8406 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8407
8408 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8409
8410 * bcache.c (print_percentage): Use floating point to avoid
8411 incorrect results when portion*100 overflows.
8412
8413 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8414
8415 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8416 (ppc_linux_init_extra_frame_info)
8417 (ppc_linux_frameless_function_invocation)
8418 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8419 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8420 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8421 (rs6000_frame_chain): Delete declarations.
8422 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8423 (ppc_linux_init_extra_frame_info)
8424 (ppc_linux_frameless_function_invocation)
8425 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8426 (ppc_linux_init_abi): Remove registration of above deleted functions.
8427 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8428 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8429 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8430 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8431 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8432 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8433 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8434 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8435 frame management for all OSABIs.
8436
8437 2004-03-19 Andrew Cagney <cagney@redhat.com>
8438
8439 Committed by Kevin Buettner <kevinb@redhat.com>.
8440
8441 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8442 Update copyright.
8443 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8444 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8445 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8446 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8447 unwinders. #ifdef legacy frame code.
8448 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8449 "frame-base.h".
8450 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8451 (struct rs6000_frame_cache, rs6000_frame_cache)
8452 (rs6000_frame_this_id, rs6000_frame_prev_register)
8453 (rs6000_frame_sniffer, rs6000_frame_unwind)
8454 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8455 (rs6000_frame_base): Implement a traditional frame unwinder.
8456 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8457 frame unwinder.
8458
8459 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8460
8461 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8462 breakpoint address for watchpoints or the catch eventpoints.
8463 Add new paramter ``bptype''. Adjust all callers.
8464
8465 2004-03-19 Andrew Cagney <cagney@redhat.com>
8466
8467 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8468
8469 * PROBLEMS: Delete note that ARM does not use frame code, problem
8470 fixed.
8471
8472 2004-03-18 Andrew Cagney <cagney@redhat.com>
8473
8474 * stack.c (return_command): Delete code wrapped in #ifdef
8475 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8476
8477 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8478
8479 2004-03-18 Andrew Cagney <cagney@redhat.com>
8480
8481 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8482 DEPRECATED_IN_SIGTRAMP.
8483 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8484 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8485 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8486 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8487 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8488 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8489 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8490 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8491 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8492 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8493
8494 2004-03-18 Andrew Cagney <cagney@redhat.com>
8495
8496 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8497 (struct frame_base_table_entry): Define.
8498 (struct frame_base_table): Re-implement as a linked list.
8499 (frame_base_init): Re-implement.
8500 (frame_base_table): Delete function.
8501 (append_predicate): Delete function.
8502 (frame_base_append_sniffer): Update.
8503 (frame_base_set_default): Update.
8504 (frame_base_find_by_frame): Update.
8505 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8506 * Makefile.in (frame-base.o): Update dependencies.
8507
8508 2004-03-17 Andrew Cagney <cagney@redhat.com>
8509
8510 * frame.c (legacy_get_prev_frame): Pass correct frame to
8511 frame_unwind_find_by_frame.
8512
8513 2004-03-17 David Carlton <carlton@kealia.com>
8514
8515 * NEWS: Mention C++ nested types and namespaces
8516
8517 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8518
8519 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8520 and "Regressions since gdb 5.3.". Add known regressions since
8521 gdb 6.0.
8522
8523 2004-03-16 David Carlton <carlton@kealia.com>
8524
8525 * dwarf2read.c (process_structure_scope): Process children even
8526 when we're a declaration.
8527
8528 2004-03-16 Andrew Cagney <cagney@redhat.com>
8529
8530 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8531 * blockframe.c (find_pc_partial_function)
8532 (find_pc_sect_partial_function): Merge into a single
8533 find_pc_partial_function.
8534
8535 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8536
8537 * i386bsd-nat.c: s/regno/regnum/g.
8538 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8539 FP0_REGNUM.
8540 (store_inferior_registers): Likewise.
8541
8542 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8543
8544 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8545 of i387_fill_fsave.
8546 (store_inferior_registers): Call i387_collect_fsave and
8547 i387_collect_fxsave instead of i387_fill_fsave and
8548 i387_fill_fxsave.
8549
8550 2004-03-15 Andrew Cagney <cagney@redhat.com>
8551
8552 * Makefile.in (frame-unwind.o): Update dependencies.
8553 * frame-unwind.c: Include "gdb_obstack.h".
8554 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8555 parameter.
8556 (append_predicate): Delete function.
8557 (struct frame_unwind_table_entry): New structure.
8558 (struct frame_unwind_table): Replace "sniffer" with "head" and
8559 "tail".
8560 (frame_unwind_append_sniffer): Update.
8561 (frame_unwind_find_by_frame): Update.
8562 (_initialize_frame_unwind): Registe frame_unwind_init using
8563 gdbarch_data_register_pre_init.
8564
8565 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8566
8567 * i386bsd-nat.c: Update copyright year.
8568 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8569 define unconditionally.
8570
8571 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8572
8573 * i387-tdep.h (i387_collect_fsave): New prototype.
8574 * i387-tdep.c (i387_collect_fsave): New function containing most
8575 of the code from i387_fill_fsave.
8576 (i387_fill_fsave): Call i387_collect_fsave.
8577
8578 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8579
8580 * i386-linux-tdep.c: Update copyright year.
8581 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8582 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8583 svr4_ilp32_link_map_offsets instead of
8584 i386_linux_svr4_fetch_link_map_offsets.
8585
8586 2004-03-15 David Carlton <carlton@kealia.com>
8587
8588 Fix for PR c++/1553:
8589 * dwarf2read.c (read_structure_type): Determine type name by
8590 calling determine_class_name.
8591 (determine_class_name): New.
8592 (determine_prefix): Look at TYPE_TAG_NAME and call
8593 determine_class_name when appropriate.
8594 (determine_prefix_aux, class_name): Delete.
8595 (read_namespace): Set die->type.
8596
8597 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8598
8599 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8600 unused macro definition. The definition in target.h (or perhaps
8601 elsewhere) takes precedence.
8602
8603 2004-03-15 Andrew Cagney <cagney@redhat.com>
8604
8605 * ppc-tdep.h: Update copyright.
8606 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8607 function signatures to match "regsets.h".
8608 * ppc-linux-tdep.c: Include "regset.h".
8609 (ELF_GREGSET_SIZE): Delete.
8610 (right_supply_register): New function.
8611 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8612 using right_supply_register.
8613 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8614 functions.
8615 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8616 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8617 (_initialize_ppc_linux_tdep): Do not register
8618 ppc_linux_regset_core_fns.
8619 (ppc_linux_regset_from_core_section): Replace
8620 fetch_core_registers.
8621 (ppc_linux_regset_core_fns): Delete.
8622 * ppc-linux-nat.c: (right_fill_reg): New function.
8623 (supply_gregset): Update call to ppc_linux_supply_gregset.
8624 (fill_gregset): Clear the register set, use right_fill_reg.
8625 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8626 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8627
8628 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8629 unsigned.
8630
8631 2004-03-15 Andrew Cagney <cagney@redhat.com>
8632
8633 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8634 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8635 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8636 and register_gdbarch_data.
8637 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8638 (struct gdbarch_data): Replace "init" by "pre_init" and
8639 "post_init".
8640 * gdbarch.h, gdbarch.c: Re-generate.
8641 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8642 with"obstack", use OBSTACK_ZALLOC.
8643 (dwarf2_frame_ops): Delete.
8644 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8645 (dwarf2_frame_init_reg): Use gdbarch_data.
8646 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8647 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8648 (_initialize_svr4_solib): Update.
8649 * user-regs.c (_initialize_user_regs): Update.
8650 * reggroups.c (_initialize_reggroup): Update.
8651 * regcache.c (_initialize_regcache): Update.
8652 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8653 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8654 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8655 * frame-unwind.c (_initialize_frame_unwind): Update.
8656 * frame-base.c (_initialize_frame_base): Update.
8657 * user-regs.c (user_reg_add): Update.
8658 * reggroups.c (reggroup_add): Update.
8659 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8660 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8661 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8662 * frame-base.c (frame_base_table): Update.
8663 * remote.c (_initialize_remote): Update.
8664 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8665
8666 2004-03-15 Andrew Cagney <cagney@redhat.com>
8667
8668 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8669
8670 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8671
8672 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8673 * frv-linux-tdep.c: New file.
8674 * frv-tdep.c (struct gdbarch_tdep): Add new field
8675 ``sigcontext_reg_addr''.
8676 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8677 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8678 (frv_sigramp_frame_sniffer): New functions.
8679 (frv_sigtramp_frame_unwind): New static global.
8680 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8681 sniffers.
8682 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8683 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8684
8685 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8686
8687 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8688 but not via a call to error(), when unable to read memory.
8689
8690 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8691
8692 * frv-tdep.c (frv_call_dummy_words): Delete.
8693 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8694
8695 2004-03-15 Andrew Cagney <cagney@redhat.com>
8696
8697 * infrun.c (handle_step_into_function, step_over_function): Only
8698 update and use STEP_FRAME_ID when the system is using legacy
8699 frames. Update comments.
8700
8701 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8702
8703 * amd64-linux-tdep.h: Remove file.
8704 * amd64-linux-tdep.c: Don't include "inferior.h" and
8705 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8706 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8707 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8708 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8709 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8710 macros.
8711 (user_to_gdb_regmap): Remove variable.
8712 (amd64_linux_gregset_reg_offset): New variable.
8713 (amd64_core_fns): Remove variable.
8714 (fetch_core_registers): Remove function.
8715 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8716 functions.
8717 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8718 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8719 * Makefile.in (amd64_linux_tdep_h): Remove.
8720 (amd64-linux-nat.o): Update dependencies.
8721 (amd64-linux-tdep.o): Update dependencies.
8722
8723 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8724 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8725 functions.
8726 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8727
8728 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8729 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8730
8731 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8732
8733 * dwarf2read.c (read_structure_type): Rename from
8734 read_structure_scope. Don't create a symbol or call process_die.
8735 Return immediately if die->type is set. Call read_type_die before
8736 dwarf2_add_member_fn.
8737 (process_structure_scope): New function.
8738 (read_enumeration_type, process_enumeration_scope): New functions,
8739 broken out from read_enumeration. Don't create the enumeration
8740 type if it has already been created.
8741 (read_enumeration): Removed.
8742 (process_die): Call read_structure_type, process_structure_scope,
8743 read_enumeration_type, and process_enumeration_scope. Just call
8744 new_symbol for base and subrange types. Add a comment about other
8745 type dies.
8746 (read_type_die): Call read_enumeration_type.
8747 (add_partial_structure, new_symbol): Update comments.
8748
8749 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8750
8751 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8752
8753 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8754
8755 * tui/tui-win.h (tui_get_cmd_list): Declare.
8756 * tui/tui-win.c (tui_command): New function.
8757 (tui_get_cmd_list): New function.
8758 (_initialize_tui_win): Moved initialization of tui command in
8759 tui_get_cmd_list.
8760
8761 * tui/tui-data.c (init_content_element): Setup new data members.
8762 (init_win_info): Likewise.
8763 (free_content_elements): Free it.
8764 * tui/tui-data.h (struct tui_data_element): Store the register
8765 content to print.
8766 (struct tui_data_info): Keep the current register group.
8767
8768 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8769
8770 * tui/tui-regs.h (tui_show_registers): Update prototype.
8771 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8772 (tui_resize_all): No need to calculate anything for register window.
8773 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8774 (tui_set_register_element, tui_set_general_regs_content): Remove.
8775 (tui_set_special_regs_content): Remove.
8776 (tui_set_general_and_special_regs_content): Remove.
8777 (tui_set_float_regs_content): Remove.
8778 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8779 (tui_set_regs_content): Remove.
8780 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8781 (tui_v_show_registers_command_support): Remove.
8782 (tui_show_registers): Use a reggroup to specify the registers to show.
8783 (tui_show_register_group): New function.
8784 (tui_display_registers_from): Compute the layout of register window
8785 and refresh with new API; be sure to delete old register windows.
8786 (tui_check_register_values): Update to use tui_get_register and
8787 tui_display_data.
8788 (tui_display_register): Just refresh the register window part.
8789 (tui_register_format): Format registers and save in tui_data_element.
8790 (tui_get_register): New to combine tui_reg_value_has_changed and
8791 tui_get_register_raw_value; fix to use the new gdb API.
8792 (tui_show_float_command): Renamed tui_reg_float_command.
8793 (tui_show_general_command): Renamed tui_reg_general_command.
8794 (tui_show_special_command): Renamed tui_reg_system_command.
8795 (_initialize_tui_regs): Remove unused commands.
8796
8797 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8798
8799 * NEWS (New native configurations): Mention OpenBSD/amd64.
8800
8801 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8802 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8803 Remove defines.
8804 * config/i386/nm-fbsd64.h: Likewise.
8805 * config/i386/nm-obsd.h: Likewise.
8806 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8807 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8808
8809 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8810
8811 * frv-tdep.c (set_variant_scratch_registers): New function.
8812 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8813 New constants.
8814
8815 From Richard Sandiford <rsandifo@redhat.com>:
8816 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8817
8818 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8819
8820 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8821 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8822 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8823 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8824 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8825 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8826 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8827 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8828 definitions from frv-tdep.c to frv-tdep.h.
8829
8830 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8831
8832 Add shared library support for FR-V FDPIC ABI:
8833 * Makefile.in (solib-frv.o): Add dependencies.
8834 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8835 New functions.
8836 (frv_push_dummy_call): Add support for FDPIC ABI.
8837 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8838 for FDPIC ABI.
8839 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8840 (frv_fdpic_find_canonical_descriptor): Declare.
8841 * solib-frv.c: New file.
8842 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8843 * config/frv/tm-frv.h (solib.h): Include.
8844
8845 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8846
8847 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8848 (frv-tdep.o): Update dependencies.
8849 * frv-tdep.h: New file.
8850 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8851 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8852 constants.
8853 (struct gdbarch_tdep): Add new member ``frv_abi''.
8854 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8855 functions.
8856 (new_variant): Set ``frv_abi'' field.
8857 (gdb_arch_init): Detect FDPIC executables.
8858
8859 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8860
8861 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8862 wrapper.
8863
8864 2004-03-11 Andrew Cagney <cagney@redhat.com>
8865
8866 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8867
8868 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8869
8870 * solist.h (master_so_list): New function.
8871 * solib.c (master_so_list): Likewise.
8872 * solib-svr4.c (enable_break): Iterate over so_list entries
8873 obtained from master list instead of entries obtained directly
8874 via svr4_current_sos().
8875
8876 2004-03-10 Ben Elliston <bje@gnu.org>
8877
8878 * MAINTAINERS: Update my mail address.
8879
8880 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8881
8882 * remote-m32r-sdi.c: Support hardware watchpoint.
8883
8884 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * user-regs.c: Update copyright years.
8887 (struct user_regs): Rename to gdb_user_regs.
8888 (append_user_reg, builtin_user_regs, user_regs_init)
8889 (user_reg_add, user_reg_map_name_to_regnum)
8890 (usernum_to_user_reg): Update.
8891
8892 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8893
8894 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8895 (skip_children): New functions.
8896 (locate_pdi_sibling): Call skip_children.
8897
8898 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8899
8900 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8901 * gdbtypes.c (check_typedef): Update comments.
8902
8903 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8904
8905 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8906 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8907 pointer. Update comment about comp_unit_head.
8908 (struct abbrev_info): Shorten two int flags.
8909 (dwarf_alloc_abbrev): Take a CU argument.
8910 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8911 each time through the loop. Update cleanup argument.
8912 (psymtab_to_symtab_1): Update cleanup call.
8913 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8914 abbrev_obstack.
8915 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8916 Just call obstack_free and clear the pointer.
8917
8918 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * infrun.c (handle_inferior_event): Remove short-circuit code for
8921 events in a different thread.
8922
8923 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8924
8925 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8926 print the whole transfer.
8927 (initialize_targets): Update description of "set debug target".
8928
8929 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8930
8931 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8932
8933 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8934
8935 * MAINTAINERS (write after approval): Add myself.
8936
8937 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8938
8939 * sh-tdep.c (sh_print_registers_info): Use for loop.
8940 Don't skip multiple registers when a float register is encountered.
8941
8942 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8943
8944 Fix PR tdep/1291.
8945 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8946 to official SH documentation.
8947
8948 2004-03-07 Andrew Cagney <cagney@redhat.com>
8949
8950 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8951 unused function.
8952
8953 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8956 (arm_get_next_pc): Handle BX and BLX.
8957
8958 2004-03-07 Andrew Cagney <cagney@redhat.com>
8959
8960 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8961 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8962 HPPA_SP_REGNUM.
8963 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8964 (hppa_target_read_fp): Delete.
8965 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8966 register_virtual_size, max_register_raw_size,
8967 max_register_virtual_size, register_byte, register_size,
8968 target_read_fp, fp_regnum, and register_bytes. Set register_type
8969 instead of register_virtual_type.
8970 (hppa32_register_type, hppa64_register_type): Replace
8971 hppa32_register_virtual_type and hppa64_register_virtual_type.
8972 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8973 (HPPA_FP_REGNUM): Define.
8974
8975 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8976
8977 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8978 (pa_do_registers_info): Delete.
8979 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8980 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8981 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8982
8983 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8984 GDB_TARGET_IS_HPPA code.
8985 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8986 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8987 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8988 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8989 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8990 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8991 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8992 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8993 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8994 (hppa_frameless_function_invocation, hppa64_store_return_value)
8995 (hppa_store_struct_return, hppa64_extract_return_value)
8996 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8997 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8998 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8999 (find_proc_framesize, deposit_21, restore_pc_queue)
9000 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9001 (rp_saved, pc_in_linker_stub): Delete.
9002
9003 Unconditionally enable 64-bit frame and ABI code.
9004 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9005 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9006 push_dummy_frame, fix_call_dummy, push_arguments,
9007 call_dummy_location, extract_return_value, use_struct_convention,
9008 store_return_value, store_struct_return, saved_pc_after_call,
9009 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9010 frame_chain, frame_chain_valid, frameless_function_invocation,
9011 frame_saved_pc, and pop_frame.
9012
9013 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9014 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9015 (hppa_gdbarch_init): Do not set PC_REGNUM.
9016
9017 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9018
9019 * config/alpha/tm-fbsd.h: Remove file.
9020 * config/alpha/fbsd.mt: Tweak comment.
9021 (TM_FILE): Set to tm-alpha.h.
9022
9023 2004-03-05 Andrew Cagney <cagney@redhat.com>
9024
9025 * infrun.c (step_over_function): When non-legacy code, and no
9026 step_frame_id, use the unwinder to get the caller's frame ID.
9027
9028 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9029
9030 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9031 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9032 bfd_arch_unknown. Adjust comment.
9033
9034 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9035 * i386obsd-tdep.c: Correct spelling in comment.
9036 * i386nbsd-tdep.c: Correct spelling in comment.
9037 * sparc-tdep.c: Correct spelling in comments.
9038
9039 2004-03-05 David Carlton <carlton@kealia.com>
9040
9041 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9042 bug.
9043
9044 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9045
9046 * sparc-tdep.c: Fix typo in comment.
9047
9048 2004-03-04 J. Brobecker <brobecker@gnat.com>
9049
9050 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9051
9052 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9053
9054 * dwarf2read.c: Add comment describing memory lifetimes.
9055 (struct dwarf2_pinfo): Update comment.
9056 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9057 (read_enumeration, new_symbol): Don't use obsavestring.
9058
9059 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9060
9061 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9062 instead of amd64_fill_fxsave.
9063 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9064 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9065
9066 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9067 Reorganize code a bit.
9068
9069 2004-03-04 Orjan Friberg <orjanf@axis.com>
9070
9071 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9072 when the frame pointer is pushed. Don't set the frame pointer's
9073 address on the stack unless it's actually located there.
9074 Set the SRP's address on the stack correctly when the PC is still in
9075 the prologue.
9076 (cris_return_value): New function.
9077 (cris_gdbarch_init): Clear deprecated store_return_value,
9078 extract_return_value.
9079
9080 2004-03-02 Jim Blandy <jimb@redhat.com>
9081
9082 * stabsread.c (reg_value_complaint): The maximum register number
9083 is one less than the number of registers.
9084
9085 2004-03-02 Andrew Cagney <cagney@redhat.com>
9086
9087 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9088 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9089 trailing comma and redundant assignment of I386_ST0_REGNUM.
9090 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9091 32-bit segment registers.
9092
9093 2004-03-01 Andrew Cagney <cagney@redhat.com>
9094
9095 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9096 use frame_relative_level and get_next_frame.
9097
9098 2004-02-29 Andrew Cagney <cagney@redhat.com>
9099
9100 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9101 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9102 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9103 Delete macro.
9104
9105 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9106
9107 * inflow.c (terminal_inferior): Don't give up the terminal if we
9108 previously couldn't get the inferior's terminal state.
9109
9110 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9111
9112 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9113 PC_REGNUM.
9114
9115 2004-02-28 Andrew Cagney <cagney@redhat.com>
9116
9117 * NEWS: Refer to GDB 6.1.
9118 * README: Refer to GDB 6.1.
9119 * PROBLEMS: Refer to GDB 6.1.
9120
9121 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9122
9123 * thread-db.c (disable_thread_signals): Remove unused function.
9124
9125 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9126
9127 * amd64-nat.c: Include "gdb_string.h".
9128 (amd64_collect_native_gregset): Zero-extend the 32-bit
9129 general-purpose registers and %eip.
9130
9131 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9132 * amd64-tdep.c (amd64_collect_fxsave): New function.
9133 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9134
9135 * i387-tdep.h: Update copyright year.
9136 (i387_collect_fxsave): New prototype.
9137 * i387-tdep.c: Update copyright year.
9138 (i387_collect_fxsave): New function containing most of the code
9139 from i387_fill_fxsave.
9140 (i387_fill_fxsave): Call i387_collect_fxsave.
9141
9142 2004-02-28 Andrew Cagney <cagney@redhat.com>
9143
9144 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9145 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9146
9147 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9148
9149 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9150
9151 2004-02-28 Andrew Cagney <cagney@redhat.com>
9152
9153 * utils.c: Use "", instead of <>, to include readline.
9154 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9155 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9156 * source.c, solib.c, exec.c, event-top.c: Ditto.
9157 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9158 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9159 * Makefile.in: Update all dependencies.
9160 (readline_tilde_h, readline_history_h): Define.
9161 (readline_headers): Delete.
9162
9163 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9164
9165 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9166 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9167 "config/i386/tm-lx64.h".
9168
9169 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9170 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9171 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9172
9173 2004-02-28 Andrew Cagney <cagney@redhat.com>
9174
9175 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9176
9177 * breakpoint.c (_initialize_breakpoint): Use
9178 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9179 Add help to show command.
9180
9181 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9182
9183 * i386-nat.c: Reformat to be closer to coding standards.
9184 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9185 `retval'. Make variables `align' and `size' local to while-loop.
9186 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9187 (_initialize_i386_nat): New prototype.
9188
9189 * tui/tui.c: Include <readline/readline.h> instead of
9190 "readline/readline.h". Include it after <term.h> and
9191 "gdb_curses.h".
9192
9193 2004-02-27 Andrew Cagney <cagney@redhat.com>
9194
9195 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9196 the new frame unwind code.
9197 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9198 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9199 PCOQ_HEAD_REGNUM.
9200
9201 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9202 "return_value" and "push_dummy_call".
9203 (hppa32_use_struct_convention): Delete unused function.
9204 (hppa32_store_return_value): Delete unused function.
9205 (hppa32_extract_return_value): Delete unused function.
9206 (hppa32_stack_align): Delete function.
9207
9208 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9209
9210 * coffread.c (enter_linenos): Don't let rawptr reference memory
9211 outside linetab[]'s limits.
9212
9213 2004-02-27 Andrew Cagney <cagney@redhat.com>
9214
9215 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9216 inferior stack space - the stack needs to grow upwards.
9217 (hppa32_frame_align): New function.
9218 (hppa64_frame_align): Replace hppa_frame_align.
9219 (hppa_gdbarch_init): Update.
9220
9221 2004-02-26 Orjan Friberg <orjanf@axis.com>
9222
9223 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9224 (dwarf2-frame.h): Include.
9225 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9226 Remove static variables related to ABI setting.
9227 (struct gdbarch_tdep): Remove cris_abi member.
9228 (struct frame_extra_info): Remove.
9229 (cris_unwind_cache, stack_item): New structs.
9230 (cris_frame_unwind, cris_frame_base): New variables.
9231 (push_stack_item, pop_stack_item)
9232 (cris_frame_unwind_cache, cris_frame_this_id)
9233 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9234 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9235 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9236 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9237 (cris_reg_struct_has_addr): New functions.
9238 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9239 (cris_frame_saved_pc, cris_saved_pc_after_call,
9240 (cris_store_struct_return, cris_frameless_function_invocation)
9241 (cris_pop_frame, cris_skip_prologue_main)
9242 (cris_abi_original_store_return_value)
9243 (cris_abi_v2_store_return_value)
9244 (cris_abi_original_extract_return_value)
9245 (cris_abi_v2_extract_return_value)
9246 (cris_abi_original_reg_struct_has_addr)
9247 (cris_abi_v2_reg_struct_has_addr)
9248 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9249 (cris_push_return_address, cris_abi_update): Remove.
9250 (_initialize_cris_tdep): Remove ABI command.
9251 (cris_dump_tdep): Ditto.
9252 (cris_gdbarch_init): Remove ABI command.
9253 Set store_return_value, extract_return_value, push_dummy_code,
9254 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9255 frame_unwind_append_sniffer, frame_base_set_default.
9256 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9257 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9258 sizeof_call_dummy_words, get_saved_register, push_return_address,
9259 pop_frame, store_struct_return, frame_init_saved_regs,
9260 init_extra_frame_info, frameless_function_invocation, frame_chain,
9261 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9262 dummy_write_sp.
9263
9264 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9265
9266 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9267 * valprint.c (print_hex_chars): Change from static to external.
9268 (print_char_chars): New function.
9269 * printcmd.c (print_scalar_formatted): For integer and enum types
9270 that are longer than LONGEST, perform processing via appropriate
9271 print_*_chars routines.
9272
9273 2004-02-26 Andrew Cagney <cagney@redhat.com>
9274
9275 * Makefile.in: Update dependencies.
9276 Changes from Ulrich Weigand,
9277 * s390-tdep.c: Include "dwarf2-frame.h".
9278 (s390_dwarf2_frame_init_reg): New function.
9279 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9280 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9281
9282 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9283
9284 * breakpoint.c (pending_break_support): New setting variable.
9285 (break_command_1): Account for pending_break_support setting
9286 when creating pending breakpoints.
9287 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9288 (_initialize_breakpoint): Add "set breakpoint pending" and
9289 "show breakpoint pending" commands.
9290
9291 2004-02-26 Andrew Cagney <cagney@redhat.com>
9292
9293 Fix PR i18n/1570.
9294 * charset.c (backslashable, backslashed, represented): Remove 'e'
9295 from list of escaped characters, not part of ISO-C.
9296
9297 2004-02-25 J. Brobecker <brobecker@gnat.com>
9298
9299 From Peter Schauer <schauer@pdf.de>:
9300 * tui/tui.c: Move system header includes after local includes.
9301 Fixes a build failure on solaris systems.
9302
9303 2004-02-25 J. Brobecker <brobecker@gnat.com>
9304
9305 * configure.in: Refine the previous change.
9306 * configure: Regenerate.
9307
9308 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9309
9310 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9311 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9312 "amd64-tdep.h" instead of "x86-64-tdep.h".
9313 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9314 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9315 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9316 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9317 and "x86-64-tdep.c".
9318 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9319 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9320 and "x86-64-tdep.c".
9321 * amd64bsd-nat.c: Update copyright year.
9322 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9323 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9324 "x86-64-tdep.h".
9325 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9326 "x86-64-tdep.h".
9327 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9328 "x86-64-tdep.h".
9329 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9330 "x86-64-tdep.h".
9331 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9332 "x86-64-tdep.h".
9333 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9334 "x86-64-tdep.h".
9335 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9336 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9337 * Makefile.in (amd64_linux_tdep_h): Renamed from
9338 x86_64_linux_tdep_h.
9339 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9340 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9341 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9342 (amd64obsd-tdep.o): Update dependencies.
9343 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9344 dependencies.
9345 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9346 dependencies.
9347 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9348 amd64-linux-nat.c amd64-linux-tdep.c.
9349 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9350 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9351 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9352 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9353 amd64-tdep.o and amd64-linux-tdep.o.
9354 (TM_FILE): Set to tm-linux64.h.
9355 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9356 (NAT_FILE): Set to nm-linux64.h.
9357 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9358 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9359 amd64-tdep.o.
9360 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9361 amd64-tdep.o.
9362 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9363 amd64-tdep.o.
9364
9365 2004-02-25 Roland McGrath <roland@redhat.com>
9366
9367 * remote.c (remote_protocol_qPart_auxv): New variable.
9368 (init_all_packet_configs): Initialize it.
9369 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9370 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9371 (show_remote_cmd): Call it.
9372 (_initialize_remote): Initialize commands.
9373 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9374 service TARGET_OBJECT_AUXV requests.
9375
9376 2004-02-25 J. Brobecker <brobecker@gnat.com>
9377
9378 * configure.in: Make sure that the wborder function is available.
9379 Otherwise, search for it in the cur_colr library.
9380 * configure: Regenerate.
9381
9382 2004-02-25 Andrew Cagney <cagney@redhat.com>
9383
9384 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9385
9386 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9387
9388 * config/i386/tm-x86-64linux.h: Tweak comments.
9389
9390 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9391
9392 * MAINTAINERS: Add self to write-after-approval list.
9393
9394 2004-02-25 Andrew Cagney <cagney@redhat.com>
9395
9396 PR cli/1566. Problem found, and fix suggested by David Allan.
9397 * cli/cli-script.c (execute_control_command): Unconditionally
9398 install a cleanup. Default "ret" to "invalid_control". Use
9399 "break" instead of "return" to escape from the switch.
9400
9401 2004-02-24 J. Brobecker <brobecker@gnat.com>
9402
9403 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9404 with the lines macro defined in term.h on AiX.
9405 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9406 a collision with the label_width macro defined in term.h on AiX.
9407
9408 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9409
9410 Committed by Kevin Buettner <kevinb@redhat.com>.
9411
9412 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9413 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9414 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9415 instead of ia64_write_pc().
9416 * ia64-linux-tdep.c (regcache.h): Include.
9417 (ia64_linux_write_pc): New function.
9418
9419 2004-02-23 Roland McGrath <roland@redhat.com>
9420
9421 * auxv.c (info_auxv_command): Fix typos in error messages.
9422
9423 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9424
9425 * x86-64-tdep.h: Tweak comment.
9426 (enum amd64_regnum): New.
9427 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9428 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9429 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9430 (X86_64_XMM1_REGNUM): Removed.
9431 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9432 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9433 prototypes for renamed functions.
9434 * x86-64-tdep.c: Fix typo.
9435 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9436 register numbers.
9437 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9438 Use constants from `enum amd64_regnum' for register numbers.
9439 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9440 (amd64_analyze_prologue, amd64_frame_cache,
9441 amd64_sigtramp_frame_cache): Use constants from `enum
9442 amd64_regnum' for register numbers.
9443 (amd64_supply_fpregset): Adjust for renamed functions.
9444 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9445 `enum amd64_regnum' for register numbers.
9446 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9447 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9448 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9449 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9450 (amd64_linux_fill_gregset): Adjust for renamed macros.
9451 (fetch_core_registers): Adjust for renamed functions.
9452 (amd64_linux_init_abi): Adjust for renamed functions.
9453 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9454 renamed functions.
9455 * amd64-nat.c: Adjust for renamed macros.
9456 * amd64bsd-nat.c (fetch_inferior_registers)
9457 (store_inferior_registers): Use constants from `enum amd64_regnum'
9458 for register numbers. Adjust for renamed variables.
9459 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9460 renamed variables.
9461 (_initialize_amd64fbsd_nat): Use constants from `enum
9462 amd64_regnum' for register numbers.
9463 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9464 `enum amd64_regnum' for register numbers.
9465 (amd64fbsd_init_abi): Adjust for renamed functions.
9466 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9467 `enum amd64_regnum' for register numbers.
9468 (amd64nbsd_init_abi): Adjust for renamed functions.
9469 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9470 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9471 `enum amd64_regnum' for register numbers.
9472 (amd64obsd_init_abi): Adjust for renamed functions.
9473 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9474
9475 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9476
9477 * breakpoint.c (print_one_breakpoint): Do not output spaces
9478 after printing <PENDING> for a pending breakpoint.
9479
9480 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9481
9482 * printcmd.c (print_scalar_formatted): Initialize val_long
9483 to remove compiler warning message.
9484
9485 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9486
9487 * defs.h (nquery, yquery): New prototypes.
9488 * breakpoint.c (break_command_1): Use new nquery interface.
9489 * utils.c (defaulted_query, nquery, yquery): New functions.
9490
9491 2004-02-23 Andrew Cagney <cagney@redhat.com>
9492
9493 * hppa-tdep.c (hppa_frame_align): New function.
9494 (hppa32_push_dummy_call): New function.
9495 (hppa64_push_dummy_call): New function.
9496 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9497 disabled.
9498
9499 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9500 FIX_CALL_DUMMY when push_dummy_call is available.
9501 (call_function_by_hand, push_dummy_code): Ditto.
9502
9503 2004-02-22 Andrew Cagney <cagney@redhat.com>
9504
9505 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9506 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9507 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9508 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9509 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9510 call_dummy_location to ON_STACK.
9511
9512 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9513
9514 * x86-64-linux-tdep.c: Tweak comment.
9515 (amd64_linux_supply_gregset): Renamed from
9516 x86_64_linux_supply_gresget.
9517 (amd64_linux_fill_gregset): Renamed from
9518 x86_64_linux_fill_gregset.
9519 (fetch_core_registers): Adjust for renamed functions.
9520 (amd64_core_fns): Renamed from x86_64_core_fns.
9521 (amd64_linux_sigtramp_start): Renamed from
9522 x86_64_linux_sigtramp_start.
9523 (amd64_linux_pc_in_sigtramp): Renamed from
9524 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9525 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9526 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9527 (amd64_linux_sigcontext_addr): Renamed from
9528 x86_64_linux_sigcontext_addr.
9529 (amd64_linux_sc_reg_offset): Renamed from
9530 x86_64_linux_sc_reg_offset.
9531 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9532 Adjust for renamed functions and variables.
9533 (_initialize_amd64_linux_tdep): Renamed from
9534 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9535 variables.
9536 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9537 Adjust for renamed functions.
9538
9539 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9540 from x86_64_linux_gregset64_reg_offset.
9541 (amd64_linux_gregset32_reg_offset): Rename from
9542 x86_64_linux_gregset64_reg_offset.
9543 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9544 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9545 (amd64_linux_dr_set_control): Renamed from
9546 x86_64_linux_dr_set_control. Adjust for renamed functions.
9547 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9548 Adjust for renamed functions.
9549 (amd64_linux_dr_reset_addr): Renamed from
9550 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9551 (amd64_linux_dr_get_status): Renamed from
9552 x86_64_linux_dr_get_status. Adjust for renamed functions.
9553 (_initialize_amd64_linux_nat): Renamed from
9554 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9555 functions.
9556 * config/i386/nm-x86-64linux.h: Update copyright year.
9557 Adjust for renamed functions.
9558
9559 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9560 amd64fbsd_sigtramp_start.
9561 (amd64fbsd_sigtramp_end_addr): Renamed from
9562 amd64fbsd_sigtramp_end.
9563 (amd64fbsd_init_abi): Adjust for renamed variables.
9564 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9565 variables.
9566 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9567 amd64fbsd_sigtramp_start.
9568 (amd64fbsd_sigtramp_end_addr): Renamed from
9569 amd64fbsd_sigtramp_end.
9570
9571 2004-02-22 Andrew Cagney <cagney@redhat.com>
9572
9573 * hppa-tdep.c (hppa32_return_value): New function.
9574 (hppa64_return_value): New function.
9575 (hppa_gdbarch_init): Set return_value; keep disabled.
9576
9577 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9578 struct-return and inferior function call methods.
9579
9580 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9581 "frame-base.h".
9582 (struct hppa_frame_cache): Define.
9583 (hppa_frame_cache, hppa_frame_this_id): New functions.
9584 (hppa_frame_prev_register): New function.
9585 (hppa_frame_unwind, hppa_frame_base): New variables.
9586 (hppa_frame_unwind_sniffer): New function.
9587 (hppa_frame_base_address, hppa_unwind_pc): New function.
9588 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9589 sniffer, and frame base sniffer; keep disabled.
9590 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9591 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9592
9593 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9594 to predicates for "seriously old code".
9595
9596 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9597 runtime if(0).
9598
9599 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9600 unsigned.
9601 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9602
9603 * config/pa/tm-hppa.h: Update copyright.
9604 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9605 (deprecated_init_frame_pc_default): Delete declaration.
9606 (hppa_frame_init_saved_regs): Delete declaration.
9607 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9608 * hppa-tdep.c: Include "arch-utils.h".
9609 (hppa_gdbarch_init): Set deprecated init_frame_pc
9610 and deprecated frame_init_saved_regs.
9611 (hppa_frame_init_saved_regs): Make static.
9612
9613 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9614
9615 Remove old 386BSD support.
9616 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9617 * configure.host: Remove i[34567]86-*-bsd*.
9618 * configure.tgt: Remove i[34567]86-*-bsd*.
9619 * i386b-nat.c: Removed.
9620 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9621 (i386b-nat.o): Remove dependencies.
9622
9623 * config/i386/i386bsd.mh: Removed.
9624 * config/i386/i386bsd.mt: Removed.
9625 * config/i386/nm-i386bsd.h: Removed.
9626 * config/i386/tm-i386bsd.h: Removed.
9627 * config/i386/xm-i386bsd.h: Removed.
9628
9629 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9630
9631 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9632 (amd64fbsd_init_abi): Set link map offsets.
9633 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9634 (amd64nbsd_init_abi): Set link map offsets.
9635 * amd64obsd-tdep.c: Include "solib-svr4.h".
9636 (amd64obsd_init_abi): Set link map offsets.
9637 * i386fbsd-tdep.c: Include "solib-svr4.h".
9638 (i386fbsd_init_abi): Set link map offsets.
9639 * i386nbsd-tdep.c: Include "solib-svr4.h".
9640 (i386nbsdelf_init_abi): Set link map offsets.
9641 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9642 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9643 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9644 solib-legacy.o and core-aout.o. Reformat.
9645 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9646 solib-svr4.o, solib-legacy.o. Reformat.
9647 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9648 * config/i386/nbsdelf.mh: Reformat.
9649 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9650 solib-svr4.o, solib-legacy.o and corelow.o.
9651 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9652 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9653 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9654 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9655 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9656 (TM_FILE): Set to tm-fbsd.h.
9657 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9658 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9659 solib-svr4.o.
9660 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9661 solib-svr4.o.
9662 (TM_FILE): Set to nm-nbsd.h.
9663 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9664 Simplify shared library support. Don't include "elf/common.h".
9665 (SVR4_SHARED_LIBS): Don't define.
9666 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9667 "solib.h".
9668 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9669 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9670 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9671 Don't include "i386/tm-i386.h". Include "solib.h".
9672 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9673 Don't include "i386/tm-i386.h".
9674 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9675 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9676 Include "i386/xm-i386.h".
9677 (HOST_LONG_DOUBLE_FORMAT): Remove.
9678
9679 Fix OpenBSD/i386 sigtramp recognition.
9680 * i386-tdep.h: Update copyright year.
9681 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9682 (i386bsd_sigtramp_end): New prototypes.
9683 (i386fbsd_sigtramp_start_addr): Renamed from
9684 i386fbsd_sigtramp_start.
9685 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9686 (i386obsd_sigtramp_start_addr): Renamed from
9687 i386obsd_sigtramp_start.
9688 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9689 * i386bsd-tdep.c: Update copyright year.
9690 (i386bsd_pc_in_sigtramp): Make public.
9691 * i386fbsd-nat.c: Update copyright year.
9692 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9693 * i386fbsd-tdep.c: Update copyright year.
9694 (i386fbsd_sigtramp_start_addr): Renamed from
9695 i386fbsd_sigtramp_start.
9696 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9697 (i386fbsdaout_init_abi): Adjust for renamed variables.
9698 * i386obsd-nat.c: Update copyright year.
9699 (_initialize_i386obsd_nat): Adjust for renamed variables.
9700 * i386obsd-tdep.c: Include "target.h".
9701 (i386obsd_page_size): New variable.
9702 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9703 (i386obsd_sigtramp_end): New functions.
9704 (i386obsd_sigtramp_start_addr): Renamed from
9705 i386obsd_sigtramp_start.
9706 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9707 (i386obsd_init_abi): Adjust for renamed variables. Set
9708 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9709 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9710
9711 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9712 trampoline change in OpenBSD kernel.
9713
9714 * amd64-nat.c: Update copyright year.
9715 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9716 architecture from REGCACHE.
9717
9718 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9719 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9720
9721 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9722
9723 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9724 i[34567]86-*-openbsd3.[0-3].
9725 * config/i386/obsdaout.mh: New file.
9726
9727 * config/i386/obsd.mh (MH_FLAGS): Remove.
9728
9729 Fix PR build/1549.
9730 * i386obsd-tdep.c: Update copyright years. Include
9731 "solib-svr4.h".
9732 (i386obsd_init_abi): Don't set regset_from_core_section here.
9733 (i386obsd_aout_init_abi): New function. Set
9734 regset_from_core_section here.
9735 (i386obsd_elf_init_abi): New function.
9736 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9737 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9738 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9739 (TM_FILE): Set to tm-nbsd.h.
9740
9741 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9742 solib-sunos.o.
9743
9744 * solib-svr4.h: Update copyright year.
9745 (svr4_ilp32_fetch_link_map_offsets)
9746 (svr4_lp64_fetch_link_map_offsets): New prototype.
9747 * solib-svr4.c: Update copyright year.
9748 (svr4_ilp32_fetch_link_map_offsets)
9749 (svr4_lp64_fetch_link_map_offsets): New function.
9750
9751 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9754 to the partial symbol table.
9755
9756 2004-02-20 J. brobecker <brobecker@gnat.com>
9757
9758 * PROBLEMS: Add description of problem documented under gdb/1560.
9759
9760 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9761
9762 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9763 comments.
9764 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9765 functions.
9766 (amd64obsd_init_abi): Reorder initializations. Use
9767 amd64obsd_r_reg_offset to initialize the general-purpose register
9768 set details. Set regset_from_core_section.
9769 (_initialize_amd64obsd_tdep): Rename from
9770 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9771 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9772 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9773
9774 * NEWS (New native configurations): Mention OpenBSD/alpha.
9775 * configure.tgt: Add alpha*-*-openbsd*.
9776 * configure.host: Add alpha*-*-openbsd*.
9777 * alphanbsd-tdep.c: Update copyright year.
9778 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9779
9780 2004-02-20 Andrew Cagney <cagney@redhat.com>
9781
9782 Fix PR tdep/1372.
9783 * configure.tgt: Delete target "none-*-*".
9784 * configure.host: Delete host "none-*-*".
9785 * config/none/none.mh: Delete file.
9786 * config/none/none.mt: Delete file.
9787 * config/none/xm-none.h: Delete file.
9788 * config/none/tm-none.h: Delete file.
9789 * config/none/nm-none.h: Delete file.
9790
9791 2004-02-19 Fred Fish <fnf@redhat.com>
9792
9793 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9794 cache->uses_fp prior to setting it.
9795
9796 2004-02-19 Fred Fish <fnf@redhat.com>
9797
9798 Fix for PR breakpoint/1558.
9799 * sh-tdep.c (IS_JSR): New macro.
9800 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9801
9802 2004-02-19 Jim Blandy <jimb@redhat.com>
9803
9804 * findvar.c (value_from_register): Doc fix.
9805
9806 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9807
9808 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9809 type being greater than sizeof of host's LONGEST. Always use
9810 unpack_long() unless format 'f' chosen.
9811
9812 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9813
9814 Committed by Elena Zannoni <ezannoni@redhat.com>
9815
9816 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9817 contains a symbol wich is the best, non-exact match for the given
9818 pc. Update comments.
9819
9820 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9821
9822 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9823 macro, which was part of the now removed Mach 3 port.
9824 * utils.c (request_quit): Ditto.
9825
9826 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9827
9828 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9829 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9830
9831 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9832
9833 Committed by Mark Kettenis <kettenis@gnu.org>.
9834
9835 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9836 Define.
9837
9838 2004-02-18 Andrew Cagney <cagney@redhat.com>
9839
9840 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9841 CONFIG_INSTALL and CONFIG_UNINSTALL.
9842 * configure: Re-generate.
9843 * interps.h (INTERP_TUI): Define.
9844 * Makefile.in: Update dependencies.
9845 (TUI): New macro.
9846 (tui-main.o): Specify dependencies.
9847 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9848 * tui/tui-main.c: New file.
9849
9850 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9851
9852 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9853 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9854 dependencies.
9855 * configure.host: Add x86_64-*-openbsd*.
9856 * configure.tgt: Add x86_64-*-openbsd*.
9857 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9858
9859 * tui/tui.c: Don't include <malloc.h>.
9860
9861 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9862 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9863 amd64nbsd-tdep.c.
9864
9865 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9866 static. Remove extraneous whitespace.
9867 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9868 static.
9869
9870 2004-02-17 Jim Blandy <jimb@redhat.com>
9871
9872 * findvar.c (value_from_register): Doc fix.
9873
9874 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9875
9876 Committed by Jim Blandy <jimb@redhat.com>.
9877
9878 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9879 CORE_ADDR as type for selectors. Correct types for GNU run time
9880 message lookup function to use double indirection.
9881 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9882 * objc-lang.h (lookup_child_selector): Adapt prototype.
9883
9884 * s390-nat.c (SUBOFF): New macro.
9885 (supply_gregset, fill_gregset): Use it to handle debugging
9886 of 32-bit exectuables running under a 64-bit kernel.
9887 * s390-tdep.c: Include "solib-svr4.h".
9888 (s390_svr4_fetch_link_map_offset): New function.
9889 (s390x_svr_fetch_link_map_offset): Likewise.
9890 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9891 * Makefile.in (s390-tdep.o): Update dependencies.
9892
9893 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9894 "frame-unwind.h".
9895 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9896 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9897 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9898 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9899 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9900 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9901 S390_SIGNAL_FRAMESIZE,
9902 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9903 (struct frame_extra_info): Remove.
9904 (s390_memset_extra_info): Remove.
9905 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9906 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9907 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9908 (is_rse): Renamed to ...
9909 (is_rsy): ... this. Support long displacements.
9910 (is_rxe): Renamed to ...
9911 (is_rxy): ... this. Support long displacements.
9912 (compute_x_addr): Support long displacements.
9913 (struct s390_prologue_data): New data type.
9914 (s390_on_stack): Change API to use struct s390_prologue_data.
9915 (s390_store): Reimplement.
9916 (s390_load): New function.
9917 (s390_get_signal_frame_info): Remove.
9918 (s390_get_frame_info): Remove, replace by ...
9919 (s390_analyze_prolog): ... this new function.
9920 (s390_check_function_end): Remove.
9921 (s390_function_start): Remove.
9922 (s390_frameless_function_invokation): Remove.
9923 (s390_is_sigreturn): Remove.
9924 (s390_init_frame_pc_first): Remove.
9925 (s390_init_frame_extra_info): Remove.
9926 (s390_frame_init_saved_regs): Remove.
9927 (s390_frame_saved_pc_nofix): Remove.
9928 (s390_frame_saved_pc): Remove.
9929 (s390_frame_chain): Remove.
9930 (s390_fp_regnum, s390_read_fp): Remove.
9931 (s390_pop_frame_regular, s390_pop_frame): Remove.
9932 (s390_saved_pc_after_call): Remove.
9933 (s390_skip_prologue): Reimplement.
9934 (s390_in_function_epilogue_p): Support long displacements.
9935 (struct s390_unwind_cache): New data structure.
9936 (s390_frame_unwind_cache): New function.
9937 (s390_prologue_frame_unwind_cache): Likewise.
9938 (s390_backchain_frame_unwind_cache): Likewise.
9939 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9940 (s390_frame_unwind): Define.
9941 (s390_frame_sniffer): New function.
9942 (struct s390_pltstub_unwind_cache): New data structure.
9943 (s390_pltstub_frame_unwind_cache): New function.
9944 (s390_pltstub_frame_this_id): Likewise.
9945 (s390_pltstub_frame_prev_register): Likewise.
9946 (s390_pltstub_frame_unwind): Define.
9947 (s390_pltstub_frame_sniffer): New function.
9948 (struct s390_sigtramp_unwind_cache): New data structure.
9949 (s390_sigtramp_frame_unwind_cache): New function.
9950 (s390_sigtramp_frame_this_id): Likewise.
9951 (s390_sigtramp_frame_prev_register): Likewise.
9952 (s390_sigtramp_frame_unwind): Define.
9953 (s390_sigtramp_frame_sniffer): New function.
9954 (s390_frame_base_address, s390_local_base_address): New functions.
9955 (s390_frame_base): Define.
9956 (s390_unwind_pc, s390_unwind_sp): New function.
9957 (s390_push_dummy_call): Use new frame base location.
9958 (s390_unwind_dummy_id): Likewise.
9959 (s390_gdbarch_init): Remove calls to:
9960 set_gdbarch_frameless_function_invocation,
9961 set_gdbarch_deprecated_init_frame_pc,
9962 set_gdbarch_deprecated_frame_chain,
9963 set_gdbarch_deprecated_frame_init_saved_regs,
9964 set_gdbarch_deprecated_pop_frame,
9965 set_gdbarch_deprecated_init_extra_frame_info,
9966 set_gdbarch_deprecated_init_frame_pc_first,
9967 set_gdbarch_deprecated_target_read_fp,
9968 set_gdbarch_deprecated_frame_saved_pc,
9969 set_gdbarch_deprecated_saved_pc_after_call,
9970 set_gdbarch_deprecated_fp_regnum.
9971 Add calls to:
9972 set_gdbarch_in_solib_call_trampoline,
9973 frame_unwind_append_sniffer,
9974 frame_base_set_default,
9975 set_gdbarch_unwind_pc,
9976 set_gdbarch_unwind_sp.
9977 * Makefile.in (s390-tdep.o): Update dependencies.
9978
9979 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9980 (S390_STACK_FRAME_OVERHEAD): Remove.
9981 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9982 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9983 (s390_promote_integer_argument): Remove.
9984 (s390_cannot_extract_struct_value_address): Remove.
9985 (s390_use_struct_convention, s390_store_struct_return): Remove.
9986 (s390_extract_return_value, s390_store_return_value): Remove.
9987 (s390_return_value_convention, s390_return_value): New functions.
9988 (is_float_singleton): Handle typedefs.
9989 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9990 Remove, replace by ...
9991 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9992 s390_function_arg_integer): ... these new functions.
9993 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9994 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9995 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9996 Fill in tdep->abi.
9997 Remove calls to:
9998 set_gdbarch_deprecated_store_struct_return,
9999 set_gdbarch_deprecated_extract_return_value,
10000 set_gdbarch_deprecated_store_return_value,
10001 set_gdbarch_use_struct_convention,
10002 set_gdbarch_extract_struct_value_address,
10003 set_gdbarch_deprecated_pc_in_call_dummy,
10004 set_gdbarch_deprecated_push_arguments,
10005 set_gdbarch_deprecated_save_dummy_frame_tos,
10006 set_gdbarch_deprecated_push_return_address,
10007 set_gdbarch_deprecated_sizeof_call_dummy_words,
10008 set_gdbarch_deprecated_call_dummy_words,
10009 set_gdbarch_deprecated_dummy_write_sp.
10010 Add calls to:
10011 set_gdbarch_push_dummy_call,
10012 set_gdbarch_unwind_dummy_id,
10013 set_gdbarch_return_value.
10014
10015 * config/s390/nm-linux.h: Update comments.
10016 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10017 (STOPPED_BY_WATCHPOINT): Redefine.
10018 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10019 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10020 (s390_stopped_by_watchpoint): Likewise.
10021 (watch_area_cnt): Remove.
10022 * s390-nat.c: Update comments.
10023 (watch_area): Remove typedef.
10024 Global replace watch_area by struct watch_area.
10025 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10026 (s390_stopped_by_watchpoint): Remove pid argument,
10027 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10028 (s390_fix_watch_points): Remove pid argument,
10029 use s390_inferior_tid. Recompute area spanned by watchpoints.
10030 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10031 argument. Reimplement.
10032
10033 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10034 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10035 (FETCH_INFERIOR_REGISTERS): Define.
10036 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10037 core-regset.o.
10038 * config/s390/s390x.mt: Remove.
10039 * config/s390/tm-s390.h: Remove.
10040 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10041 (TARGET_ELF64): Remove.
10042 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10043 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10044 s390*-*-* case; always set gdb_target to s390.
10045 * regformats/reg-s390.dat: Remove control registers.
10046 * regformats/reg-s390x.dat: Likewise.
10047 * s390-tdep.h: New file.
10048 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10049 Include "inferior.h" and "s390-tdep.h".
10050 Remove private definition of offsetof.
10051 (s390_register_u_addr): Remove.
10052 (regmap_gregset, regmap_fpregset): Define.
10053 (supply_gregset, fill_gregset): Reimplement.
10054 (supply_fpregset, fill_fpregset): Likewise.
10055 (s390_inferior_tid): New function.
10056 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10057 (fetch_inferior_registers, store_inferior_registers): Likewise.
10058 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10059 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10060 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10061 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10062 (struct gdbarch_tdep): Define.
10063 (struct s390_register_info): Define.
10064 (s390_register_info): New variable.
10065 (s390_register_name): Reimplement.
10066 (s390_register_type): New function.
10067 (s390_register_raw_size, s390x_register_raw_size): Remove.
10068 (s390_cannot_fetch_register): Remove.
10069 (s390_register_byte): Remove.
10070 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10071 (s390_dwarf_regmap): New variable.
10072 (s390_dwarf_reg_to_regnum): New function.
10073 (s390_stab_reg_to_regnum): Remove.
10074 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10075 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10076 (s390_convert_register_p): Likewise.
10077 (s390_register_to_value, s390_value_to_register): Likewise.
10078 (s390_register_reggroup_p): Likewise.
10079 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10080 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10081 (s390_supply_regset, s390_regset_from_core_section): New functions.
10082 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10083 (S390_FPR_SIZE): Likewise.
10084 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10085 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10086 (S390_NUM_GPRS): Move here from tm-s390.h.
10087 (S390_NUM_FPRS): Likewise.
10088 (s390_in_function_epilogue_p): New function.
10089 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10090 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10091 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10092 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10093 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10094 Remove calls to:
10095 set_gdbarch_deprecated_max_register_raw_size,
10096 set_gdbarch_deprecated_max_register_virtual_size,
10097 set_gdbarch_deprecated_register_byte,
10098 set_gdbarch_cannot_fetch_register,
10099 set_gdbarch_cannot_store_register,
10100 set_gdbarch_deprecated_register_size,
10101 set_gdbarch_deprecated_register_raw_size,
10102 set_gdbarch_deprecated_register_virtual_size,
10103 set_gdbarch_deprecated_register_virtual_type,
10104 set_gdbarch_deprecated_register_bytes.
10105 Add calls to:
10106 set_gdbarch_num_pseudo_regs,
10107 set_gdbarch_register_type,
10108 set_gdbarch_convert_register_p,
10109 set_gdbarch_register_to_value,
10110 set_gdbarch_value_to_register,
10111 set_gdbarch_register_reggroup_p,
10112 set_gdbarch_regset_from_core_section,
10113 set_gdbarch_pseudo_register_read,
10114 set_gdbarch_pseudo_register_write,
10115 set_gdbarch_in_function_epilogue_p.
10116 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10117 (s390_tdep_h): New variable.
10118
10119 2004-02-17 Jim Blandy <jimb@redhat.com>
10120
10121 * findvar.c (value_from_register): If the type has no length, just
10122 return an acceptable value --- don't report an internal error.
10123
10124 * stabsread.c (read_type): If we find any type numbers that are
10125 forward references, complain if the references aren't resolved by
10126 the time we're finished reading.
10127 (cleanup_undefined_types): Make error message more appropriate for
10128 a complaint.
10129
10130 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10131
10132 * Makefile.in (defs_h): Remove dependency on progress_h.
10133 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10134 progress.h.
10135 * main.c (captured_main): Delete use of START_PROGRESS and
10136 END_PROGRESS.
10137
10138 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10139
10140 * objfiles.c (terminate_minimal_symbol_table): Add back
10141 initialization of MSYMBOL_TYPE.
10142
10143 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10144
10145 Committed by Andrew Cagney.
10146 * Makefile.in (ia64_tdep_h): New macro.
10147 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10148 (ia64-tdep.o): Likewise.
10149 * ia64-tdep.h: New file.
10150 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10151 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10152 (ia64_aix_sigcontext_register_address): Likewise.
10153 (ia64_linux_getunwind_table): Delete declaration.
10154 * ia64-linux-tdep.c: Likewise.
10155
10156 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10157
10158 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10159 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10160 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10161
10162 2004-02-17 Andrew Cagney <cagney@redhat.com>
10163
10164 * symtab.c (skip_prologue_using_sal): New function.
10165 * symtab.h (skip_prologue_using_sal): Declare.
10166 * frv-tdep.c: Include "symtab.h".
10167 (skip_prologue_using_sal): Delete function.
10168 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10169 * rs6000-tdep.c (refine_prologue_limit): Mention
10170 skip_prologue_using_sal.
10171 * ia64-tdep.c (refine_prologue_limit): Ditto.
10172 * Makefile.in: Update dependencies.
10173
10174 2004-02-16 Andrew Cagney <cagney@redhat.com>
10175
10176 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10177 START_INFERIOR_TRAPS_EXPECTED.
10178 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10179 START_INFERIOR_TRAPS_EXPECTED.
10180 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10181 Delete macro.
10182 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10183 macro, moved to "nm-osf.h". Update copyright.
10184 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10185 update copyright.
10186
10187 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10188 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10189 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10190 frameless_look_for_prologue.
10191 * frame.h (legacy_frameless_look_for_prologue): Rename
10192 frameless_look_for_prologue.
10193 * gdbarch.h, gdbarch.c: Re-generate.
10194 * sh64-tdep.c (sh64_gdbarch_init): Update.
10195 * sh-tdep.c (sh_gdbarch_init): Update.
10196 * s390-tdep.c (s390_gdbarch_init): Update.
10197 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10198 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10199 * m68k-tdep.c (m68k_gdbarch_init): Update.
10200 (delta68_frame_args_address): Update.
10201 * m32r-tdep.c (m32r_gdbarch_init): Update.
10202 * hppa-tdep.c (hppa_gdbarch_init): Update.
10203 * h8300-tdep.c (h8300_gdbarch_init): Update.
10204 * frv-tdep.c (frv_gdbarch_init): Update.
10205 (frv_frameless_function_invocation): Update.
10206 * cris-tdep.c (cris_gdbarch_init): Update.
10207 (cris_frameless_function_invocation): Update.
10208 * avr-tdep.c (avr_gdbarch_init): Update.
10209 * arm-tdep.c (arm_gdbarch_init): Update.
10210 * stack.c (frame_info): Update, call predicate.
10211 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10212 * frame.c (legacy_get_prev_frame): Update, call predicate..
10213 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10214 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10215 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10216 invocation.
10217 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10218 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10219 * vax-tdep.c (vax_gdbarch_init): Ditto.
10220
10221 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10222 function.
10223
10224 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10225
10226 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10227 initializations.
10228
10229 2004-02-16 Andrew Cagney <cagney@redhat.com>
10230
10231 * tui/tui-windata.c: Include "gdb_string.h".
10232 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10233 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10234 * Makefile.in: Update dependencies.
10235
10236 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10237
10238 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10239 * infrun.c: Include "gdb_assert.h".
10240 (singlestep_ptid, saved_singlestep_ptid)
10241 (stepping_past_singlestep_breakpoint): New variables.
10242 (resume): Set singlestep_ptid. Check for singlestep thread
10243 hop.
10244 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10245 (handle_inferior_event): Handle singlestep thread hop.
10246
10247 2004-02-16 Andrew Cagney <cagney@redhat.com>
10248
10249 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10250 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10251 (dwarf2_frame_init_reg): Ditto.
10252
10253 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10254 suggested by Joshua Neuheisel
10255
10256 * configure.in: Always check for curses, including pdcurses.
10257 Warn, instead of error, when no curses are found. Enable TUI when
10258 curses is available.
10259 * configure: Re-generate.
10260
10261 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10262
10263 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10264 sh_sh4_register_convert_to_virtual.
10265 (sh_register_convert_to_raw): Rename from
10266 sh_sh4_register_convert_to_raw.
10267 (sh_pseudo_register_read): Accomodate above name change.
10268 (sh_pseudo_register_write): Ditto.
10269
10270 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10271
10272 * sh-tdep.c (sh_generic_register_name): Remove.
10273 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10274
10275 2004-02-15 Andrew Cagney <cagney@redhat.com>
10276
10277 * configure.in (build_warnings): Add -Wunused-function.
10278 * configure: Re-generate.
10279
10280 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10281 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10282
10283 * procfs.c (procfs_init_inferior): Assume that
10284 START_INFERIOR_TRAPS_EXPECTED is defined.
10285 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10286 * config/ns32k/tm-nbsd.h: Delete file,
10287 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10288
10289 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10290 * config/vax/tm-vax.h: Delete file.
10291
10292 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10293 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10294 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10295 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10296 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10297 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10298 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10299
10300 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10301
10302 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10303 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10304 (struct dwarf2_frame_ops): New.
10305 (dwarf2_frame_default_init_reg): New function, based on
10306 dwarf2_frame_init_reg.
10307 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10308 (dwarf2_frame_init_reg): Call architecture-specific function.
10309 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10310 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10311 instead of dwarf2_frame_data.
10312 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10313 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10314
10315 2004-02-15 Andrew Cagney <cagney@redhat.com>
10316
10317 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10318 register_gdbarch_swap.
10319 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10320 * f-lang.c (_initialize_f_language): Update, use
10321 DEPRECATED_REGISTER_GDBARCH_SWAP.
10322 * remote.c (_initialize_remote): Ditto.
10323 * regcache.c (_initialize_regcache): Ditto.
10324 * parse.c (_initialize_parse): Ditto.
10325 * infrun.c (_initialize_infrun): Ditto.
10326 * mi/mi-main.c (_initialize_mi_main): Ditto.
10327 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10328
10329 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10330 poking .cacheable directly.
10331 * symfile.c (symfile_bfd_open): Ditto.
10332
10333 * Makefile.in: Update all dependencies.
10334
10335 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10336 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10337 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10338 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10339 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10340
10341 2004-02-14 Andrew Cagney <cagney@redhat.com>
10342
10343 * arch-utils.c (legacy_convert_register_p): Check
10344 DEPRECATED_REGISTER_CONVERTIBLE_P.
10345 * findvar.c (value_of_register): Ditto.
10346
10347 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10348 * gdbarch.h, gdbarch.c: Re-generate.
10349 * arch-utils.c (deprecated_register_convertible_not): Delete.
10350 * arch-utils.h (deprecated_register_convertible_not): Delete.
10351 * mi/mi-main.c (get_register): Update. Update copyright.
10352 * infcmd.c (default_print_registers_info): Update.
10353
10354 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10355 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10356 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10357 * gdbarch.h, gdbarch.c: Re-generate.
10358 * frame.c (deprecated_get_next_frame_hack): Delete function.
10359 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10360 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10361 Update.
10362 * infcall.c (call_function_by_hand): Update.
10363
10364 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10365
10366 * symfile.c (init_entry_point_info, entry_point_address): Move
10367 from here...
10368 * objfiles.c (init_entry_point_info, entry_point_address):..to
10369 here.
10370 * symfile.h (init_entry_point_info, entry_point_address): Remove
10371 prototypes.
10372 * objfiles.h (init_entry_point_info, entry_point_address):Add
10373 prototypes.
10374 * cris-tdep.c: Remove include of symfile.h. Add include of
10375 objfiles.h.
10376 * infcall.c: Ditto.
10377 * mcore-tdep.c: Ditto.
10378 * mn10300-tdep.c: Ditto.
10379 * sh64-tdep.c: Ditto.
10380 * v850-tdep.c: Ditto.
10381 * arm-tdep.c: Remove include of symfile.h.
10382 * blockframe.c: Ditto.
10383 * coffread.c: Ditto.
10384 * dbxread.c: Ditto.
10385 * dwarf2read.c: Ditto.
10386 * dwarfread.c: Ditto.
10387 * frv-tdep.c: Ditto.
10388 * ia64-tdep.c: Ditto.
10389 * mdebugread.c: Ditto.
10390 * mipsread.c: Ditto.
10391 * rs6000-tdep.c: Ditto.
10392 * s390-tdep.c: Ditto.
10393 * sh-tdep.c: Ditto.
10394 * xstormy16-tdep.c: Ditto.
10395 * gdbarch.sh: Remove include of symfile.h.
10396 * gdbarch.c: Regenerate.
10397 * solib-irix.c (enable_break): Use entry_point_address().
10398 Add comment about include file.
10399 * xcoffread.c: Add comment about include file.
10400 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10401 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10402 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10403 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10404 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10405
10406 2004-02-13 Andrew Cagney <cagney@redhat.com>
10407
10408 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10409 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10410 copyright.
10411 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10412
10413 2004-02-12 Fred Fish <fnf@redhat.com>
10414
10415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10416 set_gdbarch_store_return_value.
10417
10418 2004-02-12 Andrew Cagney <cagney@redhat.com>
10419
10420 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10421 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10422 (interrupt_query): Ditto.
10423 (ofunc): Delete unused variable.
10424 * cris-tdep.c (cris_abi): Delete unused function.
10425 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10426 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10427 (cris_get_asr_quick_shift_steps): Ditto.
10428 (cris_skip_prologue_frameless_p): Ditto.
10429 * arm-tdep.c (arm_push_return_address): Delete unused function.
10430 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10431 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10432 * s390-tdep.c (s390_function_start): Delete unused function.
10433
10434 2004-02-12 Andrew Cagney <cagney@redhat.com>
10435
10436 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10437 gdbarch.h, gdbarch.c: Re-generate.
10438 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10439 to generic_prologue_frameless_p.
10440 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10441 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10442
10443 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10444
10445 * mips-linux-tdep.c: Include "frame.h".
10446 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10447 (mips_linux_skip_resolver): New functions.
10448 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10449 and set_gdbarch_in_solib_call_trampoline.
10450 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10451 to after set_gdbarch_in_solib_return_trampoline. Only set the
10452 solib hooks to mips16 functions if the OS ABI is unknown.
10453 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10454 including "config/tm-linux.h".
10455 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10456 * Makefile.in (mips-linux-tdep.o): Update.
10457
10458 2004-02-11 David Carlton <carlton@kealia.com>
10459
10460 * linespec.c (decode_compound): Only look for a class symbol when
10461 considering all but the rightmost component.
10462
10463 2004-02-11 Andrew Cagney <cagney@redhat.com>
10464
10465 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10466 abi code are are separatly grouped.
10467
10468 2004-02-11 Andrew Cagney <cagney@redhat.com>
10469
10470 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10471 * gdbarch.h, gdbarch.c: Re-generate.
10472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10473 * v850-tdep.c (v850_gdbarch_init): Update.
10474 * sh64-tdep.c (sh64_gdbarch_init): Update.
10475 * sh-tdep.c (sh_gdbarch_init): Update.
10476 * s390-tdep.c (s390_gdbarch_init): Update.
10477 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10478 * mips-tdep.c (mips_gdbarch_init): Update.
10479 * mcore-tdep.c (mcore_gdbarch_init): Update.
10480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10481 * m32r-tdep.c (m32r_gdbarch_init): Update.
10482 * ia64-tdep.c (ia64_gdbarch_init): Update.
10483 * hppa-tdep.c (hppa_gdbarch_init): Update.
10484 * h8300-tdep.c (h8300_gdbarch_init): Update.
10485 * frv-tdep.c (frv_gdbarch_init): Update.
10486 * d10v-tdep.c (d10v_gdbarch_init): Update.
10487 * cris-tdep.c (cris_gdbarch_init): Update.
10488 * avr-tdep.c (avr_gdbarch_init): Update.
10489 * arm-tdep.c (arm_gdbarch_init): Update.
10490 * alpha-tdep.c (alpha_gdbarch_init): Update.
10491
10492 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10493
10494 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10495 comma.
10496 (sh_sh4al_dsp_register_name): Ditto.
10497
10498 2004-02-10 Andrew Cagney <cagney@redhat.com>
10499
10500 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10501 (mips_init_frame_pc_first): Delete function.
10502 (mips_frame_saved_pc): Delete function.
10503 (mips_frame_chain): Delete function.
10504 (mips_init_extra_frame_info): Delete function.
10505 (mips_xfer_register): Delete unused variable "reg".
10506 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10507 (mips_n32n64_return_value): Delete unused variable "reg".
10508 (mips_n32n64_return_value): Delete unused variable "pos".
10509 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10510 (mips_o32_return_value): Delete unused variable "pos".
10511 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10512 (mips_print_fp_register): Delete unused variable "namelen"
10513 (mips_print_fp_register): Delete unused variable "flt2"
10514 (get_frame_pointer): Delete function.
10515 (cached_proc_desc): Delete static variable.
10516 (mips_pop_frame): Delete function.
10517 (mips_find_saved_regs): Delete function.
10518 (mips_get_saved_register): Delete function.
10519 (mips_saved_pc_after_call): Delete function.
10520 (SIGFRAME_BASE): Delete macro.
10521 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10522 (SIGFRAME_PC_OFF): Delete macro.
10523 (SIGFRAME_REGSAVE_OFF): Delete macro.
10524 (mips_dump_tdep): Do not print deleted macro definitions.
10525
10526 2004-02-10 Andrew Cagney <cagney@redhat.com>
10527
10528 * Makefile.in (SFILES): Remove explictly listed tui files.
10529 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10530
10531 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10532
10533 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10534 to use paddr functions to format ia64 addresses and long values.
10535 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10536 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10537 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10538 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10539 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10540
10541 2004-02-10 Andrew Cagney <cagney@redhat.com>
10542
10543 * defs.h: Do not include "tui.h".
10544 * gdb_curses.h: New file.
10545 * tui/tui-hooks.h: New file.
10546 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10547 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10548 (tui_initialize_io): Delete declaration.
10549 (tui_initialize_readline: Delete redundant declaration.
10550 (struct tui_point): Delete definition.
10551 * tui/tui-data.h (struct tui_point): Define.
10552 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10553 * utils.c: Include "tui/tui.h".
10554 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10555 * printcmd.c [TUI]: Include "tui/tui.h".
10556 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10557 * tui/tui-command.c: Include "gdb_curses.h".
10558 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10559 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10560 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10561 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10562 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10563 * Makefile.in: Update all dependencies.
10564 (tui_hooks_h, gdb_curses_h): Define.
10565 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10566
10567 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10568
10569 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10570 auxf2. Add comments about some other rarely used fields.
10571
10572 2004-02-10 Andrew Cagney <cagney@redhat.com>
10573
10574 * Makefile.in (init.c): Fix script removing duplicates. Problem
10575 reported by Peter Schauer.
10576
10577 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10578
10579 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10580 obstack_specify_allocation.
10581 * objfiles.c (allocate_objfile): Ditto.
10582 * solib-sunos.c (solib_add_common_symbols)
10583 (allocate_rt_common_objfile): Ditto.
10584 * symfile.c (reread_symbols): Ditto.
10585 * gdb_obstack.h: Add comment.
10586
10587 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10588
10589 * linespec.c (decode_line_1, locate_first_half)
10590 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10591 commented out code.
10592
10593 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10594
10595 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10596 obstack_free.
10597
10598 2004-02-09 Andrew Cagney <cagney@redhat.com>
10599
10600 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10601 fails, try find_pc_section. Fix PR c++/1267.
10602 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10603 instead of find_pc_mapped_section.
10604 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10605 not default to the section containing PC. Fix PR symtab/1519.
10606
10607 2004-02-09 Andrew Cagney <cagney@redhat.com>
10608
10609 * Makefile.in (mips-tdep.o): Update dependencies.
10610 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10611 "trad-frame.h".
10612 (mips_unwind_pc): Return the pseudo PC register.
10613 (mips_unwind_dummy_id): New function.
10614 (mips16_fetch_instruction): New function.
10615 (mips32_fetch_instruction): New function.
10616 (struct mips_frame_cache): Define.
10617 (mips_mdebug_frame_cache): New function.
10618 (mips_mdebug_frame_this_id): New function.
10619 (mips_mdebug_frame_prev_register): New function.
10620 (mips_mdebug_frame_unwind): Define.
10621 (mips_mdebug_frame_sniffer): New function.
10622 (mips_mdebug_frame_base_address): New function.
10623 (mips_mdebug_frame_base): Define.
10624 (mips_mdebug_frame_base_sniffer): New function.
10625 (mips_gdbarch_init): Append unwind and base sniffers. Set
10626 unwind_dummy_id.
10627
10628 2004-02-08 Andrew Cagney <cagney@redhat.com>
10629
10630 * frame.c: Print both the register number and name.
10631
10632 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10633 and a sed into a single sed. Make .c and .o patterns more robust.
10634 (OBS): Delete.
10635 (INIT_FILES): Replace OBS with COMMON_OBS.
10636 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10637
10638 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10639
10640 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10641 the PT_WCOOKIE request.
10642
10643 2004-02-08 Andrew Cagney <cagney@redhat.com>
10644
10645 * mips-tdep.c (mips_unwind_pc): New function.
10646 (mips_gdbarch_init): Set mips_unwind_pc.
10647
10648 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10649 (get_frame_id): Allow the UNKNOWN_FRAME.
10650 (frame_register_unwind, get_frame_type): Ditto.
10651
10652 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10653 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10654 unwind_dummy_id indicates a legacy frame.
10655
10656 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10657 * configure: Re-generate.
10658
10659 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10660 methods.
10661
10662 2004-02-08 Andrew Cagney <cagney@redhat.com>
10663
10664 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10665 makefile macro.
10666 * configure: Re-generate.
10667 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10668 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10669 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10670 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10671 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10672 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10673 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10674 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10675 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10676 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10677
10678 2004-02-07 Andrew Cagney <cagney@redhat.com>
10679
10680 * Makefile.in: Update all dependencies.
10681
10682 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10683 * configure: Re-generate.
10684 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10685 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10686 (COMMON_OBS): Add "main.o" and "annotate.o".
10687 (ANNOTATE_OBS): Delete.
10688 (OBS): Remove ANNOTATE_OBS.
10689 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10690 CONFIG_INITS.
10691 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10692 against CONFIG_OBS and "main.o".
10693 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10694 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10695
10696 * tui/tui-command.c: Include "gdb_string.h", delete register
10697 attribute, use ISO-C function signatures.
10698 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10699 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10700 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10701 * tui/tui.c: Ditto.
10702
10703 * tui/tui-command.c: Change variable and function names to lower
10704 case.
10705 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10706 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10707 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10708 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10709 * tui/tui-winsource.c, tui/tui.c: Ditto.
10710
10711 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10712
10713 * buildsym.c (free_pending_blocks, finish_block)
10714 (record_pending_block, make_blockvector, end_symtab): Replace
10715 symbol_obstack with objfile_obstack.
10716 * coffread.c (process_coff_symbol, coff_read_struct_type)
10717 (coff_read_enum_type): Ditto.
10718 * cp-namespace.c (initialize_namespace_symtab)
10719 (check_one_possible_namespace_symbol): Ditto.
10720 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10721 (dwarf2_symbol_mark_computed): Ditto.
10722 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10723 * elfread.c (elf_symtab_read): Ditto.
10724 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10725 (hpread_read_enum_type, hpread_read_function_type)
10726 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10727 Ditto.
10728 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10729 (java_link_class_type): Ditto.
10730 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10731 (new_symbol): Ditto.
10732 * minsyms.c (install_minimal_symbols): Ditto.
10733 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10734 (terminate_minimal_symbol_table): Replace symbol_obstack with
10735 objfile_obstack.
10736 (free_objfile): Remove freeing of symbol_obstack.
10737 * objfiles.h: Remove symbol_obstack field.
10738 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10739 objfile_obstack.
10740 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10741 symbol_obstack.
10742 (solib_add_common_symbols): Replace symbol_obstack with
10743 objfile_obstack.
10744 * somsolib.c (som_solib_add): Ditto.
10745 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10746 (common_block_start, common_block_end): Ditto.
10747 * symfile.c (reread_symbols): Remove freeing and init of
10748 symbol_obstack.
10749 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10750 * symfile.h: Update comment.
10751 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10752 stats printing.
10753 * symtab.c (symbol_set_names): Replace symbol_obstack with
10754 objfile_obstack.
10755 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10756 Update comments.
10757 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10758 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10759 objfile_obstack.
10760
10761 2004-02-07 Andrew Cagney <cagney@redhat.com>
10762
10763 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10764 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10765 fields and variables.
10766 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10767 (m_beInvisible): Delete macro.
10768 * tui/tui-data.h: Fix case case fields and variables.
10769 (m_genWinPtrIsNull): Delete macro.
10770 (tui_win_list): Rename winList.
10771 (TUI_SRC_WIN): Rename srcWin.
10772 (TUI_DISASM_WIN): Rename disassemWin.
10773 (TUI_DATA_WIN): Rename dataWin.
10774 (TUI_CMD_WIN): Rename cmdWin.
10775 (m_genWinPtrNotNull): Delete macro.
10776 (m_winPtrIsNull): Delete macro.
10777 (m_winPtrNotNull): Delete macro.
10778 (tui_win_is_source_type): Replace m_winIsSourceType
10779 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10780 (tui_win_has_locator): Replace m_hasLocator.
10781 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10782 m_setWinHighlightOff.
10783 * tui/tui-data.c: Update references.
10784 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10785 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10786 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10787 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10788 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10789 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10790 * tui/tui-winsource.c, tui/tui.c: Ditto.
10791
10792 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10793
10794 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10795 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10796 StackGhost.
10797
10798 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10799 variable `i6' to `i7'.
10800 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10801
10802 2004-02-07 Andrew Cagney <cagney@redhat.com>
10803
10804 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10805 (TuiPoint, TuiPointPtr): Ditto.
10806 (TuiStatus, TuiStatusPtr): Ditto.
10807 (TuiWinType, TuiWinTypePtr): Ditto.
10808 (struct tui_point): Rename _TuiPoint.
10809 (tui_get_low_disassembly_address): Rename
10810 tuiGetLowDisassemblyAddress.
10811 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10812 (tuiFree): Delete declaration.
10813 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10814 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10815 * tui/tui.c (tuiFree): Delete function.
10816 * cli/cli-cmds.c (disassemble_command): Update references.
10817 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10818 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10819 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10820 * tui/tui-winsource.c: Ditto.
10821
10822 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10823
10824 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10825 coffstab_build_psymtabs, elfstab_build_psymtabs)
10826 (stabsect_build_psymtabs): Replace psymbol_obstack with
10827 objfile_obstack.
10828 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10829 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10830 Ditto.
10831 * dwarfread.c (scan_compilation_units): Ditto.
10832 * elfread.c (elfstab_offset_sections): Ditto.
10833 * hppa-tdep.c (read_unwind_info): Ditto.
10834 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10835 (hpread_end_psymtab): Ditto.
10836 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10837 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10838 Ditto.
10839 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10840 * objfiles.c (add_to_objfile_sections)
10841 (build_objfile_section_table): Ditto.
10842 (allocate_objfile): Remove init of psymbol_obstack.
10843 (free_objfile): Remove freeing of psymbol_obstack.
10844 * objfiles.h (struct objfile): Remove field
10845 psymbol_obstack. Update comments.
10846 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10847 psymbol_obstack with objfile_obstack.
10848 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10849 psymbol_obstack.
10850 * somread.c (som_symfile_offsets, init_import_symbols)
10851 (init_export_symbols): Replace psymbol_obstack with
10852 objfile_obstack.
10853 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10854 * symfile.c (default_symfile_offsets, syms_from_objfile)
10855 (reread_symbols): Remove freeing and init of psymbol_obstack.
10856 (cashier_psymtab): Update comment.
10857 * symmisc.c (print_objfile_statistics): Don't report stats for
10858 psymbol obstack.
10859 * symtab.h (struct general_symbol_info, struct partial_symtab):
10860 Update comments.
10861 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10862 (xcoff_symfile_offsets): Replace psymbol_obstack with
10863 objfile_obstack.
10864
10865 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10866
10867 * objfiles.h (struct objfile): Add objfile_obstack field.
10868 Remove type_obstack field.
10869
10870 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10871 read_structure_scope read_enumeration, new_symbol): Replace
10872 type_obstack with objfile_obstack.
10873 * dwarfread.c (struct_type, enum_type): Ditto.
10874 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10875 (lookup_fundamental_type): Ditto.
10876 * gdbtypes.h (TYPE_ALLOC): Ditto.
10877 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10878 (hpread_read_doc_function_type, hpread_read_struct_type)
10879 (fix_static_member_physnames, hpread_read_array_type)
10880 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10881 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10882 (java_link_class_type): Ditto.
10883 * mdebugread.c (parse_type): Ditto.
10884 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10885 * solib-sunos.c (solib_add_common_symbols): Ditto.
10886 * stabsread.c (define_symbol, read_type, read_member_functions,
10887 read_cpp_abbrev, read_one_struct_field): Ditto.
10888 * symfile.c (reread_symbols): Ditto.
10889 * symmisc.c (print_objfile_statistics): Ditto.
10890
10891 2004-02-07 Andrew Cagney <cagney@redhat.com>
10892
10893 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10894 (tui_exec_info_content): Rename TuiExecInfoContent.
10895 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10896 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10897 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10898 (TuiList, TuiListPtr): Ditto.
10899 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10900 (TuiDataType, TuiDataTypePtr): Ditto.
10901 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10902 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10903 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10904 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10905 (TuiDataElement, TuiDataElementPtr): Ditto.
10906 (TuiWinElement, TuiWinElementPtr): Ditto.
10907 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10908 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10909 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10910 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10911 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10912 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10913 * tui/tui-command.c, tui/tui-data.c: Update references.
10914 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10915 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10916 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10917 * tui/tui-winsource.c, tui/tui.c: Ditto.
10918
10919 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10920
10921 * dwarf2-frame.h: Update copyright.
10922 (enum dwarf2_frame_reg_rule): New.
10923 (struct dwarf2_frame_state_reg): New.
10924 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10925 * dwarf2-frame.c: Update copyright.
10926 (enum dwarf2_reg_rule): Remove.
10927 (struct dwarf2_frame_state): Remove defenition of `struct
10928 dwarf2_frame_state_reg'.
10929 (read_reg): Call get_frame_arch to get the architecture instead of
10930 using CURRENT_GDBARCH.
10931 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10932 DWARF2_FRAME_.
10933 (dwarf2_frame_init_reg): New function.
10934 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10935 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10936 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10937 tags with DWARF2_FRAME_.
10938 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10939 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10940 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10941
10942 2004-02-06 Andrew Cagney <cagney@redhat.com>
10943
10944 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10945 (enum tui_data_type): Rename _TuiDataType.
10946 (struct tui_layout_def): Rename _TuiLayoutDef.
10947 (struct tui_source_element): Rename _TuiSourceElement.
10948 (struct tui_data_element): Rename _TuiDataElement.
10949 (struct tui_command_element): Rename _TuiCommandElement.
10950 (struct tui_locator_element): Rename _TuiLocatorElement.
10951 (union tui_which_element): Define.
10952 (struct tui_win_element): Rename _TuiWinElement.
10953 (struct tui_data_info): Rename _TuiDataInfo.
10954 (struct tui_source_info): Rename _TuiSourceInfo.
10955 (struct tui_command_info): Rename _TuiCommandInfo.
10956 (tui_initialize_static_data): Rename initializeStaticData.
10957 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10958 (tui_alloc_win_info): Rename allocWinInfo.
10959 (tui_init_generic_part): Rename initGenericPart.
10960 (tui_init_win_info): Rename initWinInfo.
10961 (tui_alloc_content): Rename allocContent.
10962 (tui_add_content_elements): Rename addContentElements.
10963 (tui_init_content_element): Rename initContentElement.
10964 (tui_free_window): Rename freeWindow.
10965 (tui_free_win_content): Rename freeWinContent.
10966 (tui_free_data_content): Rename freeDataContent.
10967 (tui_free_all_source_wins_content): Rename
10968 freeAllSourceWinsContent.
10969 (tui_del_window): Rename tuiDelWindow.
10970 (tui_del_data_windows): Rename tuiDelDataWindows.
10971 (tui_partial_win_by_name): Rename partialWinByName.
10972 (tui_win_name): Rename winName.
10973 (tui_current_layout): Rename currentLayout.
10974 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10975 (tui_term_height): Rename termHeight.
10976 (tui_set_term_height_to): Rename setTermHeightTo.
10977 (tui_term_width): Rename termWidth.
10978 (tui_set_term_width_to): Rename setTermWidthTo.
10979 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10980 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10981 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10982 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10983 (tui_source_windows): Rename sourceWindows.
10984 (tui_clear_source_windows): Rename clearSourceWindows.
10985 (tui_clear_source_windows_detail): Rename
10986 clearSourceWindowsDetail.
10987 (tui_clear_win_detail): Rename clearWinDetail.
10988 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10989 (tui_default_tab_len): Rename tuiDefaultTabLen.
10990 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10991 (tui_win_with_focus): Rename tuiWinWithFocus.
10992 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10993 (tui_layout_def): Rename tuiLayoutDef.
10994 (tui_win_resized): Rename tuiWinResized.
10995 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10996 (tui_next_win): Rename tuiNextWin.
10997 (tui_prev_win): Rename tuiPrevWin.
10998 (tui_add_to_source_windows): Rename addToSourceWindows.
10999 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11000 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11001 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11002 * tui/tui.c, tui/tui-data.c: Ditto.
11003 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11004 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11005
11006 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11007 (struct symtab): Declare.
11008 (tui_set_source_content): Rename tuiSetSourceContent.
11009 (tui_show_symtab_source): Rename tuiShowSource.
11010 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11011 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11012 * tui/tui-source.c: Update copyright. Update references.
11013 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11014 * tui/tui-stack.c: Update references.
11015
11016 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11017 (struct tui_win_info): Declare.
11018 (tui_scroll_forward): Rename tuiScrollForward.
11019 (tui_scroll_backward): Rename tuiScrollBackward.
11020 (tui_scroll_left): Rename tuiScrollLeft.
11021 (tui_scroll_right): Rename tuiScrollRight.
11022 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11023 (tui_resize_all): Rename tuiResizeAll.
11024 (tui_refresh_all_win): Rename tuiRefreshAll.
11025 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11026 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11027 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11028 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11029
11030 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11031 (tui_erase_data_content): Rename tuiEraseDataContent.
11032 (tui_display_all_data): Rename tuiDisplayAllData.
11033 (tui_check_data_values): Rename tuiCheckDataValues.
11034 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11035 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11036 (tui_first_data_element_no_in_line): Rename
11037 tuiFirstDataElementNoInLine.
11038 (tui_delete_data_content_windows): Rename
11039 tuiDeleteDataContentWindows.
11040 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11041 (tui_display_data_from): Rename tuiDisplayDataFrom.
11042 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11043 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11044 * tui/tui-win.c, tui/tui-regs.c: Update references.
11045 * tui/tui-layout.c, tui/tui.c: Update references.
11046
11047 * tui/tui-wingeneral.h: Update copyright.
11048 (m_allBeVisible): Delete macro.
11049 (m_allBeInvisible): Delete macro.
11050 (struct tui_gen_win_info): Declare.
11051 (struct tui_win_info): Declare.
11052 (tui_unhighlight_win): Rename unhighlightWin.
11053 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11054 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11055 (tui_make_window): Rename makeWindow.
11056 (tui_copy_win): Rename copyWin.
11057 (tui_box_win): Rename boxWin.
11058 (tui_highlight_win): Rename highlightWin.
11059 (tui_check_and_display_highlight_if_needed): Rename
11060 checkAndDisplayHighlightIfNeeded.
11061 (tui_refresh_all): Rename refreshAll.
11062 (tui_delete_win): Rename tuiDelwin.
11063 (tui_refresh_win): Rename tuiRefreshWin.
11064 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11065 (tui_make_visible, tui_make_invisible): New functions.
11066 (tui_make_all_visible, tui_make_all_invisible): New functions.
11067 (make_all_visible): Rename makeAllVisible.
11068 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11069 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11070 * tui/tui-windata.c, tui/tui-win.c: Update references.
11071 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11072 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11073
11074 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11075
11076 * proc-api.c (write_with_trace): Initialize local variable to
11077 silence compiler warning.
11078
11079 2004-02-06 Andrew Cagney <cagney@redhat.com>
11080
11081 * tui/tui-source.h: Do not include "defs.h".
11082 (struct tui_win_info): Declare.
11083 (tui_set_source_content_nil): Declare.
11084 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11085 (union tui_line_or_address): Rename _TuiLineOrAddress.
11086 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11087 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11088 (tui_update_source_window_as_is): Rename
11089 tuiUpdateSourceWindowAsIs.
11090 (tui_update_source_windows_with_addr): Rename
11091 tuiUpdateSourceWindowsWithAddr.
11092 (tui_update_source_windows_with_line): Rename
11093 tuiUpdateSourceWindowsWithLine.
11094 (tui_clear_source_content): Rename tuiClearSourceContent.
11095 (tui_erase_source_content): Rename tuiEraseSourceContent.
11096 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11097 (tui_show_source_content): Rename tuiShowSourceContent.
11098 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11099 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11100 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11101 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11102 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11103 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11104 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11105 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11106 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11107 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11108 (struct tui_win_info): Declare.
11109 * tui/tui-stack.c: Update references.
11110 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11111 * tui/tui-win.c, tui/tui-source.c: Ditto.
11112 * tui/tui.c, tui/tui-disasm.c: Ditto.
11113
11114 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11115
11116 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11117 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11118
11119 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11120
11121 * infrun.c (handle_inferior_event): Allow for breakpoint
11122 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11123 and SIGEMT. Update comments.
11124 * NEWS (Revised SPARC target): Mention support for non-executable
11125 stack.
11126
11127 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11128
11129 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11130 * inftarg.c: Update copyright year.
11131 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11132 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11133 (sparc_xfer_wcookie): New function.
11134 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11135 * Makefile.in (sparc-nat.o): Update dependencies.
11136 * config/sparc/nm-nbsd.h: Include "target.h".
11137 (NATIVE_XFER_WCOOKIE): New define.
11138 (sparc_xfer_wcookie): New prototype.
11139
11140 2004-02-04 Andrew Cagney <cagney@redhat.com>
11141
11142 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11143 SYSCALL_TRAP function.
11144 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11145
11146 2004-02-04 Andrew Cagney <cagney@redhat.com>
11147 Daniel Jacobowitz <drow@mvista.com>
11148
11149 * objfiles.h: Delete comments refering to inside_entry_func and
11150 DEPRECATED_FRAME_CHAIN_VALID.
11151 * defs.h (inside_entry_func): Update prototype..
11152 * blockframe.c (inside_entry_func): Rename to
11153 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11154 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11155
11156 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11157
11158 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11159 outside of #ifdef SOLIB_ADD region.
11160 (do_restore_lang_radix_cleanup): Ditto.
11161 (resolve_pending_breakpoint): Ditto.
11162
11163 2004-02-03 Andrew Cagney <cagney@redhat.com>
11164
11165 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11166 (process_note_abi_tag_sections): Delete unused function.
11167 (ia64_read_fp): Delete unused function.
11168 (gdbarch_extract_struct_value_address): Delete declaration.
11169
11170 2004-02-02 Andrew Cagney <cagney@redhat.com>
11171
11172 * vax-tdep.c (vax_frame_chain): Delete call to
11173 deprecated_inside_entry_file.
11174 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11175
11176 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11177
11178 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11179 column that's "empty" or "same value" when eliminating REG_RA
11180 rules.
11181
11182 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11183
11184 * NEWS: Add information about new pending breakpoint support.
11185
11186 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11187
11188 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11189 and pending fields for pending breakpoint support.
11190 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11191 (condition_command): Only parse condition if not a pending
11192 breakpoint.
11193 (print_one_breakpoint): Add support for pending breakpoints.
11194 (describe_other_breakpoints): Add checks to verify we are not
11195 dealing with pending breakpoints.
11196 (check_duplicates): Don't check pending breakpoints.
11197 (set_raw_breakpoint): Initialize pending flag.
11198 (do_restore_lang_radix_cleanup): New cleanup routine.
11199 (resolve_pending_breakpoint): New function.
11200 (re_enable_breakpoints_in_shlibs): Try and resolve any
11201 pending breakpoints via resolve_pending_breakpoint.
11202 (mention): Add pending breakpoint support.
11203 (parse_breakpoint_sals): Add new parameter to pass to
11204 decode_line_1 to indicate silent errors when files or functions
11205 are not found. Change all callers.
11206 (do_captured_parse_breakpoint): New function.
11207 (break_command_1): Change prototype to return an rc value and to
11208 take an optional pending breakpoint pointer. Support creating
11209 a pending breakpoint if a "not found" form of error occurs when
11210 parsing the breakpoint. Also support resolving an existing pending
11211 breakpoint and be silent if the resolution fails.
11212 (create_breakpoints): Change prototype to take pending breakpoint
11213 pointer. When resolving a pending breakpoint, use the new pointer
11214 to provide a conditional or commands added by the end-user.
11215 (delete_breakpoint): Add appropriate check for pending.
11216 (breakpoint_re_set_one): Ditto.
11217 (do_enable_breakpoint): Ditto.
11218
11219 2004-02-02 David Carlton <carlton@kealia.com>
11220
11221 * valops.c (enum oload_classification): New.
11222 (find_overload_match): Break implementation into separate
11223 functions; delete #if 0'd code; look for symbols within
11224 namespaces.
11225 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11226 (find_oload_champ,oload_method_static,classify_oload_match): New.
11227 * cp-support.h: Add declaration for cp_func_name; update
11228 declaration for make_symbol_overload_list.
11229 * cp-support.c (cp_func_name): New.
11230 (overload_list_add_symbol): Fix comment, use
11231 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11232 (make_symbol_overload_list): Take a function name and a namespace
11233 instead of a symbol; change implementation.
11234 (make_symbol_overload_list_using): New.
11235 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11236
11237 2004-02-02 Fred Fish <fnf@redhat.com>
11238
11239 * main.c (gdb_stdtarg): Move definition to group with other
11240 gdb_stdtarg definitions and update copyright years.
11241 * remote-sim.c (gdb_os_write_stderr): Write output to
11242 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11243 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11244 gdb_stderr stream and update copyright years.
11245
11246 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11247
11248 * Makefile.in (mips-linux-nat.o): Update dependencies.
11249 * mips-linux-nat.c: Include mips-tdep.h.
11250
11251 2004-02-01 Roland McGrath <roland@redhat.com>
11252
11253 * sol-thread.c (sol_thread_xfer_partial): New function.
11254 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11255 (init_sol_core_ops): Likewise.
11256
11257 * procfs.c (procfs_xfer_partial): New function.
11258 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11259 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11260
11261 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11262 procfs_xfer_auxv function.
11263
11264 * procfs.c (procfs_make_note_section): If we can read
11265 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11266 * linux-proc.c (linux_make_note_section): Likewise.
11267
11268 * auxv.h: New file.
11269 * auxv.c: New file.
11270 * Makefile.in (auxv_h): New variable.
11271 (COMMON_OBS): Add auxv.o here.
11272 (auxv.o): New target.
11273
11274 * corelow.c (core_xfer_partial): New function.
11275 (init_core_ops): Use it for core_ops.to_xfer_partial.
11276
11277 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11278 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11279 macro if that is defined.
11280
11281 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11282
11283 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11284 and check the specified thread for each breakpoint.
11285 * breakpoint.h (bpstat_stop_status): Update prototype.
11286 * infrun.c (handle_inferior_event): Update calls to
11287 bpstat_stop_status.
11288
11289 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11290
11291 * Makefile.in (cli-cmds.o): Add $(readline_h).
11292
11293 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11294
11295 * cli/cli-cmds.c: Include readline.h.
11296 (complete_command): Pass the start of the last word to
11297 complete_line.
11298
11299 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11300
11301 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11302 argument, and change first argument to a CORE_ADDR.
11303 * breakpoint.h (bpstat_stop_status): Update prototype.
11304 * infrun.c (adjust_pc_after_break): Add a new comment.
11305 (handle_inferior_event): Update calls to bpstat_stop_status.
11306
11307 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11308
11309 * breakpoint.h: Update copyright years.
11310
11311 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11312
11313 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11314 (bpstat_stop_status): Don't decrement PC.
11315 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11316 prototype.
11317 * infrun.c (adjust_pc_after_break): New function.
11318 (handle_inferior_event): Call it, early. Remove later references
11319 to DECR_PC_AFTER_BREAK.
11320 (normal_stop): Add commentary.
11321
11322 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11323
11324 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11325 2004-01-27 double-free fix.
11326
11327 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11328
11329 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11330 (sparc32_frame_prev_register): Handle StackGhost.
11331 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11332
11333 2004-01-29 Roland McGrath <roland@redhat.com>
11334
11335 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11336 * configure: Regenerated.
11337
11338 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11339 * Makefile.in (procfs.o): Add dep.
11340
11341 2004-01-28 Andrew Cagney <cagney@redhat.com>
11342
11343 * tui/tui-stack.h: Update copyright.
11344 (struct frame_info): Add opaque declaration.
11345 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11346 (tui_show_locator_content): Rename tuiShowLocatorContent.
11347 (tui_show_frame_info): Rename tuiShowFrameInfo.
11348 * tui/tui-stack.c: Update copyright. Update references.
11349 * tui/tui-winsource.c: Update references.
11350 * tui/tui-win.c: Update references.
11351 * tui/tui-layout.c: Update references.
11352 * tui/tui-hooks.c: Update copyright, update references.
11353 * tui/tui.c: Update copyright, update references.
11354 * tui/tui-disasm.c: Update references.
11355
11356 2004-01-28 David Carlton <carlton@kealia.com>
11357
11358 * dwarf2read.c (add_partial_structure): Use demangled name if
11359 namespace equals "".
11360
11361 2004-01-27 Jim Blandy <jimb@redhat.com>
11362
11363 Clean up misapplied patch:
11364 * dwarf2read.c (determine_prefix): Change one of the two forward
11365 declarations for 'determine_prefix_aux' to a declaration for this.
11366 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11367 argument to 'die_specification'.
11368
11369 * dwarf2read.c (read_func_scope): Re-indent comment.
11370
11371 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11372
11373 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11374 b->exp to NULL after freeing so that error during re-parsing or
11375 evaluation of expressions associated with breakpoint don't
11376 eventually lead to re-freeing of storage.
11377 Committed by Andrew Cagney.
11378
11379 2004-01-27 Andrew Cagney <cagney@redhat.com>
11380
11381 * source.c (ambiguous_line_spec): Delete undefined declaration.
11382 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11383 (m32r_set_server_address, m32r_set_download_path): Ditto.
11384 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11385
11386 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * dwarf2read.c: Update calls to changed and renamed functions, and
11389 references to moved variables.
11390
11391 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11392 language, language_defn, list_in_scope, and ftypes members.
11393 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11394 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11395 (baseaddr): Remove globals.
11396
11397 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11398 (set_cu_language, die_is_declaration, die_specification)
11399 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11400 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11401 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11402 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11403
11404 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11405 cu.list_in_scope. Don't initialize cu_header_offset.
11406 (add_partial_symbol): Add local baseaddr.
11407 (psymtab_to_symtab_1): Add local baseaddr. Use
11408 objfile->section_offsets for consistency. Don't initialize
11409 cu_header_offset; do initialize cu.header.offset and
11410 cu.list_in_scope.
11411 (read_file_scope, read_func_scope, read_lexical_block_scope)
11412 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11413
11414 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11415
11416 * PROBLEMS: Add gdb/1516.
11417
11418 2003-12-29 Robert Millan <robertmh@gnu.org>
11419
11420 Patch committed by Andrw Cagney.
11421 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11422 * configure.tgt: Match knetbsd*-gnu.
11423
11424 2004-01-26 Andrew Cagney <cagney@redhat.com>
11425
11426 * breakpoint.c (catch_command_1): Delete #ifdef code.
11427 (catch_fork_command_1): Delete #ifdef wrapper.
11428 (catch_exec_command_1): Ditto.
11429 (catch_load_command_1): Ditto.
11430 (catch_unload_command_1): Ditto.
11431
11432 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11433 (catch_breakpoint): Delete #if0ed function.
11434 (disable_catch_breakpoint): Ditto.
11435 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11436 (disable_catch, enable_catch, delete_catch): Ditto.
11437
11438 2004-01-26 Andrew Cagney <cagney@redhat.com>
11439
11440 * remote.c (echo_check, quit_flag): Delete variables.
11441 (cisco_kernel_mode): Delete variable.
11442 (minitelnet_return, tty_input, escape_count): Delete variables.
11443 (remote_cisco_mode): Delete variable.
11444 (remote_cisco_open, remote_cisco_close): Delete function.
11445 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11446 (init_remote_cisco_ops): Delete function.
11447 (_initialize_remote): Do not install "remote cisco" code.
11448 (read_frame): Delete cisco specific code.
11449 (remote_info_process): Delete function.
11450 (remote_wait): Delete cisco specific code.
11451 (remote_cisco_section_offsets): Delete function.
11452 (remote_cisco_objfile_relocate): Delete function.
11453 (remote_async_wait): Delete cisco specific code.
11454 (minitelnet, readtty, readsocket): Delete function.
11455
11456 2004-01-26 Andrew Cagney <cagney@redhat.com>
11457
11458 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11459 comments mentioning extract_returned_value_address.
11460 * infcmd.c (print_return_value): Update. Add comments on
11461 extract_returned_value_address.
11462 * stack.c (return_command): Add comments on
11463 extract_returned_value_address.
11464 * values.c: Update comment.
11465 * m32r-tdep.c: Update comment.
11466 * sparc-tdep.c: Update comment.
11467 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11468 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11469 * sh64-tdep.c (sh64_gdbarch_init): Update.
11470 * sh-tdep.c (sh_gdbarch_init): Update.
11471 * s390-tdep.c (s390_gdbarch_init): Update.
11472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11473 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11474 * m68k-tdep.c (m68k_gdbarch_init): Update.
11475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11476 * m32r-tdep.c (m32r_gdbarch_init): Update.
11477 * ia64-tdep.c (ia64_gdbarch_init): Update.
11478 * h8300-tdep.c (h8300_gdbarch_init): Update.
11479 * frv-tdep.c (frv_gdbarch_init): Update.
11480 * arm-tdep.c (arm_gdbarch_init): Update.
11481 * alpha-tdep.c (alpha_gdbarch_init): Update.
11482
11483 2004-01-26 Andrew Cagney <cagney@redhat.com>
11484
11485 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11486 SYMBOL_LOCATION_FUNCS
11487 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11488 "struct symbol_ops".
11489 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11490 type to "struct symbol_ops".
11491 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11492 (struct symbol): Replace ".aux_value.loc.funcs" and
11493 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11494 (SYMBOL_OBJFILE): Delete macro.
11495 (SYMBOL_LOCATION_FUNCS): Delete macro.
11496 (SYMBOL_LOCATION_BATON): Update.
11497 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11498 intead of SYMBOL_LOCATION_FUNCS.
11499 * ax-gdb.c (gen_var_ref): Ditto.
11500 * printcmd.c (address_info): Ditto.
11501 * findvar.c (read_var_value): Ditto.
11502 (symbol_read_needs_frame): Ditto.
11503
11504 2004-01-26 Andrew Cagney <cagney@redhat.com>
11505
11506 * dwarf2read.c (read_func_scope): Document frame-base hack.
11507
11508 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11509
11510 * infcmd.c (print_return_value): Plug memory leak; delete
11511 ui_stream object. Rename argument `structure_return' to
11512 `struct_return'.
11513
11514 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11515
11516 * infcmd.c (print_return_value): Wrap long lines.
11517 (finish_command_continuation, finish_command): Remove unused
11518 variable `funcaddr'. Fix some coding-standards problems.
11519
11520 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11521 SECT_SIZE is large enough, not whether it's exactly the right size.
11522 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11523 TDEP->fpregset to zero.
11524
11525 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11526 floating-point registers for traditional NetBSD core files.
11527 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11528 TDEP->sizeof_fpregset here.
11529
11530 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11531
11532 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11533 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11534 function with code split out from
11535 sparc32nbsd_sigcontext_frame_cache.
11536 (sparc32nbsd_sigcontext_frame_cache): Use
11537 sparc32nbsd_sigcontext_saved_regs.
11538 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11539 OpenBSD.
11540 * sparcobsd-tdep.c: New file.
11541 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11542 (sparcobsd-tdep.o): New dependency.
11543 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11544 * config/sparc/obsd.mt: New file.
11545
11546 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11547 TDEP->fpregset to be initialized to enable core file register
11548 sets.
11549
11550 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11551
11552 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11553 Add opaque declarations.
11554 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11555 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11556 function with code split out from
11557 sparc64nbsd_sigcontext_frame_cache.
11558 (sparc64nbsd_sigcontext_frame_cache): Use
11559 sparc64nbsd_sigcontext_saved_regs.
11560 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11561 OpenBSD.
11562 * sparc64obsd-tdep.c: New file.
11563 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11564 (sparc64obsd-tdep.o): New dependency.
11565 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11566 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11567 * config/sparc/obsd64.mt: New file.
11568
11569 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11570 read the instruction at PC.
11571
11572 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11573 value of GDB_OSABI_DEFAULT.
11574 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11575 instead of GDB_OSABI_NETBSD_AOUT.
11576
11577 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11578
11579 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11580 copyright.
11581
11582 2004-01-23 Andrew Cagney <cagney@redhat.com>
11583
11584 * printcmd.c (display_command): Replace tui_set_display call with
11585 tui_set_layout_for_display_command.
11586 * tui/tui.h (enum tui_win_type): Define.
11587 (tui_set_layout): Delete declaration.
11588 (tui_set_layout_for_display_command): Rename set_tui_layout.
11589 * tui/tui-data.h (enum tui_layout_type): Define.
11590 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11591 "tui.h".
11592 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11593 (tui_default_win_height): Rename tuiDefaultWinHeight.
11594 (tui_default_win_viewport_height): Rename
11595 tuiDefaultWinViewportHeight.
11596 (tui_set_layout): RenametuiSetLayout.
11597 * tui/tui-layout.c: Update references.
11598 * tui/tui.c: Update references.
11599 * tui/tui-disasm.c: Update references.
11600
11601 2004-01-23 David Carlton <carlton@kealia.com>
11602
11603 Partial workaround for PR c++/1511:
11604 * cp-namespace.c: Include frame.h.
11605 (cp_lookup_transparent_type): New
11606 (cp_lookup_transparent_type_loop): New.
11607 * cp-support.h: Declare cp_lookup_transparent_type.
11608 * symtab.c (basic_lookup_transparent_type): Renamed from
11609 lookup_transparent_type.
11610 (lookup_transparent_type): Replace old body by a call to
11611 current_language->la_lookup_transparent_type.
11612 * symtab.h: Update copyright. Declare
11613 basic_lookup_transparent_type.
11614 * language.h: Update copyright.
11615 (struct language_defn): Add la_lookup_transparent_type.
11616 * language.c: Update copyright.
11617 (unknown_language_defn): Add basic_lookup_transparent_type.
11618 (auto_language_defn): Add basic_lookup_transparent_type.
11619 (local_language_defn): Add basic_lookup_transparent_type.
11620 * ada-lang.c: Update copyright.
11621 (ada_language_defn): Add basic_lookup_transparent_type.
11622 * c-lang.c: Update copyright.
11623 (c_language_defn): Add basic_lookup_transparent_type.
11624 (cplus_language_defn): Add basic_lookup_transparent_type.
11625 (asm_language_defn): Add basic_lookup_transparent_type.
11626 (minimal_language_defn): Add basic_lookup_transparent_type.
11627 * f-lang.c: Update copyright.
11628 (f_language_defn): Add basic_lookup_transparent_type.
11629 * jv-lang.c: Update copyright.
11630 (java_language_defn): Add basic_lookup_transparent_type.
11631 * m2-lang.c: Update copyright.
11632 (m2_language_defn): Add basic_lookup_transparent_type.
11633 * objc-lang.c: Update copyright.
11634 (objc_language_defn): Add basic_lookup_transparent_type.
11635 * p-lang.c: Update copyright.
11636 (p_language_defn): Add basic_lookup_transparent_type.
11637 * scm-lang.c: Update copyright.
11638 (scm_language_defn): Add basic_lookup_transparent_type.
11639 * Makefile.in (cp-namespace.o): Depend on frame.h.
11640
11641 2004-01-23 David Carlton <carlton@kealia.com>
11642
11643 Patch for PR c++/1520:
11644 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11645 properly if we have a specification die.
11646 (determine_prefix_aux): Rename from determine_prefix.
11647 (determine_prefix): Like the old determine_prefix, but never
11648 returns NULL.
11649
11650 2004-01-23 Theodore A. Roth <troth@openavr.org>
11651
11652 * avr-tdep.c: Update copyright.
11653 (avr_iaddr_p): Delete unused function.
11654 (avr_saddr_p): Delete unused function.
11655
11656 2004-01-23 David Carlton <carlton@kealia.com>
11657
11658 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11659 Fix for PR symtab/1534.
11660
11661 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11662
11663 * NEWS (New native configurations): Mention OpenBSD/sparc and
11664 OpenBSD/sparc64.
11665 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11666 * configure.host: Likewise.
11667 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11668 handler for OpenBSD.
11669 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11670
11671 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11672
11673 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11674 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11675
11676 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11677 * cli/cli-cmds.c (shell_escape): Likewise.
11678
11679 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11680 OpenBSD .note.openbsd.ident sections.
11681
11682 2004-01-22 David Carlton <carlton@kealia.com>
11683
11684 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11685 get_scope_pc_bounds.
11686 (read_file_scope): Ditto.
11687 (get_scope_pc_bounds): New function, produced by extracting code
11688 from the above two functions, consolidating it, and adding support
11689 for DW_TAG_namespace.
11690
11691 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11692
11693 * osabi.c (MAX_NOTESZ): New define.
11694 (check_note): New function.
11695 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11696 check_note.
11697
11698 2004-01-21 Roland McGrath <roland@redhat.com>
11699
11700 * MAINTAINERS (write after approval): Add myself.
11701
11702 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11703
11704 * utils.c (init_page_info): Move declarations of `rows' and
11705 `cols' before the __GO32__-specific code. Move the closing brace
11706 outside the #ifdef __GO32__..#endif block.
11707 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11708
11709 2004-01-21 Paul Brook <paul@codesourcery.com>
11710
11711 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11712 BPSTAT_WHAT_CHECK_SHLIBS.
11713
11714 2004-01-21 Paul Brook <paul@codesourcery.com>
11715
11716 * MAINTAINERS: Add myself to write-after-approval.
11717
11718 2004-01-20 Andrew Cagney <cagney@redhat.com>
11719
11720 * ax-gdb.c (print_axs_value): Delete unused function.
11721 * jv-lang.c (java_lookup_type): Delete unused function.
11722 * cli/cli-dump.c (dump_filetype): Delete unused function.
11723 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11724 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11725 (mips_getstring): Delete unused function.
11726 (pmon_insert_breakpoint): Delete #if0ed function.
11727 (PMON_MAX_BP): Delete #if0ed MACRO.
11728 (mips_pmon_bp_info): Delete #if0ed variable.
11729 (pmon_remove_breakpoint): Delete #if0ed function.
11730 * monitor.c (monitor_write_even_block): Delete unused function.
11731 (monitor_write_memory_block): Delete #if0ed code.
11732 * dink32-rom.c (dink32_load): Delete unused function.
11733 (_initialize_dink32_rom): Delete #if0ed code.
11734 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11735
11736 * tui/tui-command.c: Update references.
11737 * tui/tui-io.c: Update references.
11738 * tui/tui-command.h: Update copyright.
11739 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11740
11741 * source.c (ambiguous_line_spec): Delete never-defined function.
11742 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11743 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11744 * cli/cli-cmds.c (validate_comname): Ditto.
11745
11746 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11747 "tui-data.h".
11748 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11749 (tui_show_disassem): Rename tuiShowDisassem.
11750 (tui_show_disassem_and_update_source): Rename
11751 tuiVerticalDisassemScroll.
11752 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11753 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11754 * tui/tui.h: Update copyright.
11755 (enum tui_status): Define.
11756 * tui/tui-data.h (enum tui_scroll_direction): Define.
11757 * tui/tui-disasm.c: Update copyright. Update references.
11758 * tui/tui-winsource.c: Update copyright. Update references.
11759 * tui/tui-win.c: Update references.
11760 * tui/tui-layout.c: Update references.
11761
11762 2004-01-20 Andrew Cagney <cagney@redhat.com>
11763
11764 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11765 sym2 to start of block.
11766
11767 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11768
11769 * MAINTAINERS: Delete mmalloc.
11770 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11771 * NEWS: Mention removal of --with-malloc.
11772 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11773 * config.in: Regenerate.
11774 * configure: Regenerate.
11775 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11776 USE_MMALLOC, MMCHECK_FORCE.
11777 * gdbinit.in: Remove mmalloc.
11778 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11779 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11780 * config/i386/go32.mh: Likewise.
11781 * config/i386/interix.mh: Likewise.
11782 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11783
11784 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11785
11786 * linespec.c (decode_variable, symtab_from_filename): Call
11787 error_silent with error message instead of throwing an exception
11788 directly.
11789 * defs.h (error_silent, error_output_message): Add prototypes.
11790 (catch_exceptions_with_msg): Ditto.
11791 * utils.c (error_silent, error_output_message): New functions.
11792 * top.c (catch_exceptions_with_msg): New function.
11793
11794 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11795
11796 * mi/mi-cmds.h (enum print_values): Add definition.
11797
11798 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11799 type and value for simple data types and just the name and type
11800 for complex ones, if required.
11801
11802 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11803 children, if required.
11804
11805 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11806
11807 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11808 unused declarations.
11809
11810 2004-01-19 Andrew Cagney <cagney@redhat.com>
11811
11812 * top.h (mapped_symbol_files): Delete declaration.
11813 * main.c (captured_main): Delete option "m" and "mapped".
11814 * objfiles.c (mapped_symbol_files): Delete variable.
11815 * symfile.c (symbol_file_command): Delete mmap code.
11816 (symbol_file_add_with_addrs_or_offsets): Ditto.
11817 (add_symbol_file_command, reread_separate_symbols): Ditto.
11818 * objfiles.h (OBJF_MAPPED): Delete.
11819 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11820 (free_objfile) [USE_MMALLOC]: Ditto.
11821 (open_existing_mapped_file): Delete function.
11822 (open_mapped_file): Delete function.
11823 (map_to_file): Delete function.
11824
11825 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11826
11827 * infrun.c (step_into_function): Account for possible breakpoint
11828 adjustment when computing ``stop_func_start''.
11829
11830 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11831
11832 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11833 the region size against the size of a pointer, not the size of
11834 a register as given by DEPRECATED_REGISTER_SIZE.
11835
11836 2004-01-19 Andrew Cagney <cagney@redhat.com>
11837
11838 * tui/tui-regs.h: Include "tui-data.h".
11839 (tuiFirstRegElementNoInLine): Delete declaration.
11840 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11841 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11842 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11843 (tui_calculate_regs_column_count): Rename
11844 tuiCalculateRegsColumnCount.
11845 (tui_check_register_values): Rename tuiCheckRegisterValues.
11846 (tui_show_registers): Rename tuiShowRegisters.
11847 (tui_display_registers_from_line): Rename
11848 tuiDisplayRegistersFromLine.
11849 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11850 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11851 (tui_first_reg_element_no_inline): Rename
11852 tuiFirstRegElementNoInLine.
11853 * tui/tui-data.h: Update copyright.
11854 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11855 * tui/tui-windata.c: Update copyright, update references.
11856 * tui/tui-regs.c: Update copyright, update references.
11857 * tui/tui-win.c: Update copyright, update references.
11858 * tui/tui-layout.c: Update copyright, update references.
11859
11860 2004-01-18 Andrew Cagney <cagney@redhat.com>
11861
11862 * tui/tui-io.c: Update copyright.
11863 (key_is_end_sequence, key_is_backspace): New functions.
11864 (key_is_command_char, key_is_start_sequence): New function.
11865 (tui_getc): Update references.
11866 * tui/tui-io.h: Update copyright.
11867 (m_tuiStartNewLine): Delete macro.
11868 (m_isBackspace, m_isDeleteChar): Delete macros.
11869 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11870 (m_isNextPage, m_isPrevPage): Delete macros.
11871 (m_isLeftArrow, m_isRightArrow): Delete macros.
11872 (m_isXdbStyleCommandChar): Delete macro.
11873 (key_is_start_sequence): Declare, replace m_isStartSequence.
11874 (key_is_end_sequence): Declare, replace m_isEndSequence.
11875 (key_is_backspace): Declare ,replace m_isBackspace.
11876 (key_is_command_char): Declare, replace m_isCommandChar.
11877 * tui/tui-command.c: Update copyright.
11878 (tuiDispatchCtrlChar): Update references.
11879
11880 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11881 tuiSourceWin.h.
11882
11883 * tui/tui-command.c: Rename tui/tuiCommand.c.
11884 * tui/tui-command.h: Rename tui/tuiCommand.h.
11885 * tui/tui-data.c: Rename tui/tuiData.c.
11886 * tui/tui-data.h: Rename tui/tuiData.h.
11887 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11888 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11889 * tui/tui-io.c: Rename tui/tuiIO.c.
11890 * tui/tui-io.h: Rename tui/tuiIO.h.
11891 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11892 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11893 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11894 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11895 * tui/tui-source.c: Rename tui/tuiSource.c.
11896 * tui/tui-source.h: Rename tui/tuiSource.h.
11897 * tui/tui-stack.c: Rename tui/tuiStack.c.
11898 * tui/tui-stack.h: Rename tui/tuiStack.h.
11899 * tui/tui-win.c: Rename tui/tuiWin.c.
11900 * tui/tui-win.h: Rename tui/tuiWin.h.
11901 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11902 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11903 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11904 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11905 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11906 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11907 * tui/tui-file.c: Update includes.
11908 * tui/tui-hooks.c: Update includes.
11909 * tui/tui-interp.c: Update includes.
11910 * tui/tui.c: Update includes.
11911 * Makefile.in: Update all tui/ dependencies.
11912 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11913
11914 * Makefile.in: Update copyright. Update dependencies.
11915
11916 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11917 problem.
11918
11919 2004-01-18 Andrew Cagney <cagney@redhat.com>
11920
11921 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11922 instead of register_gdbarch_init.
11923
11924 * remote-sds.c (tohex): Delete unused function. Update copyright.
11925 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11926 * v850-tdep.c (v850_register_virtual_size): Ditto.
11927 * target.c (normal_target_post_startup_inferior): Ditto.
11928 * source.c (ambiguous_line_spec): Ditto.
11929 * remote.c (adapt_remote_get_threadinfo): Ditto.
11930 * mi/mi-out.c (out_field_fmt): Ditto.
11931 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11932 (output_control_change_notification): Ditto.
11933 * m68k-tdep.c (m68k_register_byte): Ditto.
11934 (m68k_remote_breakpoint_from_pc): Ditto.
11935 * ui-out.c (init_ui_out_state): Delete unused declaration.
11936 * stabsread.c (search_value): Ditto.
11937 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11938 * maint.c (print_section_table): Ditto.
11939 * infrun.c (set_follow_fork_mode_command): Ditto.
11940
11941 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11942
11943 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11944 DW_CFA_def_cfa_exporession. Add support for
11945 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11946 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11947
11948 2004-01-18 Andrew Cagney <cagney@redhat.com>
11949
11950 * ocd.c: Update copyright.
11951 (bdm_read_register_command): Delete unused function.
11952 (_initialize_remote_ocd): Delete commented out reference.
11953 (get_quoted_char, reset_packet): Delete #if0ed function.
11954 (output_packet, put_quoted_char): Delete #if0ed function.
11955 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11956 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11957 (BDM_BREAKPOINT): Delete #if0ed macro.
11958 (remote_timeout): Delete #if0ed variable.
11959
11960 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11961
11962 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11963 (core-sol2.o): Remove dependency.
11964 * core-sol2.c: Remove file.
11965
11966 2004-01-17 Andrew Cagney <cagney@redhat.com>
11967
11968 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11969 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11970 enums.
11971
11972 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11973
11974 * remote.c: Update copyright years.
11975
11976 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11977
11978 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11979
11980 2004-01-17 Andrew Cagney <cagney@redhat.com>
11981
11982 * mdebugread.c: Update copyright.
11983 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11984 (parse_type, parse_procedure): Ditto.
11985 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11986
11987 * cris-tdep.c (cris_store_struct_return): Put back accidently
11988 deleted function.
11989
11990 * gdbarch.sh: Update copyright year.
11991 * gdbarch.h, gdbarch.c: Re-generate.
11992
11993 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11994
11995 Suggested by George Anzinger.
11996 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11997 correct stack offset. Include unknown opcode numbers in the error
11998 message.
11999
12000 2004-01-17 Andrew Cagney <cagney@redhat.com>
12001
12002 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12003 extract_struct_value_address, i386 does not set it.
12004 * sparc64-tdep.c (sparc64_init_abi): Do not set
12005 extract_struct_value_address, never called.
12006 (sparc64_extract_struct_value_address): Delete function.
12007 * m68hc11-tdep.c: Update copyright.
12008 (m68hc11_gdbarch_init): Delete redundant assignment of
12009 extract_struct_value_address.
12010 * i386-tdep.c: Update copyright.
12011 (i386_gdbarch_init): Do not set extract_struct_value_address,
12012 never called.
12013 (i386_extract_struct_value_address): Delete function.
12014 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12015 extract_struct_value_address, never called.
12016 (sparc32_extract_struct_value_address): #if 0 function. Add
12017 comments explaining its future.
12018
12019 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12020
12021 * arm-tdep.c (arm_write_pc): New function.
12022 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12023
12024 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12025
12026 * breakpoint.c (must_shift_inst_regs): Delete.
12027 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12028 and SHIFT_INST_REGS.
12029 * infcmd.c (step_1, step_1_continuation): Delete references to
12030 SHIFT_INST_REGS.
12031 * infrun.c (keep_going): Likewise.
12032 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12033 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12034
12035 2004-01-17 Andrew Cagney <cagney@redhat.com>
12036
12037 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12038 * gdbarch.h, gdbarch.c: Re-generate.
12039 * infcmd.c (print_return_value): Delete reference to
12040 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12041
12042 * cris-tdep.c (cris_gdbarch_init): Do not set
12043 deprecated_extract_struct_value_address.
12044
12045 * xstormy16-tdep.c: Update copyright.
12046 (xstormy16_extract_struct_value_address): Update to current
12047 extract struct value address interface.
12048 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12049 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12050 current extract struct value address interface.
12051 (sh64_gdbarch_init): Set extract_struct_value_address.
12052
12053 * cris-tdep.c: Update copyright.
12054 (cris_extract_struct_value_address): Delete function.
12055 (struct_return_address): Delete variable.
12056 (cris_store_struct_return): Do not set struct_return_address.
12057
12058 * mcore-tdep.c: Update copyright.
12059 (mcore_extract_struct_value_address): Delete function. Update
12060 comments.
12061 (mcore_gdbarch_init): Update.
12062 * mn10300-tdep.c: Update copyright.
12063 (mn10300_extract_struct_value_address): Delete function.
12064 (mn10300_gdbarch_init): Update.
12065 * v850-tdep.c: Update copyright.
12066 (v850_extract_struct_value_address): Delete.
12067 (v850_gdbarch_init): Update.
12068 * ns32k-tdep.c: Update copyright.
12069 (ns32k_extract_struct_value_address): Delete.
12070 (ns32k_gdbarch_init): Update.
12071 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12072 (hppa_gdbarch_init): Update.
12073 * vax-tdep.c: Update copyright.
12074 (vax_extract_struct_value_address): Delete.
12075 (vax_gdbarch_init): Update.
12076
12077 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12078 * gdbarch.h, gdbarch.c: Re-generate.
12079 * procfs.c (procfs_fetch_registers): Delete reference to
12080 DEPRECATED_NPC_REGNUM.
12081 (procfs_store_registers): Ditto.
12082 * regcache.c (generic_target_write_pc): Simplify.
12083 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12084
12085 * core-sol2.c (fetch_core_registers): Replace
12086 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12087
12088 * hppa-tdep.c: Update copyright year.
12089 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12090 NPC_REGNUM.
12091 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12092
12093 * mips-tdep.c (mips_write_pc): New function.
12094 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12095 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12096 (mips_find_saved_regs, mips_software_single_step: Ditto.
12097 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12098 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12099
12100 2004-01-17 Andrew Cagney <cagney@redhat.com>
12101
12102 * mips-tdep.c: Re-indent. Group functions by ABI.
12103
12104 2004-01-17 Andrew Cagney <cagney@redhat.com>
12105
12106 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12107 * gdbarch.c: Re-generate.
12108 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12109 DECR_PC_AFTER_BREAK to zero.
12110 * vax-tdep.c (vax_gdbarch_init): Ditto.
12111 * v850-tdep.c (v850_gdbarch_init): Ditto.
12112 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12113 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12114 * sh-tdep.c (sh_gdbarch_init): Ditto.
12115 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12116 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12118 * mips-tdep.c (mips_gdbarch_init): Ditto.
12119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12121 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12122 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12123 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12124 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12125 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12126 * frv-tdep.c (frv_gdbarch_init): Ditto.
12127 * cris-tdep.c (cris_gdbarch_init): Ditto.
12128 * avr-tdep.c (avr_gdbarch_init): Ditto.
12129 * arm-tdep.c (arm_gdbarch_init): Ditto.
12130 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12131
12132 2004-01-17 J. Brobecker <brobecker@gnat.com>
12133
12134 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12135 Delete, no longer used.
12136 (read_subrange_type): New function, mostly extracted from
12137 read_array_type().
12138 (read_array_type): Replace extracted code by call to
12139 read_subrange_type().
12140 (dwarf2_get_attr_constant_value): New function.
12141 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12142 (add_partial_symbol): Likewise.
12143 (process_die): Likewise.
12144 (new_symbol): Likewise.
12145 (read_type_die): Likewise.
12146
12147 2004-01-16 Andrew Cagney <cagney@redhat.com>
12148
12149 * symfile.c: Update copyright year.
12150 (compare_symbols): Delete unused function.
12151 * stabsread.c: Update copyright year.
12152 (lrs_general_complaint): Delete unused function.
12153 (ref_search_value): Ditto.
12154 (get_substring): Delete declaration.
12155 * sh64-tdep.c: Update copyright year.
12156 (sh64_get_gdb_regnum): Delete unused function.
12157 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12158 Delete unused function.
12159
12160 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12161
12162 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12163 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12164
12165 2004-01-16 Andrew Cagney <cagney@redhat.com>
12166
12167 Changes from Peter Schauer.
12168 * rs6000-tdep.c: Update copyright year.
12169 (rs6000_push_dummy_call): Update the stack pointer before
12170 accessing the corresponding stack region.
12171 * rs6000-nat.c: Update copyright year.
12172 (set_host_arch): Set "info.abfd" to "exec_bfd".
12173
12174 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12175
12176 * blockframe.c: Update copyright year.
12177 (inside_entry_func): Don't treat a zero PC specially.
12178
12179 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12180
12181 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12182 variable.
12183 (gcore_create_callback): Ditto. Skip any memory segment that has
12184 no permissions set.
12185
12186 2004-01-14 David Carlton <carlton@kealia.com>
12187
12188 Change symbols for C++ nested types to contain the fully qualified
12189 name, if possible. (At least in the DWARF-2 case.) Partial fix
12190 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12191 c++/895.
12192 * c-exp.y (qualified_type): Handle types nested within classes.
12193 * cp-namespace.c: Update comments.
12194 (cp_set_block_scope): Delete #if 0.
12195 (cp_lookup_nested_type): Handle types nested within classes.
12196 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12197 when appropriate.
12198 (add_partial_symbol): Add the name of the enclosing namespace to
12199 types.
12200 (pdi_needs_namespace): New.
12201 (add_partial_namespace): Tweak comment.
12202 (add_partial_structure): New.
12203 (psymtab_to_symtab_1): Initialize processing_current_prefix
12204 here...
12205 (process_die): instead of here.
12206 (read_structure_scope): Try to figure out the name of the class or
12207 namespace that the structure might be defined within.
12208 (read_enumeration): Generate fully-qualified names, if possible.
12209 (read_namespace): Don't set name to NULL.
12210 (die_specification): New.
12211 (new_symbol): Generate fully-qualified names for types.
12212 (read_type_die): Determine appropriate prefix.
12213 (determine_prefix): New.
12214 (typename_concat): New.
12215 (class_name): New.
12216 * valops.c (value_aggregate_elt): Pass NOSIDE to
12217 value_struct_elt_for_reference.
12218 (value_struct_elt_for_reference): Make static, add NOSIDE
12219 parameter, call value_maybe_namespace_elt as a last resort.
12220 (value_namespace_elt): Break out code into
12221 value_maybe_namespace_elt.
12222 (value_maybe_namespace_elt): New.
12223
12224 2004-01-12 Andrew Cagney <cagney@redhat.com>
12225
12226 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12227 cooked floating-point registers.
12228 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12229 and value_to_register.
12230
12231 2004-01-13 Andrew Cagney <cagney@redhat.com>
12232
12233 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12234 * gdbarch.c: Re-generate.
12235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12236 FUNCTION_START_OFFSET.
12237 * v850-tdep.c (v850_gdbarch_init): Ditto.
12238 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12239 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12240 * sh-tdep.c (sh_gdbarch_init): Ditto.
12241 * s390-tdep.c (s390_gdbarch_init): Ditto.
12242 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12243 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12244 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12245 * mips-tdep.c (mips_gdbarch_init): Ditto.
12246 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12247 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12249 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12250 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12251 * i386-tdep.c (i386_gdbarch_init): Ditto.
12252 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12253 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12254 * frv-tdep.c (frv_gdbarch_init): Ditto.
12255 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12256 * cris-tdep.c (cris_gdbarch_init): Ditto.
12257 * avr-tdep.c (avr_gdbarch_init): Ditto.
12258 * arm-tdep.c (arm_gdbarch_init): Ditto.
12259 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12260
12261 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12262
12263 * infrun.c (follow_fork_mode_ask): Remove.
12264 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12265 (follow_fork): Simplify and remove internal error for
12266 follow_fork_mode_ask.
12267 (_initialize_infrun): Update "set follow-fork-mode" help text.
12268
12269 2004-01-13 Andrew Cagney <cagney@redhat.com>
12270
12271 * configure.in: Update copyright year.
12272 (build_warnings): Add -Wunused-label.
12273 * configure: Re-generate.
12274
12275 2004-01-12 Andrew Cagney <cagney@redhat.com>
12276
12277 * exec.h (exec_ops): Make "extern".
12278
12279 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12280 the function is void.
12281 (mips_pseudo_register_write): Ditto.
12282
12283 2004-01-12 Andrew Cagney <cagney@redhat.com>
12284
12285 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12286 call. Never defined.
12287 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12288 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12289 (struct sparc_gregset, struct regcache): Ditto.
12290 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12291
12292 2004-01-12 Andrew Cagney <cagney@redhat.com>
12293
12294 * mi/ChangeLog: Delete file. Renamed to ...
12295 * mi/ChangeLog-1999-2003: New file.
12296 * tui/ChangeLog: Delete file. Renamed to ...
12297 * tui/ChangeLog-1998-2003: New file.
12298
12299 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12300
12301 * sparc64nbsd-tdep.c: Include "regset.h".
12302 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12303 Remove variables.
12304 (fetch_core_registers): Remove function.
12305 (sparc64nbsd_core_fns): Remove variable.
12306 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12307 functions.
12308 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12309 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12310 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12311
12312 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12313 sparc_extract_struct_value_address.
12314 (sparc32_gdbarch_init): Set extract_struct_value_address.
12315 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12316 function.
12317 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12318 return_value_on_stack.
12319
12320 * NEWS: Mention that %cs and %ss have been added to the AMD64
12321 configurations
12322
12323 * frame.c: Update copyright year.
12324 (get_prev_frame): Improve comment.
12325
12326 * sparc64fbsd-tdep.c: Include "regset.h".
12327 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12328 Remove variables.
12329 (fetch_core_registers): Remove function.
12330 (sparc64fbsd_core_fns): Remove variable.
12331 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12332 functions.
12333 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12334 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12335 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12336
12337 * sparcnbsd-tdep.c: Include "regset.h".
12338 (fetch_core_registers): Remove function.
12339 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12340 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12341 functions.
12342 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12343 TDEP->fpregset.
12344 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12345
12346 * sparc-tdep.h (struct regset): Provide opaque declaration.
12347 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12348 fpregset and sizeof_fpregset members.
12349 * sparc-tdep.c (struct regset): Provide opaque declaration.
12350 (sparc_regset_from_core_section): New function.
12351 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12352 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12353 Set regset_from_core_section when appropriate.
12354
12355 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12356
12357 * x86-64-tdep.c (amd64_non_pod_p): New function.
12358 (amd64_classify_aggregate): Return class memory for non-POD
12359 C++ structure types.
12360
12361 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12362 argument. Use it to reserve a register if necessary.
12363 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12364 amd64_push_arguments.
12365
12366 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12367
12368 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12369 register numbers in comments.
12370 * x86-64-tdep.h: Update copyright year.
12371 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12372 Adjust for addition of %cs and %ss.
12373 * amd64fbsd-nat.c: Update copyright year.
12374 (reg_offset): Add register offsets for %cs and %ss.
12375 * amd64fbsd-tdep.c: Update copyright year.
12376 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12377 (amd64fbsd_sc_reg_offset): Likewise.
12378 * x86-64-linux-nat.c: Update copyright year.
12379 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12380 and %ss.
12381 * amd64nbsd-nat.c: Update copyright year.
12382 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12383 * amd64nbsd-tdep.c: Update copyright year.
12384 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12385 * x86-64-linux-tdep.c: Update copyright year.
12386 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12387 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12388 * regformats/reg-x86-64.dat: Add %cs and %ss.
12389
12390 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12391 variables to prevent long lines. Update comments to reflect
12392 reality.
12393
12394 2004-01-09 David Carlton <carlton@kealia.com>
12395
12396 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12397 * dwarf2read.c (read_namespace): Pull out name-generating code
12398 into namespace_name. Rename previous_namespace to previous_prefix
12399 and processing_current_namespace to processing_current_prefix..
12400 (namespace_name): New function.
12401 (add_partial_symbol): Substitute uses of pdi->name with
12402 actual_name.
12403 * cp-support.h: Rename processing_current_namespace to
12404 processing_current_prefix.
12405 Update copyright year.
12406 * cp-namespace.c: Rename processing_current_namespace to
12407 processing_current_prefix.
12408 Update copyright year.
12409
12410 2004-01-09 Andrew Cagney <cagney@redhat.com>
12411
12412 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12413
12414 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12415
12416 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12417 complaining.
12418 (process_one_symbol): Deal with N_PATCH stabs.
12419
12420 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12421
12422 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12423 ifdeffed code.
12424 Update copyright year.
12425
12426 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12427
12428 * config/pa/tm-hppa.h: Update extern declarations for
12429 hppa32_hpux_frame_saved_pc_in_sigtramp,
12430 hppa32_hpux_frame_base_before_sigtramp, and
12431 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12432
12433 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12434
12435 * config/pa/tm-hppah.h: Update copyright years.
12436
12437 2004-01-08 Andrew Cagney <cagney@redhat.com>
12438
12439 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12440 (mips_o32_reg_struct_has_addr): Delete function.
12441 (mips_gdbarch_init): Update.
12442 (mips_extract_struct_value_address): Delete function.
12443
12444 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12445
12446 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12447 reality.
12448
12449 2004-01-07 Andrew Cagney <cagney@redhat.com>
12450
12451 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12452 architecture's elf flags (when available).
12453
12454 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12455 FPU to the start, check the MIPS FPU when looking for an old
12456 architecture.
12457 (set_mipsfpu_single_command): Update the architecture.
12458 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12459
12460 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12461 (mips_mask_address_p): Add "tdep" parameter.
12462 (show_mask_address, mips_addr_bits_remove): Update.
12463 (mips_dump_tdep): Update.
12464 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12465 (MIPS_STACK_ARGSIZE): Delete macro.
12466 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12467 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12468 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12469 (mips_dump_tdep): Update.
12470 (MIPS_SAVED_REGSIZE): Delete macro.
12471 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12472 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12473 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12474 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12475 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12476 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12477 (mips_pop_frame, return_value_location): Update.
12478 (mips_n32n64_return_value, mips_dump_tdep): Update.
12479
12480 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12481 MIPS ABI.
12482
12483 * mips-tdep.c: Update copyright.
12484 (mips_gdbarch_init): Merge two code blocks handling the register
12485 name and number layout.
12486
12487 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12488
12489 * tracepoint.c (validate_actionline): Fix segv at EOF
12490
12491 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12492
12493 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12494 properly for static fields.
12495
12496 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12497 Jason Molenda <jmolenda@apple.com>
12498
12499 * disasm.c: Update copyright to include 2004.
12500 (do_mixed_source_and_assembly): For uiout asm list
12501 and tuple cleanups, initialize to null_cleanup instead of
12502 NULL and do so prior to loop. Only reset when we close off
12503 the tuple/list. Move check for whether to close off the
12504 asm tuple/list to after dump_insns call where it will be run
12505 on each loop iteration.
12506
12507 2004-01-05 Andrew Cagney <cagney@redhat.com>
12508
12509 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12510 should be a switch case and not a label.
12511 * mips-tdep.c (mips32_next_pc): Delete unused labels
12512 "greater_equal_branch" and "less_zero_branch".
12513 * jv-valprint.c (java_print_value_fields): Delete unused label
12514 "flush_it".
12515
12516 * target.c (unpush_target): Only close a target that is in the
12517 target stack.
12518
12519 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12520
12521 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12522 address from [sp + 64] instead of %o2.
12523
12524 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12525 fixes PR backtrace/1476.
12526
12527 2004-01-05 Andrew Cagney <cagney@redhat.com>
12528
12529 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12530 move to start of file.
12531 * i386-tdep.h (struct regcache): Add opaque declaration.
12532 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12533 declaration.
12534 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12535 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12536 * win32-nat.c (fake_create_process): Use ISO C style definition.
12537 * stabsread.c (define_symbol): Delete #ifndef
12538 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12539 stabs_argument_has_addr call, macro never defined.
12540
12541 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12542
12543 * op50-rom.c: Delete.
12544 * w89k-rom.c: Delete.
12545 * Makefile.in: Remove references.
12546
12547 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12548
12549 * x86-64-tdep.c: Update copyright year.
12550 (struct amd64_register_info): Rename from x86_64_register_info.
12551 (amd64_register_info): Rename from x86_64_register_info.
12552 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12553 (amd64_register_name): Rename from x86_64_register_name.
12554 (amd64_register_type): Rename from x86_64_register_type.
12555 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12556 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12557 (amd64_dwarf_reg_to_regnum): Rename from
12558 x86_64_dwarf_reg_to_regnum.
12559 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12560 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12561 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12562 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12563 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12564 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12565 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12566 (amd64_frame_cache): Rename from x86_64_frame_cache.
12567 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12568 (amd64_frame_prev_register): Rename from
12569 x86_64_frame_prev_register.
12570 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12571 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12572 (amd64_sigtramp_frame_cache): Rename from
12573 x86_64_sigtramp_frame_cache.
12574 (amd64_sigtramp_frame_prev_register): Rename from
12575 x86_64_sigtramp_frame_prev_register.
12576 (amd64_sigtramp_frame_unwind): Rename from
12577 x86_64_sigtramp_frame_unwind.
12578 (amd64_sigtramp_frame_sniffer): Rename from
12579 x86_64_sigtramp_frame_sniffer.
12580 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12581 (amd64_frame_base): Rename from x86_64_frame_base.
12582 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12583 (amd64_frame_align): Rename from x86_64_frame_align.
12584 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12585 (amd64_regset_from_core_section): Rename from
12586 x86_64_regset_from_core_section.
12587 (x86_64_init_abi): Update comments.
12588
12589 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12590
12591 * MAINTAINERS (write after approval): Add myself.
12592
12593 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12594
12595 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12596 `float' arguments.
12597
12598 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12599
12600 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12601 such that it mentions a specific version of GCC that exhibits this
12602 bug.
12603
12604 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12605
12606 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12607 structure that has a single `float' member, store it in %f1 in
12608 addition to %f0.
12609
12610 * sparc-sol2-nat.c: Add missing '\'.
12611
12612 * sparc-tdep.c (sparc32_return_value): New function.
12613 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12614 Remove functions.
12615 (sparc32_gdbarch_init): Set return_value, don't set
12616 extract_return_value, store_return_value, use_struct_convention
12617 and return_value_on_stack.
12618
12619 * sparc-sol2-nat.c: Add missing ')'.
12620
12621 2004-01-03 J. Brobecker <brobecker@gnat.com>
12622
12623 * infrun.c (handle_step_into_function): New function.
12624 (handle_inferior_event): Extract out some code into the new
12625 function above.
12626
12627 2004-01-03 J. Brobecker <brobecker@gnat.com>
12628
12629 * infrun.c (handle_inferior_event): Move the declaration of
12630 real_stop_pc inside the if blocks where it is used.
12631
12632 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12633
12634 * sparc64-tdep.c (sparc64_16_byte_align_p)
12635 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12636 Use check_typedef to get subtypes of structures and unions.
12637 (sparc64_store_return_value): Fix calculation of the appropriate
12638 offset into VALBUF when storing a structure or union.
12639 (sparc64_return_value): New function.
12640 (sparc64_use_struct_convention): Remove function.
12641 (sparc64_init_abi): Set return_value, don't set
12642 extract_return_value, store_return_value and
12643 use_struct_convention.
12644
12645 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12646
12647 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12648 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12649 gdb/config/alpha/xm-alphaosf.h,
12650 gdb/config/powerpc/tm-ppcle-eabi.h,
12651 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12652 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12653 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12654 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12655 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12656 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12657 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12658 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12659 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12660 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12661 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12662 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12663 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12664 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12665 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12666 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12667 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12668 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12669 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12670 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12671 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12672 Remove lines for .cvsignore files.
12673
12674 2004-01-03 J. Brobecker <brobecker@gnat.com>
12675
12676 * infrun.c: Back out the previous change.
12677
12678 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12679
12680 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12681 sparc-*-sunos4* to the list of REMOVED configurations.
12682
12683 * configure.tgt: Add back sparc-*-vxworks*.
12684 * remote-vxsparc.c: Remove all includes except for "defs.h",
12685 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12686 Include "sparc-tdep.h".
12687 (SPARC_R_G1): New define.
12688 (vxsparc_gregset): New variable.
12689 (ext_format_sparc): Remove extern declaration.
12690 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12691 sparc32_supply_fpregset.
12692 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12693 sparc_collect_rwindow and sparc32_collect_fpregset.
12694 * config/sparc/tm-vxworks.h: New file, based on recently removed
12695 tm-vxsparc.h.
12696 * config/sparc/vxworks.mt: New file, based on recently removed
12697 vxworks.mt.
12698
12699 2004-01-03 J. Brobecker <brobecker@gnat.com>
12700
12701 * infrun.c (handle_step_into_function): New function.
12702 (handle_inferior_event): Extract out some code into the new
12703 function above.
12704
12705 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12706
12707 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12708 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12709 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12710 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12711 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12712 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12713 (sparc_nat_h): New variable.
12714 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12715 (tm-sun4os4.h): Remove dependency.
12716 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12717 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12718 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12719 sparc-tdep.o): Update dependencies.
12720 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12721 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12722 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12723 dependencies.
12724 * configure.host: Remove existing sparc-*-lynxos*,
12725 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12726 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12727 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12728 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12729 triplets.
12730 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12731 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12732 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12733 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12734 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12735 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12736 sparc64-*-solaris2* and sparc64-*-* triplets.
12737 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12738 "symtab.h" and "objfiles.h".
12739 (BIAS): Remove define.
12740 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12741 (X_DISP19): Remove macros.
12742 (sparc_fetch_instruction): Remove function.
12743 (struct gdbarch_tdep): Remove definition.
12744 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12745 (sparc_breakpoint_from_pc): Remove function.
12746 (struct sparc64_frame_cache): Remove definition.
12747 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12748 sparc64_unwind_pc): Remove functions.
12749 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12750 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12751 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12752 (sparc64_frame_cache): Change return type to `struct
12753 sparc_frame_cache *'. Simply call sparc_frame_cache.
12754 (sparc64_frame_this_id, sparc64_frame_prev_register,
12755 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12756 instead of `struct sparc64_frame_cache.
12757 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12758 sparc_analyze_control_transfer, sparc_software_single_step,
12759 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12760 _initialize_sparc64_tdep): Remove functions.
12761 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12762 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12763 macros.
12764 (sparc64_supply_gregset, sparc64_collect_gregset,
12765 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12766 (sparc64_init_abi): New function.
12767 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12768 inclusion guard. Include "sparc-tdep.h".
12769 (BIAS): Define.
12770 (r_tstate_offset, r_fprs_offset): New defines.
12771 (enum sparc_regnum): Remove defenition.
12772 (enum sparc64_regnum): Reformat.
12773 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12774 (sparc64_init_abi, sparc64_supply_gregset,
12775 sparc64_collect_gregset, sparc64_supply_fpregset,
12776 sparc64_collect_fpregset): New prototypes.
12777 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12778 Add extern declarations.
12779 (sparc64_sol2_init_abi): New prototype.
12780 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12781 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12782 prototypes.
12783 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12784 "sparnbsd-nat.h".
12785 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12786 functions.
12787 (_initialize_sparc64fbsd_nat): Remove initialization of
12788 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12789 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12790 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12791 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12792 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12793 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12794 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12795 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12796 (sparc64fbsd_r_y_offset): Remove variables.
12797 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12798 Make static and const.
12799 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12800 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12801 functions.
12802 (sparc64fbsd_gregset): New variable.
12803 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12804 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12805 and sparc64_supply_fpregset.
12806 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12807 (sparc64fbsd_sigtramp_frame_this_id)
12808 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12809 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12810 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12811 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12812 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12813 * sparcnbsd-tdep.c: Update copyright year. Include
12814 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12815 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12816 "value.h" and "sparcnbsd-tdep.h".
12817 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12818 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12819 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12820 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12821 defines.
12822 (sparcnbsd_gregset): New variable.
12823 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12824 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12825 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12826 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12827 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12828 variables.
12829 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12830 (sparc32nbsd_sigcontext_frame_this_id)
12831 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12832 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12833 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12834 (sparcnbsd_get_longjmp_target_32,
12835 sparcnbsd_get_longjmp_target_64): Remove functions.
12836 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12837 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12838 sparcnbsd_init_elf): Remove.
12839 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12840 (sparcnbsd_elf_init_abi): New functions.
12841 (_initialize_sparcnbsd_tdep): New prototype.
12842 (_initialize_sparnbsd_tdep): Update.
12843 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12844 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12845 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12846 * config/sparc/linux.mh: Update comment.
12847 (XM_FILE, HOST_IPC): Remove variables.
12848 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12849 sparc-linux-nat.o.
12850 * config/sparc/linux.mt: Update comment.
12851 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12852 * config/sparc/nbsd.mt: Reformat.
12853 * config/sparc/nbsd64.mh: Update comment.
12854 (NATDEPFILES): Add sparc-nat.o.
12855 * config/sparc/nbsd64.mt: Update comment.
12856 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12857 (TM_FILE): Set to tm-nbsd.h.
12858 * config/sparc/nbsdelf.mh: Update comment.
12859 (NATDEPFILES): Add sparc-nat.o.
12860 (XM_FILE): Delete.
12861 * config/sparc/nbsdaout.mh: Update comment.
12862 (NATDEPFILES): Add sparc-nat.o
12863 (XM_FILE): Delete.
12864 * config/sparc/nm-linux.h: Update copyright year. Don't include
12865 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12866 inclusion.
12867 (KERNEL_U_SIZE): Remove define.
12868 (kernel_u_size): Remove prototype.
12869 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12870 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12871 "regcache.h".
12872 (CHILD_PREPARE_TO_STORE): Remove define.
12873 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12874 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12875 sparcnbsd-nat.c: Rewrite files.
12876 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12877 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12878 sparcnbsd-tdep.h: Remove files.
12879 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12880 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12881 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12882 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12883 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12884 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12885 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12886 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12887 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12888 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12889 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12890 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12891 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12892 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12893 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12894 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12895 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12896 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12897 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12898
12899 2004-01-02 Andrew Cagney <cagney@redhat.com>
12900
12901 From 2003-12-18 Kazuhiro Inaoka:
12902 * configure.host: Add m32r-linux target.
12903
12904 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12905
12906 * top.c (print_gdb_version): Update year to 2004.
12907
12908 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12909
12910 * MAINTAINERS: Add myself to the write-after-approval category.
12911
12912 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12913
12914 From Bernardo Innocenti <bernie@develer.com>:
12915 * configure.tgt: Add uClinux target.
12916
12917 2004-01-02 Andrew Cagney <cagney@redhat.com>
12918
12919 * utils.c (do_my_cleanups): Make static, add forward declaration.
12920 * defs.h (do_my_cleanups): Delete declaration.
12921
12922 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12923
12924 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12925 bfd/ChangeLog-0203.
12926
12927 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12928
12929 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12930 in <machine/reg.h>.
12931 * configure, config.in: Regenerate.
12932
12933 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12934 tui/ChangeLog-1998-2003.
12935 \f
12936 Local Variables:
12937 mode: change-log
12938 left-margin: 8
12939 fill-column: 74
12940 version-control: never
12941 End:
This page took 0.286852 seconds and 5 git commands to generate.