465185e4f0dcaae4ad41ae033053d66d1c0af784
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2
3 * sparc64-linux-tdep.c: Update copyright year. Don't include
4 "solib-svr4.h".
5 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
6 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
7 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
8
9 * sparc-linux-tdep.c: Update copyright year.
10 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
11 to struct frame_info *. Use safe_frame_unwind_memory instead of
12 deprecated_read_memory_nobpt.
13 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
14 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
15 changed signature of sparc_linux_sigtramp_start.
16 (sparc32_linux_pc_in_sigtramp): Remove function.
17 (sparc32_linux_sigtramp_p): New function.
18 (sparc32_linux_sigtramp_frame_sniffer): Use
19 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
20
21 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
22 Remove function.
23 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
24
25 * ada-lang.c (lim_warning): Re-implement as a varargs function.
26 (decode_packed_array_type, value_subscript_packed)
27 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
28 argument in call to lim_warning.
29
30 * configure.in: Really disable the TUI if an enhanced curses
31 library isn't found.
32 * configure: Regenerate.
33
34 2004-10-09 Mark Kettenis <kettenis@gnu.org>
35
36 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
37 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
38 * config/i386/nm-nbsdaout.h: Remove file.
39 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
40 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
41 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
42 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
43 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
44 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
45 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
46 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
47 (ldd, ld_un, ld_2): Remove defines.
48 * config/i386/nm-obsd.h: Likewise.
49
50 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
51
52 * ada-lex.l: Remove useless rule whose right-context clause
53 causes unreferenced static function warning for yyrealloc.
54 (ada_flex_use): Remove the artificial reference to yyrealloc.
55
56 2004-10-08 Andrew Cagney <cagney@gnu.org>
57
58 * target.h (struct target_ops): Rename to_xfer_memory to
59 deprecated_xfer_memory.
60 * target.c: Update.
61 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
62 * wince.c: Update.
63 * win32-nat.c: Update.
64 * v850ice.c: Update.
65 * uw-thread.c: Update.
66 * thread-db.c: Update.
67 * sol-thread.c: Update.
68 * remote.c: Update.
69 * remote-vx.c: Update.
70 * remote-st.c: Update.
71 * remote-sim.c: Update.
72 * remote-sds.c: Update.
73 * remote-rdp.c: Update.
74 * remote-rdi.c: Update.
75 * remote-mips.c: Update.
76 * remote-m32r-sdi.c: Update.
77 * remote-e7000.c: Update.
78 * procfs.c: Update.
79 * ppc-bdm.c: Update.
80 * nto-procfs.c: Update.
81 * monitor.c: Update.
82 * linux-nat.c: Update.
83 * inftarg.c: Update.
84 * hpux-thread.c: Update.
85 * go32-nat.c: Update.
86 * gnu-nat.c: Update.
87 * exec.c: Update.
88 * corelow.c: Update.
89 * bsd-kvm.c: Update.
90 * aix-thread.c: Update.
91
92 2004-10-08 Andrew Cagney <cagney@gnu.org>
93
94 * target.c (debug_target): Move to near start of file.
95 (target_stopped_data_address_p): Re-org logic, add casts.
96
97 2004-10-02 Mark Kettenis <kettenis@gnu.org>
98
99 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
100 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
101 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
102 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
103 New defines.
104
105 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
106
107 * target.h (to_stopped_data_address): Change prototype to
108 take a CORE_ADDR pointer and return an int.
109 * target.c (update_current_target): Change to_stopped_data_address
110 to match new prototype.
111 (debug_to_stopped_data_address): Change appropriately.
112 * breakpoint.c (bpstat_stop_status): Change call to
113 target_stopped_data_address to use new prototype.
114 * frv-tdep.c (frv_have_stopped_data_address): New function.
115 (frv_stopped_data_address): Change to new prototype and
116 functionality.
117 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
118 prototype and functionality.
119 (ia64_stopped_by_watchpoint): New function.
120 * i386-nat.c (i386_stopped_data_address): Change to new
121 prototype and functionality.
122 (i386_stopped_by_watchpoint): New function.
123 * remote.c (remote_stopped_data_address): Change to new prototype
124 and functionality.
125 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
126 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
127 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
128 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
129 new i386_stopped_by_watchpoint function.
130 (i386_stopped_by_watchpoint): New prototype.
131 (i386_stoppped_data_address): Change to new prototype.
132 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
133 new ia64_stopped_by_watchpoint function.
134 (ia64_stopped_by_watchpoint): New prototype.
135 (ia64_stopped_data_address): Ditto.
136
137 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
138
139 * ada-typeprint.c (ada_print_type): Use int_string for printing
140 modulus of modular type.
141 * ada-lang.h (ada_modulus): Change return type to unsigned.
142 * ada-lang.c (ada_language_arch_info): Correct type of
143 string_char_type.
144 (ada_modulus): Return unsigned result.
145 (ada_lookup_symbol): Remove user disambiguation and modify comment
146 accordingly.
147
148 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
149
150 Committed by Paul Hilfinger.
151 * ada-lang.c (decode_packed_array): On big-endian targets,
152 left-justify the value if it comes with a modular type.
153
154 2004-10-08 Joel Brobecker <brobecker@gnat.com>
155
156 Committed by Paul Hilfinger.
157 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
158 (is_name_suffix): Add support for "___JM" suffixes.
159 (ada_check_typedef): Renames ada_completed_type.
160 Update all users of CHECK_TYPEDEF, check_typedef, and
161 ada_complete_type to call ada_check_typedef.
162 * ada-typeprint.c: Likewise.
163 * ada-valprint.c: Likewise.
164
165 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
166
167 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
168
169 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
170
171 * MAINTAINERS: Update e-mail address.
172
173 2004-10-07 Daniel Jacobowitz <dan@debian.org>
174
175 From Maciej W. Rozycki <macro@mips.com>:
176 * mips-tdep.c (mips32_next_pc): Check the register's contents,
177 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
178
179 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
180
181 * m32r-tdep.c (decode_prologue): Support functions written
182 in assembler language. Recognize trap instructions as the
183 end of prologue.
184 (m32r_frame_unwind_cache): Ditto.
185 (m32r_skip_prologue): Extend search limit. Quit analyzing
186 prologue if pc's location is not readable.
187
188 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
189
190 * Makefile.in (.l.c): Do conversions of names of alloc and free
191 functions that are done for .y.c files, plus special one
192 for yy_flex_realloc. Also, correct missing-file tests here.
193 * ada-lex.l (malloc, free): Remove macros.
194 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
195 xrealloc.
196 (ada_flex_use): Dummy definition to remove warnings about unused
197 functions.
198 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
199 to suppress warning.
200
201 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
202
203 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
204 RETURN_VALUE.
205 (sh_return_value_fpu): Ditto for CPUs with FPU.
206 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
207 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
208 Install sh_return_value_nofpu resp. sh_return_value_fpu as
209 RETURN_VALUE functions.
210
211 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
212
213 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
214 (sh_pseudo_register_write): Ditto.
215
216 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
217
218 * sh-tdep.c (IS_MACL_STS): New define.
219 (IS_MOVI20): Ditto.
220 (IS_MACL_LDS): Ditto.
221 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
222 instructions in prologue.
223 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
224 instructions in epilogue.
225
226 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
227
228 * sh-tdep.c (SH_NUM_REGS): Define as 67.
229 (sh_sh_register_name): Add eight empty register names.
230 (sh_sh3_register_name): Ditto.
231 (sh_sh3e_register_name): Ditto.
232 (sh_sh2e_register_name): Ditto.
233 (sh_sh2a_register_name): New function, defining SH2A register set.
234 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
235 in nofpu case.
236 (sh_sh_dsp_register_name): Add eight empty register names.
237 (sh_sh3_dsp_register_name): Ditto.
238 (sh_sh4_register_name): Ditto.
239 (sh_sh4_nofpu_register_name): Ditto.
240 (sh_sh4al_dsp_register_name): Ditto.
241 (sh2a_show_regs): New function.
242 (sh2a_nofpu_show_regs): New function.
243 (sh_sh2a_register_type): New function.
244 (do_bank_register_info): New function.
245 (sh_print_pseudo_register): Call do_bank_register_info.
246 Call sh_print_pseudo_register for valid "bank" register.
247 (sh_sh2a_register_sim_regno): New function.
248 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
249 Increment pseudo register count by one for all sh variants with
250 pseudo registers to accomodate pseudo bank register.
251 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
252 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
253 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
254 Increment pseudo register numbers.
255
256 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
257
258 * dwarf2read.c (read_subroutine_type): Call make_function_type
259 instead of lookup_function_type.
260
261 2004-10-05 Jim Blandy <jimb@redhat.com>
262
263 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
264 (Previous change missed some uses.)
265
266 2004-10-05 Andrew Cagney <cagney@gnu.org>
267
268 * target.h (deprecated_child_ops): Rename child_ops.
269 * wince.c: Update copyright. Rename child_ops.
270 * win32-nat.c: Rename child_ops.
271 * target.c: Rename child_ops.
272 * rs6000-nat.c: Rename child_ops.
273 * linux-nat.c: Rename child_ops.
274 * infttrace.c: Rename child_ops.
275 * inftarg.c: Rename child_ops.
276 * infptrace.c: Rename child_ops.
277 * hppah-nat.c: Update copyright. Rename child_ops.
278 * hpux-thread.c: Update copyright. Rename child_ops.
279
280 2004-10-05 Daniel Jacobowitz <dan@debian.org>
281
282 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
283
284 2004-10-05 Andrew Cagney <cagney@gnu.org>
285
286 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
287
288 2004-10-05 Daniel Jacobowitz <dan@debian.org>
289
290 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
291 (die_ref_table): Remove.
292 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
293 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
294 the usage of this type.
295 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
296 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
297 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
298 (dwarf2_create_include_psymtab): Update comment.
299 (find_partial_die): Remove third argument. Remove unreachable call
300 to error ().
301 (dwarf2_find_containing_comp_unit): Update comments. Change one
302 assertion to an error. Remove an unreachable error.
303 (dwarf2_find_comp_unit): Update comments.
304 (type_at_offset): Remove dead code.
305 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
306 (store_in_ref_table): Add CU argument.
307 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
308 inter-compilation-unit references.
309 (load_full_comp_unit, process_full_comp_unit): New functions, based
310 on psymtab_to_symtab_1.
311 (psymtab_to_symtab_1): Use them.
312 (dwarf2_add_dependence): New function.
313 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
314 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
315 (partial_die_parent_scope, guess_structure_name): Update for changes
316 to find_partial_die.
317 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
318 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
319 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
320 (read_die_and_children): Update call to store_in_ref_table.
321 (do_free_die_list_cleanup): Remove.
322 (fixup_partial_die): Update for changes to find_partial_die.
323 (read_full_die): Handle queueing absolute references.
324 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
325 (dwarf2_attr, die_specification, die_type)
326 (die_containing_type, dwarf2_extension): Update calls to
327 follow_die_ref.
328 (dump_die): Update DW_FORM_ref* handling.
329 (dwarf2_get_ref_die_offset): Likewise.
330 (free_one_comp_unit): Release the dies list.
331 (dwarf2_mark_helper): New function.
332 (dwarf2_mark): Use it.
333
334 2004-10-05 Mark Kettenis <kettenis@jive.nl>
335
336 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
337 when writing to memory.
338
339 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
340
341 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
342 (m32r_extract_struct_value_address): Delete function.
343 (m32r_return_value): New function.
344 (m32r_gdbarch_init): Instead of store_return_value,
345 extract_return_value, deprecated_extract_struct_value_address
346 and deprecated_use_struct_convention, set return_value.
347
348 2004-10-03 Daniel Jacobowitz <dan@debian.org>
349
350 * dwarf2read.c (read_subrange_type): Add comment for variable
351 sized arrays.
352
353 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
354
355 * Makefile.in (.l.c): Modify rule for compatibility with recent
356 versions of flex, and remove most command-line options.
357 * ada-lex.l: Add %options line in place of -I -i and -s command-line
358 options.
359
360 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
361
362 Turn on initial Ada support (mainly expression evaluation).
363
364 * Makefile.in (SFILES): Remove ada-tasks.c.
365 (HFILES_NO_SRCDIR): Add ada-lang.h.
366 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
367 (YYOBJ): Add ada-exp.o.
368 (rule .l.c): Generalize to not mention ada.
369 * symtab.c: Include ada-lang.h.
370 (symbol_natural_name, symbol_demangled_name)
371 (symbol_search_name): Add Ada case.
372
373 2004-10-01 Andrew Cagney <cagney@gnu.org>
374
375 * Makefile.in (COMMON_OBS): Add inf-child.o.
376 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
377 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
378 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
379 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
380 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
381 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
382 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
383 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
384 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
385 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
386 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
387 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
388 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
389
390 * target.c (xfer_using_stratum): Change return type to LONGEST.
391 On each iteration offset, readbuf and writebuf.
392 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
393 partial_length, and read/modify/write predicate, update comments.
394 Pass buffer.word to ptrace write.
395
396 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
397
398 * symfile.c (init_filename_language_table): Add extensions for
399 Ada.
400 * defs.h (enum language): Add language_ada.
401 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
402 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
403 (add_symbols_from_enclosing_procs): Make a no-op for now.
404 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
405 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
406 (find_line_in_linetable, find_next_line_in_linetable)
407 (read_all_symtabs, is_plausible_func_for_line)
408 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
409 (is_runtime_sym_defined, check_size): Remove declaration.
410 (function_name_from_pc, ada_translate_error_message)
411 (ada_lookup_minimal_symbol): Remove definition.
412 (ada_add_block_symbols): Remove useless label.
413 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
414 useless declaration.
415 (ada_is_exception_sym): Likewise.
416
417 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
418
419 Add m32r-linux support.
420 * configure.tgt: Add m32r*-*-linux*.
421 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
422 and m32r-linux-tdep.c.
423 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
424 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
425 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
426 m32r-linux-tdep.c.
427 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
428 config/m32r/linux.mh, config/m32r/linux.mt,
429 config/m32r/nm-linux.h: New files.
430
431 2004-09-30 Joel Brobecker <brobecker@gnat.com>
432
433 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
434 (mips32_fetch_instruction): Remove, unused.
435
436 2004-09-30 Joel Brobecker <brobecker@gnat.com>
437
438 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
439 conditions that will always be true.
440
441 2004-09-30 Mark Kettenis <kettenis@gnu.org>
442
443 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
444 (vaxbsd_fetch_inferior_registers): Rename from
445 fetch_inferior_registers. Make static.
446 (vaxbsd_store_inferior_registers): Rename from
447 store_inferior_registers. Make static.
448 (_initialize_vaxbsd_nat): Construct and add target vector.
449 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
450 inftarg.o. Add inf-child.o and inf-ptrace.o.
451 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
452 inftarg.o. Add inf-child.o and inf-ptrace.o.
453 (NAT_FILE): Remove.
454 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
455 inftarg.o. Add inf-child.o and inf-ptrace.o.
456 (NAT_FILE): Remove.
457 * Makefile.in (vaxbsd-nat.o): Update dependencies.
458
459 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
460 (m88kbsd_fetch_inferior_registers): Rename from
461 fetch_inferior_registers. Make static.
462 (m88kbsd_store_inferior_registers): Rename from
463 store_inferior_registers. Make static.
464 (_initialize_m88kbsd_nat): New prototype and function.
465 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
466 inftarg.o. Add inf-child.o and inf-ptrace.o.
467 (NAT_FILE): Remove.
468 * Makefile.in (m88kbsd-nat.o): Update dependencies.
469
470 2004-09-30 Andrew Cagney <cagney@gnu.org>
471
472 * target.c (target_xfer_partial): New function.
473 (target_read_memory_partial, target_write_memory_partial)
474 (default_xfer_partial, target_read_partial, target_write_partial)
475 (xfer_using_stratum): Use.
476 (debug_to_xfer_partial): Delete function.
477 (setup_target_debug): Do not override to_xfer_partial.
478
479 2004-09-30 Mark Kettenis <kettenis@chello.nl>
480
481 * fork-child.c: Update copyright year. Fix coding style.
482
483 2004-09-29 Mark Kettenis <kettenis@gnu.org>
484
485 * defs.h (msavestring, mstrsave): Remove prototypes.
486 * utils.c (msavestring, mstrsave): Remove functions.
487 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
488 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
489 of mstrsave.
490 * source.c (find_and_open_source): Use xstrdup instead of
491 mstrsave.
492
493 2004-09-30 Andrew Cagney <cagney@gnu.org>
494
495 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
496 (inf_ptrace_xfer_memory): Delete.
497 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
498 (target_read_memory, target_write_memory): Use xfer_using_stratum
499 when target_xfer_partial_p.
500 (debug_target): Move to start of file.
501 (target_read_memory_partial, target_write_memory_partial): Use
502 to_xfer_partial when target_xfer_partial_p.
503
504 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
505 inf_ptrace_xfer_memory with equivalent code.
506 * inftarg.c (child_xfer_partial): When performing a write, pass
507 writebuf to child_xfer_memory.
508
509 * target.c (target_read_string): Use target_read_memory instead of
510 target_xfer_memory.
511
512 2004-09-29 Andrew Cagney <cagney@gnu.org>
513
514 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
515 the address of status.
516
517 * infptrace.c (ptrace_wait): Mention problem with HPUX.
518 (kill_inferior): Inline ptrace_wait call.
519 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
520 * inftarg.c (child_wait): Inline ptrace_wait call.
521
522 * target.h (struct target_ops): Delete field to_post_wait.
523 (target_post_wait): Delete macro.
524 (child_post_wait): Delete declaration.
525 * target.c (update_current_target, update_current_target)
526 (debug_to_post_wait, setup_target_debug): Delete functions and
527 references.
528 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
529 * inftarg.c (child_post_wait): Delete.
530 (init_child_ops): Do not set to_post_wait.
531 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
532 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
533 * inf-child.c (inf_child_post_wait): Delete.
534 (inf_child_target): Do not set to_post_wait.
535 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
536 (inf_ptrace_target): Do not set to_post_wait.
537
538 * wince.c (child_ops): Delete.
539 * win32-nat.c (child_ops): Delete.
540
541 * inftarg.c (inftarg_set_find_memory_regions)
542 (inftarg_set_make_corefile_notes): Delete functions.
543 (_initialize_linux_nat): Inline calls.
544
545 * target.h (child_ops): Declare.
546 * inftarg.c (child_ops): Move from here ...
547 * target.c (child_ops): ... to here.
548 * wince.c (child_ops): Delete extern declaration.
549 * win32-nat.c (child_ops): Delete extern declaration.
550 * linux-nat.c (child_ops): Delete extern declaration.
551 * hpux-thread.c (child_ops): Delete extern declaration.
552
553 2004-09-28 Mark Kettenis <kettenis@gnu.org>
554
555 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
556
557 2004-09-28 Mark Kettenis <kettenis@gnu.org>
558
559 * configure.in: Only set host_makefile_frag when building a native
560 debugger.
561 * configure: Regenerate.
562
563 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
564 for OpenBSD ELF.
565
566 2004-09-28 Andrew Cagney <cagney@gnu.org>
567
568 Problem identified by Paul Hilfinger.
569 * Makefile.in (ada_lex_c): Define.
570 (ada-lex.o): Delete rule.
571
572 * linux-proc.c: Delete file.
573 * Makefile.in: Update.
574 * config/sparc/linux64.mh (NATDEPFILES):
575 * config/sparc/linux.mh (NATDEPFILES): Update.
576 * config/s390/s390.mh (NATDEPFILES): Update.
577 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
578 * config/powerpc/linux.mh (NATDEPFILES): Update.
579 * config/pa/linux.mh (NATDEPFILES): Update.
580 * config/mips/linux.mh (NATDEPFILES): Update.
581 * config/m68k/linux.mh (NATDEPFILES): Update.
582 * config/ia64/linux.mh (NATDEPFILES): Update.
583 * config/i386/linux64.mh (NATDEPFILES): Update.
584 * config/i386/linux.mh (NATDEPFILES): Update.
585 * config/arm/linux.mh (NATDEPFILES): Update.
586 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
587 * linux-nat.c: Update copyright. Include <sys/param.h>,
588 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
589 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
590 (O_LARGEFILE): Possibly define.
591 (_initialize_linux_nat, linux_proc_pending_signals)
592 (add_line_to_sigset, linux_proc_xfer_memory)
593 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
594 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
595 (struct linux_corefile_thread_data)
596 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
597 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
598
599 2004-09-16 Andrew Cagney <cagney@gnu.org>
600
601 * lin-lwp.c: Delete file.
602 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
603 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
604 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
605 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
606 (linux_nat_attach, detach_callback, linux_nat_detach)
607 (resume_callback, resume_clear_callback, linux_nat_resume)
608 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
609 (stop_wait_callback, linux_nat_has_pending, flush_callback)
610 (status_callback, running_callback, count_events_callback)
611 (select_singlestep_lwp_callback, select_event_lwp_callback)
612 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
613 (child_wait, stop_and_resume_callback, linux_nat_wait)
614 (kill_callback, kill_wait_callback, linux_nat_kill)
615 (linux_nat_create_inferior, linux_nat_mourn_inferior)
616 (linux_nat_xfer_memory, linux_nat_thread_alive)
617 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
618 (_initialize_linux_nat): New functions.
619 * Makefile.in: Update all dependencies.
620 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
621 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
622 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
623 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
624 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
625 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
626 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
627 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
628 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
629 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
630 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
631 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
632 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
633
634 2004-09-27 Mark Kettenis <kettenis@gnu.org>
635
636 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
637 config/i386/obsd64.mh (NAT_FILE): Remove variable.
638
639 * configure.in: Don't comment out NATDEPFILES in the generated
640 Makefile if NAT_FILE is unset.
641 * configure: Regenerate.
642
643 2004-09-27 Andrew Cagney <cagney@gnu.org>
644
645 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
646 (insert_step_resume_breakpoint): Delete.
647 (insert_step_resume_breakpoint_at_frame): New function.
648 (insert_step_resume_breakpoint_at_sal): New function.
649 (handle_inferior_event, step_into_function)
650 (insert_step_resume_breakpoint): Simplify by using same.
651
652 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
653
654 2004-09-26 Mark Kettenis <kettenis@gnu.org>
655
656 * fbsd-proc.c: Remove file.
657 * Makefile.in (fbsd-proc.o): Remove dependency.
658
659 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
660 code together.
661
662 * config/i386/nm-fbsd64.h: Remove file.
663 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
664
665 2004-09-26 Mark Kettenis <kettenis@gnu.org>
666
667 * amd64-nat.h: Update copyright year.
668 (amd64bsd_target): New prototype.
669 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
670 (amd64bsd_target): New function.
671 (amd64bsd_fetch_inferior_registers): Rename from
672 fetch_inferior_registers. Make static.
673 (amd64bsd_store_inferior_registers): Rename from
674 store_inferior_registers. Make static.
675 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
676 (_initialize_amd64fbsd_nat): Construct and add target vector.
677 * amd64nbsd-nat.o: Include "target.h".
678 (_initialize_amd64nbsd_nat): Construct and add target vector.
679 * amd64obsd-nat.c: Include "target.h".
680 (_initialize_amd64obsd_nat): Construct and add target vector.
681 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
682 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
683 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
684 fbsd-nat.o.
685 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
686 Remove infptrace.o and inftarg.o. Add inf-child.o and
687 inf-ptrace.o.
688 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
689 (amd64obsd-nat.o): Update dependencies.
690
691 2004-09-25 Mark Kettenis <kettenis@gnu.org>
692
693 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
694 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
695 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
696 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
697 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
698
699 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
700 Inline attach call.
701 (inf_ptrace_detach): Inline detach call.
702
703 * configure.in: Check for waddstr instead of mvwaddstr when
704 searching for curses library. Check for wborder.
705 * configure, config.in: Regenerate.
706 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
707 available.
708
709 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
710
711 2004-09-24 Robert Picco <Robert.Picco@hp.com>
712
713 Committed by Andrew Cagney.
714 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
715 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
716 configuration.
717 (fetch_register_using_p): Implement 'p' packet. Based on code by
718 Fernando Nasser.
719 (remote_fetch_registers): Call fetch_register_using_p.
720 (init_all_packet_configs, show_remote_cmd)
721 (_initialize_remote): Add p-packet.
722
723 2004-09-24 Mark Kettenis <kettenis@gnu.org>
724
725 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
726 instead of call_ptrace. Call wait directly instead of
727 ptrace_wait.
728 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
729 (inf_ptrace_wait): Inline ptrace_wait call.
730
731 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
732
733 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
734 rolled back instead.
735
736 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
737
738 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
739 the new argument order.
740
741 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
742
743 * MAINTAINERS: Remove "broken" from XStormy16 entry.
744 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
745 (struct gdbarch_tdep): Remove.
746 (struct xstormy16_frame_cache): New frame cache structure.
747 (xstormy16_register_byte, xstormy16_register_raw_size)
748 (xstormy16_reg_virtual_type, xstormy16_register_type)
749 (xstormy16_push_arguments, xstormy16_push_return_address)
750 (xstormy16_pop_frame, xstormy16_store_struct_return)
751 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
752 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
753 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
754 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
755 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
756 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
757 (xstormy16_use_struct_convention): Drop gcc_p parameter.
758 (xstormy16_extract_return_value, xstormy16_store_return_value):
759 Regcachify. Drop useless struct convention handling.
760 (xstormy16_register_type, xstormy16_return_value)
761 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
762 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
763 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
764 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
765 (xstormy16_unwind_sp, xstormy16_unwind_pc)
766 (xstormy16_unwind_dummy_id) : New functions.
767 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
768 of xstormy16_scan_prologue.
769 (xstormy16_frame_unwind): New frame_unwind structure.
770 (xstormy16_frame_base): New frame_base structure.
771 (xstormy16_gdbarch_init): Accomodate all of the above changes.
772 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
773
774 2004-09-22 Mark Kettenis <kettenis@gnu.org>
775
776 * language.c (language_gdbarch_post_init): Fix off-by one error.
777
778 2004-09-21 Daniel Jacobowitz <dan@debian.org>
779
780 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
781 (struct dwarf2_offset_and_type): New.
782 (set_die_type, reset_die_and_siblings_types, get_die_type)
783 (offset_and_type_hash, offset_and_type_eq): New functions.
784 (read_structure_type, read_enumeration_type, read_array_type)
785 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
786 (read_tag_reference_type, read_tag_const_type)
787 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
788 (read_typedef, read_base_type, read_subrange_type): Use
789 set_die_type.
790
791 2004-09-20 Daniel Jacobowitz <dan@debian.org>
792
793 * Makefile.in (dwarf2read.o): Update dependencies.
794 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
795 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
796 and read_in_chain.
797 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
798 mark, and has_form_ref_addr.
799 (struct dwarf2_per_cu_data): New.
800 (dwarf2_max_cache_age): New.
801 (dwarf2_build_psymtabs_hard): Free cached compilation units
802 after loading. Create and manage the list of compilation units.
803 Remove unnecessary NULL initialization. Fix indentation.
804 (psymtab_to_symtab_1): Initialize all of CU.
805 (dwarf2_read_abbrevs): Set has_form_ref_addr.
806 (find_partial_die): Use dwarf2_find_containing_comp_unit
807 and load_comp_unit.
808 (free_stack_comp_unit): Update comments. Clear the per-cu
809 pointer. Handle aging.
810 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
811 (age_cached_comp_units, free_one_cached_comp_unit)
812 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
813 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
814 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
815 (show_dwarf2_cmd): New.
816 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
817 and "maint show dwarf2 max-cache-age".
818 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
819 externs.
820 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
821 global.
822
823 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
824
825 * dwarf2read.c (typename_concat): Change prototype to accept obstack
826 and dwarf2_cu struct pointer as arguments. Change function to use
827 obstack if provided and use dwarf2_cu to determine language-specific
828 separator.
829 (partial_die_parent_scope): Change comment to include java. Use
830 new version of typename_concat instead of obconcat.
831 (partial_die_full_name): Use typename_concat.
832 (read_namespace): Ditto.
833 (read_enumeration_type): Use typename_concat instead of obconcat.
834 (new_symbol): Ditto.
835 (add_partial_symbol): Enhance tests for C++ to also test for Java.
836 (guess_structure_name): Ditto.
837 (read_subroutine_type): Ditto.
838 (read_structure_type): Ditto.
839 (is_vtable_name): Add Java support.
840 (determine_class_name): Switch to new typename_concat call.
841 (determine_prefix): Switch to new typename_concat call.
842 * jv-exp.y (FuncStart): New pattern.
843 (MethodInvocation): Add support for simple function calls. Change
844 warning message for other forms of inferior call currently not
845 supported.
846 * valarith.c (value_subscript): Treat an array with upper-bound
847 of -1 as unknown size.
848
849 2004-09-20 Daniel Jacobowitz <dan@debian.org>
850
851 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
852 (lookup_partial_symtab): Use symtab_to_fullname.
853
854 2004-09-19 Jim Blandy <jimb@redhat.com>
855
856 * minsyms.c (lookup_minimal_symbol): Doc fix.
857
858 2004-09-20 Andrew Cagney <cagney@gnu.org>
859
860 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
861 CHILD_RESUME.
862 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
863 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
864 KILL_INFERIOR.
865 * infptrace.c: Update.
866
867 2004-09-19 Daniel Jacobowitz <dan@debian.org>
868
869 * symtab.c (output_source_filename): Mark first argument as const.
870 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
871 for "info sources" output.
872
873 2004-09-20 Mark Kettenis <kettenis@gnu.org>
874
875 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
876 <machine/vmparam.h>.
877 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
878 (register_u_addr): Remove prototype.
879
880 2004-09-19 Mark Kettenis <kettenis@gnu.org>
881
882 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
883 (i386bsd_fetch_inferior_registers): Rename from
884 fetch_inferior_registers. Make static.
885 (i386bsd_store_inferior_registers): Rename from
886 store_inferior_registers. Make static.
887 (i386bsd_target): New function.
888 * i386bsd-nat.h: New file.
889 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
890 "i386bsd-nat.h".
891 (i386fbsd_resume): Rename from child_resume. Make static.
892 (_initialize_i386fbsd_nat): Construct and add target vector.
893 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
894 (_initialize_i386nbsd_nat): Construct and add target vector.
895 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
896 Remove defines.
897 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
898 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
899 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
900 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
901 (LOADLIBES): New variable.
902 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
903 inf-ptrace.o. Remove inftarg.o.
904 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
905 inf-ptrace.o. Remove inftarg.o.
906 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
907 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
908 (LOADLIBES): New variable.
909 * Makefile.in (i386bsd_nat_h): New variable.
910 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
911 dependencies.
912
913 * sparc64nbsd-tdep.c: Include "objfiles.h".
914 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
915 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
916 svr4_lp64_fetch_link_map_offsets.
917 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
918 "nbsd-tdep.h".
919 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
920 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
921 svr4_lp64_fetch_link_map_offsets.
922 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
923 dependencies.
924
925 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
926 * fbsd-nat.h: New file.
927 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
928 (fbsd_nat_h): New variable.
929 (fbsd-nat.o): New dependency.
930
931 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
932 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
933
934 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
935 comment.
936
937 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
938
939 * ada-exp.y (type_int): New function to add layer of abstraction
940 around references to expression types.
941 (type_long): Ditto.
942 (type_long_long): Ditto.
943 (type_float): Ditto.
944 (type_double): Ditto.
945 (type_long_double): Ditto.
946 (type_char): Ditto.
947 (type_system_address): Ditto.
948 (simple_exp): Use type_* functions in place of builtin_*
949 variables.
950 (exp): Ditto.
951 (write_var_from_name): Ditto.
952 (write_object_renaming): Ditto.
953 * ada-lang.c (ada_create_fundamental_type): Remove redundant
954 declaration.
955 (build_ada_types): Remove, replacing with...
956 (ada_language_arch_info): New function to initialize primitive
957 type vector in language_arch_info.
958 (ada_array_length): Remove use of builtin_type_ada_int.
959 (value_pos_atr): Ditto.
960 (ada_evaluate_subexp): Ditto.
961 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
962 builtin_type_ada_long_long, builtin_type_ada_char,
963 builtin_type_ada_float, builtin_type_ada_double,
964 builtin_type_ada_long_double, builtin_type_ada_natural,
965 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
966 (ada_builtin_types): Remove.
967 (ada_language_defn): Remove entries for la_builtin_type_vector and
968 string_char_type and use ada_language_arch_info.
969 (_initialize_ada_language): Do type-vector initialization along
970 the lines of c-lang.c.
971 (ada_create_fundamental_type): Break up line.
972 (ada_dump_symtab): Remove unused function.
973 (enum ada_primitive_types): Define.
974 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
975 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
976 builtin_type_ada_float, builtin_type_ada_double,
977 builtin_type_ada_long_double, builtin_type_ada_natural,
978 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
979 * ada-lex.l: Use type_* functions in place of builtin_* variables.
980 (processInt): Ditto.
981 (processReal): Ditto.
982 (name_lookup): Ditto.
983 * ada-typeprint.c (print_range): Use builtin_type_int, not
984 builtin_type_ada_int.
985
986 2004-09-18 Mark Kettenis <kettenis@gnu.org>
987
988 * i386-tdep.c (i386_register_name): Rename regno to regnum.
989
990 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
991 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
992 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
993 * configure.in: Improve checks for curses library by checking for
994 mvwaddstr instead of initscr. Drop HP curses in favour of
995 standard curses on HP-UX.
996 * configure: Regenerated.
997
998 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
999
1000 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1001 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1002 Minor formatting changes.
1003 (empty_array): Slight rewrite for formatting.
1004 (emit_char,parse,ada_language_defn,build_ada_types,
1005 ada_is_exception_sym, _initialize_ada_language): Move
1006 definitions around.
1007 (ada_dump_symtab): Remove unused definition.
1008 (ada_maybe_exception_partial_symbol): Remove unused definition.
1009
1010 2004-09-16 Andrew Cagney <cagney@gnu.org>
1011
1012 * inf-child.c: Include "gdb_string.h".
1013 (inf_child_core_file_to_sym_file): Delete.
1014 (inf_child_target): Set to_fetch_registers and to_store_registers.
1015 * inf-ptrace.c: Include "gdb_string.h".
1016 * Makefile.in: Update all dependencies.
1017
1018 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1019 problem.
1020
1021 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1022
1023 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1024 call to heuristic_proc_desc. Remove code that became redundant
1025 as a consequence.
1026 (read_next_frame_reg): Remove special case for SP_REGNUM.
1027 (set_reg_offset): Fix small typo.
1028 (reset_saved_regs): New procedure.
1029 (mips32_heuristic_proc_desc): No longer compute a fake
1030 procedure descriptor. Compute the full frame cache instead.
1031 Some minor comment reformatting.
1032
1033 2004-09-14 Andrew Cagney <cagney@gnu.org>
1034
1035 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1036 maintainer.
1037
1038 * thread-db.c (thread_db_new_objfile): Assume that there is a
1039 child process.
1040
1041 2004-09-13 Jim Blandy <jimb@redhat.com>
1042
1043 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1044 so that its storage isn't referenced after its lifetime ends.
1045
1046 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1047 and never assigned to. Delete it, and the 'if (use_buffer)'
1048 clauses. Delete 'raw_buffer', since it is now unused.
1049
1050 2004-09-13 Andrew Cagney <cagney@gnu.org>
1051
1052 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1053 * configure: Re-generate.
1054 * nlm/Makefile.in (TAGS): Update.
1055 * Makefile.in (TAGS): Update.
1056 * config/vax/nbsd.mt (TM_FILE): Update.
1057 * config/sparc/vxworks.mt (TM_FILE): Update.
1058 * config/sparc/sol2.mt (TM_FILE): Update.
1059 * config/sparc/sol2-64.mt (TM_FILE): Update.
1060 * config/sparc/obsd64.mt (TM_FILE): Update.
1061 * config/sparc/obsd.mt (TM_FILE): Update.
1062 * config/sparc/nbsd64.mt (TM_FILE): Update.
1063 * config/sparc/nbsd.mt (TM_FILE): Update.
1064 * config/sparc/linux64.mt (TM_FILE): Update.
1065 * config/sparc/linux.mt (TM_FILE): Update.
1066 * config/sparc/fbsd.mt (TM_FILE): Update.
1067 * config/sh/wince.mt (TM_FILE): Update.
1068 * config/sh/nbsd.mt (TM_FILE): Update.
1069 * config/sh/linux.mt (TM_FILE): Update.
1070 * config/sh/embed.mt (TM_FILE): Update.
1071 * config/s390/s390.mt (TM_FILE): Update.
1072 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1073 * config/rs6000/rs6000.mt (TM_FILE): Update.
1074 * config/rs6000/aix4.mt (TM_FILE): Update.
1075 * config/powerpc/vxworks.mt (TM_FILE): Update.
1076 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1077 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1078 * config/powerpc/obsd.mt (TM_FILE): Update.
1079 * config/powerpc/nbsd.mt (TM_FILE): Update.
1080 * config/powerpc/linux.mt (TM_FILE): Update.
1081 * config/powerpc/aix.mt (TM_FILE): Update.
1082 * config/pa/obsd.mt (TM_FILE): Update.
1083 * config/pa/linux.mt (TM_FILE): Update.
1084 * config/pa/hppahpux.mt (TM_FILE): Update.
1085 * config/pa/hppa64.mt (TM_FILE): Update.
1086 * config/pa/hppa.mt (TM_FILE): Update.
1087 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1088 * config/mips/wince.mt (TM_FILE): Update.
1089 * config/mips/vxmips.mt (TM_FILE): Update.
1090 * config/mips/nbsd.mt (TM_FILE): Update.
1091 * config/mips/linux.mt (TM_FILE): Update.
1092 * config/mips/irix6.mt (TM_FILE): Update.
1093 * config/mips/irix5.mt (TM_FILE): Update.
1094 * config/mips/embed.mt (TM_FILE): Update.
1095 * config/m68k/vxworks68.mt (TM_FILE): Update.
1096 * config/m68k/st2000.mt (TM_FILE): Update.
1097 * config/m68k/os68k.mt (TM_FILE): Update.
1098 * config/m68k/obsd.mt (TM_FILE): Update.
1099 * config/m68k/nbsd.mt (TM_FILE): Update.
1100 * config/m68k/monitor.mt (TM_FILE): Update.
1101 * config/m68k/linux.mt (TM_FILE): Update.
1102 * config/m68k/cisco.mt (TM_FILE): Update.
1103 * config/ia64/linux.mt (TM_FILE): Update.
1104 * config/ia64/aix.mt (TM_FILE): Update.
1105 * config/ia64/ia64.mt (TM_FILE): Update.
1106 * config/i386/vxworks.mt (TM_FILE): Update.
1107 * config/i386/obsd64.mt (TM_FILE): Update.
1108 * config/i386/obsd.mt (TM_FILE): Update.
1109 * config/i386/nto.mt (TM_FILE): Update.
1110 * config/i386/nbsd64.mt (TM_FILE): Update.
1111 * config/i386/nbsd.mt (TM_FILE): Update.
1112 * config/i386/linux64.mt (TM_FILE): Update.
1113 * config/i386/linux.mt (TM_FILE): Update.
1114 * config/i386/i386sol2.mt (TM_FILE): Update.
1115 * config/i386/i386lynx.mt (TM_FILE): Update.
1116 * config/i386/fbsd64.mt (TM_FILE): Update.
1117 * config/i386/fbsd.mt (TM_FILE): Update.
1118 * config/i386/cygwin.mt (TM_FILE): Update.
1119 * config/h8300/h8300.mt (TM_FILE): Update.
1120 * config/frv/frv.mt (TM_FILE): Update.
1121 * config/cris/cris.mt (TM_FILE): Update.
1122 * config/arm/wince.mt (TM_FILE): Update.
1123 * config/arm/nbsd.mt (TM_FILE): Update.
1124 * config/arm/linux.mt (TM_FILE): Update.
1125 * config/arm/embed.mt (TM_FILE): Update.
1126 * config/alpha/nbsd.mt (TM_FILE): Update.
1127 * config/alpha/fbsd.mt (TM_FILE): Update.
1128 * config/alpha/alpha.mt (TM_FILE): Update.
1129 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1130 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1131
1132 Eliminate event_loop_p, always has the value 1.
1133 * defs.h (event_loop_p): Delete macro.
1134 * breakpoint.c (until_break_command): Simplify.
1135 * utils.c (prompt_for_continue): Simplify.
1136 * tracepoint.c (read_actions): Simplify.
1137 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1138 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1139 (set_prompt, init_main): Simplify.
1140 (init_signals, disconnect): Delete, unused.
1141 * remote.c (remote_async_resume)
1142 (extended_remote_async_create_inferior): Simplify.
1143 * mi/mi-interp.c (mi_input): Delete, unused.
1144 (mi_interpreter_resume, mi_command_loop): Simplify.
1145 * interps.c (current_interp_command_loop): Simplify.
1146 * infrun.c (proceed): Simplify.
1147 * infcmd.c (run_command, continue_command, step_1, jump_command)
1148 (until_command, advance_command, finish_command)
1149 (interrupt_target_command): Simplify.
1150 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1151
1152 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1153 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1154 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1155 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1156 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1157 * mips-tdep.c (mips_dump_tdep): Do not print same.
1158
1159 2004-09-12 Andrew Cagney <cagney@gnu.org>
1160
1161 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1162 const.
1163 * Makefile.in (valprint.o): Delete explict rule.
1164
1165 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1166 reported by Dave Anderson.
1167
1168 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1169
1170 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1171
1172 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1173 Andrew Cagney <cagney@gnu.org>
1174
1175 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1176 (mi_cmd_data_list_register_values)
1177 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1178 the register number computation.
1179
1180 2004-09-12 Andrew Cagney <cagney@gnu.org>
1181
1182 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1183 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1184 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1185 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1186 target.
1187 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1188 inf-ptrace.o and inf-child.o.
1189 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1190 * Makefile.in: Update dependencies.
1191
1192 2004-09-11 Andrew Cagney <cagney@gnu.org>
1193
1194 * language.c (hex_string, hex_string_custom): Move from here ...
1195 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1196 (CELLSIZE): Increase to 50.
1197 * language.h (hex_string, hex_string_custom): Move from here ...
1198 * defs.h: ... to here.
1199 * Makefile.in: Update all dependencies.
1200
1201 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1202
1203 * language.c (local_hex_format_custom): Remove.
1204 (local_hex_string): Rename to hex_string, use C format, and move to
1205 utils.c
1206 (local_hex_string_custom): Rename to hex_string_custom and change
1207 interface. Now uses C format. Move to utils.c
1208 (local_octal_format_custom): Remove.
1209 (local_decimal_format_custom): Remove.
1210 (unknown_language_defn): Remove language-specific number
1211 formatting entries.
1212 (auto_language_defn): Ditto.
1213 (local_language_defn): Ditto.
1214 * language.h (struct language_format_info): Delete declaration.
1215 (struct language_defn): Remove language_format_info fields
1216 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1217 (local_binary_format): Remove macro.
1218 (local_binary_format_prefix): Remove macro.
1219 (local_binary_format_specifier): Remove macro.
1220 (local_binary_format_suffix): Remove macro.
1221 (local_octal_format): Remove macro.
1222 (local_octal_format_prefix): Remove macro.
1223 (local_octal_format_specifier): Remove macro.
1224 (local_octal_format_suffix): Remove macro.
1225 (local_decimal_format): Remove macro.
1226 (local_decimal_format_prefix): Remove macro.
1227 (local_decimal_format_specifier): Remove macro.
1228 (local_decimal_format_suffix): Remove macro.
1229 (local_hex_format): Remove macro.
1230 (local_hex_format_prefix): Remove macro.
1231 (local_hex_format_specifier): Remove macro.
1232 (local_hex_format_suffix): Remove macro.
1233 (local_decimal_format_custom): Remove.
1234 (local_octal_format_custom): Remove.
1235 (local_hex_format_custom): Remove.
1236 (local_hex_string): Rename to hex_string and move to defs.h.
1237 (local_hex_string_custom): Rename to hex_string_custom, change
1238 interface, and move to defs.h.
1239 * utils.c: (int_string): New function.
1240 (hex_string): New function (from language.c).
1241 (hex_string_custom): New function (from language.c).
1242 (octal2str): New function.
1243 (decimal2str): Add width parameter.
1244 (paddr_u): Use new decimal2str interface.
1245 (paddr_d): Ditto.
1246 * defs.h (hex_string): Declare.
1247 (hex_string_custom): Declare.
1248 (int_string): Declare.
1249 * printcmd.c (print_scalar_formatted): Remove localized binary
1250 formatting.
1251 * valprint.c (print_longest): Use int_string.
1252 (print_floating): Use C hex format.
1253 (print_hex_chars): Ditto.
1254 (print_binary_chars): Remove language-specific formatting.
1255 (print_octal_chars): Use C octal format.
1256 (print_decimal_chars): Delocalize format.
1257 (print_decimal): Remove.
1258 * ada-lang.c (ada_language_defn): Remove language-specific number
1259 formatting entries.
1260 * p-lang.c (pascal_language_defn): Ditto.
1261 * c-lang.c (c_language_defn): Ditto.
1262 (cplus_language_defn): Ditto.
1263 (asm_language_defn): Ditto.
1264 (minimal_language_defn): Ditto.
1265 * f-lang.c (f_language_defn): Ditto.
1266 * jv-lang.c (java_language_defn): Ditto.
1267 * m2-lang.c (m2_language_defn): Ditto.
1268 * scm-lang.c (scm_language_defn): Ditto.
1269 * objc-lang.c (objc_language_defn): Ditto.
1270 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1271 new interface.
1272 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1273 * ui-out.c (ui_out_field_core_addr): Ditto.
1274 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1275 * exec.c (print_section_info): Ditto.
1276 * i387-tdep.c (print_i387_status_word): Ditto.
1277 (print_i387_control_word): Ditto.
1278 (i387_print_float_info): Ditto.
1279 * maint.c (maint_print_section_info): Ditto.
1280 * solib.c (info_sharedlibrary_command): Ditto.
1281 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1282 * symtab.c (print_msymbol_info): Ditto.
1283 * tracepoint.c (tracepoints_info): Ditto.
1284 * solib-frv.c (lm_base): Ditto.
1285 (frv_current_sos): Ditto.
1286 (enable_break2): Ditto.
1287 (enable_break): Ditto.
1288 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1289 (process_one_symbol): Ditto.
1290 * infcmd.c (program_info): Ditto.
1291 * mdebugread.c (parse_partial_symbols): Ditto.
1292 * symfile.c (add_symbol_file_command): Ditto.
1293 * cli/cli-cmds.c (edit_command): Ditto.
1294 (list_command): Ditto.
1295 * infcall.c (call_function_by_hand): Ditto.
1296 * remote-vx.c (vx_run_files_info): Ditto.
1297 (vx_wait): Ditto.
1298 (vx_attach): Ditto.
1299 (vx_detach): Ditto.
1300 (vx_kill): Ditto.
1301 * aix-thread.c (pdc_symbol_addrs): Ditto.
1302 (pdc_read_regs): Ditto.
1303 (pdc_write_regs): Ditto.
1304 (pdc_read_data): Ditto.
1305 (pdc_write_data): Ditto.
1306 * d10v-tdep.c (display_trace): Ditto.
1307 * rs6000-nat.c (find_toc_address): Ditto.
1308 * aix-thread.c: Don't include language.h.
1309 * buildsym.c: Ditto.
1310 * dbxread.c: Ditto.
1311 * mdebugread.c: Ditto.
1312 * rs6000-nat.c: Ditto.
1313 * buildsym.c (make_blockvector): Use renamed hex_string.
1314
1315 2004-09-10 Jason Molenda (jmolenda@apple.com)
1316
1317 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1318 chars after 'if' or 'while' commands in user-defined commands.
1319
1320 2004-09-08 Jim Blandy <jimb@redhat.com>
1321
1322 Fix bug reported and analyzed by Olivier Crete:
1323 * symfile.c (copy_section_addr_info): New function.
1324 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1325 original set of address arguments, instead of handwritten code
1326 that uses one length to allocate and a different length to
1327 initialize. Use make_cleanup_free_section_addr_info.
1328 * symfile.h (copy_section_addr_info): New declaration.
1329 * utils.c: #include "symfile.h".
1330 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1331 New functions.
1332 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1333 * Makefile.in (utils.o): Update dependencies.
1334
1335 2004-09-08 Andrew Cagney <cagney@gnu.org>
1336
1337 * thread-db.c (keep_thread_db): Delete.
1338 (thread_db_new_objfile, thread_db_create_inferior)
1339 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1340
1341 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1342
1343 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1344 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1345 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1346 (i386_frameless_signal_p): Remove prototype.
1347 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1348 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1349 I386_SSE_NUM_REGS.
1350 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1351 instead of FP0_REGNUM.
1352 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1353 of FP0_REGNUM and FPC_REGNUM.
1354
1355 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1356 (sunos_solib_create_inferior_hook): Don't call
1357 sunos_relocate_main_executable.
1358
1359 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1360 solib_svr4_fetch_link_map_offsets to
1361 svr4_ilp32_fetch_link_map_offsets.
1362 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1363 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1364 svr4_ilp32_fetch_link_map_offsets.
1365 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1366
1367 2004-09-07 Jim Blandy <jimb@redhat.com>
1368
1369 * frame.h (frame_register): Doc fix.
1370
1371 2004-09-07 Andrew Cagney <cagney@gnu.org>
1372
1373 * vx-share/wait.h: Delete #ifdef USG.
1374 * utils.c (request_quit): Ditto.
1375 * tui/tui.c (tui_reset): Ditto.
1376 * remote.c: Ditto.
1377 * remote-sds.c: Ditto.
1378 * remote-rdi.c: Ditto.
1379 * mdebugread.c: Ditto.
1380 * m68klinux-nat.c: Ditto.
1381 * infttrace.c: Ditto.
1382 * infptrace.c: Ditto.
1383 * i386v-nat.c: Ditto.
1384 * exec.c: Ditto.
1385 * dbxread.c: Ditto.
1386 * core-aout.c: Ditto.
1387
1388 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1389
1390 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1391 heuristic_proc_desc.
1392 (mips_insn32_frame_cache): Likewise.
1393
1394 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1395
1396 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1397 left behind by error.
1398
1399 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1400
1401 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1402 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1403
1404 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1405
1406 * config/rs6000/xm-aix4.h: Remove this file.
1407 * config/rs6000/aix4.mh (XM_FILE): Delete.
1408
1409 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1410
1411 * config/rs6000/xm-rs6000.h: Remove this file.
1412 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1413
1414 2004-09-03 Andrew Cagney <cagney@gnu.org>
1415
1416 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1417 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1418 only use.
1419
1420 * mips-tdep.c (temp_saved_regs): Delete.
1421 (set_reg_offset): Replace saved_regs parameter with this_cache.
1422 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1423 (mips32_heuristic_proc_desc): Add this_cache parameter.
1424 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1425 (after_prologue): Pass a NULL this_cache.
1426
1427 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1428 non-kernel trap prologues.
1429
1430 * mips-tdep.c (find_proc_desc): Delete function.
1431 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1432 simplify.
1433 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1434 mips_insn32_frame_cache.
1435
1436 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1437 Simplify as NEXT_FRAME is NULL.
1438 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1439
1440 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1441 local variable.
1442 (mips_skip_prologue): Update.
1443
1444 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1445 "cur_frame" parameter.
1446 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1447 (mips_insn32_frame_cache, find_proc_desc): Update
1448
1449 * config/vax/nm-obsd.h: Delete file.
1450 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1451 * config/vax/nm-nbsd.h: Delete file.
1452 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1453 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1454 * config/sh/nm-nbsd.h: Delete file.
1455 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1456 * config/rs6000/nm-rs6000ly.h: Delete file.
1457 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1458 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1459 * config/powerpc/nm-obsd.h: Delete file.
1460 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1461 * config/powerpc/nm-nbsd.h: Delete file.
1462 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1463 * config/pa/nm-obsd.h: Delete file.
1464 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1465 * config/mips/nm-nbsd.h: Delete file.
1466 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1467 * config/m88k/nm-obsd.h: Delete file.
1468 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1469 * config/m68k/nm-nbsd.h: Delete file.
1470 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1471 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1472 * config/i386/nm-nbsd.h: Delete file.
1473 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1474 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1475 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1476 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1477 * config/i386/nm-i386lynx.h: Delete file.
1478 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1479 * config/arm/nm-nbsd.h: Delete file.
1480 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1481 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1482
1483 * config/i386/tm-fbsd.h: Delete file.
1484 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1485 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1486
1487 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1488 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1489 * config/rs6000/aix4.mt (TM_FILE): Set to
1490 config/rs6000/tm-rs6000.h.
1491 * config/powerpc/tm-ppc-aix.h: Delete file.
1492 * config/powerpc/aix.mt (TM_FILE): Set to
1493 config/rs6000/tm-rs6000.h.
1494 * config/m68k/tm-linux.h: Delete file.
1495 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1496 * config/i386/tm-linux64.h: Delete file.
1497 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1498 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1499
1500 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1501 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1502 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1503 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1504 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1505 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1506 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1507 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1508 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1509
1510 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1511 gdb_host_cpu.
1512
1513 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1514
1515 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1516 Minor reformatting. Some code factoring.
1517
1518 2004-09-02 Andrew Cagney <cagney@gnu.org>
1519
1520 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1521 * config/vax/tm-nbsd.h: Delete file.
1522 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1523 * config/sparc/tm-vxworks.h: Delete file.
1524 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1525 * config/sparc/tm-nbsd.h: Delete file.
1526 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1527 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1528 * config/sparc/tm-linux.h: Delete file.
1529 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1530 * config/s390/tm-linux.h: Delete file.
1531 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1532 * config/pa/tm-bsd.h: Delete file.
1533 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1534 * config/m68k/tm-obsd.h: Delete file.
1535 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1536 * config/m68k/tm-nbsd.h: Delete file.
1537 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1538 * config/i386/tm-vxworks.h: Delete file.
1539 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1540 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1541 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1542 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1543 * config/i386/tm-nbsd.h: Delete file.
1544 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1545 * config/i386/tm-i386lynx.h: Delete file.
1546 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1547 * config/cris/tm-cris.h: Delete file.
1548
1549 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1550 * configure: Re-generate.
1551 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1552 * config/arm/tm-nbsd.h: Delete file.
1553
1554 * config/powerpc/tm-ppcle-sim.h: Delete.
1555 * config/powerpc/tm-ppcle-eabi.h: Delete.
1556 * config/powerpc/tm-nbsd.h: Delete.
1557 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1558 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1559 tm-ppcle-eabi.h.
1560
1561 * config/i386/nto.mh (NAT_FILE): Delete.
1562 * config/i386/nm-nto.h: Delete.
1563
1564 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1565 * config/m68k/tm-os68k.h: Ditto.
1566 * config/m68k/tm-monitor.h: Ditto.
1567 * config/m68k/tm-cisco.h: Ditto.
1568 * config/m68k/st2000.mt (TM_FILE): Delete.
1569 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1570 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1571 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1572 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1573
1574 * config/m68k/tm-st2000.h: Delete.
1575 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1576 * config/sparc/fbsd.mt (TM_FILE): Delete.
1577 * config/sparc/tm-fbsd.h: Delete.
1578
1579 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1580 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1581 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1582
1583 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1584 GDB_TM_FILE and GDB_XM_FILE.
1585 * gdbarch.c: Re-generate.
1586 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1587 quotes in macro definition.
1588 * configure.in: Re-generate.
1589
1590 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1591 validating architecture methods.
1592 * gdbarch.c: Re-generate.
1593
1594 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1595 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1596 GDB_MULTI_ARCH_PARTIAL.
1597 * gdbarch.h: Re-generate.
1598
1599 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1600 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1601 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1602 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1603 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1604 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1605 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1606 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1607 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1608 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1609 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1610 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1611
1612 2004-09-01 Andrew Cagney <cagney@gnu.org>
1613
1614 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1615 and main_func_highpc.
1616 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1617 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1618 * nlmread.c (nlm_symfile_read): Update.
1619
1620 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1621
1622 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1623 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1624 (find_proc_desc): Remove dead code.
1625
1626 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1627
1628 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1629
1630 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1631
1632 * observer.sh: Add struct so_list declaration.
1633 * Makefile.in: Add dependencies on observer.h for solib.c and
1634 breakpoint.c.
1635 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1636 function.
1637 (_initialize_breakpoint): Register
1638 disable_breakpoints_in_unloaded_shlib as an observer of the
1639 "solib unloaded" observation event.
1640 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1641 call decode_line_1 so unfound breakpoint errors are silent.
1642 * solib.c (update_solib_list): When a solib is discovered to have
1643 been unloaded by the program, notify all observers of the
1644 "solib unloaded" observation event.
1645
1646 2004-09-01 Andrew Cagney <cagney@gnu.org>
1647
1648 * frame.c: Include "objfiles.h".
1649 (inside_main_func): New function.
1650 (get_prev_frame): Use new inside_main_func.
1651 * Makefile.in (frame.o): Update dependencies.
1652 * defs.h (inside_main_func): Delete declaration.
1653 * blockframe.c (inside_main_func): Delete function.
1654
1655 2004-08-31 Jim Blandy <jimb@redhat.com>
1656
1657 * dwarf2read.c (is_vtable_name): New function, based on logic from
1658 read_structure_type, but passing the correct length to strncmp,
1659 and using 'sizeof' instead of 'strlen'.
1660 (read_structure_type): Call it.
1661
1662 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1663
1664 * config/powerpc/aix.mh: Add comment.
1665
1666 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1667
1668 * MAINTAINERS: Add self to Write-After-Approval.
1669
1670 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1671
1672 * MAINTAINERS: Add self to Write-After-Approval.
1673
1674 2004-08-30 Andrew Cagney <cagney@gnu.org>
1675
1676 Fix PR breakpoints/1757.
1677 * infrun.c (struct execution_control_state): Replace
1678 remove_breakpoints_on_following_step with
1679 step_after_step_resume_breakpoint.
1680 (init_execution_control_state): Update.
1681 (handle_inferior_event): For signals, when stepping off a
1682 breakpoint, set step_after_step_resume_breakpoint. When
1683 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1684 (keep_going): Delete code handling
1685 remove_breakpoints_on_following_step.
1686
1687 2004-08-29 David Lecomber <david@streamline-computing.com>
1688
1689 Fix PR gdb/648
1690 * language.h (enum array_ordering): New enum.
1691 * language.h (struct language_defn): New la_array_ordering
1692 attribute.
1693 * language.c (unknown_language_defn, auto_language_defn)
1694 (local_language_defn): Ditto.
1695 * ada-lang.c (ada_language_defn): Ditto.
1696 * c-lang.c (c_language_defn, cplus_language_defn)
1697 (asm_language_defn, minimal_language_defn): Ditto.
1698 * f-lang.c (f_language_defn): Ditto.
1699 * jv-lang.c (java_language_defn): Ditto.
1700 * m2-lang.c (f_language_defn): Ditto.
1701 * objc-lang.c (objc_language_defn): Ditto.
1702 * p-lang.c (pascal_language_defn): Ditto.
1703 * scm-lang.c (scm_language_defn): Ditto.
1704 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1705 oriented large to small in type structure.
1706 * dwarf2read.c (read_array_order): New function.
1707 (read_array_type): Use read_array_order to check row/column
1708 major ordering.
1709
1710 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1711
1712 * target.c (target_resize_to_sections): Check
1713 current_target.to_sections for an old value when updating.
1714
1715 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1716
1717 * procfs.c (dbx_link_bpt_addr): New static global variable.
1718 (dbx_link_shadow_contents): New static global variable.
1719 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1720 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1721 if we just hit it.
1722 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1723 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1724 from run to run.
1725 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1726 after the inferior has been forked.
1727 (remove_dbx_link_breakpoint): New function.
1728 (dbx_link_addr): New function.
1729 (insert_dbx_link_bpt_in_file): New function.
1730 (insert_dbx_link_bpt_in_region): New function.
1731 (insert_dbx_link_breakpoint): New function.
1732 (proc_trace_syscalls_1): New function, extracted from
1733 proc_trace_syscalls.
1734 (proc_trace_syscalls): Replace extract code by call to
1735 proc_trace_syscalls_1.
1736 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1737 is no longer valid.
1738
1739 2004-08-25 Jim Blandy <jimb@redhat.com>
1740
1741 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1742
1743 2004-08-25 Andrew Cagney <cagney@gnu.org>
1744
1745 * infrun.c (struct execution_control_state): Delete field
1746 "stepping_through_sigtramp".
1747 (init_execution_control_state): Do not set same.
1748 (context_switch): Do not pass same to save_infrun_state and
1749 load_infrun_state.
1750 * gdbthread.h (struct thread_info): Delete field
1751 stepping_through_sigtramp.
1752 (save_infrun_state, load_infrun_state): Delete parameter
1753 stepping_through_sigtramp.
1754 * thread.c (load_infrun_state, save_infrun_state): Update.
1755
1756 * infrun.c: Re-indent. Move expression operators to the beginning
1757 of the line. Remove long disabled #if 0 code.
1758
1759 2004-08-24 Andrew Cagney <cagney@gnu.org>
1760
1761 * doublest.h (floatformat_ieee_quad): Rename
1762 floatformat_ia64_quad.
1763 * doublest.c (floatformat_ieee_quad): Rename
1764 floatformat_ia64_quad.
1765 (_initialize_doublest): Update.
1766
1767 2004-08-24 Jim Blandy <jimb@redhat.com>
1768
1769 * dwarf2expr.h (struct dwarf_expr_context): New members
1770 'num_pieces' and 'pieces', for returning the result of an
1771 expression that uses DW_OP_piece.
1772 (struct dwarf_expr_piece): New struct type.
1773 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1774 pieces.
1775 (free_dwarf_expr_context): Free pieces, if any.
1776 (add_piece): New function.
1777 (execute_stack_op): Implement DW_OP_piece.
1778 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1779 expression is a list of pieces, print an error message.
1780 (dwarf2_loc_desc_needs_frame): If the expression yields
1781 pieces, and any piece is in a register, then we need a frame.
1782
1783 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1784 the stack until we've decided what sort of result the evaluation
1785 has produced. Use separate variables, with more specific names.
1786
1787 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1788
1789 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1790 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1791 (arm_netbsd_init_abi_common): Register them.
1792
1793 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1794
1795 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1796
1797 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1798 safe_frame_unwind_memory instead of target_read_memory.
1799
1800 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1801 Reorder includes.
1802 (fetch_register, store_register): Remove prototypes.
1803 (child_resume): Reorganize code and comments such that it is
1804 grouped a bit more logically.
1805 (attach): Explicitly compare errno against 0.
1806 (detach): Likewise. Use perror_with_name instead of
1807 print_sys_errmsg.
1808 * Makefile.in (infptrace.o): Update dependencies.
1809
1810 * ia64-linux-nat.c: Update copyright year.
1811 (fetch_debug_register, store_debug_register)
1812 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1813 PTRACE_TYPE_ARG3.
1814 * config/ia64/nm-linux.h: Update copyright year.
1815 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1816
1817 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1818 from CORE_ADDR to struct frame_info *. Use
1819 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1820 (amd64_linux_sigtramp_p): Adjust for changed signature of
1821 and64_linux_sigtramp_start
1822
1823 * gdb_ptrace.h: GNU/Linux.
1824
1825 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1826 Remove defines.
1827
1828 * infptrace.c: Include "gdb_assert.h".
1829 (PTRACE_XFER_TYPE): Remove define.
1830 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1831 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1832 Tweak comment.
1833 (fetch_inferior_registers, store_inferior_registers): Remove
1834 redundant culry braces. Tweak comment. s/regno/regnum.
1835 * Makefile.in (infptrace.o): Update dependencies.
1836
1837 * configure.in: Change test for return type of ptrace to default
1838 to `long' instead of `int'.
1839 * configure: Regenerate.
1840
1841 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1842
1843 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1844
1845 * configure.in: Check for ttrace function.
1846 * configure, config.in: Regenerate.
1847
1848 * gdb_ptrace.h: New file.
1849 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1850 <sys/ptrace.h>.
1851 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1852 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1853 (attach): Don't define PT_ATTACH.
1854 (detach): Don't define PT_DETACH.
1855 * Makefile.in (gdb_ptrace_h): New variable.
1856 (infptrace.o): Update dependencies.
1857
1858 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1859
1860 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1861 instead of `int' if not already defined.
1862 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1863 PTRACE_TYPE_ARG3.
1864 * infptrace.c (call_ptrace): Revert change that replaced
1865 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1866
1867 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1868
1869 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1870 Remove defines.
1871
1872 * linux-nat.c (kill_inferior): Add missing third and fourth
1873 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1874
1875 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1876 PTRACE_TYPE_RET.
1877
1878 * proc-why.c (proc_prettyfprint_why): Fix format string.
1879
1880 * solib-osf.c (osf_current_sos): Remove unsused label.
1881
1882 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1883 curses headers.
1884 * configure, config.in: Regenerate.
1885 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1886 <ncurses/ncurses.h>.
1887
1888 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1889 * config/nm-nbsd.h: Update copyright year.
1890 (PTRACE_ARG3_TYPE): Remove define.
1891
1892 * sparc-nat.c (fetch_inferior_registers)
1893 (store_inferior_registers, sparc_xfer_wcookie):
1894 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1895
1896 * alphabsd-nat.c (fetch_inferior_registers):
1897 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1898 PTRACE_TYPE_ARG3.
1899 * amd64bsd-nat.c (fetch_inferior_registers)
1900 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1901 PTRACE_TYPE_ARG3.
1902 * armnbsd-nat.c: Update copyright year.
1903 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1904 (store_register, store_regs, store_fp_register, store_fp_regs):
1905 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1906 * hppabsd-nat.c (fetch_inferior_registers)
1907 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1908 PTRACE_TYPE_ARG3.
1909 * i386bsd-nat.c (fetch_inferior_registers)
1910 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1911 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1912 * m68kbsd-nat.c (fetch_inferior_registers)
1913 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1914 PTRACE_TYPE_ARG3.
1915 * m88kbsd-nat.c (fetch_inferior_registers)
1916 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1917 PTRACE_TYPE_ARG3.
1918 * mipsnbsd-nat.c: Update copyright year.
1919 (fetch_inferior_registers, store_inferior_registers):
1920 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1921 * ns32knbsd-nat.c: Update copyright year.
1922 (fetch_inferior_registers, store_inferior_registers):
1923 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1924 * ppcnbsd-nat.c (fetch_inferior_registers):
1925 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1926 PTRACE_TYPE_ARG3.
1927 * ppcobsd-nat.c (fetch_inferior_registers):
1928 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1929 PTRACE_TYPE_ARG3.
1930 * shnbsd-nat.c: Update copyright year.
1931 (fetch_inferior_registers, store_inferior_registers):
1932 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1933 * vaxbsd-nat.c (fetch_inferior_registers)
1934 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1935 PTRACE_TYPE_ARG3.
1936
1937 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1938 PTRACE_TYPE_ARG3.
1939 * infptrace.c (call_ptrace, child_resume, attach, detach)
1940 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1941 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1942 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1943 PTRACE_TYPE_ARG3.
1944
1945 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1946
1947 * defs.h: Remove out-of-date comment.
1948 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1949 [!GETENV_PROVIDED] (getenv): Remove prototype.
1950
1951 * standalone.c: Remove file.
1952 * Makefile.in (standalone.o): Remove dependency.
1953
1954 * i386-linux-nat.c (dummy_sse_values): Remove function and
1955 prototype.
1956 (i386_linux_dr_get): Fix typo in comment.
1957 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1958
1959 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1960
1961 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1962 from declaration.
1963 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1964 from definition.
1965
1966 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1967
1968 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1969 parenthesis in definition.
1970 * configure: Regenerated.
1971
1972 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1973
1974 * PROBLEMS: Mention build/1411.
1975
1976 2004-08-09 Robert Millan <robertmh@gnu.org>
1977
1978 Committed by Nathanael Nerode.
1979 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1980 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1981
1982 2004-08-12 Andrew Cagney <cagney@gnu.org>
1983
1984 * NEWS: Mention fixes in GDB 6.2.1.
1985 * PROBLEMS: Remove mention of mips-irix.
1986
1987 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1988
1989 * config/powerpc/xm-aix.h: Delete.
1990 * config/powerpc/aix.mh (MH_FILE): Remove.
1991 * config/powerpc/aix432.mh (MH_FILE): Remove.
1992
1993 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1994
1995 * config/powerpc/aix.mh: Remove obsolete comment.
1996 * config/powerpc/aix432.mh: Likewise.
1997
1998 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1999
2000 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2001
2002 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2003
2004 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2005 this file is now empty.
2006 * config/xm-aix4.h: Remove, this file is no longer included
2007 anywhere.
2008
2009 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2010
2011 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2012 that file is now empty.
2013 (termdef): Remove prototype, function no longer used.
2014
2015 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2016
2017 * doc/gdbint.texinfo (Host Definition): Remove documentation
2018 for USE_O_NOCTTY, no longer used.
2019 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2020 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2021
2022 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2023
2024 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2025 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2026 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2027
2028 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2029
2030 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2031 instead of FIVE_ARG_PTRACE.
2032
2033 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2034 (new_tty): Use O_NOCTTY unconditionally.
2035
2036 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2037
2038 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2039 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2040 fflush on stdout.
2041
2042 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2043
2044 * xcoff_symfile_finish: Replace last call to xmfree by call
2045 to xfree.
2046
2047 2004-08-10 Andrew Cagney <cagney@gnu.org>
2048
2049 * main.c (captured_main): Delete call to init_malloc.
2050 * defs.h (init_malloc): Delete declaration.
2051 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2052 (init_malloc): Delete functions.
2053
2054 * defs.h (xmfree): Delete.
2055 * utils.c (xmfree): Delete function.
2056 (xfree): Inline calls to xmfree and mfree.
2057 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2058 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2059 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2060 * somread.c (som_symfile_finish): Ditto.
2061 * objfiles.c (allocate_objfile, free_objfile):
2062 * nlmread.c (nlm_symfile_finish): Ditto.
2063 * hpread.c (hpread_symfile_finish): Ditto.
2064 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2065 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2066 * coffread.c (coff_symfile_finish): Ditto.
2067
2068 * defs.h (xmcalloc): Delete declaration.
2069 * utils.c (xmcalloc): Delete.
2070 (xcalloc): Inline calls to xmcalloc and mcalloc.
2071 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2072 xcalloc and xfree.
2073 * symtab.c (create_demangled_names_hash): Ditto.
2074
2075 * defs.h (xmrealloc): Delete.
2076 * utils.c (xmrealloc): Delete.
2077 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2078 * symmisc.c (extend_psymbol_list): Use xrealloc.
2079 * source.c (find_source_lines): Ditto.
2080 * hpread.c (hpread_lookup_type): Ditto.
2081 * dbxread.c (add_bincl_to_list): Ditto.
2082
2083 * utils.c (xmmalloc): Delete.
2084 (xmalloc): Inline xmmalloc and mmalloc calls.
2085 (msavestring): Use xmalloc.
2086 * defs.h (xmmalloc): Delete declaration.
2087 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2088 xmmalloc.
2089 * symmisc.c (extend_psymbol_list): Ditto.
2090 * symfile.c (init_psymbol_list): Ditto.
2091 * source.c (find_source_lines): Ditto.
2092 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2093 * elfread.c (elf_symtab_read): Ditto.
2094 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2095 * coffread.c (coff_symfile_init): Ditto.
2096
2097 2004-08-10 David Carlton <carlton@bactrian.org>
2098
2099 * MAINTAINERS: Remove David Carlton from c++ testsuite
2100 maintainers.
2101
2102 2004-08-10 Jerome Guitton <guitton@gnat.com>
2103
2104 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2105 print a line feed before the prompt.
2106
2107 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2108
2109 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2110
2111 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2112
2113 General cleanup of the AIX xm include file:
2114 * config/xm-aix4.h (fd_set): Remove undefine.
2115 Remove include of <sys/select.h>.
2116 (HAVE_TERMIO): Remove define.
2117 (USG): Likewise.
2118 (NULL): Remove redefine.
2119 (alloca): Remove #pragma.
2120 (vfork): Remove define.
2121 (termdef): Remove.
2122 (SIGWINCH_HANDLER): Remove.
2123 (SIGWINCH_HANDLER_BODY): Remove.
2124
2125 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2126
2127 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2128 GDB_OSABI_OPENBSD_ELF.
2129
2130 2004-08-07 Robert Millan <robertmh@gnu.org>
2131
2132 * bsd-kvm.c: Check for nlist.h before including it.
2133
2134 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2135
2136 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2137 sigcontext' offset consistency checks for ancient BSD.
2138
2139 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2140
2141 * configure.in: Check for <sys/types.h>. Check return and
2142 argument types of ptrace.
2143 * configure, config.in: Regenerate.
2144
2145 2004-08-09 Jim Blandy <jimb@redhat.com>
2146
2147 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2148 rs6000_register_sim_regno): Doc fixes.
2149
2150 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2151
2152 * mips-tdep.c: Include "floatformat.h".
2153 (n32n64_floatformat_always_valid): New function.
2154 (floatformat_n32n64_long_double_big): New constant.
2155 (mips_gdbarch_init): Set size and format of long double
2156 for N32 and N64 ABIs.
2157 * Makefile.in (mips-tdep.o): Update dependencies.
2158
2159 2004-08-08 Andrew Cagney <cagney@gnu.org>
2160
2161 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2162 print. Improve script's error messages.
2163 * gdbarch.h: Re-generate.
2164
2165 * gdbarch.sh (pformat): New function.
2166 (float_format, double_format, long_double_format): List with bit
2167 members. Use pformat when printing.
2168 * gdbarch.c, gdbarch.h: Re-generate.
2169
2170 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2171
2172 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2173 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2174 (ppcnbsd_supply_pcb): New function.
2175 (_initialize_ppcnbsd_nat): New prototype and function.
2176 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2177 (LOADLIBES): New variable.
2178 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2179
2180 2004-08-08 Andrew Cagney <cagney@gnu.org>
2181
2182 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2183 (builtin_type_ieee_double, builtin_type_ia64_quad)
2184 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2185 BE/LE floating-point types.
2186 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2187 (builtin_type_ieee_double, builtin_type_ia64_quad)
2188 (builtin_type_ia64_spill): Declare.
2189 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2190 (floatformat_ieee_double, floatformat_arm_ext)
2191 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2192 of LE/BE floatformats.
2193 * doublest.h: (struct floatformat, floatformat_ieee_single)
2194 (floatformat_ieee_double, floatformat_arm_ext)
2195 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2196
2197 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2198
2199 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2200
2201 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2202 instead of regcache_raw_supply when storing the registers.
2203
2204 * i386gnu-nat.c: Update copyright year.
2205 (gnu_store_registers): Don't use deprecated_registers and
2206 deprecated_registers_valid. Use regcache_valid_p and
2207 regcache_raw_supply instead.
2208
2209 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2210 frame_pc_unwind.
2211
2212 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2213 variables. Incapitalized "process".
2214
2215 * configure.in: Add cursesX to the list of possible curses libs.
2216 Add cursesX.h to the list of possible curses headers.
2217 * configure, config.in: Regenerate.
2218
2219 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2220
2221 * configure.in: Test for struct lwp in <sys/lwp.h>.
2222 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2223 the offset of l_addr in struct lwp.
2224
2225 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2226
2227 * bsd-kvm.c: Include "gdbcore.h"
2228 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2229
2230 2004-08-07 Andrew Cagney <cagney@gnu.org>
2231
2232 * gdbtypes.c (build_flt, build_complex): New functions.
2233 (gdbtypes_post_init): Use.
2234
2235 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2236
2237 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2238 through to builtin_type_uint128.
2239
2240 * c-exp.y: Use builtin_type function to obtain builtin types.
2241
2242 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2243 builtin_uint128.
2244 * gdbtypes.c (gdbtypes_post_init): Update.
2245 (build_gdbtypes): Move initialization of builtin_type_int0
2246 through to builtin_type_uint128 from here ...
2247 (_initialize_gdbtypes): ... to here.
2248 * d10v-tdep.c (d10v_register_type): Update.
2249
2250 * doublest.c: Update copyright.
2251 (floatformat_from_length): Call error when floatformat is NULL.
2252 (extract_floating_by_length): Remove NULL fmt check.
2253 (store_floating_by_length): Ditto.
2254
2255 2004-08-07 Andrew Cagney <cagney@gnu.org>
2256
2257 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2258 that the register is valid.
2259
2260 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2261
2262 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2263 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2264 struct frame_info *. Use safe_frame_unwind_memory instead of
2265 deprecated_read_memory_nobpt.
2266 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2267 changed signature of i386_linux_sigtramp_start and
2268 i386_linux_rt_sigtramp_start.
2269
2270 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2271 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2272 instead of deprecated_read_memory_nobpt.
2273 (i386nbsd_sigtramp_p): Adjust for changed signature of
2274 i386nbsd_sigtramp_offset.
2275
2276 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2277 safe_frame_unwind_memory instead of target_read_memory.
2278
2279 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2280 !NO_SYS_FILE.
2281 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2282 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2283 (_initialize_kernel_u_addr): Remove prototype and function.
2284 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2285 !NO_SYS_FILE.
2286 * xcoffread.c: Likewise.
2287
2288 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2289
2290 * vax-nat.c: New file.
2291 * vaxbsd-nat.c: Tweak comment.
2292 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2293 vaxnbsd-tdep.c.
2294 (vax-nat.o): New dependency.
2295 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2296 (vax-*-ultrix2*): Remove.
2297 * config/vax/vax.mh: New file.
2298 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2299 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2300 (vax_register_u_addr): New prototype.
2301 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2302 * config/vax/vaxult2.mh: Remove file.
2303 * config/vax/vaxult.mh: Remove file.
2304 * config/vax/vaxbsd.mh: Remove file.
2305 * config/vax/vax.mt (TM_FILE): Remove.
2306 * config/vax/tm-vaxbsd.h: Remove file.
2307
2308 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2309
2310 * aix-thread.c (get_signaled_thread): New function.
2311 (iter_trap): Delete, no longer used.
2312 (iter_tid): New function.
2313 (pd_update): Find the thread that received the SIGTRAP signal
2314 by first locating the kernel thread, and then finding its
2315 associated thread.
2316
2317 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2318
2319 * lin-lwp.c (child_wait): Continue inferior after processing
2320 PTRACE_EVENT_CLONE event.
2321
2322 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2323
2324 * MAINTAINERS: Add self to Write-After-Approval.
2325
2326 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2327
2328 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2329 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2330
2331 2004-08-05 Andrew Cagney <cagney@gnu.org>
2332
2333 * config/xm-sysv4.h: Delete file.
2334 * config/mips/xm-irix5.h: Delete file.
2335 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2336 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2337 * config/ia64/xm-aix.h: Delete file.
2338 * config/ia64/aix.mh (XM_FILE): Delete.
2339 * config/pa/xm-hppah.h: Delete file.
2340 * config/pa/hpux11w.mh (XM_FILE): Delete.
2341 * config/pa/hpux11.mh (XM_FILE): Delete.
2342 * config/pa/hpux1020.mh (XM_FILE): Delete.
2343 * config/pa/hppahpux.mh (XM_FILE): Delete.
2344
2345 * config/alpha/xm-alphalinux.h: Delete file.
2346 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2347 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2348 * config/alpha/xm-alphaosf.h: Delete file.
2349 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2350 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2351 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2352 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2353
2354 * config/i386/xm-i386v.h: Delete file.
2355 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2356 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2357 * config/i386/xm-i386sco.h: Delete file.
2358 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2359 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2360 * config/i386/xm-i386v4.h: Delete file.
2361 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2362 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2363 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2364 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2365
2366 * config/vax/xm-vax.h: Delete file.
2367 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2368 * config/vax/xm-vaxult2.h: Delete file.
2369 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2370 * config/vax/vaxult2.mh (XM_FILE): Delete.
2371 * config/vax/xm-vaxult.h: Delete file.
2372 * config/vax/vaxult.mh (XM_FILE): Delete.
2373 * config/vax/xm-vaxbsd.h: Delete file.
2374 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2375
2376 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2377 * gdbarch.h, gdbarch.c: Re-generate.
2378 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2379 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2380 * frame.h: Delete deprecated_read_fp from comments.
2381 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2382 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2383
2384 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2385
2386 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2387 trampoline in OpenBSD 3.5-current.
2388
2389 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2390 SSE registers.
2391
2392 * Makefile.in: Remove embedded page breaks.
2393
2394 2004-08-04 Jim Blandy <jimb@redhat.com>
2395
2396 * regcache.c (regcache_raw_read): Assert that, after calling
2397 target_fetch_registers, the register we're reading is cached.
2398
2399 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2400 a call to 'internal_error', with a more helpful error message.
2401 * rs6000-tdep.c (e500_pseudo_register_read,
2402 e500_pseudo_register_write, rs6000_store_return_value): Same.
2403
2404 2004-08-04 Andrew Cagney <cagney@gnu.org>
2405
2406 * Makefile.in: Update dependencies.
2407
2408 2004-08-04 Jim Blandy <jimb@redhat.com>
2409
2410 Change the layout of the PowerPC E500 raw register cache to allow
2411 the lower 32-bit halves of the GPRS to be their own raw registers,
2412 not pseudoregisters.
2413 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2414 add ppc_ev0_upper_regnum flag.
2415 * rs6000-tdep.c: #include "reggroups.h".
2416 (spe_register_p): Recognize the ev upper half registers as SPE
2417 registers.
2418 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2419 registers.
2420 (e500_move_ev_register): New function.
2421 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2422 vector registers are the pseudo-registers now, formed by splicing
2423 together the gprs and the upper-half registers.
2424 (e500_register_reggroup_p): New function.
2425 (P): Macro deleted.
2426 (P8, A4): New macro.
2427 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2428 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2429 macros.
2430 (registers_e500): Rearrange register set so that the raw register
2431 set contains 32-bit GPRs and upper-half registers, and the SPE
2432 vector registers become pseudo-registers.
2433 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2434 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2435 register numbers are now the same for the E500 as they are for
2436 other PowerPC variants. Register e500_register_reggroup_p as the
2437 register group function for the E500.
2438 * Makefile.in (rs6000-tdep.o): Update dependencies.
2439
2440 Adapt PPC E500 native support to the new raw regcache layout.
2441 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2442 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2443 (fetch_spe_register, store_spe_register): Handle fetching/storing
2444 all the SPE registers at once, if regno == -1. These now take
2445 over the job of fetch_spe_registers and store_spe_registers.
2446 (fetch_spe_registers, store_spe_registers): Deleted.
2447 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2448 unconditionally; they're always raw. Fetch/store SPE upper half
2449 registers, if present, instead of ev registers.
2450 (fetch_register, store_register): Remove sanity checks: gprs are
2451 never pseudo-registers now, so we never need to even mention any
2452 registers that are ever pseudoregisters.
2453
2454 Use a fixed register numbering when communicating with the PowerPC
2455 simulator.
2456 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2457 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2458 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2459 New functions.
2460 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2461 init_sim_regno_table.
2462 * Makefile.in (gdb_sim_ppc_h): New variable.
2463 (rs6000-tdep.o): Update dependencies.
2464
2465 2004-08-02 Andrew Cagney <cagney@gnu.org>
2466
2467 * cris-tdep.c (cris_register_size): Restore function, still used
2468 locally.
2469
2470 * gdbarch.sh (deprecated_target_read_fp)
2471 (deprecated_frame_locals_address, deprecated_frame_args_address)
2472 (deprecated_frame_chain_valid, deprecated_frame_chain)
2473 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2474 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2475 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2476 * gdbarch.h, gdbarch.c: Re-generate.
2477 * regcache.c (deprecated_read_fp): Do not call
2478 DEPRECATED_TARGET_READ_FP_P.
2479 * infcmd.c (default_print_registers_info): Do not call
2480 DEPRECATED_DO_REGISTERS_INFO.
2481 * frame-base.c (default_frame_locals_address): Do not call
2482 DEPRECATED_FRAME_LOCALS_ADDRESS.
2483 (default_frame_args_address): Do not call
2484 DEPRECATED_FRAME_ARGS_ADDRESS.
2485
2486 * gdbarch.sh (deprecated_register_raw_size)
2487 (deprecated_register_virtual_size:int): Delete.
2488 * gdbarch.h, gdbarch.c: Re-generate.
2489 * cris-tdep.c (cris_register_size): Delete.
2490 (cris_gdbarch_init): Update.
2491 * alpha-tdep.c (alpha_register_raw_size)
2492 (alpha_register_virtual_size): Delete.
2493 (alpha_gdbarch_init): Update.
2494
2495 * gdbarch.sh (deprecated_register_virtual_type)
2496 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2497 (deprecated_dummy_write_sp): Delete.
2498 * gdbarch.h, gdbarch.c: Re-generate.
2499
2500 * gdbarch.sh (deprecated_register_bytes): Delete.
2501 * gdbarch.h, gdbarch.c: Re-generate.
2502 * regcache.c (deprecated_register_bytes): New function.
2503 * regcache.h (deprecated_register_bytes): Declare.
2504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2505 * v850-tdep.c (v850_gdbarch_init): Update.
2506 * sh64-tdep.c (sh64_gdbarch_init): Update.
2507 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2508 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2509 * mcore-tdep.c (mcore_gdbarch_init): Update.
2510 * cris-tdep.c (cris_gdbarch_init): Update.
2511 * arm-tdep.c (arm_gdbarch_init): Update.
2512 * remote.c (init_remote_state): Update.
2513 * remote-vx.c (vx_prepare_to_store): Update.
2514 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2515 * irix5-nat.c (fetch_core_registers): Update.
2516 * cris-tdep.c (cris_register_bytes_ok): Update.
2517 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2518
2519 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2520 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2521 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2522 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2523 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2524 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2525 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2526 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2527 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2528 with mips_insn16 and mips_insn32.
2529
2530 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2531 * rs6000-tdep.c (rs6000_push_dummy_call)
2532 (rs6000_extract_return_value): Use register_size.
2533 * xstormy16-tdep.c (xstormy16_get_saved_register)
2534 (xstormy16_extract_return_value): Ditto.
2535 * valops.c (value_assign): Ditto.
2536 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2537 * v850-tdep.c (v850_extract_return_value): Ditto.
2538 * tracepoint.c (collect_symbol): Ditto.
2539 * target.c (debug_print_register): Ditto.
2540 * stack.c (frame_info): Ditto.
2541 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2542 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2543 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2544 (store_register_using_P): Ditto.
2545 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2546 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2547 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2548 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2549 * regcache.c (deprecated_read_register_bytes)
2550 (deprecated_write_register_bytes, read_register)
2551 (write_register): Ditto.
2552 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2553 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2554 * monitor.c (monitor_supply_register, monitor_fetch_register)
2555 (monitor_store_register): Ditto.
2556 * mn10300-tdep.c (mn10300_pop_frame_regular)
2557 (mn10300_print_register): Ditto.
2558 * mipsv4-nat.c (fill_fpregset): Ditto.
2559 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2560 (mips64_fill_fpregset): Ditto.
2561 * mi/mi-main.c (register_changed_p, get_register)
2562 (mi_cmd_data_write_register_values): Ditto.
2563 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2564 * irix5-nat.c (fill_gregset, fetch_core_registers):
2565 * infrun.c (write_inferior_status_register): Ditto.
2566 * infptrace.c (fetch_register, store_register): Ditto.
2567 * infcmd.c (default_print_registers_info): Ditto.
2568 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2569 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2570 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2571 * hpux-thread.c (hpux_thread_fetch_registers)
2572 (hpux_thread_store_registers): Ditto.
2573 * hppah-nat.c (store_inferior_registers, fetch_register):
2574 * findvar.c (value_from_register): Ditto.
2575 * dve3900-rom.c (fetch_bitmapped_register):
2576 * cris-tdep.c (cris_gdbarch_init): Ditto.
2577 * alpha-tdep.h: Ditto.
2578 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2579
2580 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2581 DEPRECATED_REGISTER_RAW_SIZE from comments.
2582 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2583 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2584 DEPRECATED_REGISTER_RAW_SIZE.
2585 * findvar.c (value_of_register): Simplify by assuming that the
2586 registers raw and virtual sizes are identical.
2587 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2588 comment.
2589 * arch-utils.c (generic_register_size): Simplify by assuming
2590 register_type.
2591
2592 * regcache.c (legacy_read_register_gen, real_register)
2593 (legacy_write_register_gen): Delete, not used.
2594
2595 * regcache.c (struct regcache_descr): Delete legacy_p.
2596 (init_legacy_regcache_descr): Delete function.
2597 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2598 Do not use deprecated register functions.
2599 (regcache_raw_read, deprecated_write_register_gen):
2600 (deprecated_read_register_gen, regcache_raw_write): Delete code
2601 predicated on legacy_p.
2602 (register_size): Delete check against register raw size.
2603
2604 * cris-tdep.c (cris_register_type): Replace
2605 cris_register_virtual_type.
2606 (cris_gdbarch_init): Update, set register_type.
2607
2608 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2609 * gdbarch.h, gdbarch.c: Re-generate.
2610 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2611 (arm_gdbarch_init) Do not set frameless function invocation.
2612 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2613 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2614 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2615 (frv_gdbarch_init): Do not set frameless function invocation.
2616 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2617 * sh-tdep.c (sh_gdbarch_init): Ditto.
2618 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2619 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2620 * avr-tdep.c (avr_gdbarch_init): Ditto.
2621
2622 * blockframe.c (legacy_frame_chain_valid): Delete function.
2623
2624 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2625 and pc. Update comments.
2626 (pc_in_dummy_frame): Delete function.
2627 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2628 use the "id".
2629 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2630 call_hi, top and pc, use the id.
2631 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2632
2633 * dummy-frame.c: Include "gdb_string.h".
2634 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2635 (generic_save_dummy_frame_tos): Delete.
2636 (dummy_frame_push): New function, replaces above.
2637 * dummy-frame.h: Update copyright.
2638 (dummy_frame_push): Declare.
2639 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2640 (generic_save_call_dummy_addr): Delete declarations.
2641 * infcall.c: Include "dummy-frame.h".
2642 (call_function_by_hand): Add locals caller_regcache,
2643 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2644 with call to frame_save_as_regcache plus cleanup. Delete calls to
2645 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2646 Move clear_proceed_status to just before the resume, add call to
2647 dummy_frame_push (discard cleanup).
2648 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2649 (dummy-frame.o): Add $(gdb_string_h).
2650
2651 2004-08-01 Andrew Cagney <cagney@gnu.org>
2652
2653 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2654 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2655 * dummy-frame.c (find_dummy_frame): Delete.
2656 (struct dummy_frame_cache, dummy_frame_sniffer)
2657 (dummy_frame_prev_register, dummy_frame_this_id)
2658 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2659 frame unwinder using a dummy_frame_cache.
2660
2661 2004-08-01 Andrew Cagney <cagney@gnu.org>
2662
2663 * frame.h (frame_save_as_regcache): Declare.
2664 * frame.c (frame_save_as_regcache): New function.
2665 (do_frame_read_register): Replace do_frame_unwind_register.
2666 (frame_pop): Use frame_save_as_regcache.
2667 * dummy-frame.c (generic_push_dummy_frame): Use
2668 frame_save_as_regcache.
2669
2670 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2671
2672 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2673 file as included until we record the first line in the linetable.
2674
2675 2004-08-01 Andrew Cagney <cagney@gnu.org>
2676
2677 * frame.h (deprecated_pop_dummy_frame)
2678 (deprecated_read_register_dummy)
2679 (deprecated_generic_find_dummy_frame): Delete.
2680 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2681 (deprecated_read_register_dummy)
2682 (deprecated_find_dummy_frame_regcache)
2683 (discard_innermost_dummy)
2684 (deprecated_pop_dummy_frame): Delete.
2685 (dummy_frame_this_id): Simplify.
2686 (struct dummy_frame): Delete "fp" and "sp".
2687 (find_dummy_frame): Simplify.
2688 (generic_push_dummy_frame): Do not set "fp" or "sp".
2689 (fprint_dummy_frames): Do not print "fp" and "sp"
2690
2691 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2692
2693 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2694 (struct i386_insn): New structure.
2695 (i386_match_insn): New function.
2696 (i386_frame_setup_skip_insns): New variable.
2697 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2698 array i386_frame_setup_insns of instructions that should be
2699 skipped inside the frame setup sequence.
2700
2701 2004-08-01 Andrew Cagney <cagney@gnu.org>
2702
2703 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2704 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2705 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2706 * stack.c (frame_info): Delete references to
2707 DEPRECATED_FRAME_INIT_SAVED_REGS and
2708 deprecated_get_frame_saved_regs.
2709 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2710 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2711 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2712 (frame_unwind_register_signed)
2713 (frame_unwind_register_unsigned)
2714 (frame_unwind_unsigned_register): Use register_size.
2715 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2716 (deprecated_frame_xmalloc_with_cleanup)
2717 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2718 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2719
2720 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2721 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2722 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2723 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2724
2725 * infcall.c (call_function_by_hand): Do not use
2726 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2727 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2728 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2729 DEPRECATED_STACK_ALIGN.
2730
2731 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2732
2733 Committed by Andrew Cagney.
2734 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2735
2736 2004-08-01 Andrew Cagney <cagney@gnu.org>
2737
2738 * mips-tdep.c (mips16_frame_cache)
2739 (mips16_frame_this_id, mips16_frame_prev_register)
2740 (mips16_frame_unwind, mips16_frame_sniffer)
2741 (mips16_frame_base_address, mips16_frame_base)
2742 (mips16_frame_base_sniffer, mips32_frame_cache)
2743 (mips32_frame_this_id, mips32_frame_prev_register)
2744 (mips32_frame_unwind, mips32_frame_sniffer)
2745 (mips32_frame_base_address, mips32_frame_base)
2746 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2747 separate heuristic mips16 and mips32 unwinders.
2748 (mips_stub_frame_cache, mips_stub_frame_this_id)
2749 (mips_stub_frame_prev_register)
2750 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2751 (mips_stub_frame_base_address, mips_stub_frame_base)
2752 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2753 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2754 match true mdebug frames.
2755 (non_heuristic_proc_desc): Add forward declaration.
2756
2757 2004-08-01 Andrew Cagney <cagney@gnu.org>
2758
2759 * config/mips/tm-irix6.h: Delete file.
2760 * config/mips/tm-irix5.h: Delete file.
2761 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2762 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2763
2764 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2765 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2766 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2767 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2768 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2769 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2770 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2771 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2772 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2773 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2774 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2775 (TARGET_SIGNAL_RAW_VALUES): Delete.
2776 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2777 Delete.
2778 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2779 (TARGET_HW_WATCH_LIMIT): Delete.
2780 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2781 * minimon.h: Delete file.
2782
2783 * trad-frame.c (trad_frame_get_this_base)
2784 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2785 functions.
2786 * trad-frame.h (trad_frame_set_this_base)
2787 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2788
2789 2004-07-31 Andrew Cagney <cagney@gnu.org>
2790
2791 * trad-frame.c (trad_frame_get_prev_register): Rename
2792 trad_frame_get_prev_register.
2793 * vax-tdep.c (vax_frame_prev_register): Update.
2794 * trad-frame.h: Update.
2795 * trad-frame.c (trad_frame_get_register): Update.
2796 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2797 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2798 Update.
2799 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2800 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2801 Update.
2802 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2803 Update.
2804 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2805 Update.
2806 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2807 Update.
2808 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2809 Update.
2810 * s390-tdep.c (s390_frame_prev_register)
2811 (s390_stub_frame_prev_register)
2812 (s390_sigtramp_frame_prev_register): Update.
2813 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2814 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2815 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2816 * m88k-tdep.c (m88k_frame_prev_register)
2817 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2818 * m32r-tdep.c (m32r_frame_prev_register): Update.
2819 * hppa-tdep.c (hppa_frame_prev_register_helper)
2820 * frv-tdep.c (frv_frame_prev_register): Update.
2821 * d10v-tdep.c (d10v_frame_prev_register): Update.
2822 * cris-tdep.c (cris_frame_prev_register): Update.
2823 * avr-tdep.c (avr_frame_prev_register): Update.
2824 * arm-tdep.c (arm_prologue_prev_register)
2825 (arm_sigtramp_prev_register): Update.
2826
2827 2004-07-31 Andrew Cagney <cagney@gnu.org>
2828
2829 * frame.h (legacy_saved_regs_unwind)
2830 (legacy_frame_chain_valid, legacy_frame_p)
2831 (enum frame_type): Delete UNKNOWN_FRAME.
2832 * dummy-frame.c (dummy_frame_this_id): Simplify.
2833 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2834 * frame.c (struct frame_info): Delete the field "type".
2835 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2836 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2837 (legacy_saved_regs_unwind, legacy_frame_p)
2838 (frame_type_from_pc): Delete.
2839 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2840 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2841
2842 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2843
2844 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2845 indentation.
2846
2847 * mips-nat.c: Remove file.
2848 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2849 (mips-nat.o): Remove dependency.
2850
2851 * infptrace.c: Update copyright year.
2852 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2853 explicitly setting the buffer to all zeroes.
2854
2855 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2856 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2857
2858 2004-07-30 Andrew Cagney <cagney@gnu.org>
2859
2860 * GDB 6.2 released from gdb_6_2-branch.
2861
2862 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2863
2864 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2865
2866 * exec.c (exec_file_attach):
2867 * nto-tdep.c (nto_find_and_open_solib):
2868 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2869 * solib.c (solib_open):
2870 * somsolib.c (som_solib_sizeof_symbol_table):
2871 * source.c (is_regular_file, openp, open_source_file):
2872 * symfile.c (symfile_bfd_open):
2873 * wince.c (upload_to_device): Differentiate between the search for
2874 binary and source files.
2875
2876 2004-07-30 Andrew Cagney <cagney@gnu.org>
2877
2878 * complaints.c (_initialize_complaints): Pass NULL to
2879 add_setshow_zinteger_cmd for help_doc.
2880 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2881
2882 2004-07-30 Andrew Cagney <cagney@gnu.org>
2883
2884 Fix PR i18n/761.
2885 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2886 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2887 $(PACKAGE).pot and update-po.
2888 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2889 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2890 (update-po): New rules.
2891 (localedir): Define using autoconf.
2892 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2893 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2894 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2895 * configure.in: Generate CATALOGS and LINGUAS from contents of
2896 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2897 * configure: Re-generate.
2898 * po/gdbtext: New file
2899
2900 2004-07-30 Jerome Guitton <guitton@gnat.com>
2901
2902 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2903 order.
2904
2905 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2906
2907 * dwarf2read.c (read_file_scope): Set producer if attribute
2908 present.
2909 (struct dwarf2_cu): Added new member producer.
2910
2911 2004-07-30 Jerome Guitton <guitton@gnat.com>
2912
2913 * inflow.c (kill_command): release file handles in BFD.
2914 * exec.c (exec_file_attach): Ditto.
2915 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2916
2917 2004-07-29 Andrew Cagney <cagney@gnu.org>
2918
2919 * PROBLEMS (mips-irix): Note that it is broken.
2920
2921 2004-07-29 Andrew Cagney <cagney@gnu.org>
2922
2923 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2924 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2925
2926 * config/xm-nbsd.h: Delete file.
2927 * config/arm/xm-nbsd.h: Delete file.
2928 * config/i386/xm-nbsd.h: Delete file.
2929 * config/ns32k/xm-nbsd.h: Delete file.
2930 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2931 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2932 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2933 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2934 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2935
2936 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2937 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2938 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2939 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2940 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2941 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2942
2943 * config/powerpc/xm-linux.h: Delete empty file.
2944 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2945 * config/powerpc/linux.mh (XM_FILE): Delete.
2946 * config/m68k/xm-linux.h: Delete empty file.
2947 * config/m68k/linux.mh (XM_FILE): Delete.
2948 * config/ia64/xm-linux.h: Delete empty file.
2949 * config/ia64/linux.mh (XM_FILE): Delete.
2950 * config/arm/xm-linux.h: Delete empty file.
2951 * config/arm/linux.mh (XM_FILE): Delete.
2952
2953 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2954 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2955 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2956 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2957 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2958 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2959 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2960 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2961
2962 * config/m68k/xm-m68k.h: Delete file.
2963 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2964 copyright.
2965 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2966 * config/pa/xm-linux.h: Delete empty file.
2967 * config/pa/linux.mh (XM_FILE): Delete.
2968 * config/i386/xm-i386.h: Delete empty file.
2969 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2970 "i386/xm-i386.h".
2971 * config/i386/obsdaout.mh (XM_FILE): Delete.
2972 * config/i386/obsd64.mh (XM_FILE): Delete.
2973 * config/i386/fbsd64.mh (XM_FILE): Delete.
2974 * config/i386/nto.mh (XM_FILE): Delete.
2975 * config/i386/obsd.mh (XM_FILE): Delete.
2976 * config/i386/linux64.mh (XM_FILE): Delete.
2977 * config/i386/linux.mh (XM_FILE): Delete.
2978 * config/i386/i386sol2.mh (XM_FILE): Delete.
2979 * config/i386/i386gnu.mh (XM_FILE): Delete.
2980 * config/i386/fbsd.mh (XM_FILE): Delete.
2981 * config/i386/nbsd64.mh (XM_FILE): Delete.
2982
2983 2004-07-29 Andrew Cagney <cagney@gnu.org>
2984
2985 * config/pa/xm-linux.h: Do not include "floatformat.h".
2986 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2987 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2988 * config/i386/xm-i386.h: Do not include "floatformat.h".
2989 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2990 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2991 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2992 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2993 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2994 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2995 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2996 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2997 * configure, config.in: Regenerate.
2998 * configure.host (gdb_host_float_format, gdb_host_double_format)
2999 (gdb_host_long_double_format): Set according to the host.
3000
3001 2004-07-29 Andrew Cagney <cagney@gnu.org>
3002
3003 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3004
3005 2004-07-28 Andrew Cagney <cagney@gnu.org>
3006
3007 * PROBLEMS: Mention threads/1650.
3008 * NEWS: Mention the NPTL fix.
3009
3010 2004-07-28 Andrew Cagney <cagney@gnu.org>
3011
3012 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3013 (add_setshow_cmd_full): Make static.
3014 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3015 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3016 * cli/cli-decode.c (add_setshow_filename_cmd)
3017 (add_setshow_string_cmd): New functions.
3018 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3019 * mips-tdep.c (_initialize_mips_tdep): Update.
3020 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3021 * cli/cli-logging.c (_initialize_cli_logging): Update.
3022 * complaints.c (_initialize_complaints): Update.
3023 * remote.c (_initialize_remote): Update.
3024
3025 2004-07-28 Andrew Cagney <cagney@gnu.org>
3026
3027 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3028 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3029 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3030 print parameters. Make string parameters constant.
3031 * command.h: Update. Update copyright.
3032 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3033 * observer.c (_initialize_observer): Ditto.
3034 * frame.c (_initialize_frame): Ditto.
3035 * complaints.c (_initialize_complaints): Ditto.
3036 * maint.c (_initialize_maint_cmds): Ditto.
3037 * target.c (initialize_targets): Ditto.
3038 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3039 * infcall.c (_initialize_infcall): Ditto.
3040 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3041 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3042 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3043 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3044 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3045
3046 2004-07-28 Andrew Cagney <cagney@gnu.org>
3047
3048 * gdbtypes.c (lookup_primitive_typename): Delete function.
3049 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3050 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3051 * gdbtypes.c (lookup_typename): Ditto.
3052 * f-exp.y (yylex): Ditto.
3053 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3054
3055 * scm-lang.c (c_builtin_types): Delete extern declaration.
3056 (scm_language_defn): Replace
3057 string_char_type and primitive_type_vector with
3058 la_language_arch_info.
3059 * jv-lang.c (java_language_defn): Replace
3060 string_char_type and primitive_type_vector with
3061 la_language_arch_info.
3062 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3063 c_builtin_types in comment.
3064 * c-lang.h (struct language_arch_info): Declare opaque.
3065 (c_language_arch_info): Declare.
3066 (c_builtin_types): Delete declaration.
3067 * c-lang.c (c_language_arch_info): Set string_char_type to
3068 builtin_char, not builtin_true_char. Make global.
3069 (c_builtin_types): Delete array.
3070 (asm_language_defn, minimal_language_defn): Replace
3071 string_char_type and primitive_type_vector with
3072 la_language_arch_info.
3073
3074 2004-07-28 Andrew Cagney <cagney@gnu.org>
3075
3076 * gdbtypes.h (struct builtin_type): Rename true_char to
3077 builtin_true_char.
3078 * gdbtypes.c (gdbtypes_post_init): Update.
3079 * c-lang.c (arch_info): New function.
3080 (enum c_primitive_types): New enum.
3081 (c_language_defn): Instead of string_char_type and
3082 primitive_type_vector set la_language_arch_info.
3083
3084 2004-07-28 Andrew Cagney <cagney@gnu.org>
3085
3086 * language.h (struct language_arch_info): Fix typo
3087 s/primative/primitive/.
3088 * gdbtypes.c (lookup_primitive_typename): Ditto.
3089 * language.c (language_lookup_primitive_type_by_name)
3090 (unknown_language_arch_info): Ditto.
3091
3092 2004-07-27 Andrew Cagney <cagney@gnu.org>
3093
3094 * defs.h (enum language): Add nr_languages.
3095 * language.h (struct language_arch_info): Define.
3096 (struct language_defn): Add la_language_arch_info.
3097 (language_lookup_primative_type_by_name): Declare.
3098 (language_string_char_type): Declare.
3099 * language.c (_initialize_language, language_gdbarch_post_init)
3100 (struct language_gdbarch, language_gdbarch_data): Implement
3101 per-architecture language information.
3102 (unknown_language_arch_info, language_string_char_type)
3103 (language_lookup_primative_type_by_name): New functions.
3104 (unknown_language_defn, auto_language_defn)
3105 (local_language_defn): Set la_language_arch_info to
3106 unknown_language_arch_info.
3107 (unknown_builtin_types): Delete.
3108 * gdbtypes.c (lookup_primitive_typename): Use
3109 language_lookup_primative_type_by_name.
3110 (create_string_type): Use language_string_char_type.
3111 * values.c (value_from_string): Use language_string_char_type.
3112 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3113 * p-lang.c (pascal_language_defn): Ditto.
3114 * m2-lang.c (m2_language_defn): Ditto.
3115 * jv-lang.c (java_language_defn): Ditto.
3116 * objc-lang.c (objc_language_defn): Ditto.
3117 * f-lang.c (f_language_defn): Ditto.
3118 * c-lang.c (c_language_defn, cplus_language_defn)
3119 (asm_language_defn, minimal_language_defn): Ditto.
3120
3121 2004-07-27 Andrew Cagney <cagney@gnu.org>
3122
3123 * gdbtypes.h (struct builtin_type): Declare.
3124 (builtin_type): Declare.
3125 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3126 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3127 (gdbtypes_post_init): New function.
3128 (builtin_type): New function.
3129
3130 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3131
3132 * remote-m32r-sdi.c: Fix breakpoint bug.
3133 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3134 recv_char_data, recv_long_data): New functions to replace communication
3135 sequences.
3136
3137 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3138
3139 Document PR threads/1650.
3140 * PROBLEMS (Threads): Document problem with many threads
3141
3142 2004-07-26 Andrew Cagney <cagney@gnu.org>
3143
3144 * gdb-mi.el: Move from here ...
3145 * mi/gdb-mi.el: ... to here.
3146
3147 2004-07-26 Andrew Cagney <cagney@gnu.org>
3148
3149 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3150 * main.c (captured_main): When in batch mode always detach.
3151
3152 2004-07-26 Andrew Cagney <cagney@gnu.org>
3153
3154 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3155 and h8300 as broken.
3156 * NEWS: END-OF-LIFE frame compatibility module.
3157 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3158 specific comments.
3159
3160 2004-07-26 Andrew Cagney <cagney@gnu.org>
3161
3162 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3163 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3164 * wince.c (_initialize_wince): Update.
3165 * win32-nat.c (_initialize_win32_nat): Update.
3166 * varobj.c (_initialize_varobj): Update.
3167 * valops.c (_initialize_valops): Update.
3168 * utils.c (initialize_utils, initialize_utils): Update.
3169 * tui/tui-win.c (_initialize_tui_win): Update.
3170 * top.c (init_main): Update.
3171 * symfile.c (_initialize_symfile): Update.
3172 * source.c (_initialize_source): Update.
3173 * somsolib.c (_initialize_som_solib): Update.
3174 * solib.c (_initialize_solib): Update.
3175 * solib-frv.c (_initialize_frv_solib): Update.
3176 * serial.c (_initialize_serial): Update.
3177 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3178 * remote.c (_initialize_remote, _initialize_remote): Update.
3179 * remote-vx.c (_initialize_vx): Update.
3180 * remote-utils.c (_initialize_sr_support): Update.
3181 * remote-sds.c (_initialize_remote_sds): Update.
3182 * remote-mips.c (_initialize_remote_mips): Update.
3183 * remote-e7000.c (_initialize_remote_e7000): Update.
3184 * proc-api.c (_initialize_proc_api): Update.
3185 * printcmd.c: Update.
3186 * parse.c (_initialize_parse): Update.
3187 * pa64solib.c (_initialize_pa64_solib): Update.
3188 * p-valprint.c (_initialize_pascal_valprint): Update.
3189 * monitor.c (_initialize_remote_monitors): Update.
3190 * mips-tdep.c (_initialize_mips_tdep): Update.
3191 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3192 * maint.c (_initialize_maint_cmds): Update.
3193 * lin-lwp.c (_initialize_lin_lwp): Update.
3194 * language.c (_initialize_language): Update.
3195 * kod.c (_initialize_kod): Update.
3196 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3197 * i386-tdep.c (_initialize_i386_tdep): Update.
3198 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3199 * gdbarch.sh: Update.
3200 * gdbarch.c: Re-generate.
3201 * gdb-events.sh: Update.
3202 * gdb-events.c: Re-generate.
3203 * frame.c (_initialize_frame): Update.
3204 * exec.c: Update.
3205 * demangle.c (_initialize_demangler): Update.
3206 * dcache.c (_initialize_dcache): Update.
3207 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3208 * cp-valprint.c (_initialize_cp_valprint): Update.
3209 * corefile.c (_initialize_core): Update.
3210 * command.h: Update.
3211 * cli/cli-decode.h: Update.
3212 * cli/cli-cmds.c (init_cli_cmds): Update.
3213 * charset.c (_initialize_charset): Update.
3214 * breakpoint.c (_initialize_breakpoint): Update.
3215 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3216 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3217 * aix-thread.c (_initialize_aix_thread): Update.
3218
3219 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3220
3221 Partial fix for PR backtrace/1718.
3222 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3223 that GCC migrates into the prolugue. Don't handle any
3224 instructions that clobber %ebx.
3225
3226 2004-07-23 Andrew Cagney <cagney@gnu.org>
3227
3228 Use regcache_raw_collect instead of regcache_collect.
3229 * regcache.h (regcache_collect): Delete declaration.
3230 * regcache.c (regcache_colect): Delete function.
3231 * win32-nat.c (do_child_store_inferior_registers): Update.
3232 * sol-thread.c (sol_thread_store_registers): Update.
3233 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3234 * rs6000-nat.c (store_register): Update.
3235 * remote.c (store_register_using_P, remote_store_registers): Update.
3236 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3237 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3238 (fill_vrregset, store_spe_registers, fill_gregset)
3239 (fill_gregset): Update.
3240 * nto-procfs.c (procfs_store_registers): Update.
3241 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3242 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3243 * m68klinux-nat.c (store_register, fill_gregset): Update.
3244 * m68k-tdep.c (fill_gregset): Update.
3245 * infptrace.c (store_register): Update.
3246 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3247 * i386-linux-nat.c (store_register, fill_gregset): Update.
3248 * hppa-linux-nat.c (fill_gregset): Update.
3249 * go32-nat.c (store_register): Update.
3250 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3251 (store_fp_regs): Update.
3252 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3253 (store_nwfpe_extended, store_fpregister, store_fpregs)
3254 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3255 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3256 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3257 (store_regs_user_thread, store_regs_kernel_thread): Update.
3258
3259 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3260
3261 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3262 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3263 encoding.
3264 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3265 member of `struct comp_unit'.
3266
3267 2004-07-23 Andrew Cagney <cagney@gnu.org>
3268
3269 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3270 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3271
3272 2004-07-23 Martin Hunt <hunt@redhat.com>
3273 Kevin Buettner <kevinb@redhat.com>
3274
3275 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3276 alignment was being added to the offset instead of multiplied.
3277
3278 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3279
3280 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3281 changed signal trampoline in OpenBSD 3.5-current.
3282
3283 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3284 <machine/pcb.h> and "bsd-kvm.h".
3285 (sparc64nbsd_supply_pcb): New function.
3286 (_initialize_sparc64nbsd_nat): Renamed from
3287 _initialize_sparcnbsd_nat. Enable libkvm interface.
3288 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3289 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3290 (LOADLIBES): New variable.
3291
3292 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3293
3294 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3295
3296 2004-07-21 Andrew Cagney <cagney@gnu.org>
3297
3298 Use regcache_raw_supply instead of supply_register.
3299 * regcache.h (supply_register): Delete declaration.
3300 * regcache.c (supply_register): Delete function.
3301 * wince.c (do_child_fetch_inferior_registers): Update.
3302 * win32-nat.c (do_child_fetch_inferior_registers)
3303 (fetch_elf_core_registers): Update.
3304 * v850ice.c (v850ice_fetch_registers): Update.
3305 * thread-db.c (thread_db_store_registers): Update.
3306 * sol-thread.c (sol_thread_store_registers): Update.
3307 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3308 * rs6000-nat.c (fetch_register): Update.
3309 * rom68k-rom.c (rom68k_supply_one_register): Update.
3310 * remote.c (remote_wait, remote_async_wait): Update.
3311 * remote-st.c (get_hex_regs): Update.
3312 * remote-sim.c (gdbsim_fetch_register): Update.
3313 * remote-sds.c (sds_fetch_registers): Update.
3314 * remote-rdp.c (remote_rdp_fetch_register): Update.
3315 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3316 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3317 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3318 * remote-hms.c (init_hms_cmds): Update.
3319 * remote-est.c (init_est_cmds): Update.
3320 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3321 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3322 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3323 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3324 (fetch_register, supply_vrregset, supply_vrregset)
3325 (fetch_spe_registers): Update.
3326 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3327 * monitor.c (monitor_supply_register): Update.
3328 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3329 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3330 (mipsnbsd_supply_fpreg): Update.
3331 * mips-nat.c (fetch_inferior_registers)
3332 (fetch_core_registers): Update.
3333 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3334 (supply_fpregset, mips64_supply_gregset)
3335 (mips64_supply_fpregset): Update.
3336 * m68klinux-nat.c (fetch_register, supply_gregset)
3337 (supply_fpregset): Update.
3338 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3339 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3340 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3341 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3342 * infptrace.c (fetch_register): Update.
3343 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3344 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3345 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3346 (gnu_fetch_registers, gnu_store_registers): Update.
3347 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3348 * i386-linux-nat.c (fetch_register, supply_gregset)
3349 (dummy_sse_values): Update.
3350 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3351 * hppah-nat.c (fetch_register): Update.
3352 * hppa-linux-nat.c (fetch_register, supply_gregset)
3353 (supply_fpregset): Update.
3354 * go32-nat.c (fetch_register): Update.
3355 * dve3900-rom.c (fetch_bitmapped_register)
3356 (_initialize_r3900_rom): Update.
3357 * cris-tdep.c (supply_gregset): Update.
3358 * abug-rom.c (init_abug_cmds): Update.
3359 * core-aout.c (fetch_core_registers): Update.
3360 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3361 (fetch_register, fetch_fp_register): Update.
3362 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3363 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3364 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3365 * alphanbsd-tdep.c (fetch_core_registers): Update.
3366 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3367 * alpha-nat.c (fetch_osf_core_registers)
3368 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3369 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3370 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3371
3372 2004-07-21 Andrew Cagney <cagney@gnu.org>
3373
3374 * PROBLEMS: Mention breakpoints/1702.
3375 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3376 that is known to work.
3377
3378 2004-07-21 Andrew Cagney <cagney@gnu.org>
3379
3380 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3381 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3382 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3383 (handle_inferior_event): Wrap call to deprecated
3384 IGNORE_HELPER_CALL in #ifdef.
3385 * config/mips/tm-nbsd.h: Update.
3386
3387 2004-07-20 Jim Blandy <jimb@redhat.com>
3388
3389 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3390 bfd_mach_ppc has no segment registers.
3391
3392 Include PowerPC SPR numbers for special-purpose registers.
3393 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3394 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3395 new member in initializer.
3396 (S, S4, SN4, S64): New macros for defining special-purpose
3397 registers.
3398 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3399 registers_403, registers_403GC, registers_505, registers_860,
3400 registers_601, registers_602, registers_603, registers_604,
3401 registers_750, registers_e500): Use them.
3402
3403 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3404 replace references with expression used to initialize variable.
3405
3406 2004-07-20 Andrew Cagney <cagney@gnu.org>
3407
3408 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3409 read_memory_nobpt.
3410 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3411 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3412 (s390_sigtramp_frame_sniffer): Update.
3413 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3414 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3415 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3416 (mips32_fetch_instruction): Update.
3417 * mcore-tdep.c (get_insn): Update.
3418 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3419 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3420 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3421 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3422 (i386_linux_rt_sigtramp_start): Update.
3423 * i386-linux-nat.c (child_resume): Update.
3424 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3425 * hppa-linux-tdep.c (insns_match_pattern): Update.
3426 * gdbcore.h: Update.
3427 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3428 * frame.c (safe_frame_unwind_memory): Update.
3429 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3430 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3431 * alpha-tdep.c (alpha_read_insn): Update.
3432
3433 2004-07-20 Andrew Cagney <cagney@gnu.org>
3434
3435 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3436 containing both bytes and mask. Add "frame_type".
3437 * tramp-frame.c (tramp_frame_start): Update.
3438 (tramp_frame_prepend_unwinder): Update.
3439 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3440 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3441 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3442 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3443
3444 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3445
3446 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3447 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3448 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3449 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3450
3451 2004-07-17 Andrew Cagney <cagney@gnu.org>
3452
3453 * NEWS, PROBLEMS: Update for 6.2.
3454
3455 * README: Update to 6.2.
3456
3457 * utils.c (xvasprintf): Call xstrvprintf.
3458
3459 * parse.c: Update copyright.
3460 (null_post_parser): Eliminate ARGSUSED.
3461
3462 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3463 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3464 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3465
3466 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3467 * ppc-linux-nat.c: Use "Linux kernel".
3468 * hppa-linux-tdep.c: Use GNU/Linux.
3469 * hppa-linux-nat.c: Use GNU/Linux.
3470 * dwarfread.c: Add [sic] to use of Linux.
3471
3472 * hppa-linux-nat.c: Do not include <string.h>.
3473 (supply_fpregset): Remove "register" attribute.
3474
3475 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3476
3477 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3478
3479 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3480 * configure, config.in: Regenerated.
3481
3482 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3483 "bsd-kvm.h".
3484 (vaxbsd_supply_pcb): New function.
3485 (_initialize_vaxbsd_nat): New prototype and function.
3486 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3487 solib-sunos.o.
3488 (LOADLIBES): New variable.
3489 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3490 (LOADLIBES): New variable.
3491 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3492 (LOADLIBES): New variable.
3493 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3494
3495 2004-07-16 Andrew Cagney <cagney@gnu.org>
3496
3497 * defs.h (event_loop_p): Replace variable declaration with macro,
3498 always 1.
3499 * main.c (captured_main): Delete options "-async" and "-noasync".
3500 (event_loop_p): Delete variable.
3501 * NEWS: Mention that "-async" and "-noasync" were removed.
3502
3503 2004-07-16 Andrew Cagney <cagney@gnu.org>
3504
3505 * remote-m32r-sdi.c: Re-indent.
3506
3507 2004-07-16 Jim Blandy <jimb@redhat.com>
3508
3509 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3510 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3511 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3512 missing MPC823 SPRs.
3513 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3514 incorrect. (This was corrected in GDB's register name tables on
3515 2004-07-14.)
3516
3517 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3518 should be "esasrr" ("ESA Save and Restore Register").
3519
3520 2004-07-16 Andrew Cagney <cagney@gnu.org>
3521
3522 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3523 calls, no longer applicable. Update comments and rename parameter
3524 "step_frame" to "return_frame".
3525
3526 2004-07-16 Andrew Cagney <cagney@gnu.org>
3527
3528 * frame.c (fprint_field): New function.
3529 (fprint_frame_id): Use fprint_field.
3530
3531 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3532
3533 * ada-lang.c (ada_language_defn): Remove commented out code.
3534
3535 2004-07-15 Jim Blandy <jimb@redhat.com>
3536
3537 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3538 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3539
3540 2004-07-14 Jim Blandy <jimb@redhat.com>
3541
3542 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3543
3544 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3545
3546 * ppc-tdep.h (ppc_num_srs): New enum constant.
3547
3548 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3549 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3550 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3551 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3552 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3553 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3554 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3555 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3556 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3557 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3558 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3559 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3560 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3561 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3562 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3563 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3564 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3565 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3566 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3567 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3568 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3569 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3570 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3571 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3572 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3573 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3574 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3575 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3576 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3577 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3578 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3579 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3580 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3581 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3582 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3583 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3584 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3585 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3586 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3587 special-purpose register numbers.
3588
3589 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3590 manual mentions 'md_twb', but many mention 'm_twb', and at that
3591 point in the register list.)
3592
3593 2004-07-14 Andrew Cagney <cagney@gnu.org>
3594
3595 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3596 instead of "internal-error".
3597
3598 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3599
3600 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3601 that was inserted inside a comment.
3602
3603 2004-07-10 Randolph Chung <tausq@debian.org>
3604
3605 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3606 function.
3607 (hppa_hpux_push_dummy_code): New function.
3608 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3609 Set find_global_pointer method.
3610
3611 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3612
3613 * NEWS: Mention BSD libkvm interface.
3614
3615 2004-07-10 Michael Snyder <msnyder@redhat.com>
3616
3617 * symfile.c (generic_load): Comment typo.
3618 * stack.c (get_selected_block): Ditto.
3619 * regcache.c (regcache_cooked_read): Ditto.
3620 * monitor.c (monitor_debug): Ditto.
3621 * mips-tdep.c (mips_read_pc): Ditto.
3622 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3623 * gdb_mbuild.sh: Ditto.
3624 * gdbarch.sh: Ditto.
3625 * gdbarch.h: Ditto.
3626
3627 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3628
3629 * ada-tasks.c: Remove file.
3630
3631 Remove ARI problems:
3632
3633 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3634 beginning of line.
3635
3636 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3637 Add comment.
3638 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3639 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3640 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3641 (UMIN_OF_SIZE): Remove.
3642 (max_of_type): New function to replace orphan macro in gdbtypes.h
3643 (min_of_type): Ditto.
3644 (discrete_type_high_bound): Use max_of_type.
3645 (discrete_type_low_bound): Use min_of_type.
3646 (possible_user_operator_p): Move operator to beginning of line.
3647 (ada_is_variant_part): Ditto.
3648 (ensure_lval): Rewrite to avoid deprecated operations.
3649 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3650 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3651 (ada_enum_name): Remove assignments in 'if' statements.
3652 (build_ada_types): Add gdbarch parameter.
3653 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3654 with gdbarch_data_register_post_init.
3655 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3656 add_show_from_set.
3657
3658 * ada-valprint.c (inspect_it): Remove declaration.
3659 (repeat_count_threshold): Remove declaration.
3660 (ada_print_floating): Remove assignments in 'if' statements.
3661 (print_str): Move operator to beginning of line.
3662
3663 2004-07-08 Jim Blandy <jimb@redhat.com>
3664
3665 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3666
3667 2004-07-08 Bob Rossi <bob@brasko.net>
3668
3669 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3670
3671 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3672
3673 * language.h (struct_language_defn): Add new function pointer:
3674 la_class_name_from_physname. Also add new prototype for
3675 language_class_name_from_physname.
3676 * language.c (language_class_name_from_physname): New function.
3677 (unk_lang_class_name): Ditto.
3678 (unknown_language_defn, auto_language_defn): Change
3679 to add unk_lang_class_name function pointer for
3680 la_class_name_from_physname.
3681 (local_language_defn): Ditto.
3682 * dwarf2read.c (guess_structure_name): Change to call
3683 language_class_name_from_physname.
3684 (determine_class_name): Ditto.
3685 * cp-support.c (class_name_from_physname): Renamed.
3686 (cp_class_name_from_physname): New name of function.
3687 * cp-support.h: Ditto.
3688 * c-lang.c (c_language_defn): Change to add NULL
3689 for class_name_from_physname function pointer.
3690 (cplus_language_defn): Change to add cp_class_name_from_physname.
3691 * jv-lang.c (java_class_name_physname): New function.
3692 (java_find_last_component): New static routine.
3693 (java_language_defn): Add java_class_name_from_physname pointer.
3694 * ada-lang.c (ada_language_defn): Change to add NULL
3695 for class_name_from_physname function pointer.
3696 * f-lang.c (f_language_defn): Ditto.
3697 * m2-lang.c (m2_language_defn): Ditto.
3698 * objc-lang.c (objc_language_defn): Ditto.
3699 * p-lang.c (pascal_language_defn): Ditto.
3700 * scm-lang.c (scm_language_defn): Ditto.
3701
3702 2004-07-06 Andrew Cagney <cagney@gnu.org>
3703
3704 Patch from Bart Robinson.
3705 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3706 (O_LARGEFILE): Define to 0, if not defined.
3707
3708 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3709
3710 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3711 <machine/pcb.h> and "bsd-kvm.h".
3712 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3713 (m68kbsd_supply_pcb): New function.
3714 (_initialize_m68kbsd_nat): New prototype and function.
3715 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3716 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3717 (LOADLIBES): New variable.
3718 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3719 (LOADLIBES): New variable.
3720
3721 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3722
3723 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3724
3725 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3726 <sys/proc.h>.
3727 (bsd_kvm_cmdlist): New variable.
3728 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3729 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3730 command and "kvm proc" command.
3731 * Makefile.in (bsd-kvm.o): Update dependencies.
3732
3733 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3734
3735 * osabi.c: Update copyright year.
3736 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3737 notes if EI_OSABI is set to ELFOSABI_HPUX.
3738
3739 2004-07-01 Michael Snyder <msnyder@redhat.com>
3740
3741 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3742 that seems to have gotten whacked out of line.
3743
3744 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3745
3746 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3747 code.
3748
3749 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3750
3751 * ada-lang.c (decode_packed_array): Minor change to comment.
3752 (ada_value_slice_ptr): New function.
3753 (ada_value_slice): New function.
3754 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3755 test. Don't know why it is there.
3756 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3757 to avoid dereferencing huge arrays from which one is slicing.
3758 (empty_array): Correct to return an array rather than
3759 a subrange value.
3760 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3761 on empty arrays (let'em use 'FIRST instead).
3762
3763 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3764
3765 Address complaints from gdb_ari.sh:
3766
3767 * ada-exp.y: Include gdb_string.h rather than string.h.
3768 (convert_char_literal): Reformat declaration.
3769 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3770 * ada-lex.l: Change use of free to xfree (the macro would do so
3771 anyway, but this is harmless).
3772 Include gdb_string.h rather than string.h.
3773 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3774
3775 * ada-lang.c (parse): Remove K&Rism in parameter list.
3776 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3777
3778 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3779
3780 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3781 dead code.
3782
3783 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3784
3785 * alphabsd-nat.c: Update copyright year.
3786 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3787
3788 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3789
3790 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3791 (i386_cygwin_in_solib_call_trampoline): New function.
3792 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3793 and skip_trampoline_code gdbarch methods.
3794
3795 2004-06-29 Jim Blandy <jimb@redhat.com>
3796
3797 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3798 name actually used in the dependency lists.
3799
3800 2004-06-29 Randolph Chung <tausq@debian.org>
3801
3802 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3803
3804 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3805
3806 * win32-nat.c (child_pid_to_exec_file): New function.
3807 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3808 functionality.
3809
3810 2004-06-28 Andrew Cagney <cagney@gnu.org>
3811
3812 * defs.h (xstrvprintf): Declare.
3813 * utils.c (xstrvprintf): New function.
3814 (internal_vproblem, xstrprintf, xasprintf)
3815 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3816 * serial.c (serial_printf): Ditto.
3817 * complaints.c (vcomplaint): Ditto.
3818
3819 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3820
3821 * infcmd.c (attach_command): Move call to target_terminal_inferior
3822 behind loading symbol table.
3823
3824 2004-06-28 Andrew Cagney <cagney@gnu.org>
3825
3826 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3827 change - add back extern deprecated_ui_loop_hook declaration.
3828
3829 2004-06-28 Andrew Cagney <cagney@gnu.org>
3830
3831 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3832 xstrprintf.
3833 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3834 (c_value_of_variable): Ditto.
3835 * utils.c (internal_vproblem): Ditto.
3836 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3837 * remote.c (add_packet_config_cmd): Ditto.
3838 * remote-rdp.c (rdp_set_command_line): Ditto.
3839 * regcache.c (regcache_dump): Ditto.
3840 * frv-tdep.c (new_variant, new_variant): Ditto.
3841 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3842 (fbsd_find_memory_regions): Ditto.
3843 * breakpoint.c (create_thread_event_breakpoint)
3844 (create_breakpoints): Ditto.
3845 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3846 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3847
3848 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3849
3850 * ada-lang.c: Re-indent file, with some massaging to help indent
3851 a bit when the result is otherwise really too ugly.
3852
3853 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3854
3855 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3856 code_addr_p and special_addr_p to 'unsigned int'.
3857
3858 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3859
3860 * i386v4-nat.c: Update copyright year and tweak comment.
3861 (regmap): Remove trailing comma.
3862 (supply_gregset): Rename local variable i to regnum. Call
3863 regcache_raw_supply instead of supply_register.
3864 (fill_gregset): Rename argument regno to regnum. Call
3865 regcache_raw_collect instead of regcache_collect.
3866
3867 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3868
3869 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3870 and special_addr_p.
3871 (frame_id_build, frame_id_build_special): Update comments.
3872 (frame_id_build_wild): New prototype.
3873 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3874 struct frame_id fields.
3875 (frame_id_build_wild): New function.
3876 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3877
3878 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3879
3880 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3881 hppabsd-tdep.c.
3882
3883 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3884
3885 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3886
3887 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3888
3889 * ada-lang.c: Re-indent file.
3890
3891 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3892
3893 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3894 (no_symtab_msg): Likewise.
3895
3896 2004-06-27 Andreas Schwab <schwab@suse.de>
3897
3898 * source.c: Fix whitespace.
3899
3900 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3901
3902 * configure.in: Include <sys/param.h> for td_pcb test.
3903 * configure: Regenerated.
3904
3905 * i386nbsd-nat.c: New file.
3906 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3907 i386obsd-nat.c and i386obsd-tdep.c.
3908 (i386nbsd-nat.o): New dependency.
3909 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3910 bsd-kvm.o.
3911 (LOADLIBES): New variable.
3912 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3913 bsd-kvm.o.
3914 (LOADLIBES): New variable.
3915
3916 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3917 (LOADLIBES): New variable.
3918
3919 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3920 fetching from BSD_KVM_PADDR. Correctly lookup address for
3921 "_thread0".
3922
3923 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3924 "bsd-kvm.h".
3925 (amd64fbsd_supply_pcb): New funcion.
3926 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3927
3928 2004-06-27 <david@streamline-computing.com>
3929
3930 Partial fix for PR cli/1056.
3931 * valarith.c: Check for zero in division and remainder
3932 evaluation.
3933
3934 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3935
3936 * i387-tdep.c: Remove excessive whitespace.
3937
3938 2004-06-26 Andrew Cagney <cagney@gnu.org>
3939
3940 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3941 * gdb-events.h, gdb-events.c: Re-generate.
3942 * tui/tui-hooks.c (tui_install_hooks): Update.
3943 (tui_remove_hooks): Update.
3944 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3945
3946 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3947
3948 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3949 (gregset_t, fpregset_t): Remove typedefs.
3950 (REG_OFFSET): Rename argument.
3951 (amd64bsd_r_reg_offset): Rename from reg_offset.
3952 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3953 Remove functions.
3954 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3955 of reg_offset.
3956 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3957
3958 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3959
3960 * vax-tdep.c: Tweak comment.
3961
3962 Add OpenBSD/hppa support.
3963 * NEWS (New native configurations): Mention OpenBSD/hppa.
3964 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3965 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3966 files.
3967 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3968 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3969 * configure.host: Add hppa*-*-openbsd*.
3970 * configure.tgt: Add hppa*-*-openbsd*.
3971
3972 2004-06-25 Andrew Cagney <cagney@gnu.org>
3973
3974 * defs.h (deprecated_ui_loop_hook): Deprecated.
3975 * wince.c (child_wait): Update.
3976 * win32-nat.c (child_wait): Update.
3977 * v850ice.c (v850ice_wait): Update.
3978 * top.c (deprecated_ui_loop_hook): Update.
3979 * serial.h: Update.
3980 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3981 (do_unix_readchar): Update.
3982 * ser-tcp.c (net_open): Update.
3983 * remote-sim.c (gdb_os_poll_quit): Update.
3984 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3985
3986 2004-06-24 Andrew Cagney <cagney@gnu.org>
3987
3988 * defs.h (deprecated_pre_add_symbol_hook)
3989 (deprecated_post_add_symbol_hook): Deprecated.
3990 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3991 (symbol_file_add_with_addrs_or_offsets): Update references.
3992
3993 2004-06-24 Andrew Cagney <cagney@gnu.org>
3994
3995 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3996 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3997 * wince.c (ui_loop_hook): Delete extern declaration.
3998 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3999 * v850ice.c (ui_loop_hook): Delete extern declaration..
4000 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4001 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4002 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4003 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4004 ui_loop_hook declaration.
4005
4006 2004-06-24 Andrew Cagney <cagney@gnu.org>
4007
4008 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4009 entry_func_highpc fields.
4010 * objfiles.c (init_entry_point_info): Do not clear
4011 entry_func_lowpc and entry_func_highpc.
4012 (objfile_relocate): Do not relocate entry_func_lowpc and
4013 entry_func_highpc.
4014 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4015 entry_func_highpc.
4016 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4017 entry_func_highpc.
4018 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4019 entry_func_lowpc and entry_func_highpc with call to
4020 inside_entry_func.
4021
4022 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4023
4024 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4025 quad-precision floating point arguments in registers.
4026
4027 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4028
4029 From Michael Mueller <m.mueller99@kay-mueller.de>:
4030 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4031 account.
4032
4033 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4034
4035 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4036 to -1.
4037 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4038 untriggered watchpoints to a separate if clause. Update function
4039 comment regarding STOPPED_BY_WATCHPOINT argument.
4040
4041 2004-06-22 Jim Blandy <jimb@redhat.com>
4042
4043 * gdbarch.sh: Doc fix.
4044
4045 2004-06-21 Martin Hunt <hunt@redhat.com>
4046 Kevin Buettner <kevinb@redhat.com>
4047
4048 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4049 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4050 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4051 to set_gdbarch_sp_regnum(). Use cooked register number.
4052 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4053
4054 2004-06-21 Andrew Cagney <cagney@gnu.org>
4055
4056 * gdbarch.sh: When the macro field is empty, do not generate a
4057 macro definition. When the macro field is "=", generate the macro
4058 name from the upper-case function name.
4059 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4060 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4061 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4062 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4063 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4064 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4065 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4066 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4067 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4068 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4069 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4070 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4071 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4072 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4073 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4074 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4075 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4076 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4077 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4078 (DEPRECATED_USE_STRUCT_CONVENTION)
4079 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4080 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4081 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4082 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4083 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4084 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4085 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4086 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4087 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4088 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4089 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4090 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4091 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4092 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4093 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4094 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4095 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4096 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4097
4098 2004-06-21 Andrew Cagney <cagney@gnu.org>
4099
4100 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4101 macro name, and the function rather than macro value. Only wrap
4102 macro print statements in #ifdef. Move format logic to where it
4103 is needed.
4104 * gdbarch.c: Re-generate.
4105
4106 * gdbarch.sh (read): Delete "print_p" and "description", add
4107 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4108 Delete references to print_p.
4109 (TARGET_ARCHITECTURE): Delete print predicate.
4110 * gdbarch.c: Re-generate.
4111
4112 * gdbarch.sh: Check that multi-arch methods do not provide a
4113 macro.
4114 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4115 (print_registers_info, print_float_info, print_vector_info)
4116 (adjust_breakpoint_address, remote_translate_xfer_address)
4117 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4118 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4119 name from the multi-arch definition.
4120
4121 2004-06-20 Andrew Cagney <cagney@gnu.org>
4122
4123 * gdbarch.sh: Sort by the function, instead of macro name.
4124 * gdbarch.c: Re-generate.
4125
4126 2004-06-20 Andrew Cagney <cagney@gnu.org>
4127
4128 * gdbarch.sh: Use the function, instead of macro name in
4129 errors and the log file.
4130 (return_value): Remove stray ":" in spec.
4131
4132 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4133 * gdbarch.h, gdbarch.c: Re-generate.
4134 * Makefile.in (arch-utils.o): Update dependencies.
4135 * values.c (using_struct_return): Move code calling
4136 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4137 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4138 to legacy_return_value, simplify.
4139 * infcmd.c (print_return_value): Move code calling
4140 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4141 to legacy_return_value, simplify.
4142 * infcall.c (call_function_by_hand): Move code calling
4143 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4144 * arch-utils.c: Update copyright. Include "gdbcore.h".
4145 (legacy_return_value): New function.
4146 * arch-utils.h: Update copyright.
4147 (legacy_return_value): Declare.
4148
4149 2004-06-20 Andrew Cagney <cagney@gnu.org>
4150
4151 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4152 * gdbarch.h, gdbarch.c: Re-generate.
4153 * values.c (using_struct_return): Update call.
4154 * mcore-tdep.c: Update comment.
4155 * infcall.c (call_function_by_hand): Update comment.
4156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4157 * arch-utils.h (always_use_struct_convention): Update.
4158 * v850-tdep.c (v850_gdbarch_init): Update.
4159 * sh64-tdep.c (sh64_gdbarch_init): Update.
4160 * sh-tdep.c (sh_gdbarch_init): Update.
4161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4162 * mips-tdep.c (mips_gdbarch_init): Update.
4163 * mcore-tdep.c (mcore_gdbarch_init): Update.
4164 * m32r-tdep.c (m32r_gdbarch_init): Update.
4165 * ia64-tdep.c (ia64_gdbarch_init): Update.
4166 * h8300-tdep.c (h8300_gdbarch_init): Update.
4167 * frv-tdep.c (frv_gdbarch_init): Update.
4168 * cris-tdep.c (cris_gdbarch_init): Update.
4169 * arm-tdep.c (arm_gdbarch_init): Update.
4170 * alpha-tdep.c (alpha_gdbarch_init): Update.
4171
4172 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4173
4174 * PROBLEMS: Add more specific information, and a work-around,
4175 for PR gdb/1458.
4176
4177 2004-06-18 Andrew Cagney <cagney@gnu.org>
4178
4179 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4180 * gdbarch.h, gdbarch.c: Re-generate.
4181 * ada-lang.c (ada_finish_decode_line_1): Update.
4182 * infrun.c (handle_inferior_event): Update.
4183 * infcall.c (find_function_addr): Update.
4184 * linespec.c (minsym_found): Update.
4185 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4186 Update.
4187 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4188 * cli/cli-cmds.c (disassemble_command): Update.
4189 * vax-tdep.c (vax_gdbarch_init): Update.
4190
4191 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4192
4193 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4194
4195 2004-06-17 Andrew Cagney <cagney@gnu.org>
4196
4197 GDB 6.1.1 released from the GDB 6.1 branch.
4198 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4199 * PROBLEMS: Ditto.
4200
4201 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4202
4203 PR gdb/1658
4204 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4205 operation as a uleb128. Found by Michael Coulter.
4206
4207 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4208
4209 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4210 make it non-static.
4211 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4212 to ada-lang.h; this is needed to be able to implement the kill command
4213 in multi-task mode.
4214 (task_ptid): Ditto.
4215 (task_entry): Ditto.
4216 (task_list): Ditto.
4217 (ada_build_task_list): Ditto.
4218
4219 * ada-lang.c: Conditionalize routines and data structures related
4220 to breakpoints, exceptions, completion, and symbol caching on
4221 GNAT_GDB, since these are not yet used in the submitted public sources.
4222 (ada_main_name): Editorial: Move definition out of exception-related
4223 code.
4224
4225 2004-06-15 Andrew Cagney <cagney@gnu.org>
4226
4227 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4228 deprecated_pc_in_call_dummy.
4229
4230 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4231
4232 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4233 bfd_get_section_size_before_reloc or _raw_size.
4234 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4235 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4236 (dwarf2_read_section): Likewise.
4237 * elfread.c (elf_locate_sections): Likewise.
4238 * gcore.c (derive_heap_segment): Likewise.
4239 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4240 * remote-e7000.c (e7000_load): Likewise.
4241 * remote-m32r-sdi.c (m32r_load): Likewise.
4242 * remote-mips.c (mips_load_srec): Likewise.
4243 (pmon_load_fast): Likewise.
4244 * remote.c (compare_sections_command): Likewise.
4245 * symfile.c (add_section_size_callback): Likewise.
4246 (load_section_callback): Likewise.
4247 (pc_in_unmapped_range): Likewise.
4248 (pc_in_mapped_range): Likewise.
4249 (sections_overlap): Likewise.
4250 (list_overlays_command): Likewise.
4251 (simple_overlay_update_1): Likewise.
4252 (simple_overlay_update): Likewise.
4253 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4254 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4255
4256 2004-06-14 Randolph Chung <tausq@debian.org>
4257
4258 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4259 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4260 static.
4261 (hppa_hpux_inferior_created): New function.
4262 (hppa_hpux_init_abi): Register observer.
4263 * symfile.c (hp_cxx_exception_support_initialized)
4264 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4265 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4266
4267 2004-06-14 Randolph Chung <tausq@debian.org>
4268
4269 * MAINTAINERS (Write After Approval): Alphabetize my entry
4270 correctly.
4271
4272 2004-06-14 Andrew Cagney <cagney@gnu.org>
4273
4274 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4275 testsuite maintainer.
4276
4277 2004-06-13 Andrew Cagney <cagney@gnu.org>
4278
4279 * infcmd.c (print_return_value): Fix logic, allow
4280 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4281
4282 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4283 defining any macros.
4284 * gdbarch.h: Re-generate.
4285
4286 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4287 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4288 * gdbarch.h: Re-generate.
4289
4290 * values.c (generic_use_struct_convention): Don't check gcc_p.
4291
4292 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4293 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4294 * gdbarch.h, gdbarch.c: Regenerate.
4295 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4296 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4298 deprecated_max_register_raw_size and
4299 deprecated_max_register_virtual_size.
4300 * v850-tdep.c (v850_gdbarch_init): Ditto.
4301 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4302 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4303 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4304 * cris-tdep.c (cris_gdbarch_init): Ditto.
4305
4306 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4307 * gdbarch.h, gdbarch.c: Re-generate.
4308 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4309 (m68hc11_use_struct_convention): Delete function.
4310 (m68hc11_extract_struct_value_address): Delete function.
4311 (m68hc11_return_value): New function.
4312 (m68hc11_gdbarch_init): Instead of store_return_value,
4313 extract_return_value, return_value_on_stack,
4314 deprecated_extract_struct_value_address and use_struct_convention,
4315 set return_value.
4316 * values.c (using_struct_return): Do not call
4317 RETURN_VALUE_ON_STACK.
4318 * arch-utils.h (generic_return_value_on_stack_not): Delete
4319 declaration.
4320 * arch-utils.c (generic_return_value_on_stack_not): Delete
4321 function.
4322
4323 2004-06-12 Andrew Cagney <cagney@gnu.org>
4324
4325 * values.c (register_value_being_returned): Delete function.
4326 * infcmd.c (legacy_return_value): Delete function.
4327 * infcall.c (call_function_by_hand): Inline
4328 "register_value_being_returned", simplify.
4329 * values.c (using_struct_return): Update comment, refer to
4330 print_return_value instead of register_value_being_returned.
4331 * infcmd.c (print_return_value): Inline calls to
4332 register_value_being_returned and legacy_return_value. Simplify.
4333
4334 2004-06-11 Randolph Chung <tausq@debian.org>
4335
4336 * somread.c (som_symtab_read): Exclude gcc local symbols.
4337
4338 2004-06-11 Randolph Chung <tausq@debian.org>
4339
4340 * infrun.c (handle_inferior_event): Handle the case when a
4341 trampoline ends up in the runtime resolver, and if the trampoline
4342 has no name. Rearrange the code so that all the trampoline
4343 processing happens before other step-out-of-range handling.
4344
4345 2004-06-11 Martin Hunt <hunt@redhat.com>
4346
4347 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4348 has no fpu.
4349
4350 2004-06-10 Andrew Cagney <cagney@gnu.org>
4351
4352 * blockframe.c (legacy_inside_entry_func): Delete.
4353 (legacy_frame_chain_valid): Inline call to
4354 legacy_inside_entry_func, simplify.
4355
4356 2004-06-10 Bob Rossi <bob@brasko.net>
4357
4358 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4359 * dwarf2read.c (partial_die_info): Add dirname field.
4360 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4361 (read_partial_die): Save away DW_AT_comp_dir.
4362 * defs.h (symtab_to_filename): Removed.
4363 * source.c (find_and_open_source): Added.
4364 (open_source_file): Just calls find_and_open_source.
4365 (symtab_to_filename): Removed.
4366 (symtab_to_fullname, psymtab_to_fullname): Added.
4367 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4368 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4369 symtab_to_filename.
4370 * symtab.h (partial_symtab): Add dirname field.
4371 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4372 (mi_cmd_file_list_exec_source_file): Call new function
4373 symtab_to_fullname to find fullname.
4374 (mi_cmd_file_list_exec_source_files): Added.
4375 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4376 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4377
4378 2004-06-10 Andrew Cagney <cagney@gnu.org>
4379
4380 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4381 to generic_use_struct_convention, the default value.
4382
4383 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4384 of abort.
4385
4386 * ns32k-tdep.c (ns32k_push_arguments): New function.
4387 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4388 * infcall.c (call_function_by_hand): Call error instead of
4389 legacy_push_arguments.
4390 * value.h (legacy_push_arguments): Delete declaration.
4391 * valops.c (legacy_push_arguments): Delete function.
4392 (value_push): Delete function.
4393
4394 2004-06-10 Brian Ford <ford@vss.fsi.com>
4395
4396 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4397 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4398 info.
4399 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4400
4401 2004-06-10 Andrew Cagney <cagney@gnu.org>
4402
4403 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4404 * gdbarch.h, gdbarch.c: Re-generate.
4405 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4406 parameters.
4407 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4408 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4409 deprecated_pc_in_call_dummy instead of
4410 DEPRECATED_PC_IN_CALL_DUMMY.
4411 (arm_skip_prologue): Ditto.
4412 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4413 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4414 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4415 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4416 Ditto.
4417 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4418 (sh64_init_extra_frame_info, sh64_get_saved_register)
4419 (sh64_pop_frame): Ditto.
4420 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4421 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4422 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4423 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4424 (h8300_pop_frame): Ditto.
4425 * blockframe.c (legacy_inside_entry_func)
4426 (legacy_frame_chain_valid): Ditto.
4427 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4428 to deprecated_pc_in_call_dummy.
4429
4430 2004-06-09 Andrew Cagney <cagney@gnu.org>
4431
4432 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4433 provide a default value.
4434 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4435 * gdbarch.h, gdbarch.c: Re-generate.
4436 * arch-utils.c (generic_convert_register_p): Rename
4437 legacy_convert_register_p
4438 (legacy_register_to_value, legacy_value_to_register): Delete
4439 functions.
4440 * arch-utils.h (generic_convert_register_p): Rename
4441 legacy_convert_register_p.
4442 (legacy_register_to_value, legacy_value_to_register): Delete
4443 declarations.
4444
4445 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4446 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4447 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4448 * gdbarch.h, gdbarch.c: Re-generate.
4449 * infcmd.c (default_print_registers_info): Simplify.
4450 * findvar.c (value_of_register): Simplify.
4451 * mi/mi-main.c (get_register): Simplify.
4452 * arch-utils.c (legacy_convert_register_p): Always return 0.
4453 (legacy_register_to_value, legacy_value_to_register): Always call
4454 internal_error.
4455
4456 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4457 #ifdef CLEAR_INSN_CACHE code.
4458 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4459 Delete #ifdef CLEAR_DEFERRED_STORES code.
4460
4461 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4462
4463 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4464 copyright.
4465 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4466
4467 * config/mips/mipsv4.mh: Delete file.
4468
4469 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4470 unreferenced macro.
4471 (hpread_adjust_stack_address): Delete declaration.
4472
4473 2004-06-08 Andrew Cagney <cagney@gnu.org>
4474
4475 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4476 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4477 PTRACE_ATTACH / PTRACE_DETACH available call error.
4478 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4479 * infttrace.c (update_thread_state_after_attach, attach, detach):
4480 Remove #ifdef wrappers.
4481 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4482 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4483 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4484 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4485 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4486 * config/nm-linux.h (ATTACH_DETACH): Delete.
4487 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4488 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4489 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4490 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4491 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4492
4493 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4494
4495 * configure.in: Set $configdir to the right OS specific value.
4496 Use value when setting $tcldir and $tkdir.
4497 * configure: Regenerate.
4498
4499 2004-06-06 Paul Brook <paul@codesourcery.com>
4500
4501 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4502 records.
4503
4504 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4505
4506 * ada-lang.c (lookup_symbol_in_language): New function to allow
4507 re-use of another language's symbol lookup code. (Placed here
4508 temporarily while Ada support is being integrated into the public
4509 tree).
4510 (restore_language): New auxiliary function for
4511 lookup_symbol_in_language.
4512 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4513 temporarily while Ada support is being integrated into the public
4514 tree).
4515
4516 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4517
4518 * Makefile.in (check//%): New.
4519
4520 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4521 (mn10300_store_return_value): Rewrite.
4522 (mn10300_type_align): New.
4523 (mn10300_use_struct_convention): Rewrite.
4524 (mn10300_return_value): New, using all of the above.
4525 (mn10300_pop_frame_regular): Add saved_regs_size.
4526 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4527
4528 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4529 regs if PC is on movm.
4530
4531 2004-06-07 Jim Blandy <jimb@redhat.com>
4532
4533 Add native Linux support for the PowerPC E500.
4534 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4535 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4536 all architectures except the E500.
4537 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4538 #definitions.
4539 (struct gdb_evrregset_t): New type.
4540 (have_ptrace_getsetevrregs): New variable.
4541 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4542 fetch_spe_registers): New functions.
4543 (fetch_register): Call fetch_spe_register as appropriate.
4544 Assert that we're only passed raw register numbers.
4545 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4546 Don't fetch gprs if they're pseudoregisters.
4547 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4548 store_spe_registers): New functions.
4549 (store_register): Call store_spe_register as appropriate.
4550 Assert that we're only passed raw register numbers.
4551 (store_ppc_registers): Call store_spe_registers as appropriate.
4552 Don't store gprs if they're pseudoregisters.
4553
4554 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4555
4556 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4557 struct if one exists, even if we are dealing with a zombie thread.
4558
4559 2004-06-07 Andrew Cagney <cagney@gnu.org>
4560
4561 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4562 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4563 Rename PC_REQUIRES_RUN_BEFORE_USE.
4564 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4565 #ifdef.
4566
4567 2004-06-07 Randolph Chung <tausq@debian.org>
4568
4569 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4570 unwinding after sp has been saved to the stack but before the end
4571 of the prologue, and after the fp has been modified but before it has
4572 been saved to the stack.
4573 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4574 Remove superfluous definitions.
4575 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4576
4577 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4578
4579 Committed by Randolph Chung.
4580 * hppa-linux-nat.c: Include the correct version of the header file
4581 depending on the kernel version.
4582
4583 2004-06-06 Randolph Chung <tausq@debian.org>
4584
4585 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4586 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4587
4588 2004-06-06 Randolph Chung <tausq@debian.org>
4589
4590 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4591 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4592 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4593 * hppa-tdep.c (hppa_symbol_address): New function definition.
4594 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4595
4596 2004-06-06 Randolph Chung <tausq@debian.org>
4597
4598 * hppa-tdep.h (struct value): Forward declaration.
4599 (gdbarch_tdep): Define tdep find_global_pointer method.
4600 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4601 associated with the function we are trying to call, and write it
4602 to the gp register.
4603 (hppa32_convert_from_funct_ptr_addr): New function.
4604 (hppa_find_global_pointer): New function.
4605 (hppa_gdbarch_init): Set default find_global_pointer method; set
4606 convert_from_func_ptr_addr method.
4607 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4608 (hppa_linux_init_abi): Set find_global_pointer method.
4609 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4610
4611 2004-06-06 Randolph Chung <tausq@debian.org>
4612
4613 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4614 to struct value *function.
4615 * gdbarch.c: Regenerate.
4616 * gdbarch.h: Likewise.
4617 * infcall.c (call_function_by_hand): Pass entire function value
4618 to push_dummy_call.
4619
4620 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4621 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4622 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4623 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4624 * arm-tdep.c (arm_push_dummy_call): Likewise.
4625 * avr-tdep.c (avr_push_dummy_call): Likewise.
4626 * cris-tdep.c (cris_push_dummy_call): Likewise.
4627 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4628 * frv-tdep.c (frv_push_dummy_call): Likewise.
4629 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4630 * hppa-tdep.c (hppa32_push_dummy_call)
4631 (hppa64_push_dummy_call): Likewise.
4632 * i386-tdep.c (i386_push_dummy_call): Likewise.
4633 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4634 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4635 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4636 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4637 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4638 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4639 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4640 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4641 (ppc64_sysv_abi_push_dummy_call): Likewise.
4642 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4643 (ppc64_sysv_abi_push_dummy_call): Likewise.
4644 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4645 * s390-tdep.c (s390_push_dummy_call): Likewise.
4646 * sh-tdep.c (sh_push_dummy_call_fpu)
4647 (sh_push_dummy_call_nofpu): Likewise.
4648 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4649 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4650 * vax-tdep.c (vax_push_dummy_call): Likewise.
4651
4652 2004-06-04 Jim Blandy <jimb@redhat.com>
4653
4654 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4655 gdbarch argument to register_size.
4656
4657 * rs6000-tdep.c (rs6000_store_return_value): Use
4658 regcache_cooked_write_part instead of
4659 deprecated_write_register_bytes.
4660 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4661 not gdbarch_deprecated_store_return_value.
4662
4663 * ppc-linux-nat.c (store_register, fetch_register): Remove
4664 incorrect assertions. Simplify and generalize handling of
4665 transfers whose sizes are not multiples of, or less than, sizeof
4666 (PTRACE_XFER_TYPE).
4667
4668 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4669
4670 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4671 as a new thread event.
4672 * thread-db.c (thread_get_info_callback): If the thread is a
4673 zombie, return TD_THR_ZOMBIE.
4674 (thread_from_lwp): If thread_get_info_callback returns
4675 TD_THR_ZOMBIE, check if the thread is still on the thread list
4676 and return a -1 ptid if not found.
4677 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4678 change the status to TARGET_WAITKIND_SPURIOUS.
4679
4680 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4681
4682 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4683 double values in little endian mode.
4684
4685 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4686
4687 Committed by Andrew Cagney.
4688 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4689 after last enum constant to avoid error from IBM C
4690 compiler.
4691
4692 2004-06-02 Jim Blandy <jimb@redhat.com>
4693
4694 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4695 to 'message', and make it local to the lone block that uses it.
4696
4697 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4698
4699 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4700
4701 * ada-exp.y: Update copyright notice.
4702 Include block.h.
4703
4704 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4705 SPECIAL_VARIABLE and unify the treatment of these cases.
4706
4707 (write_attribute_call0): Remove.
4708 (write_attribute_call1): Remove.
4709 (write_attribute_calln): Remove.
4710 (save_qualifier): Add missing semicolon.
4711
4712 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4713 temporarily disabled to allow compilation with FSF head version.
4714
4715 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4716 use individual operators (OP_*) for all attributes.
4717 (exp syntax): Use write_int.
4718 Handle STRING literals with OP_STRING.
4719 (variable syntax): Add limit parameter to calls to
4720 write_object_renaming.
4721
4722 (temp_parse_space): New definition to hold entities that need
4723 only live until the next call to ada_parse.
4724 (string_to_operator): Rename fields of ada_opname_table entries.
4725
4726 (write_var_from_sym): Record block.
4727 (write_var_from_name): Minor reformatting.
4728 Make sure saved name is properly encoded in the case of multiple
4729 matches, and set its language to Ada.
4730 Update comment.
4731 Modify to indicate unresolved name as symbol in the UNRESOLVED
4732 namespace, allocated in temp_parse_space.
4733 (write_int): New function.
4734
4735 (write_object_renaming): Add max_depth parameter to limit
4736 chains of object renamings.
4737 Handle case where root of renaming expression is itself a renaming.
4738 Use temp_parse_space for temporary name buffer.
4739 Handle renamings to dereferenced pointers (___XEXA suffices).
4740
4741 (ada_parse, yyerror, string_to_operator,
4742 write_var_from_sym, write_var_from_name, write_attribute_call0,
4743 write_attribute_call1, write_attribute_calln,
4744 write_object_renaming): Protoize.
4745
4746 (_initialize_ada_exp): New function.
4747
4748 * ada-lang.c: Update copyright notice.
4749 General terminology change to conform to GNAT compiler usage:
4750 mangle => encode, demangle => decode
4751 Include gdb_obstack.h.
4752 Include gdb_regex.h
4753 Include frame.h
4754 Include hashtab.h
4755 Include completer.h
4756 Include gdb_stat.h
4757 Include block.h
4758 Include infcall.h
4759
4760 (ADA_RETAIN_DOTS): Make sure this is defined.
4761 (TRUNCATION_TOWARDS_ZERO): Define.
4762 (struct string_vector): Define.
4763 (unresolved_names): Remove definition.
4764 (xnew_string_vector): New function.
4765 (string_vector_append): New function.
4766 (extract_string): Make static.
4767 (ada_unqualified_name): New function.
4768 (add_angle_brackets): New function.
4769 (function_name_from_pc): New function.
4770 (place_on_stack): Rename to ensure_lval.
4771
4772 (ensure_lval): Renamed from place_on_stack.
4773 Make identity on lvals.
4774 Update comment.
4775 (is_nonfunction): New interface.
4776 Only symbols in LOC_CONST class can be enumerals.
4777 (fill_in_ada_prototype): Remove; now independent of language.
4778 (add_defn_to_vec): Add obstack and symtab arguments.
4779 Use obstack to hold collected definitions.
4780 (num_defns_collected): New function.
4781 (defns_collected): New function.
4782 (ada_resolve_subexp): Rename to resolve_subexp.
4783 (resolve_subexp): Renamed from ada_resolve_subexp.
4784 (ada_op_name): Return non-const result.
4785 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4786 other purposes.
4787
4788 (to_fixed_array_type): Add declaration.
4789 (coerce_unspec_val_to_type): Remove offset parameter.
4790 (find_sal_from_funcs_and_line): New interface.
4791 (find_line_in_linetable): Ditto.
4792
4793 (all_sals_for_line): Rename to ada_sals_for_line and make
4794 global.
4795 Add new parameter. When set, do not ask the user to choose the
4796 instance, but use the first one found instead.
4797 Use given line number in returned sals.
4798 Fix comment.
4799 Skip the prologue if funfirstline is set.
4800 Correct for memory leak when 0 lines found.
4801
4802 (value_pos_atr): Use pos_atr.
4803 (pos_atr): New function.
4804 (standard_lookup): Add block parameter.
4805
4806 (makeTimeStart): Remove declaration and uses.
4807 (makeTimeStop): Remove declaration and uses.
4808
4809 (ada_completer_word_break_characters): Allow for VMS.
4810 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4811 (raise_sym_name): New constant.
4812 (raise_unhandled_sym_name): New constant.
4813 (raise_assert_sym_name): New constant.
4814 (process_raise_exception_name): New constant.
4815 (longest_exception_template): New constant.
4816 (warning_limit): New variable to limit warnings during expression
4817 evaluation.
4818 (warnings_issued): New variable to keep track of warnings issued.
4819 (known_runtime_file_name_patterns): New constant.
4820 (known_auxiliary_function_name_patterns): New constant.
4821 (symbol_list_obstack): New variable.
4822
4823 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4824 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4825 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4826 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4827 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4828 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4829 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4830 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4831 and strcmp.
4832
4833 (ada_get_field_index): New function.
4834 (lim_warning): New function.
4835 (ada_translate_error_message): New function.
4836 (MAX_OF_SIZE): New function.
4837 (MIN_OF_SIZE): New function.
4838 (UMAX_OF_SIZE): New function.
4839 (UMIN_OF_SIZE): New function.
4840 (discrete_type_high_bound): New function.
4841 (discrete_type_low_bound): New function.
4842 (base_type): New function.
4843 (do_command): Remove.
4844
4845 (ada_update_initial_language): Use language_ada, not language_unknown.
4846 (ada_encode): Renamed from ada_mangle.
4847 Obey ADA_RETAIN_DOTS.
4848 (ada_decode): Renamed from ada_demangle.
4849 Update coding conventions.
4850 (decoded_names_store): New hash table.
4851 (ada_decode_symbol): New function.
4852 (ada_la_decode): New function.
4853
4854 (modify_general_field): Correct computations of offset and bit
4855 position.
4856 (desc_base_type): Handle ref types, too.
4857 (ada_is_direct_array_type): New function.
4858
4859 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4860 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4861 (ada_is_bogus_array_descriptor,ada_type_of_array,
4862 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4863 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4864 ada_is_array_descriptor_type.
4865
4866 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4867 (ada_is_packed_array_type): Handle pointers or
4868 references to packed arrays as well.
4869 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4870 (decode_packed_array_type): Search for the packed array type
4871 symbol in the currently selected block and associated
4872 superblocks too.
4873 Use lookup_symbol again.
4874
4875 (decode_packed_array): Handle pointers and references.
4876 Update call to coerce_unspec_val_to_type.
4877 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4878 (ada_value_primitive_packed_val): Improve comment.
4879
4880 (ada_index_type): Substitute int type for "undefined".
4881 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4882 ada_array_langth, ada_is_string_type): Use renamed
4883 ada_is_simple_array_type.
4884 (empty_array): New function.
4885
4886 (ada_resolve): Rename to resolve.
4887 (resolve): Make static.
4888 Call renamed resolve_subexp.
4889 Update comment.
4890 (ada_resolve_subexp): Rename to resolve_subexp.
4891 (resolve_subexp): Update comment.
4892 Decomment disabled code.
4893 Add LOC_COMPUTED* cases.
4894 Modify to use temporary struct symbols (marked as being in
4895 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4896 OP_UNRESOLVED_VALUE.
4897 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4898 Add OP_STRING case.
4899 Remove OP_ARRAY.
4900 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4901 Use new ada_lookup_symbol_list interface.
4902 Use new ada_resolve_function interface.
4903 Remove OP_TYPE case.
4904
4905 (ada_args_match): Idiot proof against null actuals.
4906 Use intermediate variables to clarify.
4907 (ada_resolve_function): Update comment and interface.
4908 (mangled_ordered_before): Rename to encoded_ordered_before and
4909 update comment.
4910 (sort_choices): Update comment and interface.
4911 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4912 (user_select_syms): New interface.
4913 Use new sort_choices interface.
4914 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4915 (possible_user_operator_p): Idiot-proof against null values.
4916 (ada_simple_renamed_entity): Don't make cleanup; rely on
4917 caller to free result string.
4918 Remove const from return type.
4919 (make_array_descriptor): Rename uses of place_on_stack to
4920 ensure_lval.
4921 Make sure that arrays are on stack.
4922
4923 (HASH_SIZE): Define.
4924 (struct cache_entry): Define.
4925 (cache_space): Define.
4926 (cache): Define.
4927 (clear_ada_sym_cache): New function.
4928 (find_entry): New function.
4929 (lookup_cached_symbol): New function.
4930 (defn_vector_size): Define.
4931 (cache_symbol): New function.
4932 (defn_symbols): Remove.
4933
4934 (standard_lookup): Use lookup_symbol_in_language to get effect of
4935 C lookup.
4936 Cache results.
4937
4938 (symbol_completion_match): New function.
4939 (symbol_completion_add): New function.
4940 (ada_make_symbol_completion_list): New function.
4941
4942 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4943 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4944 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4945 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4946
4947 (ada_lookup_simple_minsym): New function.
4948 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4949
4950 (add_symbols_from_enclosing_procs): New interface.
4951 Conditionalize more helpfully.
4952 Don't bother if program isn't running.
4953 Use new interface to get_frame_block.
4954 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4955
4956 (remove_extra_symbols): New interface.
4957 (xget_renaming_scope): New function.
4958 (is_package_name): New function.
4959 (renaming_is_visible): New function.
4960 (remove_out_of_scope_renamings): New function.
4961
4962 (ada_lookup_symbol_list): New interface.
4963 Properly reinitialize the symbol list obstack.
4964 Don't call add_symbols_from_enclosing_procs if we start from a
4965 static or global block.
4966 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4967 add_symbols_from_enclosing_procs.
4968 Add symtab data to cached entries.
4969 Handle symbols prefixed with
4970 "standard__" specially; strip prefix and don't look in local symbols.
4971 Do not include out of scope renaming symbols in list of
4972 symbols returned.
4973 Add const to block parameter.
4974 Move check for non-local, non-global symbols earlier.
4975 Remove timing stuff.
4976 (ada_lookup_symbol): New interface.
4977 Find symtab as well.
4978 (ada_lookup_symbol_nonlocal): New function.
4979
4980 (is_name_suffix): Enhance suffix detection to recognize
4981 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4982 (is_dot_digits_suffix): New function.
4983 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4984
4985 (ada_add_block_symbols): New interface. Use obstack to return results
4986 in a vector of struct ada_symbol_infos. Add symtab argument.
4987 Use new interface to add_defn_to_vec.
4988 Remove calls to fill_in_ada_prototype.
4989 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4990
4991 (ada_finish_decode_line_1): Add const qualification to local to fix
4992 warning.
4993 Start looking in static block for functions to avoid attempts
4994 to search frame chain for up-level variables.
4995 Adapt to new ada_sals_for_line interface.
4996 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4997 Handle quoting of the function name inside the spec string.
4998 Skip prologue when funfirstline is set and update the
4999 function documentation to that effect.
5000
5001 (debug_print_lines, debug_print_block, debug_print_blocks,
5002 debug_print_symtab): Remove.
5003
5004 (ada_main_name): New function.
5005 (ada_exception_breakpoint_type): New function.
5006 (is_known_support_routine): New function.
5007 (ada_find_printable_frame): Renamed from find_printable_frame and made
5008 global.
5009 Remove level parameter.
5010 Use new interface to select_frame.
5011
5012 (begin_command): Remove.
5013 (ada_adjust_exception_stop): New function.
5014 (ada_print_exception_stop): New function.
5015 (exception_name_from_cond): New function.
5016 (ada_report_exception_break): Replace disabled code with
5017 conditionalization on GNAT_GDB.
5018 Get the exception name from the condition string.
5019 Remove and move functionality into new functions
5020 ada_print_exception_breakpoint_task and
5021 ada_print_exception_breakpoint_nontask.
5022 (error_breakpoint_runtime_sym_not_found): New function.
5023 (is_runtime_sym_defined): New function.
5024 (ada_breakpoint_rewrite): Uncomment suppressed code.
5025 Use symbolic error-message and runtime-symbol names.
5026 Surround runtime symbol names in quotes.
5027 Allow non-specific breakpoints on exceptions and assertions before
5028 program starts.
5029
5030 (ada_is_tagged_type): Add parameter.
5031 (ada_is_tag_type): New function.
5032 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5033 (ada_variant_discrim_type): Ditto.
5034 (value_tag_from_contents_and_address): New function.
5035 (type_from_tag): New function.
5036 (struct tag_args): New structure used to communicate with
5037 ada_tag_name_1.
5038 (ada_tag_name_1): New function.
5039 (ada_tag_name): New function.
5040
5041 (ada_scan_number): Update comment.
5042 (find_struct_field): New function.
5043 (ada_search_struct_field): Make static.
5044 (ada_value_struct_elt): New version that returns references when
5045 given pointers or references to structs.
5046 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5047 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5048 interface.
5049 (ada_value_ind): Use new ada_to_fixed_value interface.
5050 (ada_coerce_ref): Ditto.
5051 (field_offset): Remove.
5052
5053 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5054 (ada_find_renaming_symbol): New function.
5055 (ada_prefer_type): Prefer named types over unnamed ones.
5056 (variant_field_index): New function.
5057 (contains_variant_part): Removed: subsumed by variant_field_index.
5058 (ada_template_to_fixed_record_type): New function, mostly from
5059 template_to_fixed_record_type.
5060 (template_to_fixed_record_type):
5061 Do not scan the type fields beyond the last one; prevents a
5062 potential SEGV.
5063 Handle case where variant field is listed BEFORE discriminant it
5064 depends on.
5065 Fix calculation of record length when bit length is
5066 not evenly divisible by char length.
5067 Move code to ada_template_to_fixed_record_type and call it.
5068
5069 (template_to_static_fixed_type): Revise comment.
5070 Modify to work on ordinary record types as well as templates,
5071 so as to handle fields that use ___XVE or ___XVU encodings.
5072 (to_record_with_fixed_variant_part): Fill out comment.
5073 Initialize C++ stuff in right type.
5074 Allow case where DVAL is null.
5075 Handle case where variant field is not last.
5076 Fix typo concerning record length.
5077 (to_fixed_record_type): Decomment disabled code.
5078 (to_fixed_record_type): Use variant_field_index instead of
5079 contains_variant_part.
5080 (to_fixed_variant_branch_type): Ditto.
5081 (to_fixed_array_type): Decomment disabled code.
5082 (ada_to_fixed_type): Convert tagged types to the specific type.
5083 Deactivate the size-check for array types in order to avoid
5084 some false size alarms.
5085 (to_static_fixed_type): Decomment disabled code.
5086 Modify to call template_to_static_fixed_type
5087 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5088 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5089 Remove valaddr argument, as it is never really used.
5090 (ada_to_fixed_value): Change interface to act on single struct value*
5091 operand.
5092 (adjust_pc_past_prologue): New function.
5093 (ada_attribute_name): Modify to take enum exp_opcode argument.
5094
5095 (ada_enum_name): Recognize new homonym-distinguishing convention.
5096 Adjust local variable's type to remove compiler warning.
5097 Fix a small problem in the part that unqualifies the enumeration name.
5098 (ada_value_binop): New function.
5099 (ada_value_equal): New function.
5100
5101 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5102 Don't give error message when not doing normal evaluation
5103 and a tagged type doesn't seem to contain a structure member.
5104 Give error message for packed arrays.
5105 For indexing arrays, handle pointers to packed arrays correctly.
5106 Handle case of 'first and 'last attributes of bare integral type
5107 without encoded subtype info.
5108 Remove some unnecessary casts.
5109 Fix uninitialized value of type in computing 'first, 'last, or 'length
5110 of array object.
5111 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5112 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5113 calls.
5114 Attributes are now exp_opcode values.
5115 Correct treatment of 'modulus.
5116 Better error message for taking 'length of wrong kind of type;
5117 improve comment.
5118 Change EVAL_NORMAL to noside for consistency.
5119 Use ada_value_binop for DIV, MOD, REM.
5120 Make special case out of array of length 0, since an argument
5121 of 0 upsets some platforms' malloc.
5122 Use OP_STRING instead of OP_ARRAY.
5123 For slice, add check that we have an array type before extracting
5124 a slice out of it. Avoids a SEGV.
5125 When evaluating an array slice, if the array type is a reference to
5126 an aligner type, then replace the aligner type by the actual type.
5127 Decomment disabled code.
5128 Remove some dead code.
5129 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5130 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5131 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5132 and UNOP_MBR to UNOP_IN_RANGE.
5133 If an array type has a parallel ___XVE type, then use it.
5134 Turn arrays into pointers for lvalue arrays.
5135 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5136 bounds error and handle 0-length slices.
5137 Use lim_warning.
5138 When selecting fields, apply ada_to_fixed_value (because the fields
5139 might have ___XVU or ___XVE encodings even if not dynamic.)
5140 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5141 (ada_is_system_address_type): New function.
5142
5143 (get_var_value): Use new interface to ada_lookup_symbol_list.
5144 (get_int_var_value): New interface.
5145 (to_fixed_range_type): Allow unknown bound, with warning.
5146 (ada_is_modular_type): Decomment disabled code.
5147 (ADA_OPERATORS): New definition.
5148 (ada_operator_length): New function.
5149 (ada_expr_op_name): New function.
5150 (ada_forward_operator_length): New function.
5151 (ada_dump_subexp_body): New function.
5152 (ada_print_subexp): New function.
5153 (ada_exp_descriptor): New constant.
5154 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5155 (ada_language_defn): Add ada_exp_descriptor entry.
5156 Change ada_parse => parse.
5157 Add post-parser entry.
5158 Use ada-specific non-local symbol lookup.
5159 Don't use C-style arrays.
5160 String lower-bound is 1.
5161 Decomment disabled code.
5162 (parse): New function.
5163 New fields ada_translate_error_message, ada_lookup_symbol,
5164 ada_lookup_minimal_symbol.
5165
5166 * ada-lang.h: Update copyright dates.
5167 Replace the mangle/demangle terminology throughout by the
5168 more appropriate encode/decode one.
5169 Include breakpoint.h.
5170 Forward declare struct partial_symbol, struct block.
5171 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5172 (EXTRACT_ADDRESS): Remove.
5173 (EXTRACT_INT): Remove.
5174 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5175 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5176 (MAX_RENAMING_CHAIN_LENGTH): Define.
5177 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5178
5179 (enum task_states): Remove.
5180 ada_task_states: Remove.
5181 (fat_string): Remove.
5182 (struct entry_call): Remove.
5183 (struct task_fields): Remove.
5184 (struct task_entry): Remove.
5185
5186 (struct ada_symbol_info): Define.
5187 (enum ada_attribute): Remove.
5188 (enum ada_operator): Define.
5189
5190 (ada_get_field_index): Declare.
5191 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5192 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5193 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5194 (ada_lookup_symbol_list): New interface.
5195 (ada_decode_symbol): Declare.
5196 (ada_decode): Declare.
5197 (ada_lookup_symbol): New interface.
5198 (ada_update_initial_language): Declare.
5199 (ada_lookup_simple_minsym): Declare.
5200 (user_select_syms): New interface.
5201 (ada_sals_for_line): Declare.
5202 (ada_is_tagged_type): New interface.
5203 (ada_tag_name): Declare.
5204 (ada_lookup_struct_elt_type): Remove declaration.
5205 (ada_search_struct_field): Remove declaration.
5206 (ada_attribute_name): New interface.
5207 (ada_is_system_address_type): Declare.
5208 (ada_to_fixed_value): Remove declaration.
5209 (ada_template_to_fixed_record_type_1): Declare.
5210 (get_int_var_value): New interface.
5211 (ada_find_any_symbol): Declare.
5212 (ada_find_renaming_symbol): Declare.
5213 (ada_mangle): Rename to ada_encode.
5214 (ada_simple_renamed_entity): Remove const.
5215 (ada_main_name): Declare.
5216 (get_current_task): Rename to ada_get_current_task.
5217 (get_entry_number): Remove declaration.
5218 (ada_report_exception_break): Remove declaration.
5219 (ada_print_exception_breakpoint_nontask): Declare.
5220 (ada_print_exception_breakpoint_task): Declare.
5221 (ada_find_printable_frame): Declare.
5222
5223 * ada-lex.l: Update copyright notices.
5224 Use xmalloc and xfree instead of malloc and free.
5225 Use new interface to name_lookup.
5226 Use new interface to
5227 ada_mangle=>ada_encode.
5228 Redo handling of '$...' variable to parallel current treatment
5229 in c-exp.y.
5230 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5231 digit_to_int, strtoulst, processInt, processReal, processId,
5232 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5233 yywrap): Protoize.
5234
5235 (processInt): Use cast to remove harmless warning.
5236 (processReal): Modify to get rid of compiler warning on scan formats.
5237
5238 (processId): Replace xmalloc with obstack_alloc for name and remove
5239 call to ada_name_string_cleanup.
5240 Remove obsolete disabled code.
5241 (name_lookup): Ditto.
5242 New interface.
5243 Use obsavestring on temp_parse_space instead of savestring
5244 on name, and remove call to ada_name_string_cleanup.
5245 Free string returned from ada_simple_renamed_entity.
5246 Use new interface to ada_lookup_symbol_list.
5247 Decomment disabled code.
5248 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5249 not types.
5250 When a type name lookup succeeds as a result of
5251 lookup_primitive_typename, check for regular type entry that has not
5252 yet been read in.
5253 Limit length of chain of renamed symbols we are willing to follow.
5254 Do not break names beginning with "standard__" into segments.
5255 (block_lookup): Use new interface to ada_lookup_symbol_list.
5256
5257 * ada-typeprint.c: Update copyright notice.
5258 (demangled_type_name): Rename to decoded_type_name.
5259 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5260 (print_range_bound): Correct handling of negative
5261 bounds that make the index type looked unsigned under STABS.
5262 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5263 (print_range_type_named): Use the builtin int type if no type
5264 corresponding to the given type name could be found.
5265 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5266 Add some bullet-proofing.
5267 (print_variant_clauses): Allow for variant branches with ___XVU
5268 encodings that are not dynamic fields.
5269 Use new interface to ada_is_tagged_type.
5270 (print_record_type): Allow for fields with ___XVE encodings that
5271 are not dynamic fields.
5272 Use new interface to ada_is_tagged_type.
5273 (ada_print_type): ada_is_array_descriptor =>
5274 ada_is_array_descriptor_type.
5275
5276 * ada-valprint.c: Update copyright notice.
5277 Include gdb_string.h
5278 Include infcall.h
5279 (ui_memcpy): New function.
5280 (ada_print_floating): New function.
5281 (ada_print_str): Order arguments correctly.
5282 Correct handling of empty arrays and arrays of 0-length items.
5283 ada_is_array_descriptor => ada_is_array_descriptor_type
5284 Print values of type System.Address in hexadecimal format.
5285 Use ada_print_floating to print floating-point numbers in Ada format.
5286 Print class tag values with type names.
5287 No longer print the address of reference values. Avoids
5288 a potential confusion.
5289 (ada_value_print): Stop printing the object type for reference
5290 values, but preserve that behavior for access types. Avoids
5291 a potential confusion.
5292 Simplify one conditional expression, as the first part is now
5293 necessarily true.
5294 ada_is_array_descriptor => ada_is_array_descriptor_type
5295 Add check for arrays for null records, and print them by hand.
5296
5297 2004-06-01 Jim Blandy <jimb@redhat.com>
5298
5299 * ppc-tdep.h: Delete unused 'regoff' member.
5300 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5301
5302 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5303
5304 Fix PR symtab/1661.
5305 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5306 (hpread_read_struct_type): Likewise.
5307
5308 2004-06-01 Andrew Cagney <cagney@gnu.org>
5309
5310 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5311 instead of xasprintf.
5312 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5313 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5314 (mi_cmd_data_list_register_names)
5315 (mi_cmd_data_list_changed_registers)
5316 (mi_cmd_data_list_register_values)
5317 (get_register, mi_cmd_data_write_register_values)
5318 (mi_cmd_data_write_register_values)
5319 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5320 (mi_cmd_target_download, mi_cmd_target_select)
5321 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5322 (mi_execute_cli_command, mi_execute_async_cli_command)
5323 (mi_execute_async_cli_command): Ditto.
5324 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5325 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5326
5327 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5328 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5329 error_last_message instead of mi_error_last_message.
5330 * mi/mi-main.c (mi_error_last_message): Delete function.
5331
5332 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5333 "invalid number of columns" error. Delete redundant "out of
5334 memory" check.
5335
5336 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5337
5338 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5339 (gregset_t, fpregset_t): Remove typedefs.
5340 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5341 (REG_OFFSET): Rename argument.
5342 (i386bsd_r_reg_offset): Rename from reg_offset.
5343 (REG_ADDR): Remove macro.
5344 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5345 functions.
5346 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5347 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5348 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5349 instead of supply_gregset.
5350 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5351 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5352 instead of fill_gregset.
5353 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5354
5355 * i386bsd-nat.c: Don't include "gregset.h".
5356 (supply_gregset, fill_gregset): Make static.
5357 (supply_fpregset, fill_fpregset): Remove.
5358 * Makefile.in (i386bsd-nat.o): Update dependencies.
5359
5360 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5361
5362 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5363 "gdb_assert.h". Con't include "gregset.h".
5364 (fbsd_make_corefile_notes): Use regset-based core file support
5365 instead off fill_gregset and fill_fpregset.
5366 * Makefile.in (fbsd-proc.o): Update dependencies.
5367
5368 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5369 instructions.
5370 (m88k_frame_prev_register): Simplify code a bit.
5371
5372 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5373 (amd64_collect_fpregset): New function.
5374 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5375
5376 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5377
5378 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5379 (i386_collect_gregset): New function.
5380 (i386_supply_fpregset): Adjust comment.
5381 (i386_collect_fpregset): New function.
5382 (i386_regset_from_core_section): Use i386_collect_gregset and
5383 i386_collect_fpregset.
5384
5385 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5386 handle VALUEP being null.
5387
5388 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5389
5390 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5391
5392 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5393
5394 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5395 assembler in OpenBSD 3.5-current.
5396 (amd64obsd_sigcontext_addr): Likewise.
5397
5398 2004-05-28 Jim Blandy <jimb@redhat.com>
5399
5400 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5401 register set, so our regcache isn't declared "legacy" and our E500
5402 pseudoregister read and write functions aren't ignored.
5403 (rs6000_register_byte, rs6000_register_raw_size,
5404 rs6000_register_virtual_type, rs6000_register_convertible,
5405 rs6000_register_convert_to_virtual,
5406 rs6000_register_convert_to_raw): Deleted.
5407 (rs6000_register_type, rs6000_convert_register_p,
5408 rs6000_register_to_value, rs6000_value_to_register): New
5409 functions.
5410 (rs6000_gdbarch_init): Don't register
5411 gdbarch_deprecated_register_size,
5412 gdbarch_deprecated_register_bytes,
5413 gdbarch_deprecated_register_byte,
5414 gdbarch_deprecated_register_raw_size,
5415 gdbarch_deprecated_register_virtual_type,
5416 gdbarch_deprecated_register_convertible,
5417 gdbarch_deprecated_register_convert_to_virtual, or
5418 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5419 register gdbarch_register_type, gdbarch_convert_register_p,
5420 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5421
5422 2004-05-26 Jim Blandy <jimb@redhat.com>
5423
5424 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5425 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5426 functions, updated to match the register numberings used in GCC.
5427 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5428 rs6000_dwarf2_reg_to_regnum as register number conversions
5429 functions for STABS and Dwarf2.
5430
5431 2004-05-26 Randolph Chung <tausq@debian.org>
5432
5433 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5434 in header file.
5435
5436 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5437
5438 * NEWS: Document new "start" command.
5439
5440 2004-05-25 Randolph Chung <tausq@debian.org>
5441
5442 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5443 hppa-linux.
5444
5445 2004-05-25 Randolph Chung <tausq@debian.org>
5446
5447 * hppa-hpux-tdep.c (offsetof): Define.
5448 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5449 (hppa32_hpux_frame_base_before_sigtramp)
5450 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5451 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5452 (hppa64_hpux_frame_base_before_sigtramp)
5453 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5454 functions.
5455 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5456 (hppa_hpux_sigtramp_frame_unwind_cache)
5457 (hppa_hpux_sigtramp_frame_this_id)
5458 (hppa_hpux_sigtramp_frame_prev_register)
5459 (hppa_hpux_sigtramp_frame_unwind)
5460 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5461 (hppa_hpux_init_abi): Register sigtramp unwinder.
5462 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5463
5464 2004-05-25 Randolph Chung <tausq@debian.org>
5465
5466 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5467 and multiple stack unwinds.
5468 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5469
5470 2004-05-25 Andrew Cagney <cagney@gnu.org>
5471
5472 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5473 * symfile-mem.h: Delete file.
5474 * symfile-mem.c: Do not include "symfile-mem.h".
5475 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5476 "struct bfd_section". When an error do not bother returning NULL.
5477 (add_symbol_file_from_memory_command): Use "struct bfd" and
5478 "struct bfd_section".
5479 * Makefile.in (symfile_mem_h): Delete.
5480 (symfile-mem.o): Update dependencies.
5481
5482 2004-05-25 Nick Roberts <nickrob@gnu.org>
5483
5484 * gdb-mi.el: New file.
5485
5486 2004-05-25 Andrew Cagney <cagney@gnu.org>
5487
5488 * inftarg.c: Include "observer.h".
5489 (child_attach, child_create_inferior): Notify inferior_created.
5490 * corelow.c: Include "observer.h".
5491 (core_open): Notify inferior_created.
5492 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5493
5494 2004-05-25 Andrew Cagney <cagney@gnu.org>
5495
5496 * target.h (struct target_ops): Add from_tty to
5497 to_create_inferior.
5498 (target_create_inferior, find_default_create_inferior): Update.
5499 * infcmd.c (run_command): Update.
5500 * wince.c (child_create_inferior): Update.
5501 * win32-nat.c (child_create_inferior): Update.
5502 * uw-thread.c (uw_thread_create_inferior): Update.
5503 * thread-db.c (thread_db_create_inferior): Update.
5504 * target.c (debug_to_create_inferior)
5505 (find_default_create_inferior): Update.
5506 (maybe_kill_then_create_inferior): Update.
5507 * sol-thread.c (sol_thread_create_inferior): Update.
5508 * remote.c (extended_remote_async_create_inferior)
5509 (extended_remote_create_inferior): Update.
5510 * remote-vx.c (vx_create_inferior): Update.
5511 * remote-st.c (st2000_create_inferior): Update.
5512 * remote-sim.c (gdbsim_create_inferior): Update.
5513 * remote-sds.c (sds_create_inferior): Update.
5514 * remote-rdp.c (remote_rdp_create_inferior): Update.
5515 * remote-rdi.c (arm_rdi_create_inferior): Update.
5516 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5517 * remote-e7000.c (e7000_create_inferior): Update.
5518 * procfs.c (procfs_create_inferior): Update.
5519 * ocd.c (ocd_create_inferior): Update.
5520 * ocd.h (ocd_create_inferior): Update.
5521 * nto-procfs.c (procfs_create_inferior): Update.
5522 * monitor.c (monitor_create_inferior): Update.
5523 * lin-lwp.c (lin_lwp_create_inferior): Update.
5524 * inftarg.c (child_create_inferior): Update.
5525 * hpux-thread.c (hpux_thread_create_inferior): Update.
5526 * gnu-nat.c (gnu_create_inferior): Update.
5527
5528 2004-05-25 Andrew Cagney <cagney@gnu.com>
5529
5530 * MAINTAINERS: Update e-mail address.
5531
5532 2004-05-24 Randolph Chung <tausq@debian.org>
5533
5534 * thread.c (info_threads_command, thread_apply_all_command)
5535 (thread_apply_command, thread_command, do_captured_thread_select):
5536 Remove HPUXHPPA-specific code.
5537
5538 2004-05-24 Randolph Chung <tausq@debian.org>
5539
5540 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5541 unused symbols.
5542 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5543 references.
5544
5545 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5546
5547 * infcmd.c (kill_if_already_running): New function, extracted
5548 from run_command().
5549 (run_command): Replace extracted code by call to
5550 kill_if_already_running().
5551 (start_command): New function.
5552 (_initialize_infcmd): Add "start" command.
5553
5554 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5555
5556 Add OpenBSD/m88k support.
5557 * NEWS (New native configurations): Mention OpenBSD/m88k.
5558 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5559 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5560 * Makefile.in (m88k_tdep_h): New variable.
5561 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5562 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5563 * configure.host: Add m88*-*-openbsd*.
5564 * configure.tgt: Add m88*-*-openbsd*.
5565
5566 2004-05-24 Jim Blandy <jimb@redhat.com>
5567
5568 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5569 to approve changes.
5570
5571 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5572
5573 * symtab.c (fixup_section): Search section table when lookup by
5574 name fails.
5575
5576 2004-05-24 Randolph Chung <tausq@debian.org>
5577
5578 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5579 be "small_struct".
5580
5581 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5582
5583 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5584 register number in regcache_raw_collect call.
5585 (m68kbsd_collect_fpregset): Likewise.
5586 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5587
5588 * regset.h (struct regset): Add back `regset' member.
5589
5590 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5591
5592 * configure.in: Check for td_pcb in `struct thread'.
5593 * configure, config.in: Regenerated.
5594
5595 * dpx2-nat.c: Remove file.
5596 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5597 (dpx2-nat.o): Remove dependencies.
5598
5599 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5600 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5601 (amd64obsd_supply_pcb): New function.
5602 (_initialize_amd64obsd_nat): Enable libkvm interface.
5603 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5604 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5605 (LOADLIBES): New variable.
5606
5607 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5608 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5609 (sparc32nbsd_supply_pcb): New function.
5610 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5611 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5612 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5613 (LOADLIBES): New variable.
5614
5615 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5616
5617 * bsd-kvm.c, bsd-kvm.h: New files.
5618 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5619 "bsd-kvm.h".
5620 (i386fbsd_supply_pcb): New function.
5621 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5622 (i386fbsd-nat.o): Update dependencies.
5623 (bsd_kvm_h): New variable.
5624 (bsd-kvm.o): New dependency.
5625 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5626 (LOADLIBES): New variable.
5627
5628 * regset.c: Tweak comment.
5629 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5630 macro.
5631 * regset.h: Update copyright year.
5632 (struct regset): Remove `descr' member, add `gdbarch' member.
5633 (regset_alloc): Adjust prototype and comment.
5634 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5635 (i386_supply_fpregset): Likewise.
5636 (i386_regset_from_core_section): Update call to regset_alloc.
5637 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5638 REGSET->arch.
5639 (i386obsd_aout_regset_from_core_section): Update call to
5640 regset_alloc.
5641 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5642 REGSET->arch.
5643 (i386nbsd_aout_regset_from_core_section): Update call to
5644 regset_alloc.
5645 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5646 REGSET->arch.
5647 (amd64_regset_from_core_section): Update call to regset_alloc.
5648 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5649 REGSET->arch.
5650 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5651 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5652 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5653 (sparc32nbsd_init_abi): Update call to regset_alloc.
5654 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5655 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5656 (sparc64obsd_init_abi): Update call to regset_alloc.
5657 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5658 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5659 (sparc64nbsd_init_abi): Update call to regset_alloc.
5660 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5661 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5662 (sparc64fbsd_init_abi): Update call to regset_alloc.
5663
5664 2004-05-22 Jim Blandy <jimb@redhat.com>
5665
5666 * ppc-tdep.h (spe_register_p): New declaration.
5667 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5668 ppc_spefscr_regnum.
5669 * rs6000-tdep.c (spe_register_p): New function.
5670 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5671 spefscr.
5672 (rs6000_gdbarch_init): Initialize the new members of the tdep
5673 structure.
5674
5675 2004-05-21 Jim Blandy <jimb@redhat.com>
5676
5677 * ppc-linux-nat.c (fetch_register): Move code back to be next
5678 to the comment that describes it. (Moved code, instead of
5679 comment, for symmetry with store_register.)
5680
5681 Allocate regset structures in the gdbarch's obstack, not using
5682 xmalloc.
5683 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5684 Add 'arch' argument. Allocate the regset on arch's obstack, not
5685 using xmalloc.
5686 * regset.h (regset_alloc): Update declaration.
5687 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5688 gdbarch argument.
5689 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5690 * i386-tdep.c (i386_regset_from_core_section): Same.
5691 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5692 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5693 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5694 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5695 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5696 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5697
5698 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5699
5700 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5701
5702 2004-05-21 Jim Blandy <jimb@redhat.com>
5703
5704 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5705 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5706
5707 2004-05-20 Jim Blandy <jimb@redhat.com>
5708
5709 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5710
5711 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5712
5713 * regset.h: Make prototype const-correct.
5714 * regset.c (regset_xmalloc): Make const-correct.
5715
5716 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5717
5718 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5719 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5720 (symbol_search_name): Declare.
5721
5722 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5723 (iter_name_next_hashed): Ditto.
5724 (iter_name_next_linear): Ditto.
5725 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5726
5727 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5728 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5729 (symbol_search_name): New function.
5730
5731 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5732
5733 * minsyms.c (build_minimal_symbol_hash_tables): Change
5734 test for adding to demangled hash table to check for difference
5735 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5736
5737 2004-05-19 Jim Blandy <jimb@redhat.com>
5738
5739 Use a constructor function to create regset structures.
5740 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5741 (struct regset): Use supply_regset_ftype. Add new
5742 'collect_regset' member.
5743 (regset_xmalloc): New declaration.
5744 * regset.c: New file.
5745 * am64-tdep.c (amd64_regset_from_core_section): Use
5746 regset_xmalloc to construct regset structures.
5747 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5748 * i386-tdep.c (i386_regset_from_core_section): Same.
5749 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5750 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5751 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5752 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5753 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5754 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5755 * Makefile.in (COMMON_OBS): Add regset.o.
5756 (regset.o): New rule.
5757
5758 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5759
5760 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5761 and pthread_cond_wait.c.
5762
5763 2004-05-18 Jim Blandy <jimb@redhat.com>
5764
5765 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5766 before the mach-specific switch, and then let the individual cases
5767 override the defaults, rather than leaving them uninitialized
5768 until the switch and then setting them in each case.
5769
5770 2004-05-18 Randolph Chung <tausq@debian.org>
5771
5772 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5773 millicode functions.
5774
5775 2004-05-18 Randolph Chung <tausq@debian.org>
5776
5777 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5778 references to dld_flags_buffer consistent.
5779
5780 2004-05-18 Randolph Chung <tausq@debian.org>
5781
5782 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5783 it for unwinding the stack.
5784
5785 2004-05-18 Randolph Chung <tausq@debian.org>
5786
5787 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5788 Undefine these so we can overide them using gdbarch.
5789
5790 2004-05-18 Randolph Chung <tausq@debian.org>
5791
5792 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5793 handling for 64-bit HPUX (elf).
5794
5795 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5796
5797 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5798 constants.
5799 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5800 * ia64-tdep.c (examine_prologue): Likewise.
5801 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5802 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5803
5804 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5805
5806 * vax-tdep.c (vax_return_value): Implement
5807 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5808
5809 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5810
5811 * vax-tdep.c (vax_return_value): Fix typo.
5812
5813 2004-05-17 Andrew Cagney <cagney@redhat.com>
5814
5815 * MAINTAINERS: Mark Salter was also responsible for
5816 testsuite/config/
5817
5818 * NEWS: Mention signal fixes.
5819
5820 2004-05-17 Randolph Chung <tausq@debian.org>
5821
5822 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5823 check to see if we are unwinding an export stub. Export stubs clobber
5824 the %rp in the call path and stores the original rp in a stack slot.
5825
5826 2004-05-17 Jim Blandy <jimb@redhat.com>
5827
5828 * MAINTAINERS: Update address for J.T. Conklin.
5829
5830 2004-05-17 Randolph Chung <tausq@debian.org>
5831
5832 * hppa-tdep.c: Remove superfluous #include's.
5833 * Makefile.in (hppa-tdep.o): Update dependencies.
5834
5835 2004-05-17 Randolph Chung <tausq@debian.org>
5836
5837 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5838 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5839 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5840 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5841 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5842 Remove static function declarations.
5843
5844 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5845
5846 * alphabsd-nat.c: Update copyright year.
5847 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5848
5849 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5850 and M68K_A2_REGNUM.
5851
5852 * m68k-tdep.c (m68k_svr4_return_value): Implement
5853 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5854
5855 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5856
5857 * sol-thread.c Update copyright year. Fix various coding
5858 standards violations. Tweak a few comments.
5859 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5860 Delete prototypes.
5861
5862 2004-05-15 Randolph Chung <tausq@debian.org>
5863
5864 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5865 as pointer instead of array reference since HPUX compiler does
5866 not accept unsized array arguments.
5867 * somsolib.c (dld_flags_buffer): Use constant array size.
5868
5869 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5870
5871 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5872 offset with decimal offset.
5873 (amd64obsd_sigcontext_addr): Return correct address for entire
5874 signal trampoline.
5875
5876 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5877 instead of get_frame_base.
5878
5879 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5880 (fill_gregset): Use regcache_raw_collect.
5881
5882 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5883 ppcobsd-tdep.c.
5884
5885 * config/sparc/tm-nbsd64.h: Remove file.
5886 * config/tm-sunos.h: Remove file.
5887
5888 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5889
5890 * rs6000-tdep.c (store_param_on_stack_p): New function,
5891 an improved version of some code extracted from skip_prologue().
5892 (skip_prologue): Use store_param_on_stack_p() to detect
5893 instructions saving a parameter on the stack. Detect when r0
5894 is used to save a parameter.
5895 Do not mark "li rx, SIMM" instructions as part of the prologue,
5896 unless the following instruction is also part of the prologue.
5897
5898 2004-05-14 Andrew Cagney <cagney@redhat.com>
5899
5900 * infrun.c (handle_inferior_event): Simplify
5901 STEP_OVER_UNDEBUGGABLE.
5902
5903 * infrun.c (handle_step_into_function): Delete function.
5904 (handle_inferior_event): Inline calls to
5905 handle_step_into_function.
5906
5907 2004-05-14 Jerome Guitton <guitton@gnat.com>
5908
5909 * rs6000-nat.c: Fix a comment.
5910
5911 2004-05-12 David Anderson <davea@sgi.com>
5912
5913 Committed by Jim Blandy <jimb@redhat.com>:
5914 * regcache.c (struct regcache_descr): fix comment spelling.
5915
5916 2004-05-13 J. Brobecker <brobecker@gnat.com>
5917
5918 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5919 Fixes a link link failure.
5920
5921 2004-05-13 J. Brobecker <brobecker@gnat.com>
5922
5923 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5924 error that was causing the build to fail.
5925
5926 2004-05-13 J. Brobecker <brobecker@gnat.com>
5927
5928 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5929 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5930
5931 2004-05-13 Andrew Cagney <cagney@redhat.com>
5932
5933 * infrun.c (handle_inferior_event): Check for
5934 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5935 calls. Update comments.
5936
5937 2004-05-13 Jim Blandy <jimb@redhat.com>
5938
5939 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5940 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5941 (store_regs_user_thread, store_regs_kernel_thread): Use
5942 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5943 * ppc-linux-nat.c (fill_gregset): Same.
5944 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5945 (ppc_linux_sigtramp_cache): Same.
5946 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5947 (ppcnbsd_sigtramp_cache_init): Same.
5948 * rs6000-nat.c (fetch_core_registers): Same.
5949 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5950 (rs6000_frame_cache): Same.
5951
5952 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5953 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5954 of assuming that the gprs are numbered starting with zero.
5955 * ppc-linux-nat.c (fill_gregset): Same.
5956 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5957 * ppcnbsd-nat.c (getregs_supplies): Same.
5958 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5959 * rs6000-nat.c (fetch_core_registers): Same.
5960 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5961
5962 2004-05-07 Michael Snyder <msnyder@redhat.com>
5963
5964 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5965 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5966
5967 2004-05-13 Andrew Cagney <cagney@redhat.com>
5968
5969 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5970
5971 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5972
5973 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5974 base_address for shared libraries.
5975
5976 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5977
5978 * MAINTAINERS (write after approval): Add myself.
5979
5980 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5981
5982 * breakpoint.c (bpstat_stop_status): Add new argument
5983 STOPPED_BY_WATCHPOINT. Use it instead of testing
5984 target_stopped_data_address agaist 0 to check whether
5985 or not we stopped due to a hardware watchpoint.
5986 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5987 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5988 with new argument.
5989
5990 2004-05-12 Jim Blandy <jimb@redhat.com>
5991
5992 * configure.in: When checking whether we should use the -bbigtoc
5993 option, don't forget to restore the original value of LDFLAGS.
5994 * configure: Regenerated.
5995
5996 2004-05-12 Andrew Cagney <cagney@redhat.com>
5997
5998 * thread.c (load_infrun_state): Delete step_sp.
5999 * infrun.c (context_switch): Ditto.
6000 * inferior.h (step_sp): Ditto.
6001 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6002 * gdbthread.h (struct thread_info, save_infrun_state)
6003 (restore_infrun_state): Ditto.
6004
6005 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6006
6007 * MAINTAINERS (write after approval): Add myself.
6008
6009 2004-05-12 Andrew Cagney <cagney@redhat.com>
6010
6011 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6012 eliminate reference to step_sp.
6013 (struct execution_control_state, init_execution_control_state)
6014 (handle_inferior_event, keep_going): Delete update_step_sp and
6015 step_sp.
6016 * infcmd.c (step_sp): Note that variable is unused.
6017
6018 2004-05-11 Andrew Cagney <cagney@redhat.com>
6019
6020 * infrun.c (step_over_function): Delete function.
6021 (handle_step_into_function): Use insert_step_resume_breakpoint.
6022 (insert_step_resume_breakpoint): Fix assertion.
6023
6024 2004-05-11 Nick Roberts <nickrob@gnu.org>
6025
6026 * utils.c (defaulted_query): Just use the normal query input type
6027 when printing the annotations.
6028
6029 2004-05-11 Andrew Cagney <cagney@redhat.com>
6030
6031 * infrun.c (handle_inferior_event): Simplify code handling
6032 step-into or return-from a signal trampoline.
6033
6034 2004-05-11 Andrew Cagney <cagney@redhat.com>
6035
6036 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6037 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6038
6039 2004-05-10 Jim Blandy <jimb@redhat.com>
6040
6041 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6042 with a call to internal_error.
6043
6044 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6045 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6046 processor variant lacks those registers.
6047 (ppc_floating_point_unit_p): Change description to make it clear
6048 that this returns info about the ISA, not the ABI.
6049 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6050 return true or false by checking tdep->ppc_fp0_regnum and
6051 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6052 arch/mach switching done in rs6000_gdbarch_init; it's better to
6053 keep that logic there, and just check the results here.
6054 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6055 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6056 floating-point registers.
6057 (ppc_supply_fpregset, ppc_collect_fpregset)
6058 (rs6000_push_dummy_call, rs6000_extract_return_value)
6059 (rs6000_store_return_value): Assert that we have floating-point
6060 registers.
6061 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6062 (rs6000_frame_cache): Don't note the locations at which
6063 floating-point registers were saved if we have no fprs.
6064 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6065 registers.
6066 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6067 (store_regs_user_thread, store_regs_kernel_thread): Only call
6068 supply_fprs / fill_fprs if we actually have floating-point
6069 registers.
6070 (special_register_p): Check ppc_fpscr_regnum before matching
6071 against it.
6072 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6073 supply / collect fpscr if we don't have it.
6074 * ppc-bdm.c: #include "gdb_assert.h".
6075 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6076 have floating-point registers, since I can't test this code on
6077 FP-free systems to adapt it.
6078 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6079 fpscr and floating point register numbers if they don't exist.
6080 (fetch_register): Assert that we have floating-point registers
6081 before we reach the code that handles them.
6082 (store_register): Same. And use tdep instead of calling
6083 gdbarch_tdep again.
6084 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6085 don't have them.
6086 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6087 fprs and fpscr if we don't have them.
6088 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6089 don't have them.
6090 * ppcnbsd-nat.c: #include "gdb_assert.h".
6091 (getfpregs_supplies): Assert that we have floating-point registers.
6092 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6093 * ppcobsd-tdep.c: #include "gdb_assert.h".
6094 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6095 have floating-point registers.
6096 * rs6000-nat.c (regmap): Don't match against the fpscr and
6097 floating point register numbers if they don't exist.
6098 (fetch_inferior_registers, store_inferior_registers,
6099 fetch_core_registers): Only fetch / store / supply the
6100 floating-point registers and the fpscr if we have them.
6101 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6102 (ppcobsd-tdep.o): Update dependencies.
6103
6104 2004-05-10 Andrew Cagney <cagney@redhat.com>
6105
6106 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6107 (context_switch): Do not switch through_sigtramp_breakpoint.
6108 * gdbthread.h (save_infrun_state, load_infrun_state)
6109 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6110 and structure member.
6111 * thread.c (load_infrun_state, save_infrun_state): Update.
6112
6113 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6114
6115 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6116
6117 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6118
6119 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6120 throughout.
6121 * aclocal.m4: Regenerate.
6122
6123 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6124
6125 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6126
6127 2004-05-10 Andrew Cagney <cagney@redhat.com>
6128
6129 * infrun.c (check_sigtramp2): Delete function.
6130 (handle_inferior_event): When single stepping, and taking a
6131 signal, set a breakpoint at the signal return address. Delete
6132 redundant calls to check_sigtramp2.
6133 (insert_step_resume_breakpoint): New function.
6134 (through_sigtramp_breakpoint, handle_inferior_event)
6135 (follow_exec, wait_for_inferior, fetch_inferior_event)
6136 (currently_stepping, keep_going): Delete most uses of
6137 through_sigtramp_breakpoint, not that it should be deleted.
6138 (delete_breakpoint_current_contents): Delete function.
6139
6140 2004-05-10 Randolph Chung <tausq@debian.org>
6141
6142 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6143 target.
6144 * config/pa/tm-linux.h: New file.
6145
6146 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6147
6148 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6149 of prefixes. Don't print the prefix twice in the CLI.
6150
6151 2004-05-10 Jim Blandy <jimb@redhat.com>
6152
6153 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6154 collect all the gprs.
6155
6156 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6157 loop collecting gprs.
6158
6159 2004-05-09 Andrew Cagney <cagney@redhat.com>
6160
6161 * remote-vx.c (net_step): Delete step-range code.
6162 * remote.c (remote_resume, init_all_packet_configs)
6163 (set_remote_protocol_E_packet_cmd)
6164 (show_remote_protocol_E_packet_cmd)
6165 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6166 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6167 (show_remote_protocol_e_packet_cmd): Ditto.
6168
6169 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6170
6171 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6172
6173 * hppa-tdep.h: Update copyright year.
6174 (struct trad_frame_saved_reg): Add opaque declaration.
6175
6176 * amd64-tdep.c (amd64_return_value): Implement
6177 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6178
6179 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6180 (m68k_value_to_register): New functions.
6181 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6182 value_to_register.
6183
6184 * defs.h (enum return_value_convention): Add
6185 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6186 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6187 * infcmd.c (legacy_return_value): New function.
6188 (print_return_value): Rwerite to implement
6189 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6190 * values.c (using_struct_return): Check for inequality to
6191 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6192 RETURN_VALUE_STRUCT_CONVENTION.
6193 * i386-tdep.c (i386_return_value): Implement
6194 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6195
6196 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6197 include "symtab.h", "opcode/vax.h" and "inferior.h".
6198 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6199 to read_memory_unsigned_integer.
6200 (vax_gdbarch_init): Reorder.
6201 (_initialize_vax_tdep): Spell out prototype.
6202 * Makefile.in (vax-tdep.o): Update dependencies.
6203
6204 2004-05-08 Andrew Cagney <cagney@redhat.com>
6205
6206 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6207 * target.c (target_detach, target_disconnect): Ditto.
6208
6209 * infcall.c (call_function_by_hand): When no
6210 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6211 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6212 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6214 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6215
6216 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6217 * gdbarch.h, gdbarch.c: Re-generate.
6218 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6219 deprecated_fix_call_dummy.
6220 * v850-tdep.c (v850_gdbarch_init): Ditto.
6221 * infcall.c (call_function_by_hand): Do not call
6222 DEPRECATED_FIX_CALL_DUMMY.
6223
6224 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6225 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6226 * gdbarch.h, gdbarch.c: Re-generate.
6227 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6228 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6229 deprecated_sizeof_call_dummy_words.
6230 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6232 * v850-tdep.c (v850_gdbarch_init): Ditto.
6233 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6234 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6236 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6237 * arch-utils.h (legacy_call_dummy_words)
6238 (legacy_sizeof_call_dummy_words): Delete declarations.
6239 * arch-utils.c (legacy_call_dummy_words)
6240 (legacy_sizeof_call_dummy_words): Delete variables.
6241
6242 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6243 * gdbarch.h, gdbarch.c: Re-generate.
6244 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6245 * infcall.c (call_function_by_hand): Eliminate call to
6246 DEPRECATED_PUSH_DUMMY_FRAME.
6247 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6248 push_dummy_frame.
6249 (ns32k_push_dummy_frame): Delete function.
6250
6251 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6252 deprecated_call_dummy_breakpoint_offset or
6253 deprecated_call_dummy_start_offset.
6254 * dummy-frame.c, arm-tdep.c: Update comments.
6255 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6256 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6257 * gdbarch.h, gdbarch.c: Re-generate.
6258
6259 * infcall.c (legacy_push_dummy_code): Delete function.
6260 (push_dummy_code): Delete call.
6261
6262 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6263 * gdbarch.h, gdbarch.c: Re-generate.
6264 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6265 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6266 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6267 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6268
6269 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6270 (struct frame_info): Delete opaque declaration.
6271 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6272 * frame.c (get_frame_type): Delete call.
6273
6274 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6275 pc_in_call_dummy.
6276 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6277 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6278
6279 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6280
6281 * alphanbsd-tdep.c: Include "gdb_string.h".
6282 * armnbsd-tdep.c: Update copyright year.
6283 Include "gdb_string.h".
6284 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6285 dependencies.
6286
6287 * delta68-nat.c: Remove file.
6288 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6289 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6290 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6291 (delta68-nat.o): Remove dependency.
6292
6293 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6294 function.
6295 (m68k_gdbarch_init): Don't set
6296 deprecated_frameless_function_invocation.
6297
6298 2004-05-07 Randolph Chung <tausq@debian.org>
6299
6300 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6301 read_memory_nobpt for code reading when doing frame unwinding.
6302 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6303
6304 2004-05-07 Randolph Chung <tausq@debian.org>
6305
6306 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6307 instead of sp, handle sigaltstack case.
6308 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6309 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6310 signal handler and not that of the caller.
6311 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6312 hppa_linux_sigtramp_find_sigcontext.
6313
6314 2004-05-07 Randolph Chung <tausq@debian.org>
6315
6316 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6317 hppa-linux-nat.c.
6318 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6319 * hppa-linux-nat.c (fetch_register, store_register): Define.
6320 (fetch_inferior_registers, store_inferior_registers): Define.
6321 (supply_gregset): Add comment and clean up some unneeded code.
6322 (fill_gregset): Add comment and fix so that it saves registers in
6323 the right place in the gregset.
6324 (fill_fpregset): Fix buffer overrun problem.
6325 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6326
6327 2004-05-07 Randolph Chung <tausq@debian.org>
6328
6329 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6330 do common handling of the pcoqt register.
6331 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6332 to use helper function.
6333 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6334 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6335 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6336 generic fallback unwinder when all else fails.
6337 (hppa_gdbarch_init): Add fallback sniffer.
6338 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6339 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6340 to use helper function.
6341
6342 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6343
6344 * config/djgpp/fnchange.lst: Add translation rules for
6345 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6346
6347 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6348
6349 * frame.c (get_prev_frame_1): Work around GCC bug.
6350 * frame.h: Add comment about GCC bug.
6351
6352 2004-05-07 Andrew Cagney <cagney@redhat.com>
6353
6354 * observer.c: Include "commands.h" and "gdbcmd.h".
6355 (observer_debug, _initialize_observer): Add the
6356 command "set/show debug observer".
6357 * observer.sh: When observer debugging, log notify calls.
6358 * Makefile.in (observer.o): Update dependencies.
6359
6360 2004-05-07 Jason Molenda (jmolenda@apple.com)
6361
6362 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6363
6364 2004-05-07 Jim Blandy <jimb@redhat.com>
6365
6366 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6367 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6368 to recognize gpr regnums, instead of assuming that
6369 tdep->ppc_fp0_regnum marks the end of the general-purpose
6370 registers.
6371
6372 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6373 the given architecture has floating-point registers.
6374
6375 2004-05-07 Andrew Cagney <cagney@redhat.com>
6376
6377 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6378 macro defined to 1.
6379 * gdbarch.h, gdbarch.c: Re-generate.
6380 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6381 deprecated_use_generic_dummy_frames.
6382
6383 2004-05-07 Brian Ford <ford@vss.fsi.com>
6384
6385 * NEWS: Mention Cygwin DWARF 2 support.
6386
6387 2004-05-07 Andrew Cagney <cagney@redhat.com>
6388
6389 * objfiles.h (struct entry_info): Delete unused fields
6390 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6391 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6392 * mipsread.c (mipscoff_symfile_read): Update.
6393 * mdebugread.c (parse_partial_symbols): Update.
6394 * dwarfread.c (read_file_scope): Update.
6395 * dwarf2read.c (read_file_scope): Update.
6396 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6397 * coffread.c (complete_symtab): Update.
6398
6399 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6400
6401 * infcall.c (_initialize_infcall): Fix typo.
6402
6403 2004-05-07 Andrew Cagney <cagney@redhat.com>
6404
6405 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6406 * command.h (add_setshow_zinteger_cmd): Declare.
6407
6408 2004-05-06 Randolph Chung <tausq@debian.org>
6409
6410 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6411 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6412 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6413 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6414 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6415 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6416 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6417 definitions ...
6418 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6419 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6420 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6421 (hppa64_hpux_frame_find_saved_regs_in_sig)
6422 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6423 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6424 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6425 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6426 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6427 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6428 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6429 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6430 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6431 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6432 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6433 (hppa32_register_type, hppa_cannot_store_register)
6434 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6435 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6436 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6437 * pa64solib.c (pa64_solib_have_load_event)
6438 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6439 (pa64_solib_unloaded_library_pathname): Likewise.
6440 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6441 (som_solib_library_pathname): Likewise.
6442
6443 2004-05-05 Jim Ingham <jingham@apple.com>
6444
6445 * breakpoint.c (create_breakpoints): Copy the ignore count and
6446 thread id over from the pended breakpoint to the actual
6447 breakpoint.
6448
6449 2004-05-05 Andrew Cagney <cagney@redhat.com>
6450
6451 * gdbarch.sh (PARM_BOUNDARY): Delete.
6452 gdbarch.h, gdbarch.c: Re-generate.
6453 * valops.c (PARM_BOUNDARY): Delete macro.
6454 (value_push): Delete PARM_BOUNDARY code.
6455 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6456
6457 2004-05-04 Jim Blandy <jimb@redhat.com>
6458
6459 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6460 Don't assume that the gprs, fprs, and UISA sprs are
6461 contiguous, start at register number zero, and end with fpscr.
6462 Instead, use the numbers from the tdep structure.
6463
6464 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6465 should no longer be used in code specific to the RS6000 and its
6466 derivatives.
6467 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6468 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6469 tdep->ppc_fp0_regnum.
6470 (ppc_supply_fpregset, ppc_collect_fpregset)
6471 (rs6000_push_dummy_call, rs6000_extract_return_value)
6472 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6473 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6474 FP0_REGNUM.
6475 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6476 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6477 Same.
6478 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6479 bdm_ppc_store_registers): Same.
6480 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6481 (store_register, fill_fpregset): Same.
6482 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6483 (ppc_linux_supply_fpregset): Same.
6484 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6485 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6486 Same.
6487 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6488 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6489 ppc64_sysv_abi_return_value): Same.
6490 * rs6000-nat.c (regmap, fetch_inferior_registers)
6491 (store_inferior_registers, fetch_core_registers): Same.
6492
6493 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6494
6495 * m68knbsd-nat.c: Remove file.
6496 * m68knbsd-tdep.c: Remove file.
6497 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6498 dependencies.
6499 * configure.host: Add m68k-*-netbsdelf*.
6500 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6501 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6502 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6503 (XM_FILE): Remove.
6504 * config/m68k/nbsdelf.mh: New file.
6505 * config/m68k/nbsd.mt: New file.
6506 * config/m68k/nbsdaout.mt: Remove file.
6507 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6508 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6509 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6510 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6511 (use_struct_convention): Remove prototype.
6512 (USE_STRUCT_CONVENTION): Remove define.
6513 * config/m68k/xm-nbsd.h: Remove file.
6514
6515 2004-05-04 Michael Snyder <msnyder@redhat.com>
6516
6517 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6518 reg_struct_return method (as gcc usually does for cross targets).
6519
6520 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6521
6522 Committed by Andrew Cagney.
6523 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6524 alignment padding when accessing ucontext struct members.
6525
6526 2004-05-04 Jim Blandy <jimb@redhat.com>
6527
6528 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6529 'ppc_gplast_regnum' member.
6530 (ppc_num_gprs): New enum constant.
6531 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6532 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6533 * rs6000-nat.c (regmap, fetch_inferior_registers,
6534 store_inferior_registers): Same.
6535 * rs6000-tdep.c (e500_pseudo_register_read)
6536 (e500_pseudo_register_write): Same.
6537 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6538
6539 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6540 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6541 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6542 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6543 FPLAST_REGNUM.
6544 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6545 Same.
6546 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6547 * rs6000-nat.c (regmap, fetch_inferior_registers)
6548 (store_inferior_registers): Same.
6549
6550 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6551 with FPLAST_REGNUM.
6552
6553 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6554
6555 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6556 failure detected by recent versions of GCC.
6557 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6558 to be consistent with the usage in dwarf2_create_include_psymtab.
6559
6560 2004-05-03 Michael Snyder <msnyder@redhat.com>
6561
6562 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6563 (heuristic_proc_start): Whitespace cleanup.
6564
6565 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6566
6567 * sun3-nat.c: Remove file.
6568 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6569 dependencies.
6570 (ALLDEPFILES): Remove sun3-nat.c.
6571 (sun3-nat.o): Remove dependencies.
6572
6573 * i386-interix-nat.c, i386-interix-tdep.c,
6574 config/i386/nm-interix.h, config/i386/interix.mh,
6575 config/i386/interix.mt: Remove files.
6576 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6577 dependencies.
6578
6579 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6580
6581 * m68k-tdep.h (struct gdbarch_tdep): Add member
6582 struct_value_regnum.
6583 (m68k_svr4_init_abi): New prototype.
6584 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6585 different calling conventions.
6586 (m68k_extract_return_value): Remove code dealing with single-field
6587 structs.
6588 (m68k_store_return_value): Remove code dealing with single-field
6589 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6590 (m68k_extract_struct_value_address): Remove function.
6591 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6592 (m68k_reg_struct_return_p, m68k_return_value)
6593 (m68k_svr4_return_value): New functions.
6594 (m68k_use_struct_convention): Remove function.
6595 (m68k_push_dummy_call): Use new struct_value_regnum member of
6596 `struct gdbarch_tdep' instead of hardcoded register number to
6597 store STRUCT_ADDR.
6598 (m68k_svr4_init_abi): New function.
6599 (m68k_gdbarch_init): Don't set extract_return_value,
6600 store_return_values, deprecated_extract_struct_value_address and
6601 use_struct_convention. Set return_value instead. Initialize new
6602 struct_value_regnum member of `struct gdbarch_tdep'.
6603 * m68klinux-tdep.c: Update copyright year.
6604 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6605 (m68k_linux_extract_struct_value_address): Remove function.
6606 (m68k_linux_init_abi): Don't set extract_return_value,
6607 store_return_values, deprecated_extract_struct_value_address and
6608 use_struct_convention. Call m68k_svr4_init_abi but override the
6609 new struct_value_regnum member of `struct gdbarch_tdep'.
6610 * Makefile.in (m68k-tdep.o): Update dependencies.
6611
6612 2004-05-03 J. Brobecker <brobecker@gnat.com>
6613
6614 * dwarf2read.c (line_header): Add new included_p field in
6615 field file_names.
6616 (partial_die_info): New field has_stmt_list. New field line_offset.
6617 (dwarf2_create_include_psymtab): New function.
6618 (dwarf2_build_include_psymtabs): New function.
6619 (add_file_name): Add forward declaration. Initialize new field.
6620 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6621 to be able to determine the list of files included by the
6622 given unit, and build their associated psymtabs.
6623 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6624 files as well.
6625 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6626 (read_file_scope): Update call to dwarf_decode_lines.
6627 (read_partial_die): Handle DW_AT_stmt_list attributes.
6628
6629 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6630
6631 Unfix PR gdb/1626.
6632 * configure.in: Revert special case for osf5.*.
6633 * configure: Regenerate.
6634
6635 2004-05-02 Jim Blandy <jimb@redhat.com>
6636
6637 Move the symbol-file-from-memory functions into their own file.
6638 * symfile-mem.c, symfile-mem.h: New files.
6639 * symfile.c (symbol_file_add_from_bfd): New function.
6640 (symbol_file_add): Call symbol_file_add_from_bfd.
6641 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6642 Moved to symfile-mem.c.
6643 (_initialize_symfile): Move definition of
6644 add-symbol-file-from-memory command to symfile-mem.c.
6645 * symfile.h (symbol_file_add_from_bfd): New declaration.
6646 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6647 * config/powerpc/linux.mt (TDEPFILES): Same.
6648 * Makefile.in (SFILES): Add symfile-mem.c.
6649 (symfile_mem_h): New variable.
6650 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6651 (symfile-mem.o): New rule.
6652
6653 2004-05-01 Andrew Cagney <cagney@redhat.com>
6654
6655 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6656 frame_find_by_id instead of frame_relative_level.
6657 (do_enable_breakpoint): Ditto.
6658 * thread.c: Update copyright.
6659 (info_threads_command): Ditto, simplify.
6660
6661 * frame.c (deprecated_generic_get_saved_register): Delete
6662 function, moved to "xstormy16-tdep.c".
6663 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6664 deprecated_generic_get_saved_register from "frame.c".
6665 (xstormy16_frame_saved_register): Call
6666 xstormy16_get_saved_register.
6667 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6668 static.
6669 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6670 * frame.h (deprecated_generic_get_saved_register): Delete.
6671
6672 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6673
6674 * dwarfread.c: Update documentation on the state of dwarf-1.
6675
6676 2004-05-01 Andrew Cagney <cagney@redhat.com>
6677
6678 * stack.c (select_frame_command): Delete call to
6679 frame_relative_level.
6680 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6681 Delete #if0 code.
6682 (frame_info): Do not print FRAMELESS.
6683 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6684 (catch_info): Delete #if0 code.
6685
6686 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6687 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6688 of frame_relative_level.
6689 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6690 to SENTINEL_FRAME.
6691 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6692 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6693 frame_relative_level.
6694
6695 * frame.h (deprecated_set_frame_type): Delete declaration.
6696 * frame.c (deprecated_set_frame_type): Delete function, update
6697 comments.
6698
6699 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6700 * gdbarch.h, gdbarch.c: Re-generate.
6701 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6702 (shnbsd_pc_in_sigtramp): Delete.
6703 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6704 pc_in_sigtramp.
6705 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6706 pc_in_sigtramp.
6707 * frame.h: Update comments.
6708 * ppc-linux-tdep.c: Update comments.
6709 * breakpoint.c (bpstat_what): Update comments.
6710
6711 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6712 m68klinux-tdep.o's dependencies, were previously added to
6713 m68klinux-nat.o.
6714
6715 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6716 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6717 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6718 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6719 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6720
6721 * Makefile.in (m68klinux-nat.o): Update dependencies.
6722 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6723 (m68k_linux_sigtramp_frame_cache)
6724 (m68k_linux_sigtramp_frame_this_id)
6725 (m68k_linux_sigtramp_frame_prev_register)
6726 (m68k_linux_sigtramp_frame_unwind)
6727 (m68k_linux_sigtramp_frame_sniffer)
6728 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6729 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6730 names, use trad-frame.h.
6731 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6732 (struct m68k_sigtramp_info): Delete.
6733 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6734 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6735 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6736 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6737 "m68klinux-tdep.c".
6738
6739 * infrun.c (check_sigtramp2): Delete check for
6740 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6741
6742 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6743
6744 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6745
6746 2004-05-01 Andrew Cagney <cagney@redhat.com>
6747
6748 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6749 (frv_linux_sigtramp_frame_cache)
6750 (frv_linux_sigtramp_frame_this_id)
6751 (frv_linux_sigtramp_frame_prev_register)
6752 (frv_linux_sigtramp_frame_unwind)
6753 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6754 include "linux" in function and variable names, directly call
6755 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6756 the latest trad-frame code.
6757 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6758 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6759 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6760 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6761 * frv-tdep.c (frv_sigtramp_frame_cache)
6762 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6763 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6764 frv-linux-tdep.c.
6765 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6766 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6767 (frv_set_sigcontext_reg_addr): Delete function.
6768
6769 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6770 (DEPRECATED_SIGTRAMP_END): Delete.
6771 * gdbarch.h, gdbarch.c: Re-generate.
6772 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6773 * config/vax/tm-vaxbsd.h: Update copyright.
6774 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6775 (DEPRECATED_IN_SIGTRAMP): Define.
6776 * config/m68k/tm-nbsd.h: Update copyright.
6777 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6778 (DEPRECATED_IN_SIGTRAMP): Define.
6779
6780 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6781
6782 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6783 encondings. Fixes PR gdb/1628.
6784
6785 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6786 DW_CFA_restore state without a matching DW_CFA_remember_state
6787 instead of aborting. Fixes PR backtrace/1589.
6788
6789 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6790
6791 * MAINTAINERS: Add self as AIX maintainer.
6792 Update my e-mail address in write-after-approval section.
6793
6794 2004-04-30 Andrew Cagney <cagney@redhat.com>
6795
6796 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6797 (legacy_get_prev_frame): Ditto.
6798
6799 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6800 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6801 * mipsread.c (sigtramp_address): Delete extern variable.
6802 (mipscoff_new_init): Delete reference.
6803 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6804 (fixup_sigtramp): Delete function.
6805 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6806 (fixup_sigtramp): Delete declarations.
6807
6808 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6809 deprecated_pc_in_sigtramp.
6810 (ppcnbsd_pc_in_sigtramp): Delete function.
6811
6812 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6813
6814 * config/m68k/nm-nbsd.h: Tweak comments.
6815 * config/m68k/nm-nbsdaout.h: Likewise.
6816
6817 2004-04-30 Andrew Cagney <cagney@redhat.com>
6818
6819 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6820 legacy_pc_in_sigtramp.
6821 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6822
6823 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6824
6825 Add OpenBSD/m68k support.
6826 * NEWS (New native configurations): Mention OpenBSD/m68k.
6827 * m68kbsd-tdep.c: New file.
6828 * m68kbsd-nat.c: New file.
6829 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6830 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6831 * configure.host: Add m68k-*-openbsd.
6832 * configure.tgt: Add m68k-*-openbsd.
6833 * config/m68k/tm-obsd.h: New file.
6834 * config/m68k/obsd.mt: New file.
6835 * config/m68k/obsd.mh: New file.
6836 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6837 m68kbsd-tdep.c.
6838
6839 2004-04-30 Andrew Cagney <cagney@redhat.com>
6840
6841 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6842 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6843
6844 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6845
6846 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6847 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6848
6849 2004-04-30 Brian Ford <ford@vss.fsi.com>
6850
6851 Revert 2004-04-16 change.
6852 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6853 (i386_coff_init_abi): Remove.
6854 * i386-tdep.h (i386_coff_init_abi): Remove.
6855 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6856
6857 2004-04-30 Andrew Cagney <cagney@redhat.com>
6858
6859 * blockframe.c (find_pc_partial_function): Delete use of
6860 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6861 DEPRECATED_SIGTRAMP_END.
6862
6863 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6864 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6865 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6866 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6867 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6868
6869 * defs.h (deprecated_inside_entry_file): Delete declaration.
6870 * blockframe.c (deprecated_inside_entry_file): Delete function.
6871 (legacy_frame_chain_valid): Delete call.
6872 * sh64-tdep.c (sh64_frame_chain): Delete call.
6873 * objfiles.h: Update comments.
6874 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6875 call.
6876 * frame.c (get_prev_frame): Delete call, update comments.
6877
6878 2004-04-30 Brian Ford <ford@vss.fsi.com>
6879
6880 * MAINTAINERS (Write After Approval): Add myself.
6881
6882 2004-04-30 Andrew Cagney <cagney@redhat.com>
6883
6884 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6885 * gdbarch.h, gdbarch.c: Re-generate.
6886 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6887 code.
6888
6889 2004-04-30 Andrew Cagney <cagney@redhat.com>
6890
6891 * gdb-events.sh (selected_thread_changed)
6892 (selected_frame_level_changed, target_changed): Delete.
6893 * gdb-events.h, gdb-events.c: Re-generate.
6894 * valops.c (value_assign): Update.
6895 * stack.c (select_frame_command, up_silently_base)
6896 (down_silently_base): Update.
6897
6898 2004-04-29 Andrew Cagney <cagney@redhat.com>
6899
6900 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6901 registers correctly.
6902 (print_gp_register_row, mips32_heuristic_proc_desc)
6903 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6904 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6905 references to mips_isa_regsize.
6906
6907 2004-04-29 Andrew Cagney <cagney@redhat.com>
6908
6909 * mips-tdep.c (struct gdbarch_tdep): Delete
6910 mips_fp_register_double.
6911 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6912 mips_abi_regsize.
6913 (mips_gdbarch_init): Do not set mips_fp_register_double.
6914 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6915
6916 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6917
6918 Committed by Andrew Cagney.
6919 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6920 function calls.
6921
6922 2004-04-29 Andrew Cagney <cagney@redhat.com>
6923
6924 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6925 gdbarch, use mips_abi, update callers.
6926 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6927 mips_abi_regsize, update callers.
6928 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6929 mips_default_abi_regsize.
6930 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6931 mips_default_abi_regsize.
6932
6933 2004-04-29 Andrew Cagney <cagney@redhat.com>
6934
6935 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6936 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6937 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6938 mips_default_abi_regsize.
6939 (mips_isa_regsize): Rename mips_regisze.
6940 * mipsnbsd-tdep.c: Update.
6941 * mips-linux-tdep.c: Update.
6942 * irix5-nat.c: Update.
6943 * mips-tdep.h (mips_isa_regsize): Update.
6944
6945 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6946 Delete all disabled code.
6947 * gdb-events.h, gdb-events.c: Re-generate.
6948
6949 2004-04-19 Jerome Guitton <guitton@gnat.com>
6950 Mark Kettenis <kettenis@gnu.org>
6951
6952 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6953 the function begins with a branch instruction.
6954
6955 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6956
6957 * i386-tdep.c: Fix spelling mistakes.
6958
6959 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6960 Andrew Cagney <cagney@redhat.com>
6961
6962 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6963 <sys/proc.h>.
6964 * acconfig.h: Provide default _KMEMUSER value.
6965 * config.in, configure: Re-generate.
6966 * NEWS: Mention fix.
6967
6968 2004-04-24 Randolph Chung <tausq@debian.org>
6969
6970 * configure.host (hppa*-*-linux*): New target.
6971 * configure.tgt (hppa*-*-linux*): Likewise.
6972 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6973 gdbarch_init_osabi() call earlier so that osabi-specific frame
6974 unwinders can be registered first.
6975 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6976 hppa-linux-nat.c.
6977 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6978 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6979 * config/pa/linux.mh: New file.
6980 * config/pa/linux.mt: New file.
6981 * config/pa/nm-linux.h: New file.
6982 * config/pa/xm-linux.h: New file.
6983 * hppa-linux-nat.c: New file.
6984 * hppa-linux-tdep.c: New file.
6985
6986 2004-04-28 Randolph Chung <tausq@debian.org>
6987
6988 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6989 return values.
6990 (hppa32_push_dummy_call): Fix small struct and floating point argument
6991 passing, and make sure the stack frame is properly aligned.
6992
6993 2004-04-28 Andrew Cagney <cagney@redhat.com>
6994
6995 * stack.c (print_stack_frame): Fix description.
6996
6997 * NEWS: Mention gdb/gdbserver/configure execute permission
6998 changed. PR server/519.
6999
7000 2004-04-28 Andrew Cagney <cagney@redhat.com>
7001
7002 * stack.c (print_stack_frame_stub): Delete declaration.
7003 (struct print_stack_frame_args, print_stack_frame)
7004 (print_frame_info, print_frame): Replace "source" with print what.
7005 Replace "print" with "print_level". Replace "args" with
7006 "print_args".
7007 * frame.h (show_and_print_stack_frame, print_stack_frame)
7008 (print_frame_info): Update declarations.
7009 * stack.c (select_and_print_frame, frame_command)
7010 (current_frame_command, up_command, down_command): Update calls -
7011 use get_selected_frame, pass "enum print_what" for source, do not
7012 call frame_relative_level.
7013 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7014 * remote-rdp.c (remote_rdp_open): Ditto.
7015 * remote-mips.c (common_open): Ditto.
7016 * remote-e7000.c (e7000_start_remote): Ditto.
7017 * ocd.c (ocd_start_remote): Ditto.
7018 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7019 * infrun.c (normal_stop): Ditto.
7020 * inflow.c (kill_command): Ditto.
7021 * infcmd.c (finish_command): Ditto.
7022 * corelow.c (core_open): Ditto.
7023 * tracepoint.c (finish_tfind_command): Ditto.
7024 * thread.c (info_threads_command, info_threads_command)
7025 (restore_current_thread, do_captured_thread_select): Ditto.
7026 * ada-tasks.c (task_command): Ditto.
7027
7028 2004-04-26 Orjan Friberg <orjanf@axis.com>
7029
7030 * frame.c: Include "observer.h".
7031 (frame_observer_target_changed): New function.
7032 (_initialize_frame): Attach target_changed observer.
7033 * regcache.c: Include "observer.h".
7034 (regcache_observer_target_changed): New function.
7035 (_initialize_regcache): Attach target_changed observer.
7036 * valops.c: Include "observer.h".
7037 (value_assign): Notify target_changed event when modifying register.
7038 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7039
7040 2004-04-26 Orjan Friberg <orjanf@axis.com>
7041
7042 From Paul Koning <pkoning@equallogic.com>:
7043 * breakpoint.c (free_valchain): New function.
7044 (insert_bp_location, delete_breakpoint): Use free_valchain.
7045 (remove_breakpoint): Do not remove the valchain.
7046 (bpstat_stop_status): If not stopped by watchpoint, skip
7047 watchpoints when generating stop status list.
7048 * infrun.c (handle_inferior_event): Make
7049 stepped_after_stopped_by_watchpoint a global variable.
7050 * remote.c (remote_stopped_data_address): Return watch data
7051 address rather than zero if stepped_after_stopped_by_watchpoint is
7052 set.
7053
7054 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7055
7056 Fix PR gdb/1626.
7057 * configure.in: Check for curses after termcap.
7058 On osf5.*, do not check for ncurses.
7059 * configure: Regenerate.
7060
7061 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7062
7063 * ppcobsd-nat.c: Include "ppc-tdep.h".
7064 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7065
7066 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7067 Fixes PR tdep/1623 and PR tdep/1624.
7068
7069 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7070
7071 * xmodem.h, xmodem.c: Remove files.
7072 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7073
7074 2004-04-23 Randolph Chung <tausq@debian.org>
7075
7076 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7077 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7078 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7079 for handling stackless frames.
7080 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7081
7082 2004-04-23 Randolph Chung <tausq@debian.org>
7083
7084 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7085 starts at a pc before the frame is created.
7086
7087 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7088
7089 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7090
7091 2004-04-23 Jerome Guitton <guitton@gnat.com>
7092
7093 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7094 use convert_typed_floating to get the appropriate format.
7095
7096 2004-04-22 Randolph Chung <tausq@debian.org>
7097
7098 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7099 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7100 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7101 (hppa_sign_extend): Add prototype.
7102 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7103 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7104 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7105 hppa targets will also use these functions.
7106 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7107 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7108 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7109 (hppa_gdbarch_init): Remove gdbarch setting of
7110 skip_trampoline_code, in_solib_call_trampoline and
7111 in_solib_return_trampoline.
7112 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7113 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7114 hppa_in_solib_call_trampoline.
7115 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7116 Moved from hppa-tdep.c.
7117 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7118 in_solib_call_trampoline and in_solib_return_trampoline.
7119
7120 2004-04-22 Randolph Chung <tausq@debian.org>
7121
7122 * hppa-tdep.c (hppa_debug): New variable.
7123 (find_unwind_entry, hppa_frame_cache): Add debug output.
7124 (_initialize_hppa_tdep): Add command to set debug flag.
7125
7126 2004-04-22 Andrew Cagney <cagney@redhat.com>
7127
7128 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7129 "trad-frame.h".
7130 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7131 signal trampoline unwinder.
7132 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7133
7134 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7135
7136 Add OpenBSD/powerpc support.
7137 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7138 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7139 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7140 (ppc_collect_fpregset): New prototypes.
7141 * ppcobsd-nat.c: New file.
7142 * ppcobsd-tdep.c: New file.
7143 * ppcobsd-tdep.h: New file.
7144 * rs6000-tdep.c: Include "regset.h".
7145 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7146 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7147 New functions.
7148 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7149 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7150 (rs6000-tdep.o): Update dependencies.
7151 * configure.host: Add powerpc-*-openbsd.
7152 * configure.tgt: Add powerpc-*-openbsd.
7153 * config/powerpc/obsd.mh: New file.
7154 * config/powerpc/nm-obsd.h: New file.
7155 * config/powerpc/obsd.mt: New file.
7156
7157 2004-04-22 Andrew Cagney <cagney@redhat.com>
7158
7159 * frame.h (show_frame_info): Delete declaration.
7160
7161 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7162 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7163 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7164 * frv-tdep.c (frv_frame_this_id): Ditto.
7165 * avr-tdep.c (avr_frame_this_id): Ditto.
7166
7167 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7168
7169 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7170
7171 2004-04-22 Jim Blandy <jimb@redhat.com>
7172
7173 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7174 register number zero.
7175
7176 2004-04-21 Michael Snyder <msnyder@redhat.com>
7177
7178 * mips-tdep.c (heuristic_proc_start):
7179 Warning() already prefixes "Warning: ".
7180
7181 2004-04-21 Andrew Cagney <cagney@redhat.com>
7182
7183 * annotate.h (deprecated_annotate_starting_hook)
7184 (deprecated_annotate_stopped_hook)
7185 (deprecated_annotate_exited_hook)
7186 (deprecated_annotate_signal_hook)
7187 (deprecated_annotate_signalled_hook): Deprecate.
7188 * tracepoint.h (deprecated_create_tracepoint_hook)
7189 (deprecated_delete_tracepoint_hook)
7190 (deprecated_modify_tracepoint_hook)
7191 (deprecated_trace_find_hook)
7192 (deprecated_trace_start_stop_hook): Deprecate.
7193 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7194 * remote.h (deprecated_target_resume_hook)
7195 (deprecated_target_wait_loop_hook): Deprecate.
7196 * gdbcore.h (deprecated_exec_file_display_hook)
7197 (deprecated_file_changed_hook): Deprecate.
7198 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7199 * defs.h (deprecated_modify_breakpoint_hook)
7200 (deprecated_command_loop_hook, deprecated_show_load_progress)
7201 (deprecated_print_frame_info_listing_hook)
7202 (deprecated_query_hook, deprecated_warning_hook)
7203 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7204 (deprecated_delete_breakpoint_hook)
7205 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7206 (deprecated_readline_begin_hook, deprecated_readline_hook)
7207 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7208 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7209 (deprecated_context_hook, deprecated_target_wait_hook)
7210 (deprecated_attach_hook, deprecated_detach_hook)
7211 (deprecated_call_command_hook, deprecated_set_hook)
7212 (deprecated_error_hook, deprecated_error_begin_hook)
7213 (deprecated_ui_load_progress_hook): Deprecate.
7214 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7215 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7216 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7217 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7218 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7219 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7220 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7221 * annotate.c, aix-thread.c: Update.
7222
7223 2004-04-21 Andrew Cagney <cagney@redhat.com>
7224
7225 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7226 * vaxnbsd-tdep.c: Include "gdb_string.h".
7227
7228 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7229 (add_symbol_file_from_memory_command): #if 0 function body, call
7230 error instead.
7231
7232 2004-04-21 Andrew Cagney <cagney@redhat.com>
7233
7234 * gdbcore.h: Update copyright.
7235 (deprecated_add_core_fns): Rename add_core_fns.
7236 * win32-nat.c (_initialize_core_win32): Update.
7237 * sun3-nat.c (_initialize_core_sun3): Update.
7238 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7239 * rs6000-nat.c (_initialize_core_rs6000): Update.
7240 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7241 * nto-tdep.c (_initialize_nto_tdep): Update.
7242 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7243 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7244 * mips-nat.c (_initialize_core_mips): Update.
7245 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7246 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7247 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7248 * lynx-nat.c (_initialize_core_lynx): Update.
7249 * irix5-nat.c (_initialize_core_irix5): Update.
7250 * i386-interix-nat.c (_initialize_core_interix): Update.
7251 * cris-tdep.c (_initialize_cris_tdep): Update.
7252 * corelow.c (deprecated_add_core_fns): Update.
7253 * core-regset.c (_initialize_core_regset): Update.
7254 * core-aout.c (_initialize_core_aout): Update.
7255 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7256 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7257 * alpha-nat.c (_initialize_core_alpha): Update.
7258
7259 2004-04-21 Jim Blandy <jimb@redhat.com>
7260
7261 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7262
7263 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7264
7265 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7266 Delete.
7267 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7268 (read_attribute_value): Update calls to dwarf_alloc_block.
7269 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7270 dwarf2_tmp_obstack.
7271 (psymtab_to_symtab_1): Likewise. Clean up using
7272 free_stack_comp_unit.
7273 (add_to_cu_func_list): Use the comp_unit_obstack.
7274
7275 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7276
7277 * dwarf2read.c (dwarf2_flag_true_p): New function.
7278 (die_is_declaration): Use the function above. Add some comments.
7279
7280 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7281
7282 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7283 architecture when registering sparcnbsd_core_osabi_sniffer.
7284 Adjust comment.
7285
7286 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7287
7288 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7289 return value.
7290
7291 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7292 * i386-tdep.c: Correct register numbering scheme comments
7293 throughout.
7294 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7295 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7296 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7297 (i386_gdb_arch_init): Likewise.
7298
7299 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7300 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7301 ppcnbsd-tdep.o.
7302
7303 * m68k-tdep.h: Tweak comments.
7304 * m68k-tdep.c: Tweak comment.
7305
7306 2004-04-17 Randolph Chung <tausq@debian.org>
7307
7308 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7309 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7310 (hppa_hpux_som_init_abi): Set is_elf to 0.
7311 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7312 * hppa-tdep.c (low_text_segment_address): Remove global.
7313 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7314 section offset to calculate segment address.
7315 (internalize_unwinds): Define low_text_segment_address as local and
7316 pass to record_text_segment_lowaddr for ELF targets.
7317 (hppa_gdbarch_init): Zero fill tdep structure.
7318 (hppa_dump_tdep): Print tdep structure.
7319 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7320
7321 2004-04-17 Randolph Chung <tausq@debian.org>
7322
7323 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7324 (hppa_gdbarch_init): Set pseudo_register_read.
7325 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7326 * regcache.c (supply_register): Remove check for
7327 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7328
7329 2004-04-17 Randolph Chung <tausq@debian.org>
7330
7331 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7332 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7333 (hpread_adjust_stack_address): Move to hpread.c.
7334 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7335 obj_private_struct): Move from tm-hppa.h.
7336 * hpread.c (hppa-tdep.h): Include.
7337 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7338 (hpread_read_function_type, hpread_read_doc_function_type)
7339 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7340 directly.
7341 * pa64solib.c (hppa-tdep.h): Include.
7342 * somsolib.c (hppa-tdep.h): Include.
7343 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7344 inferior_status): Remove unused forward declarations.
7345 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7346 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7347 obj_private_struct): Move to hppa-tdep.h.
7348 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7349
7350 2004-04-17 Randolph Chung <tausq@debian.org>
7351
7352 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7353 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7354 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7355 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7356 Remove forward declaration and make static.
7357 (hppa_reg_struct_has_addr): Remove.
7358
7359 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7360
7361 * observer.sh: Move comments in sed command to first column.
7362
7363 2004-04-16 Jason Molenda (jmolenda@apple.com)
7364
7365 * frame.c: Minor typeo corrections in comments.
7366
7367 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7368
7369 * observer.c (observer_test_first_notification_function): Update
7370 function profile.
7371 (observer_test_second_notification_function): Likewise.
7372 (observer_test_third_notification_function): Likewise.
7373
7374 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7375
7376 From Brian Ford <ford@vss.fsi.com>:
7377 * i386-tdep.c (i386_coff_init_abi): New function.
7378 * i386-tdep.h (i386_coff_init_abi): New prototype.
7379 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7380 register number translation functions for DWARF and DWARF 2.
7381
7382 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7383
7384 * dwarf2read.c: Back out my previous change, it was incorrect.
7385
7386 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7387
7388 * dwarf2read.c: Include "hashtab.h".
7389 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7390 has_namespace_info.
7391 (struct partial_die_info): Add comments. Use bitfields to reduce
7392 memory footprint. Add scope, scope_set, has_specification,
7393 spec_offset, die_parent, die_child, and die_sibling.
7394 (peek_die_abbrev): Add prototype.
7395 (partial_read_comp_unit_head): New function, broken out from
7396 dwarf2_build_psymtabs_hard.
7397 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7398 Use partial_read_comp_unit_head. Initialize the CU and
7399 comp_unit_obstack. Update calls to read_partial_die and
7400 scan_partial_symbols. Use free_stack_comp_unit and
7401 load_partial_dies.
7402 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7403 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7404 Update calls to helper functions. Remove NAMESPACE argument.
7405 Update comments.
7406 (partial_die_parent_scope, partial_die_full_name): New functions.
7407 (add_partial_symbol): Remove namespace argument. Update call to
7408 pdi_needs_namespace. Use partial_die_full_name. Handle
7409 DW_TAG_namespace. Check has_namespace_info flag.
7410 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7411 tag. Handle namespaces.
7412 (add_partial_namespace, add_partial_enumeration): Simplify.
7413 (guess_structure_name): New function, derived from
7414 add_partial_structure.
7415 (add_partial_structure): Remove.
7416 (determine_class_name): Update comment.
7417 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7418 (is_type_tag_for_partial, load_partial_dies): New functions.
7419 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7420 Record specifications instead of following them immediately.
7421 (find_partial_die_in_comp_unit, find_partial_die)
7422 (fixup_partial_die, free_stack_comp_unit)
7423 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7424 (partial_die_hash, partial_die_eq): New functions.
7425 * Makefile.in (hashtab_h): Define.
7426 (dwarf2read.o): Update dependencies.
7427 (observer_inc, observer_h): Move to the correct section.
7428
7429 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7430
7431 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7432 (die_is_declaration): Use the function above. Add comment.
7433
7434 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7435
7436 * dwarf2read.c (read_structure_scope): Identify stub types
7437 using die_is_declaration() only.
7438
7439 2004-04-15 Roland McGrath <roland@redhat.com>
7440
7441 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7442 argument instead of NAME.
7443 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7444 in call to symbol_file_add_with_addrs_or_offsets.
7445 (build_addr_info): New function, helper for ...
7446 (symbol_file_add_from_memory): New function.
7447 (add_symbol_file_from_memory_command): New function using that.
7448 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7449 (pre_add_symbol_hook): Add const to argument type.
7450 * symfile.h (symbol_file_add_from_memory): Declare it.
7451
7452 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7453
7454 * NEWS (New native configurations): Mention OpenBSD/vax.
7455 * configure.host: Add vax-*-openbsd*.
7456 * config/vax/obsd.mh: New file.
7457 * config/vax/nm-obsd.h: New file.
7458
7459 * vax-tdep.c: Include "regset.h".
7460 (vax_supply_gregset): New function.
7461 (vax_gregset): New variable.
7462 (vax_regset_from_core_section): New function.
7463 (vax_gdbarch_init): Set regset_from_core_section.
7464 * Makefile.in (vax-tdep.o): Update dependencies.
7465
7466 2004-04-15 Andrew Cagney <cagney@redhat.com>
7467
7468 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7469 (observer_normal_stop_notification_stub)
7470 (observer_attach_normal_stop, observer_detach_normal_stop):
7471 Delete, replaced by #include "observer.inc".
7472 * infrun.c (normal_stop): Pass "stop_bpstat" to
7473 observer_notify_normal_stop.
7474 * Makefile.in (observer_inc): Define.
7475 (observer.o): Update dependencies.
7476 (observer.h, observer.inc): New rules.
7477 * observer.h: Delete file.
7478 * observer.sh: New file.
7479
7480 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7481
7482 * vax-tdep.c (vax_frame_cache): Fix typo.
7483
7484 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7485
7486 * NEWS (New native configurations): Mention NetBSD/vax.
7487 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7488 * config/vax/nbsdelf.mh: New file.
7489 * config/vax/nbsdaout.mh: New file.
7490 * config/vax/nm-nbsd.h: New file.
7491 * config/vax/nm-nbsdaout.h: New file.
7492
7493 * vaxnbsd-tdep.c: New file.
7494 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7495 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7496 * config/vax/nbsd.mt: New file.
7497 * config/vax/tm-nbsd.h: New file.
7498
7499 * Makefile.in (vaxbsd-nat.o): New dependency.
7500
7501 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7502 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7503 struct_addr arguments. Don't push return value address.
7504 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7505 arguments to vax_store_arguments. Store return value address in
7506 R1.
7507 (vax_store_struct_return, vax_extract_return_value)
7508 (vax_store_return_value): Remove functions.
7509 (vax_return_value): New function.
7510 (vax_gdbarch_init): Set return value. Don't set
7511 deprecated_store_struct_return, deprecated_extract_struct_return
7512 and deprecated_store_return_value.
7513
7514 2004-04-14 Andreas Schwab <schwab@suse.de>
7515
7516 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7517 value buffer.
7518 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7519
7520 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7521
7522 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7523 (vax_unwind_dummy_id): New functions.
7524 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7525 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7526 variables.
7527 (vax_fix_call_dummy): Remove function.
7528 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7529 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7530 call_dummy_location, deprecated_call_dummy_words,
7531 deprecated_sizeof_call_dummy_words,
7532 deprecated_call_dummy_breakpoint_offset,
7533 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7534 and deprecated_dummy_write_sp.
7535
7536 2004-04-13 David Carlton <carlton@kealia.com>
7537
7538 * MAINTAINERS: Move myself to "paper trail" section.
7539
7540 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7541
7542 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7543 "trad-frame.h".
7544 (vax_frame_init_saved_regs): Remove function.
7545 (vax_sigtramp_saved_pc): Remove function.
7546 (vax_frame_saved_pc): Remove function.
7547 (vax_frame_args_address): Remove function.
7548 (vax_frame_num_args): Rewrite.
7549 (vax_frame_chain): Remove function.
7550 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7551 VAX_FP_REGNUM.
7552 (vax_pop_frame): Likewise.
7553 (vax_saved_pc_after_call): Remove function.
7554 (struct vax_frame_cache): New structure.
7555 (vax_frame_cache): New function.
7556 (vax_frame_this_id): New function.
7557 (vax_frame_prev_register): New function.
7558 (vax_frame_unwind): New variable.
7559 (vax_frame_sniffer): New function.
7560 (vax_frame_base_address): New function.
7561 (vax_frame_args_address): New function.
7562 (vax_frame_base): New variable.
7563 (vax_unwind_pc): New function.
7564 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7565 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7566 deprecated_frame_chain, deprecated_frame_saved_pc,
7567 deprecated_frame_args_address and
7568 deprecated_frame_init_saved_regs.
7569 * Makefile.in (vax-tdep.o): Update dependencies.
7570
7571 * vaxbsd-nat.c: New file.
7572
7573 * vax-tdep.h: Update copyright year. Adjust comments.
7574 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7575 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7576 (vax_regnum): New enum. Replacing...
7577 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7578 (VAX_PS_REGNUM): ... these removed macros.
7579 * vax-tdep.c (vax_register_name): Remove prototype.
7580 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7581 (vax_register_byte, vax_register_raw_size,
7582 vax_register_virtual_size, vax_register_virtual_type): Remove
7583 functions.
7584 (vax_register_type): New function.
7585 (vax_breakpoint_from_pc): Reorganize.
7586 (vax_gdbarch_init): Set register_type. Don't set
7587 deprecated_register_size, deprecated_register_bytes,
7588 deprecated_register_byte, deprecated_register_raw_size,
7589 deprecated_max_register_raw_size,
7590 deprecated_register_virtual_size,
7591 deprecated_max_register_virtual_size and
7592 deprecated_register_virtual_type. Add comment on stack direction.
7593
7594 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7595
7596 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7597 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7598 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7599
7600 2004-04-10 Randolph Chung <tausq@debian.org>
7601
7602 * MAINTAINERS (write after approval): Add myself.
7603
7604 2004-04-07 Randolph Chung <tausq@debian.org>
7605
7606 * hppa-tdep.c (hppa_inner_than): Remove.
7607 (is_pa_2): Remove unused static variable.
7608 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7609
7610 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7611
7612 * language.h (language_defn): Add new la_post_parser field.
7613 * parser-defs.h (null_post_parser): New declaration (default for
7614 la_post_parser).
7615
7616 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7617 insert call to that function.
7618 (parse_exp_in_context): New function, including code formerly in
7619 parse_exp_1. Calls language-dependent post-parser after
7620 prefixification.
7621 (parse_expression_in_context): New exported function.
7622 (null_post_parser): New definition.
7623 * expression.h (parse_expression_in_context): Add declaration.
7624
7625 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7626 * c-lang.c (c_language_defn): Ditto.
7627 (cplus_language_defn): Ditto.
7628 (asm_language_defn): Ditto.
7629 (minimal_language_defn): Ditto.
7630 * f-lang.c (f_language_defn): Ditto.
7631 * jv-lang.c (java_language_defn): Ditto.
7632 * language.c (unknown_language_defn): Ditto.
7633 (auto_language_defn): Ditto.
7634 (local_language_defn): Ditto.
7635 * m2-lang.c (m2_language_defn): Ditto.
7636 * scm-lang.c (scm_language_defn): Ditto.
7637 * obj-lang.c (objc_language_defn): Ditto.
7638
7639 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7640
7641 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7642 (amd64nbsd_mcontext_addr): New function.
7643 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7644 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7645 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7646
7647 * corelow.c (core_xfer_partial): Fix coding standards violation.
7648 Add support for TARGET_OBJECT_WCOOKIE.
7649
7650 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7651 deprecated_pc_in_sigtramp.
7652 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7653 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7654 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7655 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7656 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7657 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7658 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7659
7660 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7661 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7662 Fix typo.
7663
7664 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7665 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7666 (amd64_collect_fxsave): Likewise.
7667
7668 * i386-sol2-tdep.c: Include "gdb_string.h".
7669 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7670 name.
7671 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7672
7673 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7674
7675 * i386-sol2-tdep.c: Include "solib-svr4.h".
7676 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7677 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7678 * config/i386/tm-i386sol2.h: Include :solib.h".
7679 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7680 solib-svr4.o and solib-legacy.o.
7681 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7682 solib-svr4.o.
7683
7684 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7685
7686 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7687 whether a register is supplied by PTRACE_GETFPREGS.
7688 (store_inferior_registers): Likewise.
7689 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7690 whether a register is supplied by PT_GETFPREGS.
7691 (store_inferior_registers): Likewise.
7692
7693 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7694 * config/i386/linux64.mt (TDEPFILES): Likewise.
7695
7696 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7697
7698 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7699 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7700 the program counter is in the range specified by `struct
7701 gdbarch_tdep'.
7702 * amd64-linux-tdep.c: Include "symtab.h".
7703 (amd64_linux_pc_in_sigtramp): Remove function.
7704 (amd64_linux_sigtramp_p): New function.
7705 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7706 deprecated_pc_in_sigtramp.
7707 * amd64nbsd-tdep.c: Include "symtab.h".
7708 (amd64nbsd_sigtramp_p): New function.
7709 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7710 deprecated_pc_in_sigtramp.
7711 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7712 few comments.
7713 (amd64obsd_pc_in_sigtramp): Remove function.
7714 (amd64obsd_sigtramp_p): New function.
7715 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7716 deprecated_pc_in_sigtramp.
7717 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7718 (i386bsd_pc_ins_sigtramp): Remove prototype.
7719 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7720 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7721 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7722 the program counter is in the range specified by `struct
7723 gdbarch_tdep'.
7724 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7725 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7726 (i386_go32_pc_in_sigtramp): Remove function.
7727 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7728 Initialize TDEP->sigtramp_p.
7729 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7730 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7731 deprecated_pc_in_sigtramp.
7732 * i386-linux-tdep.c: Adjust comments.
7733 (i386_linux_pc_in_sigtramp): Remove function.
7734 (i386_linux_sigtramp_p): New function.
7735 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7736 deprecated_pc_in_sigtramp.
7737 * i386-nto-tdep.c: Update copyright year.
7738 (i386nto_pc_in_sigtramp): Remove function.
7739 (i386nto_sigtramp_p): New function.
7740 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7741 SP_REGNUM.
7742 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7743 deprecated_pc_in_sigtramp.
7744 * i386-sol2-tdep.c: Update copyright year.
7745 (i386_sol2_pc_in_sigtramp): Remove function.
7746 (i386_sol2_sigtramp_p): New function.
7747 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7748 deprecated_pc_in_sigtramp.
7749 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7750 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7751 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7752 deprecated_sigtramp_start and deprecated_sigtramp_end.
7753 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7754 (i386nbsd_pc_in_sigtramp): Remove function.
7755 (i386nbsd_sigtramp_p): New function.
7756 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7757 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7758 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7759 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7760 (i386obsd_pc_in_sigtramp): Remove function.
7761 (i386obsd_sigtramp_p): New function.
7762 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7763 functions.
7764 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7765 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7766 TDEP->sigtramp_p.
7767 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7768 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7769 dependencies.
7770
7771 * config/i386/i386aout.mt: Remove file.
7772
7773 * configure.tgt: Remove i[34567]86-*-go32*,
7774 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7775 and i[34567]86-*-isc*. Set gdb_target to i386 for
7776 i[34567]86-*-netware* and i[34567]86-*-*.
7777 * config/i386/i386.mt: New file.
7778 * config/i386/embed.mt: Remove file.
7779 * config/i386/go32.mt: Remove file.
7780 * config/i386/i386nw.mt: Remove file.
7781 * config/i386/i386v.mt: Remove file.
7782 * config/i386/tm-go32.h: Remove file.
7783
7784 * tui/tui-hooks.c: Include "readline/readline.h" after
7785 "gdb_curses.h" instead of before.
7786 * tui/tui-io.c: Likewise.
7787
7788 * tui/tui.c: Fix typo in comment.
7789
7790 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7791
7792 2004-04-08 Andrew Cagney <cagney@redhat.com>
7793
7794 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7795 (deprecated_exception_support_initialized): Declare.
7796 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7797 (initialize_hp_cxx_exception_support)
7798 (child_enable_exception_callback): Update.
7799 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7800 (deprecated_exception_support_initialized): Rename
7801 deprecated_exception_catchpoints_are_fragile and
7802 deprecated_exception_support_initialized.
7803 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7804
7805 * symtab.c (deprecated_hp_som_som_object_present): Rename
7806 hp_som_som_object_present.
7807 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7808 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7809 Update. Delete extern declaration.
7810 * valops.c (hp_som_som_object_present): Ditto.
7811 * parse.c (deprecated_hp_som_som_object_present)
7812 (parse_nested_classes_for_hpacc): Ditto.
7813 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7814 * hppa-hpux-tdep.c (hp_som_som_object_present)
7815 (initialize_hp_cxx_exception_support): Ditto.
7816 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7817 * cp-valprint.c (hp_som_som_object_present)
7818 (cp_print_class_method): Ditto.
7819 * c-typeprint.c (hp_som_som_object_present):
7820 (c_type_print_base): Ditto.
7821 * c-exp.y (hp_som_som_object_present): Ditto.
7822
7823 2004-04-08 Andrew Cagney <cagney@redhat.com>
7824
7825 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7826 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7827 (frame_unwind_find_by_frame): Re-implement the unwind code so
7828 that it can both prepend and append sniffers. Replace
7829 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7830 * tramp-frame.c (tramp_frame_append): Use
7831 frame_unwind_prepend_unwinder.
7832 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7833 frame_unwind_register_unwinder.
7834 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7835 tramp_frame_append.
7836 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7837 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7838 (mips_linux_init_abi): Update.
7839
7840 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7841
7842 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7843 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7844 file support.
7845
7846 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7847
7848 * ia64-tdep.c (elf.h): Don't include.
7849 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7850
7851 2004-04-07 Jason Molenda (jmolenda@apple.com)
7852
7853 * frame.h: Typeo corrections in comments.
7854
7855 2004-04-07 Jim Blandy <jimb@redhat.com>
7856
7857 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7858 %esp and %ebp
7859
7860 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7861
7862 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7863 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7864 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7865 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7866 and solib-legacy.o.
7867 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7868 solib-svr4.o.
7869 * config/sparc/tm-sol2.h: Update copyright year. Include
7870 "solib.h".
7871
7872 * sparc-sol2-tdep.c: Update copyright year. Include
7873 "solib-svr4.h".
7874 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7875 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7876 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7877 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7878 dependencies.
7879
7880 2004-04-06 Andrew Cagney <cagney@redhat.com>
7881
7882 * infttrace.c: Include "infttrace.h".
7883 * infttrace.h: Include "target.h".
7884 * Makefile.in (infttrace_h): Update.
7885 (infttrace.o): Update.
7886
7887 2004-04-06 Andrew Cagney <cagney@redhat.com>
7888
7889 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7890 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7891 move extern declarations from here ...
7892 * infttrace.h: ... to here.
7893 * Makefile.in (hppah-nat.o): Update dependencies.
7894
7895 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7896 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7897 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7898 (hppa_breakpoint_from_pc): Delete.
7899
7900 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7901
7902 2004-04-05 Andrew Cagney <cagney@redhat.com>
7903
7904 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7905 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7906 <sys/file.h>.
7907
7908 2004-04-06 Randolph Chung <tausq@debian.org>
7909
7910 Committed by Andrew Cagney (mechanical change).
7911 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7912 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7913 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7914 child_enable_exception_callback, current_ex_event,
7915 null_symtab_and_line, child_get_current_exception_event,
7916 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7917 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7918 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7919 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7920 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7921 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7922 Move hpux-specific definitions ...
7923 * hppa-hpux-tdep.c: ... to here.
7924
7925 2004-04-05 Andrew Cagney <cagney@redhat.com>
7926
7927 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7928 skip_prologue_using_sal.
7929
7930 2004-04-05 Andrew Cagney <cagney@redhat.com>
7931
7932 * config/i386/tm-i386.h: Delete file.
7933 * config/i386/tm-vxworks.h: Update copyright, do not include
7934 "tm-i386.h".
7935 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7936 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7937 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7938 * config/i386/ncr3000.mt (TM_FILE): Delete.
7939 * config/i386/interix.mt (TM_FILE): Delete.
7940 * config/i386/i386v.mt (TM_FILE): Delete.
7941 * config/i386/i386nw.mt (TM_FILE): Delete.
7942 * config/i386/i386gnu.mt (TM_FILE): Delete.
7943 * config/i386/i386aout.mt (TM_FILE): Delete.
7944 * config/i386/embed.mt (TM_FILE): Delete.
7945
7946 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7947
7948 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7949 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7950 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7951 (accg7_regnum): New constants.
7952 (last_spr_regnum, last_pseudo_regnum): Update.
7953 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7954 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7955 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7956 for accg registers.
7957 (frv_register_sim_regno): Update spr_map[].
7958
7959 2004-04-04 Andrew Cagney <cagney@redhat.com>
7960
7961 * config/mips/xm-riscos.h: Delete.
7962 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7963 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7964 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7965 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7966 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7967 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7968 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7969 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7970 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7971 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7972 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7973 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7974 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7975 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7976 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7977 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7978 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7979 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7980 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7981 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7982 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7983 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7984 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7985 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7986 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7987 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7988
7989 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7990 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7991 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7992 * configure.host: Remove m680[01]0-sun-sunos3*,
7993 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7994 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7995 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7996 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7997 mips-*-riscos*.
7998 * NEWS: Mention removed systems.
7999
8000 2004-04-04 Andrew Cagney <cagney@redhat.com>
8001
8002 GDB 6.1 release created from 6.1 branch.
8003
8004 2004-04-04 Andrew Cagney <cagney@redhat.com>
8005
8006 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8007 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8008 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8009
8010 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8011 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8012 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8013
8014 2004-04-03 Jim Blandy <jimb@redhat.com>
8015
8016 * MAINTAINERS: Chris Faylor has changed employers; add him to
8017 "paper trail" section, and update his E-mail address.
8018
8019 2004-04-03 Andrew Cagney <cagney@redhat.com>
8020
8021 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8022 generic dummy frames.
8023 * dummy-frame.c: Update copyright.
8024 (dummy_frame_sniffer): Delete check for generic dummy frames.
8025
8026 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8027 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8028 (REG_PARM_STACK_SPACE): Delete.
8029 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8030 Inline reference to REG_PARM_STACK_SPACE.
8031
8032 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8033 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8034 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8035 (FRAME_BASE_BEFORE_SIGTRAMP)
8036 (hppa32_hpux_frame_base_before_sigtramp)
8037 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8038 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8039 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8040 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8041 (FRAME_BASE_BEFORE_SIGTRAMP)
8042 (hppa64_hpux_frame_base_before_sigtramp)
8043 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8044
8045 2004-04-03 Andrew Cagney <cagney@redhat.com>
8046
8047 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8048
8049 2004-04-02 Andrew Cagney <cagney@redhat.com>
8050
8051 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8052 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8053 * dummy-frame.h: Delete out-of-date comments.
8054 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8055 * gdbarch.h, gdbarch.c: Re-generate.
8056
8057 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8058
8059 Committed by Andrew Cagney <cagney@redhat.com>.
8060 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8061 into account an instruction saving a register if we have already
8062 seen an earlier instruction saving that same register.
8063
8064 2004-04-02 Andrew Cagney <cagney@redhat.com>
8065
8066 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8067 * gdbarch.h, gdbarch.c: Re-generate.
8068 * frame.c (legacy_get_prev_frame): Delete references to
8069 DEPRECATED_INIT_FRAME_PC_FIRST.
8070
8071 * infrun.c (pc_in_sigtramp): Delete function.
8072 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8073 get_frame_type.
8074
8075 2004-04-02 Andrew Cagney <cagney@redhat.com>
8076
8077 * infrun.c (handle_step_into_function): Delete code conditional on
8078 legacy_frame_p.
8079 (handle_inferior_event, step_over_function): Ditto.
8080
8081 2004-04-02 Andrew Cagney <cagney@redhat.com>
8082
8083 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8084 "previous frame inner to this frame" test.
8085
8086 2004-04-02 Andrew Cagney <cagney@redhat.com>
8087
8088 * frame.c (safe_frame_unwind_memory): New function.
8089 * frame.h (safe_frame_unwind_memory): Declare. Update description
8090 of /safe_/ methods.
8091 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8092 "next_frame". Use safe_frame_unwind_memory.
8093 (tramp_frame_sniffer): Update call to tramp_frame_start.
8094
8095 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8096
8097 * dwarf2read.c (dwarf2_objfile_data_key): New.
8098 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8099 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8100 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8101 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8102 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8103 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8104 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8105 Remove variables.
8106 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8107 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8108 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8109 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8110 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8111 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8112 Remove macros.
8113 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8114 data.
8115 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8116 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8117 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8118 (read_partial_die, read_full_die, read_indirect_string)
8119 (dwarf_decode_line_header, dwarf_decode_macros)
8120 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8121 Update uses of removed variables.
8122 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8123 of removed macros.
8124 (_initialize_dwarf2_read): New function.
8125 * symfile.h (dwarf2_has_info): Update prototype.
8126 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8127 * elfread.c (elf_symfile_read): Likewise.
8128
8129 2004-04-01 Jim Blandy <jimb@redhat.com>
8130
8131 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8132 function for register numbers on all the rs6000-derived targets.
8133 (rs6000_gdbarch_init): Don't register a separate
8134 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8135 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8136 variants.
8137
8138 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8139 numbering.
8140
8141 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8142
8143 * valarith.c: Update copyright notice.
8144 (value_add): Handle range types.
8145 (value_sub): Ditto.
8146 (value_equal): Ditto.
8147 (value_less): Ditto.
8148 (value_neg): Ditto.
8149 (value_complement): Ditto.
8150 (value_binop): Simplify slightly by using is_integral_type and
8151 eliminiating unnecessary COERCE_ENUMs.
8152
8153 2004-03-31 Andrew Cagney <cagney@redhat.com>
8154
8155 * frame.h (frame_unwind_id): Declare.
8156 * frame.c (frame_unwind_id): New function.
8157 (get_prev_frame_1): New function.
8158 (frame_debug_got_null_frame): New function.
8159 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8160 code proper to prev_frame, update description.
8161 * infrun.c (step_over_function): Use frame_unwind_id.
8162
8163 2004-04-31 J. Brobecker <brobecker@gnat.com>
8164
8165 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8166 (hppa64_push_dummy_call): Likewise.
8167
8168 2004-03-30 Jim Blandy <jimb@redhat.com>
8169
8170 From Ulrich Weigand:
8171 * utils.c (query): Do not use a va_list variable multiple times.
8172
8173 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8174
8175 * Makefile.in (linux_nat_h): Update dependencies.
8176 * configure.in: Check for <gnu/libc-version.h>.
8177 * configure: Regenerate.
8178 * config.in: Regenerate.
8179 * linux-nat.h: Include "target.h". Add waitstatus field to
8180 struct lwp_info.
8181 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8182 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8183 to.
8184 (lin_lwp_handle_extended): New function. Handle clone events.
8185 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8186 thread exit events.
8187 (child_wait): Handle clone events.
8188 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8189 * linux-nat.c (linux_enable_event_reporting): Turn on
8190 PTRACE_O_TRACECLONE.
8191 (linux_handle_extended_wait): Handle clone events.
8192 * thread-db.c: Include <gnu/libc-version.h>.
8193 (struct private_thread_info): Add dying flag.
8194 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8195 higher.
8196 (attach_thread): Update comments. Handle dying threads.
8197 (detach_thread): Set the dying flag.
8198 (check_event): Always call attach_thread.
8199
8200 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8201
8202 * mips-tdep.c (mips_pdr_data): New.
8203 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8204 (_initialize_mips_tdep): Initialize mips_pdr_data.
8205
8206 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8207
8208 * minsyms.c (install_minimal_symbols): Move dropping leading
8209 char from linkage name from here...
8210 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8211 test for "__gnu_compiled*" symbols.
8212
8213 2004-03-28 Jim Blandy <jimb@redhat.com>
8214
8215 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8216 registers to temp register r0 and byte stores as prologue
8217 instructions.
8218
8219 2004-03-28 Andrew Cagney <cagney@redhat.com>
8220
8221 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8222 arm*-*-*.
8223
8224 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8225
8226 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8227 and switch the layout to force a display of register window.
8228
8229 2004-02-26 J. Brobecker <brobecker@gnat.com>
8230
8231 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8232 of the INTEGER class.
8233
8234 2004-03-26 Jim Blandy <jimb@redhat.com>
8235
8236 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8237 bytes long on PPC GNU/Linux.
8238
8239 2004-03-26 David Carlton <carlton@kealia.com>
8240
8241 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8242
8243 2004-03-25 Andrew Cagney <cagney@redhat.com>
8244
8245 * PROBLEMS: Add general section titles, remove references to
8246 specific releases.
8247
8248 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8249
8250 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8251 INT_REGISTER_SIZE.
8252 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8253 FP_REGISTER_VIRTUAL_SIZE.
8254 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8255 of DEPRECATED_REGISTER_RAW_SIZE.
8256 (arm_register_type): Add gdbarch argument.
8257 (arm_register_raw_size, arm_register_virtual_size): Delete.
8258 (arm_register_byte, arm_extract_return_value)
8259 (arm_store_return_value, arm_get_longjmp_target): Update references
8260 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8261 (arm_gdbarch_init): Likewise. Don't set
8262 deprecated_register_raw_size, deprecated_register_virtual_size,
8263 deprecated_max_register_raw_size,
8264 deprecated_max_register_virtual_size, or
8265 deprecated_max_register_virtual_type. Do set register_type.
8266 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8267 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8268 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8269 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8270 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8271 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8272 INT_REGISTER_SIZE.
8273 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8274 (remote_rdp_store_register): Likewise.
8275
8276 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8277
8278 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8279 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8280 to after osabi initialization.
8281 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8282 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8283 functions.
8284 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8285 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8286 variables.
8287 (mips_linux_init_abi): Append signal trampoline unwinders.
8288
8289 2004-03-24 Andrew Cagney <cagney@redhat.com>
8290
8291 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8292 * tramp-frame.c: Include "gdb_assert.h".
8293 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8294 correct sizeof.
8295 (tramp_frame_append): Validate the tramp frame's instructions.
8296 * Makefile.in (tramp-frame.o): Update dependencies.
8297
8298 2004-03-23 Andrew Cagney <cagney@redhat.com>
8299
8300 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8301
8302 2004-03-23 Andrew Cagney <cagney@redhat.com>
8303
8304 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8305 Nasser as past testsuite/lib/ (and other) maintainers.
8306
8307 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8308
8309 * infcmd.c (attach_command): Reread symbols if we already have
8310 an exec file.
8311
8312 2004-03-23 Andrew Cagney <cagney@redhat.com>
8313
8314 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8315
8316 2004-03-23 Andrew Cagney <cagney@redhat.com>
8317
8318 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8319 * gdbarch.h, gdbarch.c: Re-generate.
8320 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8321 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8322 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8323 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8324 (DEPRECATED_SIGTRAMP_START): Update.
8325 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8326 (DEPRECATED_SIGTRAMP_START): Update.
8327 * blockframe.c (find_pc_sect_partial_function): Update.
8328 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8329
8330 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8333 if necessary.
8334
8335 2004-03-23 Andrew Cagney <cagney@redhat.com>
8336
8337 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8338 predicate, deprecate.
8339 * gdbarch.h, gdbarch.c: Re-generate.
8340 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8341 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8342 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8343 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8344 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8345 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8346 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8347 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8348 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8349 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8350 * blockframe.c (find_pc_partial_function): Update.
8351 * breakpoint.c (bpstat_what): Update.
8352 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8353 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8354 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8355 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8356 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8357 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8358 * i386-nto-tdep.c (i386nto_init_abi): Update.
8359 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8360 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8361 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8362 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8363 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8364 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8365 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8366 * infrun.c (pc_in_sigtramp): Update.
8367 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8368 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8369 * mips-tdep.c (mips_gdbarch_init): Update.
8370 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8371 * ppc-linux-tdep.c: Update comment.
8372 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8373 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8374 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8375 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8376 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8377 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8378 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8379 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8380 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8381 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8382
8383 2004-03-23 Andrew Cagney <cagney@redhat.com>
8384
8385 * tramp-frame.h, tramp-frame.h: New files.
8386 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8387 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8388
8389 * Makefile.in: Update all dependencies.
8390
8391 2004-03-23 Andrew Cagney <cagney@redhat.com>
8392
8393 * Makefile.in (trad_frame_h): Add $(frame_h).
8394 * trad-frame.h: Update copyright. Include "frame.h".
8395 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8396 (trad_frame_set_id, trad_frame_get_id): Declare.
8397 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8398 * trad-frame.c: Update copyright.
8399 (struct trad_frame_cache): Define.
8400 (trad_frame_cache_zalloc): New function.
8401 (trad_frame_set_id, trad_frame_get_id): New functions.
8402 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8403
8404 2004-03-22 Andrew Cagney <cagney@redhat.com>
8405
8406 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8407 s390_pltstub_unwind_cache.
8408 (s390_stub_frame_unwind_cache): Rename
8409 s390_pltstub_frame_unwind_cache.
8410 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8411 (s390_stub_frame_prev_register): Rename
8412 s390_pltstub_frame_prev_register.
8413 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8414 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8415
8416 From Ulrich Weigand:
8417 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8418 pointer calls like PLT calls.
8419
8420 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8421
8422 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8423 PC rather than the partial function start address. Use the start
8424 address to sanity check the found PDR.
8425
8426 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8427
8428 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8429 linux_handle_extended_wait.
8430
8431 2004-03-22 Andrew Cagney <cagney@redhat.com>
8432
8433 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8434 function.
8435
8436 * frame.h (generic_pop_current_frame): Delete declaration.
8437 (deprecate_pop_dummy_frame): Deprecate
8438 generic_pop_dummy_frame.
8439 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8440 (generic_pop_current_frame): Delete function.
8441 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8442 generic_pop_current_frame.
8443 * v850-tdep.c (v850_pop_frame): Update.
8444 * mcore-tdep.c (mcore_pop_frame): Update.
8445 * sh64-tdep.c (sh64_pop_frame): Update.
8446 * h8300-tdep.c (h8300_pop_frame): Update.
8447
8448 2004-03-22 Andrew Cagney <cagney@redhat.com>
8449
8450 * frame.h (deprecated_pc_in_call_dummy): Rename
8451 generic_pc_in_call_dummy.
8452 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8453 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8454 generic_pc_in_call_dummy.
8455 (pc_in_dummy_frame): Make static.
8456 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8457 * gdbarch.h, gdbarch.c: Re-generate.
8458 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8459 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8460 (legacy_get_prev_frame): Ditto.
8461 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8462 comment.
8463
8464 2004-03-21 Andrew Cagney <cagney@redhat.com>
8465
8466 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8467 declaration and out-of-date comment.
8468 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8469 Delete function.
8470 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8471 deprecated_pc_in_call_dummy.
8472
8473 * infrun.c (handle_inferior_event): For non legacy frames, use the
8474 frame ID and frame type to identify a signal trampoline. Update
8475 comments.
8476
8477 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8478
8479 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8480 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8481
8482 2004-03-21 Andrew Cagney <cagney@redhat.com>
8483
8484 * frame-unwind.h: Update copyright.
8485 (struct frame_data): Add opaque declaration.
8486 (frame_sniffer_ftype): Declare.
8487 (struct frame_unwind): Add "unwind_data" and "sniffer".
8488 (frame_unwind_register_unwinder): Declare.
8489 (frame_unwind_find_by_frame): Add parameter "this_cache".
8490 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8491 (legacy_get_prev_frame, legacy_get_prev_frame)
8492 (get_frame_type): Pass the prologue_cache to
8493 frame_unwind_find_by_frame.
8494 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8495 "unwinder".
8496 (frame_unwind_register_unwinder): New function.
8497 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8498
8499 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8500
8501 * bcache.c (print_percentage): Use floating point to avoid
8502 incorrect results when portion*100 overflows.
8503
8504 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8505
8506 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8507 (ppc_linux_init_extra_frame_info)
8508 (ppc_linux_frameless_function_invocation)
8509 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8510 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8511 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8512 (rs6000_frame_chain): Delete declarations.
8513 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8514 (ppc_linux_init_extra_frame_info)
8515 (ppc_linux_frameless_function_invocation)
8516 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8517 (ppc_linux_init_abi): Remove registration of above deleted functions.
8518 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8519 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8520 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8521 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8522 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8523 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8524 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8525 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8526 frame management for all OSABIs.
8527
8528 2004-03-19 Andrew Cagney <cagney@redhat.com>
8529
8530 Committed by Kevin Buettner <kevinb@redhat.com>.
8531
8532 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8533 Update copyright.
8534 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8535 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8536 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8537 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8538 unwinders. #ifdef legacy frame code.
8539 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8540 "frame-base.h".
8541 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8542 (struct rs6000_frame_cache, rs6000_frame_cache)
8543 (rs6000_frame_this_id, rs6000_frame_prev_register)
8544 (rs6000_frame_sniffer, rs6000_frame_unwind)
8545 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8546 (rs6000_frame_base): Implement a traditional frame unwinder.
8547 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8548 frame unwinder.
8549
8550 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8551
8552 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8553 breakpoint address for watchpoints or the catch eventpoints.
8554 Add new paramter ``bptype''. Adjust all callers.
8555
8556 2004-03-19 Andrew Cagney <cagney@redhat.com>
8557
8558 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8559
8560 * PROBLEMS: Delete note that ARM does not use frame code, problem
8561 fixed.
8562
8563 2004-03-18 Andrew Cagney <cagney@redhat.com>
8564
8565 * stack.c (return_command): Delete code wrapped in #ifdef
8566 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8567
8568 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8569
8570 2004-03-18 Andrew Cagney <cagney@redhat.com>
8571
8572 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8573 DEPRECATED_IN_SIGTRAMP.
8574 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8575 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8576 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8577 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8578 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8579 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8580 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8581 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8582 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8583 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8584
8585 2004-03-18 Andrew Cagney <cagney@redhat.com>
8586
8587 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8588 (struct frame_base_table_entry): Define.
8589 (struct frame_base_table): Re-implement as a linked list.
8590 (frame_base_init): Re-implement.
8591 (frame_base_table): Delete function.
8592 (append_predicate): Delete function.
8593 (frame_base_append_sniffer): Update.
8594 (frame_base_set_default): Update.
8595 (frame_base_find_by_frame): Update.
8596 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8597 * Makefile.in (frame-base.o): Update dependencies.
8598
8599 2004-03-17 Andrew Cagney <cagney@redhat.com>
8600
8601 * frame.c (legacy_get_prev_frame): Pass correct frame to
8602 frame_unwind_find_by_frame.
8603
8604 2004-03-17 David Carlton <carlton@kealia.com>
8605
8606 * NEWS: Mention C++ nested types and namespaces
8607
8608 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8609
8610 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8611 and "Regressions since gdb 5.3.". Add known regressions since
8612 gdb 6.0.
8613
8614 2004-03-16 David Carlton <carlton@kealia.com>
8615
8616 * dwarf2read.c (process_structure_scope): Process children even
8617 when we're a declaration.
8618
8619 2004-03-16 Andrew Cagney <cagney@redhat.com>
8620
8621 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8622 * blockframe.c (find_pc_partial_function)
8623 (find_pc_sect_partial_function): Merge into a single
8624 find_pc_partial_function.
8625
8626 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8627
8628 * i386bsd-nat.c: s/regno/regnum/g.
8629 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8630 FP0_REGNUM.
8631 (store_inferior_registers): Likewise.
8632
8633 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8634
8635 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8636 of i387_fill_fsave.
8637 (store_inferior_registers): Call i387_collect_fsave and
8638 i387_collect_fxsave instead of i387_fill_fsave and
8639 i387_fill_fxsave.
8640
8641 2004-03-15 Andrew Cagney <cagney@redhat.com>
8642
8643 * Makefile.in (frame-unwind.o): Update dependencies.
8644 * frame-unwind.c: Include "gdb_obstack.h".
8645 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8646 parameter.
8647 (append_predicate): Delete function.
8648 (struct frame_unwind_table_entry): New structure.
8649 (struct frame_unwind_table): Replace "sniffer" with "head" and
8650 "tail".
8651 (frame_unwind_append_sniffer): Update.
8652 (frame_unwind_find_by_frame): Update.
8653 (_initialize_frame_unwind): Registe frame_unwind_init using
8654 gdbarch_data_register_pre_init.
8655
8656 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8657
8658 * i386bsd-nat.c: Update copyright year.
8659 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8660 define unconditionally.
8661
8662 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8663
8664 * i387-tdep.h (i387_collect_fsave): New prototype.
8665 * i387-tdep.c (i387_collect_fsave): New function containing most
8666 of the code from i387_fill_fsave.
8667 (i387_fill_fsave): Call i387_collect_fsave.
8668
8669 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8670
8671 * i386-linux-tdep.c: Update copyright year.
8672 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8673 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8674 svr4_ilp32_link_map_offsets instead of
8675 i386_linux_svr4_fetch_link_map_offsets.
8676
8677 2004-03-15 David Carlton <carlton@kealia.com>
8678
8679 Fix for PR c++/1553:
8680 * dwarf2read.c (read_structure_type): Determine type name by
8681 calling determine_class_name.
8682 (determine_class_name): New.
8683 (determine_prefix): Look at TYPE_TAG_NAME and call
8684 determine_class_name when appropriate.
8685 (determine_prefix_aux, class_name): Delete.
8686 (read_namespace): Set die->type.
8687
8688 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8689
8690 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8691 unused macro definition. The definition in target.h (or perhaps
8692 elsewhere) takes precedence.
8693
8694 2004-03-15 Andrew Cagney <cagney@redhat.com>
8695
8696 * ppc-tdep.h: Update copyright.
8697 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8698 function signatures to match "regsets.h".
8699 * ppc-linux-tdep.c: Include "regset.h".
8700 (ELF_GREGSET_SIZE): Delete.
8701 (right_supply_register): New function.
8702 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8703 using right_supply_register.
8704 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8705 functions.
8706 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8707 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8708 (_initialize_ppc_linux_tdep): Do not register
8709 ppc_linux_regset_core_fns.
8710 (ppc_linux_regset_from_core_section): Replace
8711 fetch_core_registers.
8712 (ppc_linux_regset_core_fns): Delete.
8713 * ppc-linux-nat.c: (right_fill_reg): New function.
8714 (supply_gregset): Update call to ppc_linux_supply_gregset.
8715 (fill_gregset): Clear the register set, use right_fill_reg.
8716 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8717 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8718
8719 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8720 unsigned.
8721
8722 2004-03-15 Andrew Cagney <cagney@redhat.com>
8723
8724 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8725 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8726 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8727 and register_gdbarch_data.
8728 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8729 (struct gdbarch_data): Replace "init" by "pre_init" and
8730 "post_init".
8731 * gdbarch.h, gdbarch.c: Re-generate.
8732 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8733 with"obstack", use OBSTACK_ZALLOC.
8734 (dwarf2_frame_ops): Delete.
8735 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8736 (dwarf2_frame_init_reg): Use gdbarch_data.
8737 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8738 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8739 (_initialize_svr4_solib): Update.
8740 * user-regs.c (_initialize_user_regs): Update.
8741 * reggroups.c (_initialize_reggroup): Update.
8742 * regcache.c (_initialize_regcache): Update.
8743 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8744 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8745 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8746 * frame-unwind.c (_initialize_frame_unwind): Update.
8747 * frame-base.c (_initialize_frame_base): Update.
8748 * user-regs.c (user_reg_add): Update.
8749 * reggroups.c (reggroup_add): Update.
8750 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8751 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8752 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8753 * frame-base.c (frame_base_table): Update.
8754 * remote.c (_initialize_remote): Update.
8755 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8756
8757 2004-03-15 Andrew Cagney <cagney@redhat.com>
8758
8759 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8760
8761 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8762
8763 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8764 * frv-linux-tdep.c: New file.
8765 * frv-tdep.c (struct gdbarch_tdep): Add new field
8766 ``sigcontext_reg_addr''.
8767 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8768 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8769 (frv_sigramp_frame_sniffer): New functions.
8770 (frv_sigtramp_frame_unwind): New static global.
8771 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8772 sniffers.
8773 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8774 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8775
8776 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8777
8778 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8779 but not via a call to error(), when unable to read memory.
8780
8781 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8782
8783 * frv-tdep.c (frv_call_dummy_words): Delete.
8784 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8785
8786 2004-03-15 Andrew Cagney <cagney@redhat.com>
8787
8788 * infrun.c (handle_step_into_function, step_over_function): Only
8789 update and use STEP_FRAME_ID when the system is using legacy
8790 frames. Update comments.
8791
8792 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8793
8794 * amd64-linux-tdep.h: Remove file.
8795 * amd64-linux-tdep.c: Don't include "inferior.h" and
8796 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8797 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8798 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8799 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8800 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8801 macros.
8802 (user_to_gdb_regmap): Remove variable.
8803 (amd64_linux_gregset_reg_offset): New variable.
8804 (amd64_core_fns): Remove variable.
8805 (fetch_core_registers): Remove function.
8806 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8807 functions.
8808 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8809 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8810 * Makefile.in (amd64_linux_tdep_h): Remove.
8811 (amd64-linux-nat.o): Update dependencies.
8812 (amd64-linux-tdep.o): Update dependencies.
8813
8814 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8815 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8816 functions.
8817 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8818
8819 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8820 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8821
8822 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8823
8824 * dwarf2read.c (read_structure_type): Rename from
8825 read_structure_scope. Don't create a symbol or call process_die.
8826 Return immediately if die->type is set. Call read_type_die before
8827 dwarf2_add_member_fn.
8828 (process_structure_scope): New function.
8829 (read_enumeration_type, process_enumeration_scope): New functions,
8830 broken out from read_enumeration. Don't create the enumeration
8831 type if it has already been created.
8832 (read_enumeration): Removed.
8833 (process_die): Call read_structure_type, process_structure_scope,
8834 read_enumeration_type, and process_enumeration_scope. Just call
8835 new_symbol for base and subrange types. Add a comment about other
8836 type dies.
8837 (read_type_die): Call read_enumeration_type.
8838 (add_partial_structure, new_symbol): Update comments.
8839
8840 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8841
8842 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8843
8844 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8845
8846 * tui/tui-win.h (tui_get_cmd_list): Declare.
8847 * tui/tui-win.c (tui_command): New function.
8848 (tui_get_cmd_list): New function.
8849 (_initialize_tui_win): Moved initialization of tui command in
8850 tui_get_cmd_list.
8851
8852 * tui/tui-data.c (init_content_element): Setup new data members.
8853 (init_win_info): Likewise.
8854 (free_content_elements): Free it.
8855 * tui/tui-data.h (struct tui_data_element): Store the register
8856 content to print.
8857 (struct tui_data_info): Keep the current register group.
8858
8859 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8860
8861 * tui/tui-regs.h (tui_show_registers): Update prototype.
8862 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8863 (tui_resize_all): No need to calculate anything for register window.
8864 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8865 (tui_set_register_element, tui_set_general_regs_content): Remove.
8866 (tui_set_special_regs_content): Remove.
8867 (tui_set_general_and_special_regs_content): Remove.
8868 (tui_set_float_regs_content): Remove.
8869 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8870 (tui_set_regs_content): Remove.
8871 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8872 (tui_v_show_registers_command_support): Remove.
8873 (tui_show_registers): Use a reggroup to specify the registers to show.
8874 (tui_show_register_group): New function.
8875 (tui_display_registers_from): Compute the layout of register window
8876 and refresh with new API; be sure to delete old register windows.
8877 (tui_check_register_values): Update to use tui_get_register and
8878 tui_display_data.
8879 (tui_display_register): Just refresh the register window part.
8880 (tui_register_format): Format registers and save in tui_data_element.
8881 (tui_get_register): New to combine tui_reg_value_has_changed and
8882 tui_get_register_raw_value; fix to use the new gdb API.
8883 (tui_show_float_command): Renamed tui_reg_float_command.
8884 (tui_show_general_command): Renamed tui_reg_general_command.
8885 (tui_show_special_command): Renamed tui_reg_system_command.
8886 (_initialize_tui_regs): Remove unused commands.
8887
8888 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8889
8890 * NEWS (New native configurations): Mention OpenBSD/amd64.
8891
8892 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8893 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8894 Remove defines.
8895 * config/i386/nm-fbsd64.h: Likewise.
8896 * config/i386/nm-obsd.h: Likewise.
8897 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8898 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8899
8900 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8901
8902 * frv-tdep.c (set_variant_scratch_registers): New function.
8903 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8904 New constants.
8905
8906 From Richard Sandiford <rsandifo@redhat.com>:
8907 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8908
8909 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8910
8911 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8912 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8913 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8914 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8915 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8916 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8917 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8918 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8919 definitions from frv-tdep.c to frv-tdep.h.
8920
8921 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8922
8923 Add shared library support for FR-V FDPIC ABI:
8924 * Makefile.in (solib-frv.o): Add dependencies.
8925 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8926 New functions.
8927 (frv_push_dummy_call): Add support for FDPIC ABI.
8928 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8929 for FDPIC ABI.
8930 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8931 (frv_fdpic_find_canonical_descriptor): Declare.
8932 * solib-frv.c: New file.
8933 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8934 * config/frv/tm-frv.h (solib.h): Include.
8935
8936 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8937
8938 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8939 (frv-tdep.o): Update dependencies.
8940 * frv-tdep.h: New file.
8941 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8942 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8943 constants.
8944 (struct gdbarch_tdep): Add new member ``frv_abi''.
8945 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8946 functions.
8947 (new_variant): Set ``frv_abi'' field.
8948 (gdb_arch_init): Detect FDPIC executables.
8949
8950 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8951
8952 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8953 wrapper.
8954
8955 2004-03-11 Andrew Cagney <cagney@redhat.com>
8956
8957 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8958
8959 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8960
8961 * solist.h (master_so_list): New function.
8962 * solib.c (master_so_list): Likewise.
8963 * solib-svr4.c (enable_break): Iterate over so_list entries
8964 obtained from master list instead of entries obtained directly
8965 via svr4_current_sos().
8966
8967 2004-03-10 Ben Elliston <bje@gnu.org>
8968
8969 * MAINTAINERS: Update my mail address.
8970
8971 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8972
8973 * remote-m32r-sdi.c: Support hardware watchpoint.
8974
8975 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8976
8977 * user-regs.c: Update copyright years.
8978 (struct user_regs): Rename to gdb_user_regs.
8979 (append_user_reg, builtin_user_regs, user_regs_init)
8980 (user_reg_add, user_reg_map_name_to_regnum)
8981 (usernum_to_user_reg): Update.
8982
8983 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8986 (skip_children): New functions.
8987 (locate_pdi_sibling): Call skip_children.
8988
8989 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8990
8991 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8992 * gdbtypes.c (check_typedef): Update comments.
8993
8994 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8995
8996 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8997 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8998 pointer. Update comment about comp_unit_head.
8999 (struct abbrev_info): Shorten two int flags.
9000 (dwarf_alloc_abbrev): Take a CU argument.
9001 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9002 each time through the loop. Update cleanup argument.
9003 (psymtab_to_symtab_1): Update cleanup call.
9004 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9005 abbrev_obstack.
9006 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9007 Just call obstack_free and clear the pointer.
9008
9009 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9010
9011 * infrun.c (handle_inferior_event): Remove short-circuit code for
9012 events in a different thread.
9013
9014 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9015
9016 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9017 print the whole transfer.
9018 (initialize_targets): Update description of "set debug target".
9019
9020 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9021
9022 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9023
9024 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9025
9026 * MAINTAINERS (write after approval): Add myself.
9027
9028 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9029
9030 * sh-tdep.c (sh_print_registers_info): Use for loop.
9031 Don't skip multiple registers when a float register is encountered.
9032
9033 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9034
9035 Fix PR tdep/1291.
9036 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9037 to official SH documentation.
9038
9039 2004-03-07 Andrew Cagney <cagney@redhat.com>
9040
9041 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9042 unused function.
9043
9044 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9045
9046 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9047 (arm_get_next_pc): Handle BX and BLX.
9048
9049 2004-03-07 Andrew Cagney <cagney@redhat.com>
9050
9051 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9052 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9053 HPPA_SP_REGNUM.
9054 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9055 (hppa_target_read_fp): Delete.
9056 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9057 register_virtual_size, max_register_raw_size,
9058 max_register_virtual_size, register_byte, register_size,
9059 target_read_fp, fp_regnum, and register_bytes. Set register_type
9060 instead of register_virtual_type.
9061 (hppa32_register_type, hppa64_register_type): Replace
9062 hppa32_register_virtual_type and hppa64_register_virtual_type.
9063 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9064 (HPPA_FP_REGNUM): Define.
9065
9066 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9067
9068 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9069 (pa_do_registers_info): Delete.
9070 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9071 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9072 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9073
9074 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9075 GDB_TARGET_IS_HPPA code.
9076 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9077 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9078 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9079 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9080 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9081 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9082 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9083 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9084 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9085 (hppa_frameless_function_invocation, hppa64_store_return_value)
9086 (hppa_store_struct_return, hppa64_extract_return_value)
9087 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9088 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9089 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9090 (find_proc_framesize, deposit_21, restore_pc_queue)
9091 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9092 (rp_saved, pc_in_linker_stub): Delete.
9093
9094 Unconditionally enable 64-bit frame and ABI code.
9095 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9096 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9097 push_dummy_frame, fix_call_dummy, push_arguments,
9098 call_dummy_location, extract_return_value, use_struct_convention,
9099 store_return_value, store_struct_return, saved_pc_after_call,
9100 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9101 frame_chain, frame_chain_valid, frameless_function_invocation,
9102 frame_saved_pc, and pop_frame.
9103
9104 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9105 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9106 (hppa_gdbarch_init): Do not set PC_REGNUM.
9107
9108 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9109
9110 * config/alpha/tm-fbsd.h: Remove file.
9111 * config/alpha/fbsd.mt: Tweak comment.
9112 (TM_FILE): Set to tm-alpha.h.
9113
9114 2004-03-05 Andrew Cagney <cagney@redhat.com>
9115
9116 * infrun.c (step_over_function): When non-legacy code, and no
9117 step_frame_id, use the unwinder to get the caller's frame ID.
9118
9119 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9120
9121 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9122 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9123 bfd_arch_unknown. Adjust comment.
9124
9125 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9126 * i386obsd-tdep.c: Correct spelling in comment.
9127 * i386nbsd-tdep.c: Correct spelling in comment.
9128 * sparc-tdep.c: Correct spelling in comments.
9129
9130 2004-03-05 David Carlton <carlton@kealia.com>
9131
9132 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9133 bug.
9134
9135 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9136
9137 * sparc-tdep.c: Fix typo in comment.
9138
9139 2004-03-04 J. Brobecker <brobecker@gnat.com>
9140
9141 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9142
9143 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9144
9145 * dwarf2read.c: Add comment describing memory lifetimes.
9146 (struct dwarf2_pinfo): Update comment.
9147 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9148 (read_enumeration, new_symbol): Don't use obsavestring.
9149
9150 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9151
9152 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9153 instead of amd64_fill_fxsave.
9154 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9155 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9156
9157 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9158 Reorganize code a bit.
9159
9160 2004-03-04 Orjan Friberg <orjanf@axis.com>
9161
9162 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9163 when the frame pointer is pushed. Don't set the frame pointer's
9164 address on the stack unless it's actually located there.
9165 Set the SRP's address on the stack correctly when the PC is still in
9166 the prologue.
9167 (cris_return_value): New function.
9168 (cris_gdbarch_init): Clear deprecated store_return_value,
9169 extract_return_value.
9170
9171 2004-03-02 Jim Blandy <jimb@redhat.com>
9172
9173 * stabsread.c (reg_value_complaint): The maximum register number
9174 is one less than the number of registers.
9175
9176 2004-03-02 Andrew Cagney <cagney@redhat.com>
9177
9178 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9179 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9180 trailing comma and redundant assignment of I386_ST0_REGNUM.
9181 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9182 32-bit segment registers.
9183
9184 2004-03-01 Andrew Cagney <cagney@redhat.com>
9185
9186 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9187 use frame_relative_level and get_next_frame.
9188
9189 2004-02-29 Andrew Cagney <cagney@redhat.com>
9190
9191 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9192 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9193 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9194 Delete macro.
9195
9196 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9197
9198 * inflow.c (terminal_inferior): Don't give up the terminal if we
9199 previously couldn't get the inferior's terminal state.
9200
9201 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9202
9203 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9204 PC_REGNUM.
9205
9206 2004-02-28 Andrew Cagney <cagney@redhat.com>
9207
9208 * NEWS: Refer to GDB 6.1.
9209 * README: Refer to GDB 6.1.
9210 * PROBLEMS: Refer to GDB 6.1.
9211
9212 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9213
9214 * thread-db.c (disable_thread_signals): Remove unused function.
9215
9216 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9217
9218 * amd64-nat.c: Include "gdb_string.h".
9219 (amd64_collect_native_gregset): Zero-extend the 32-bit
9220 general-purpose registers and %eip.
9221
9222 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9223 * amd64-tdep.c (amd64_collect_fxsave): New function.
9224 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9225
9226 * i387-tdep.h: Update copyright year.
9227 (i387_collect_fxsave): New prototype.
9228 * i387-tdep.c: Update copyright year.
9229 (i387_collect_fxsave): New function containing most of the code
9230 from i387_fill_fxsave.
9231 (i387_fill_fxsave): Call i387_collect_fxsave.
9232
9233 2004-02-28 Andrew Cagney <cagney@redhat.com>
9234
9235 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9236 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9237
9238 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9239
9240 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9241
9242 2004-02-28 Andrew Cagney <cagney@redhat.com>
9243
9244 * utils.c: Use "", instead of <>, to include readline.
9245 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9246 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9247 * source.c, solib.c, exec.c, event-top.c: Ditto.
9248 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9249 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9250 * Makefile.in: Update all dependencies.
9251 (readline_tilde_h, readline_history_h): Define.
9252 (readline_headers): Delete.
9253
9254 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9255
9256 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9257 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9258 "config/i386/tm-lx64.h".
9259
9260 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9261 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9262 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9263
9264 2004-02-28 Andrew Cagney <cagney@redhat.com>
9265
9266 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9267
9268 * breakpoint.c (_initialize_breakpoint): Use
9269 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9270 Add help to show command.
9271
9272 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9273
9274 * i386-nat.c: Reformat to be closer to coding standards.
9275 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9276 `retval'. Make variables `align' and `size' local to while-loop.
9277 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9278 (_initialize_i386_nat): New prototype.
9279
9280 * tui/tui.c: Include <readline/readline.h> instead of
9281 "readline/readline.h". Include it after <term.h> and
9282 "gdb_curses.h".
9283
9284 2004-02-27 Andrew Cagney <cagney@redhat.com>
9285
9286 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9287 the new frame unwind code.
9288 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9289 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9290 PCOQ_HEAD_REGNUM.
9291
9292 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9293 "return_value" and "push_dummy_call".
9294 (hppa32_use_struct_convention): Delete unused function.
9295 (hppa32_store_return_value): Delete unused function.
9296 (hppa32_extract_return_value): Delete unused function.
9297 (hppa32_stack_align): Delete function.
9298
9299 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9300
9301 * coffread.c (enter_linenos): Don't let rawptr reference memory
9302 outside linetab[]'s limits.
9303
9304 2004-02-27 Andrew Cagney <cagney@redhat.com>
9305
9306 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9307 inferior stack space - the stack needs to grow upwards.
9308 (hppa32_frame_align): New function.
9309 (hppa64_frame_align): Replace hppa_frame_align.
9310 (hppa_gdbarch_init): Update.
9311
9312 2004-02-26 Orjan Friberg <orjanf@axis.com>
9313
9314 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9315 (dwarf2-frame.h): Include.
9316 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9317 Remove static variables related to ABI setting.
9318 (struct gdbarch_tdep): Remove cris_abi member.
9319 (struct frame_extra_info): Remove.
9320 (cris_unwind_cache, stack_item): New structs.
9321 (cris_frame_unwind, cris_frame_base): New variables.
9322 (push_stack_item, pop_stack_item)
9323 (cris_frame_unwind_cache, cris_frame_this_id)
9324 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9325 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9326 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9327 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9328 (cris_reg_struct_has_addr): New functions.
9329 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9330 (cris_frame_saved_pc, cris_saved_pc_after_call,
9331 (cris_store_struct_return, cris_frameless_function_invocation)
9332 (cris_pop_frame, cris_skip_prologue_main)
9333 (cris_abi_original_store_return_value)
9334 (cris_abi_v2_store_return_value)
9335 (cris_abi_original_extract_return_value)
9336 (cris_abi_v2_extract_return_value)
9337 (cris_abi_original_reg_struct_has_addr)
9338 (cris_abi_v2_reg_struct_has_addr)
9339 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9340 (cris_push_return_address, cris_abi_update): Remove.
9341 (_initialize_cris_tdep): Remove ABI command.
9342 (cris_dump_tdep): Ditto.
9343 (cris_gdbarch_init): Remove ABI command.
9344 Set store_return_value, extract_return_value, push_dummy_code,
9345 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9346 frame_unwind_append_sniffer, frame_base_set_default.
9347 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9348 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9349 sizeof_call_dummy_words, get_saved_register, push_return_address,
9350 pop_frame, store_struct_return, frame_init_saved_regs,
9351 init_extra_frame_info, frameless_function_invocation, frame_chain,
9352 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9353 dummy_write_sp.
9354
9355 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9356
9357 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9358 * valprint.c (print_hex_chars): Change from static to external.
9359 (print_char_chars): New function.
9360 * printcmd.c (print_scalar_formatted): For integer and enum types
9361 that are longer than LONGEST, perform processing via appropriate
9362 print_*_chars routines.
9363
9364 2004-02-26 Andrew Cagney <cagney@redhat.com>
9365
9366 * Makefile.in: Update dependencies.
9367 Changes from Ulrich Weigand,
9368 * s390-tdep.c: Include "dwarf2-frame.h".
9369 (s390_dwarf2_frame_init_reg): New function.
9370 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9371 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9372
9373 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9374
9375 * breakpoint.c (pending_break_support): New setting variable.
9376 (break_command_1): Account for pending_break_support setting
9377 when creating pending breakpoints.
9378 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9379 (_initialize_breakpoint): Add "set breakpoint pending" and
9380 "show breakpoint pending" commands.
9381
9382 2004-02-26 Andrew Cagney <cagney@redhat.com>
9383
9384 Fix PR i18n/1570.
9385 * charset.c (backslashable, backslashed, represented): Remove 'e'
9386 from list of escaped characters, not part of ISO-C.
9387
9388 2004-02-25 J. Brobecker <brobecker@gnat.com>
9389
9390 From Peter Schauer <schauer@pdf.de>:
9391 * tui/tui.c: Move system header includes after local includes.
9392 Fixes a build failure on solaris systems.
9393
9394 2004-02-25 J. Brobecker <brobecker@gnat.com>
9395
9396 * configure.in: Refine the previous change.
9397 * configure: Regenerate.
9398
9399 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9400
9401 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9402 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9403 "amd64-tdep.h" instead of "x86-64-tdep.h".
9404 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9405 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9406 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9407 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9408 and "x86-64-tdep.c".
9409 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9410 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9411 and "x86-64-tdep.c".
9412 * amd64bsd-nat.c: Update copyright year.
9413 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9414 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9415 "x86-64-tdep.h".
9416 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9417 "x86-64-tdep.h".
9418 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9419 "x86-64-tdep.h".
9420 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9421 "x86-64-tdep.h".
9422 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9423 "x86-64-tdep.h".
9424 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9425 "x86-64-tdep.h".
9426 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9427 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9428 * Makefile.in (amd64_linux_tdep_h): Renamed from
9429 x86_64_linux_tdep_h.
9430 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9431 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9432 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9433 (amd64obsd-tdep.o): Update dependencies.
9434 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9435 dependencies.
9436 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9437 dependencies.
9438 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9439 amd64-linux-nat.c amd64-linux-tdep.c.
9440 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9441 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9442 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9443 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9444 amd64-tdep.o and amd64-linux-tdep.o.
9445 (TM_FILE): Set to tm-linux64.h.
9446 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9447 (NAT_FILE): Set to nm-linux64.h.
9448 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9449 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9450 amd64-tdep.o.
9451 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9452 amd64-tdep.o.
9453 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9454 amd64-tdep.o.
9455
9456 2004-02-25 Roland McGrath <roland@redhat.com>
9457
9458 * remote.c (remote_protocol_qPart_auxv): New variable.
9459 (init_all_packet_configs): Initialize it.
9460 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9461 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9462 (show_remote_cmd): Call it.
9463 (_initialize_remote): Initialize commands.
9464 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9465 service TARGET_OBJECT_AUXV requests.
9466
9467 2004-02-25 J. Brobecker <brobecker@gnat.com>
9468
9469 * configure.in: Make sure that the wborder function is available.
9470 Otherwise, search for it in the cur_colr library.
9471 * configure: Regenerate.
9472
9473 2004-02-25 Andrew Cagney <cagney@redhat.com>
9474
9475 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9476
9477 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9478
9479 * config/i386/tm-x86-64linux.h: Tweak comments.
9480
9481 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9482
9483 * MAINTAINERS: Add self to write-after-approval list.
9484
9485 2004-02-25 Andrew Cagney <cagney@redhat.com>
9486
9487 PR cli/1566. Problem found, and fix suggested by David Allan.
9488 * cli/cli-script.c (execute_control_command): Unconditionally
9489 install a cleanup. Default "ret" to "invalid_control". Use
9490 "break" instead of "return" to escape from the switch.
9491
9492 2004-02-24 J. Brobecker <brobecker@gnat.com>
9493
9494 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9495 with the lines macro defined in term.h on AiX.
9496 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9497 a collision with the label_width macro defined in term.h on AiX.
9498
9499 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9500
9501 Committed by Kevin Buettner <kevinb@redhat.com>.
9502
9503 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9504 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9505 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9506 instead of ia64_write_pc().
9507 * ia64-linux-tdep.c (regcache.h): Include.
9508 (ia64_linux_write_pc): New function.
9509
9510 2004-02-23 Roland McGrath <roland@redhat.com>
9511
9512 * auxv.c (info_auxv_command): Fix typos in error messages.
9513
9514 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9515
9516 * x86-64-tdep.h: Tweak comment.
9517 (enum amd64_regnum): New.
9518 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9519 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9520 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9521 (X86_64_XMM1_REGNUM): Removed.
9522 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9523 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9524 prototypes for renamed functions.
9525 * x86-64-tdep.c: Fix typo.
9526 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9527 register numbers.
9528 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9529 Use constants from `enum amd64_regnum' for register numbers.
9530 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9531 (amd64_analyze_prologue, amd64_frame_cache,
9532 amd64_sigtramp_frame_cache): Use constants from `enum
9533 amd64_regnum' for register numbers.
9534 (amd64_supply_fpregset): Adjust for renamed functions.
9535 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9536 `enum amd64_regnum' for register numbers.
9537 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9538 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9539 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9540 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9541 (amd64_linux_fill_gregset): Adjust for renamed macros.
9542 (fetch_core_registers): Adjust for renamed functions.
9543 (amd64_linux_init_abi): Adjust for renamed functions.
9544 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9545 renamed functions.
9546 * amd64-nat.c: Adjust for renamed macros.
9547 * amd64bsd-nat.c (fetch_inferior_registers)
9548 (store_inferior_registers): Use constants from `enum amd64_regnum'
9549 for register numbers. Adjust for renamed variables.
9550 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9551 renamed variables.
9552 (_initialize_amd64fbsd_nat): Use constants from `enum
9553 amd64_regnum' for register numbers.
9554 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9555 `enum amd64_regnum' for register numbers.
9556 (amd64fbsd_init_abi): Adjust for renamed functions.
9557 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9558 `enum amd64_regnum' for register numbers.
9559 (amd64nbsd_init_abi): Adjust for renamed functions.
9560 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9561 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9562 `enum amd64_regnum' for register numbers.
9563 (amd64obsd_init_abi): Adjust for renamed functions.
9564 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9565
9566 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9567
9568 * breakpoint.c (print_one_breakpoint): Do not output spaces
9569 after printing <PENDING> for a pending breakpoint.
9570
9571 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9572
9573 * printcmd.c (print_scalar_formatted): Initialize val_long
9574 to remove compiler warning message.
9575
9576 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9577
9578 * defs.h (nquery, yquery): New prototypes.
9579 * breakpoint.c (break_command_1): Use new nquery interface.
9580 * utils.c (defaulted_query, nquery, yquery): New functions.
9581
9582 2004-02-23 Andrew Cagney <cagney@redhat.com>
9583
9584 * hppa-tdep.c (hppa_frame_align): New function.
9585 (hppa32_push_dummy_call): New function.
9586 (hppa64_push_dummy_call): New function.
9587 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9588 disabled.
9589
9590 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9591 FIX_CALL_DUMMY when push_dummy_call is available.
9592 (call_function_by_hand, push_dummy_code): Ditto.
9593
9594 2004-02-22 Andrew Cagney <cagney@redhat.com>
9595
9596 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9597 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9598 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9599 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9600 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9601 call_dummy_location to ON_STACK.
9602
9603 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9604
9605 * x86-64-linux-tdep.c: Tweak comment.
9606 (amd64_linux_supply_gregset): Renamed from
9607 x86_64_linux_supply_gresget.
9608 (amd64_linux_fill_gregset): Renamed from
9609 x86_64_linux_fill_gregset.
9610 (fetch_core_registers): Adjust for renamed functions.
9611 (amd64_core_fns): Renamed from x86_64_core_fns.
9612 (amd64_linux_sigtramp_start): Renamed from
9613 x86_64_linux_sigtramp_start.
9614 (amd64_linux_pc_in_sigtramp): Renamed from
9615 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9616 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9617 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9618 (amd64_linux_sigcontext_addr): Renamed from
9619 x86_64_linux_sigcontext_addr.
9620 (amd64_linux_sc_reg_offset): Renamed from
9621 x86_64_linux_sc_reg_offset.
9622 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9623 Adjust for renamed functions and variables.
9624 (_initialize_amd64_linux_tdep): Renamed from
9625 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9626 variables.
9627 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9628 Adjust for renamed functions.
9629
9630 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9631 from x86_64_linux_gregset64_reg_offset.
9632 (amd64_linux_gregset32_reg_offset): Rename from
9633 x86_64_linux_gregset64_reg_offset.
9634 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9635 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9636 (amd64_linux_dr_set_control): Renamed from
9637 x86_64_linux_dr_set_control. Adjust for renamed functions.
9638 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9639 Adjust for renamed functions.
9640 (amd64_linux_dr_reset_addr): Renamed from
9641 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9642 (amd64_linux_dr_get_status): Renamed from
9643 x86_64_linux_dr_get_status. Adjust for renamed functions.
9644 (_initialize_amd64_linux_nat): Renamed from
9645 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9646 functions.
9647 * config/i386/nm-x86-64linux.h: Update copyright year.
9648 Adjust for renamed functions.
9649
9650 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9651 amd64fbsd_sigtramp_start.
9652 (amd64fbsd_sigtramp_end_addr): Renamed from
9653 amd64fbsd_sigtramp_end.
9654 (amd64fbsd_init_abi): Adjust for renamed variables.
9655 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9656 variables.
9657 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9658 amd64fbsd_sigtramp_start.
9659 (amd64fbsd_sigtramp_end_addr): Renamed from
9660 amd64fbsd_sigtramp_end.
9661
9662 2004-02-22 Andrew Cagney <cagney@redhat.com>
9663
9664 * hppa-tdep.c (hppa32_return_value): New function.
9665 (hppa64_return_value): New function.
9666 (hppa_gdbarch_init): Set return_value; keep disabled.
9667
9668 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9669 struct-return and inferior function call methods.
9670
9671 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9672 "frame-base.h".
9673 (struct hppa_frame_cache): Define.
9674 (hppa_frame_cache, hppa_frame_this_id): New functions.
9675 (hppa_frame_prev_register): New function.
9676 (hppa_frame_unwind, hppa_frame_base): New variables.
9677 (hppa_frame_unwind_sniffer): New function.
9678 (hppa_frame_base_address, hppa_unwind_pc): New function.
9679 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9680 sniffer, and frame base sniffer; keep disabled.
9681 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9682 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9683
9684 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9685 to predicates for "seriously old code".
9686
9687 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9688 runtime if(0).
9689
9690 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9691 unsigned.
9692 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9693
9694 * config/pa/tm-hppa.h: Update copyright.
9695 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9696 (deprecated_init_frame_pc_default): Delete declaration.
9697 (hppa_frame_init_saved_regs): Delete declaration.
9698 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9699 * hppa-tdep.c: Include "arch-utils.h".
9700 (hppa_gdbarch_init): Set deprecated init_frame_pc
9701 and deprecated frame_init_saved_regs.
9702 (hppa_frame_init_saved_regs): Make static.
9703
9704 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9705
9706 Remove old 386BSD support.
9707 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9708 * configure.host: Remove i[34567]86-*-bsd*.
9709 * configure.tgt: Remove i[34567]86-*-bsd*.
9710 * i386b-nat.c: Removed.
9711 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9712 (i386b-nat.o): Remove dependencies.
9713
9714 * config/i386/i386bsd.mh: Removed.
9715 * config/i386/i386bsd.mt: Removed.
9716 * config/i386/nm-i386bsd.h: Removed.
9717 * config/i386/tm-i386bsd.h: Removed.
9718 * config/i386/xm-i386bsd.h: Removed.
9719
9720 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9721
9722 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9723 (amd64fbsd_init_abi): Set link map offsets.
9724 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9725 (amd64nbsd_init_abi): Set link map offsets.
9726 * amd64obsd-tdep.c: Include "solib-svr4.h".
9727 (amd64obsd_init_abi): Set link map offsets.
9728 * i386fbsd-tdep.c: Include "solib-svr4.h".
9729 (i386fbsd_init_abi): Set link map offsets.
9730 * i386nbsd-tdep.c: Include "solib-svr4.h".
9731 (i386nbsdelf_init_abi): Set link map offsets.
9732 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9733 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9734 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9735 solib-legacy.o and core-aout.o. Reformat.
9736 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9737 solib-svr4.o, solib-legacy.o. Reformat.
9738 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9739 * config/i386/nbsdelf.mh: Reformat.
9740 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9741 solib-svr4.o, solib-legacy.o and corelow.o.
9742 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9743 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9744 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9745 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9746 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9747 (TM_FILE): Set to tm-fbsd.h.
9748 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9749 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9750 solib-svr4.o.
9751 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9752 solib-svr4.o.
9753 (TM_FILE): Set to nm-nbsd.h.
9754 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9755 Simplify shared library support. Don't include "elf/common.h".
9756 (SVR4_SHARED_LIBS): Don't define.
9757 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9758 "solib.h".
9759 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9760 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9761 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9762 Don't include "i386/tm-i386.h". Include "solib.h".
9763 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9764 Don't include "i386/tm-i386.h".
9765 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9766 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9767 Include "i386/xm-i386.h".
9768 (HOST_LONG_DOUBLE_FORMAT): Remove.
9769
9770 Fix OpenBSD/i386 sigtramp recognition.
9771 * i386-tdep.h: Update copyright year.
9772 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9773 (i386bsd_sigtramp_end): New prototypes.
9774 (i386fbsd_sigtramp_start_addr): Renamed from
9775 i386fbsd_sigtramp_start.
9776 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9777 (i386obsd_sigtramp_start_addr): Renamed from
9778 i386obsd_sigtramp_start.
9779 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9780 * i386bsd-tdep.c: Update copyright year.
9781 (i386bsd_pc_in_sigtramp): Make public.
9782 * i386fbsd-nat.c: Update copyright year.
9783 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9784 * i386fbsd-tdep.c: Update copyright year.
9785 (i386fbsd_sigtramp_start_addr): Renamed from
9786 i386fbsd_sigtramp_start.
9787 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9788 (i386fbsdaout_init_abi): Adjust for renamed variables.
9789 * i386obsd-nat.c: Update copyright year.
9790 (_initialize_i386obsd_nat): Adjust for renamed variables.
9791 * i386obsd-tdep.c: Include "target.h".
9792 (i386obsd_page_size): New variable.
9793 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9794 (i386obsd_sigtramp_end): New functions.
9795 (i386obsd_sigtramp_start_addr): Renamed from
9796 i386obsd_sigtramp_start.
9797 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9798 (i386obsd_init_abi): Adjust for renamed variables. Set
9799 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9800 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9801
9802 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9803 trampoline change in OpenBSD kernel.
9804
9805 * amd64-nat.c: Update copyright year.
9806 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9807 architecture from REGCACHE.
9808
9809 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9810 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9811
9812 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9813
9814 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9815 i[34567]86-*-openbsd3.[0-3].
9816 * config/i386/obsdaout.mh: New file.
9817
9818 * config/i386/obsd.mh (MH_FLAGS): Remove.
9819
9820 Fix PR build/1549.
9821 * i386obsd-tdep.c: Update copyright years. Include
9822 "solib-svr4.h".
9823 (i386obsd_init_abi): Don't set regset_from_core_section here.
9824 (i386obsd_aout_init_abi): New function. Set
9825 regset_from_core_section here.
9826 (i386obsd_elf_init_abi): New function.
9827 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9828 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9829 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9830 (TM_FILE): Set to tm-nbsd.h.
9831
9832 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9833 solib-sunos.o.
9834
9835 * solib-svr4.h: Update copyright year.
9836 (svr4_ilp32_fetch_link_map_offsets)
9837 (svr4_lp64_fetch_link_map_offsets): New prototype.
9838 * solib-svr4.c: Update copyright year.
9839 (svr4_ilp32_fetch_link_map_offsets)
9840 (svr4_lp64_fetch_link_map_offsets): New function.
9841
9842 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9843
9844 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9845 to the partial symbol table.
9846
9847 2004-02-20 J. brobecker <brobecker@gnat.com>
9848
9849 * PROBLEMS: Add description of problem documented under gdb/1560.
9850
9851 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9852
9853 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9854 comments.
9855 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9856 functions.
9857 (amd64obsd_init_abi): Reorder initializations. Use
9858 amd64obsd_r_reg_offset to initialize the general-purpose register
9859 set details. Set regset_from_core_section.
9860 (_initialize_amd64obsd_tdep): Rename from
9861 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9862 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9863 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9864
9865 * NEWS (New native configurations): Mention OpenBSD/alpha.
9866 * configure.tgt: Add alpha*-*-openbsd*.
9867 * configure.host: Add alpha*-*-openbsd*.
9868 * alphanbsd-tdep.c: Update copyright year.
9869 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9870
9871 2004-02-20 Andrew Cagney <cagney@redhat.com>
9872
9873 Fix PR tdep/1372.
9874 * configure.tgt: Delete target "none-*-*".
9875 * configure.host: Delete host "none-*-*".
9876 * config/none/none.mh: Delete file.
9877 * config/none/none.mt: Delete file.
9878 * config/none/xm-none.h: Delete file.
9879 * config/none/tm-none.h: Delete file.
9880 * config/none/nm-none.h: Delete file.
9881
9882 2004-02-19 Fred Fish <fnf@redhat.com>
9883
9884 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9885 cache->uses_fp prior to setting it.
9886
9887 2004-02-19 Fred Fish <fnf@redhat.com>
9888
9889 Fix for PR breakpoint/1558.
9890 * sh-tdep.c (IS_JSR): New macro.
9891 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9892
9893 2004-02-19 Jim Blandy <jimb@redhat.com>
9894
9895 * findvar.c (value_from_register): Doc fix.
9896
9897 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9898
9899 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9900 type being greater than sizeof of host's LONGEST. Always use
9901 unpack_long() unless format 'f' chosen.
9902
9903 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9904
9905 Committed by Elena Zannoni <ezannoni@redhat.com>
9906
9907 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9908 contains a symbol wich is the best, non-exact match for the given
9909 pc. Update comments.
9910
9911 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9912
9913 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9914 macro, which was part of the now removed Mach 3 port.
9915 * utils.c (request_quit): Ditto.
9916
9917 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9918
9919 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9920 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9921
9922 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9923
9924 Committed by Mark Kettenis <kettenis@gnu.org>.
9925
9926 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9927 Define.
9928
9929 2004-02-18 Andrew Cagney <cagney@redhat.com>
9930
9931 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9932 CONFIG_INSTALL and CONFIG_UNINSTALL.
9933 * configure: Re-generate.
9934 * interps.h (INTERP_TUI): Define.
9935 * Makefile.in: Update dependencies.
9936 (TUI): New macro.
9937 (tui-main.o): Specify dependencies.
9938 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9939 * tui/tui-main.c: New file.
9940
9941 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9942
9943 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9944 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9945 dependencies.
9946 * configure.host: Add x86_64-*-openbsd*.
9947 * configure.tgt: Add x86_64-*-openbsd*.
9948 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9949
9950 * tui/tui.c: Don't include <malloc.h>.
9951
9952 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9953 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9954 amd64nbsd-tdep.c.
9955
9956 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9957 static. Remove extraneous whitespace.
9958 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9959 static.
9960
9961 2004-02-17 Jim Blandy <jimb@redhat.com>
9962
9963 * findvar.c (value_from_register): Doc fix.
9964
9965 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9966
9967 Committed by Jim Blandy <jimb@redhat.com>.
9968
9969 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9970 CORE_ADDR as type for selectors. Correct types for GNU run time
9971 message lookup function to use double indirection.
9972 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9973 * objc-lang.h (lookup_child_selector): Adapt prototype.
9974
9975 * s390-nat.c (SUBOFF): New macro.
9976 (supply_gregset, fill_gregset): Use it to handle debugging
9977 of 32-bit exectuables running under a 64-bit kernel.
9978 * s390-tdep.c: Include "solib-svr4.h".
9979 (s390_svr4_fetch_link_map_offset): New function.
9980 (s390x_svr_fetch_link_map_offset): Likewise.
9981 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9982 * Makefile.in (s390-tdep.o): Update dependencies.
9983
9984 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9985 "frame-unwind.h".
9986 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9987 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9988 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9989 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9990 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9991 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9992 S390_SIGNAL_FRAMESIZE,
9993 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9994 (struct frame_extra_info): Remove.
9995 (s390_memset_extra_info): Remove.
9996 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9997 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9998 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9999 (is_rse): Renamed to ...
10000 (is_rsy): ... this. Support long displacements.
10001 (is_rxe): Renamed to ...
10002 (is_rxy): ... this. Support long displacements.
10003 (compute_x_addr): Support long displacements.
10004 (struct s390_prologue_data): New data type.
10005 (s390_on_stack): Change API to use struct s390_prologue_data.
10006 (s390_store): Reimplement.
10007 (s390_load): New function.
10008 (s390_get_signal_frame_info): Remove.
10009 (s390_get_frame_info): Remove, replace by ...
10010 (s390_analyze_prolog): ... this new function.
10011 (s390_check_function_end): Remove.
10012 (s390_function_start): Remove.
10013 (s390_frameless_function_invokation): Remove.
10014 (s390_is_sigreturn): Remove.
10015 (s390_init_frame_pc_first): Remove.
10016 (s390_init_frame_extra_info): Remove.
10017 (s390_frame_init_saved_regs): Remove.
10018 (s390_frame_saved_pc_nofix): Remove.
10019 (s390_frame_saved_pc): Remove.
10020 (s390_frame_chain): Remove.
10021 (s390_fp_regnum, s390_read_fp): Remove.
10022 (s390_pop_frame_regular, s390_pop_frame): Remove.
10023 (s390_saved_pc_after_call): Remove.
10024 (s390_skip_prologue): Reimplement.
10025 (s390_in_function_epilogue_p): Support long displacements.
10026 (struct s390_unwind_cache): New data structure.
10027 (s390_frame_unwind_cache): New function.
10028 (s390_prologue_frame_unwind_cache): Likewise.
10029 (s390_backchain_frame_unwind_cache): Likewise.
10030 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10031 (s390_frame_unwind): Define.
10032 (s390_frame_sniffer): New function.
10033 (struct s390_pltstub_unwind_cache): New data structure.
10034 (s390_pltstub_frame_unwind_cache): New function.
10035 (s390_pltstub_frame_this_id): Likewise.
10036 (s390_pltstub_frame_prev_register): Likewise.
10037 (s390_pltstub_frame_unwind): Define.
10038 (s390_pltstub_frame_sniffer): New function.
10039 (struct s390_sigtramp_unwind_cache): New data structure.
10040 (s390_sigtramp_frame_unwind_cache): New function.
10041 (s390_sigtramp_frame_this_id): Likewise.
10042 (s390_sigtramp_frame_prev_register): Likewise.
10043 (s390_sigtramp_frame_unwind): Define.
10044 (s390_sigtramp_frame_sniffer): New function.
10045 (s390_frame_base_address, s390_local_base_address): New functions.
10046 (s390_frame_base): Define.
10047 (s390_unwind_pc, s390_unwind_sp): New function.
10048 (s390_push_dummy_call): Use new frame base location.
10049 (s390_unwind_dummy_id): Likewise.
10050 (s390_gdbarch_init): Remove calls to:
10051 set_gdbarch_frameless_function_invocation,
10052 set_gdbarch_deprecated_init_frame_pc,
10053 set_gdbarch_deprecated_frame_chain,
10054 set_gdbarch_deprecated_frame_init_saved_regs,
10055 set_gdbarch_deprecated_pop_frame,
10056 set_gdbarch_deprecated_init_extra_frame_info,
10057 set_gdbarch_deprecated_init_frame_pc_first,
10058 set_gdbarch_deprecated_target_read_fp,
10059 set_gdbarch_deprecated_frame_saved_pc,
10060 set_gdbarch_deprecated_saved_pc_after_call,
10061 set_gdbarch_deprecated_fp_regnum.
10062 Add calls to:
10063 set_gdbarch_in_solib_call_trampoline,
10064 frame_unwind_append_sniffer,
10065 frame_base_set_default,
10066 set_gdbarch_unwind_pc,
10067 set_gdbarch_unwind_sp.
10068 * Makefile.in (s390-tdep.o): Update dependencies.
10069
10070 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10071 (S390_STACK_FRAME_OVERHEAD): Remove.
10072 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10073 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10074 (s390_promote_integer_argument): Remove.
10075 (s390_cannot_extract_struct_value_address): Remove.
10076 (s390_use_struct_convention, s390_store_struct_return): Remove.
10077 (s390_extract_return_value, s390_store_return_value): Remove.
10078 (s390_return_value_convention, s390_return_value): New functions.
10079 (is_float_singleton): Handle typedefs.
10080 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10081 Remove, replace by ...
10082 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10083 s390_function_arg_integer): ... these new functions.
10084 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10085 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10086 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10087 Fill in tdep->abi.
10088 Remove calls to:
10089 set_gdbarch_deprecated_store_struct_return,
10090 set_gdbarch_deprecated_extract_return_value,
10091 set_gdbarch_deprecated_store_return_value,
10092 set_gdbarch_use_struct_convention,
10093 set_gdbarch_extract_struct_value_address,
10094 set_gdbarch_deprecated_pc_in_call_dummy,
10095 set_gdbarch_deprecated_push_arguments,
10096 set_gdbarch_deprecated_save_dummy_frame_tos,
10097 set_gdbarch_deprecated_push_return_address,
10098 set_gdbarch_deprecated_sizeof_call_dummy_words,
10099 set_gdbarch_deprecated_call_dummy_words,
10100 set_gdbarch_deprecated_dummy_write_sp.
10101 Add calls to:
10102 set_gdbarch_push_dummy_call,
10103 set_gdbarch_unwind_dummy_id,
10104 set_gdbarch_return_value.
10105
10106 * config/s390/nm-linux.h: Update comments.
10107 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10108 (STOPPED_BY_WATCHPOINT): Redefine.
10109 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10110 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10111 (s390_stopped_by_watchpoint): Likewise.
10112 (watch_area_cnt): Remove.
10113 * s390-nat.c: Update comments.
10114 (watch_area): Remove typedef.
10115 Global replace watch_area by struct watch_area.
10116 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10117 (s390_stopped_by_watchpoint): Remove pid argument,
10118 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10119 (s390_fix_watch_points): Remove pid argument,
10120 use s390_inferior_tid. Recompute area spanned by watchpoints.
10121 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10122 argument. Reimplement.
10123
10124 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10125 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10126 (FETCH_INFERIOR_REGISTERS): Define.
10127 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10128 core-regset.o.
10129 * config/s390/s390x.mt: Remove.
10130 * config/s390/tm-s390.h: Remove.
10131 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10132 (TARGET_ELF64): Remove.
10133 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10134 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10135 s390*-*-* case; always set gdb_target to s390.
10136 * regformats/reg-s390.dat: Remove control registers.
10137 * regformats/reg-s390x.dat: Likewise.
10138 * s390-tdep.h: New file.
10139 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10140 Include "inferior.h" and "s390-tdep.h".
10141 Remove private definition of offsetof.
10142 (s390_register_u_addr): Remove.
10143 (regmap_gregset, regmap_fpregset): Define.
10144 (supply_gregset, fill_gregset): Reimplement.
10145 (supply_fpregset, fill_fpregset): Likewise.
10146 (s390_inferior_tid): New function.
10147 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10148 (fetch_inferior_registers, store_inferior_registers): Likewise.
10149 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10150 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10151 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10152 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10153 (struct gdbarch_tdep): Define.
10154 (struct s390_register_info): Define.
10155 (s390_register_info): New variable.
10156 (s390_register_name): Reimplement.
10157 (s390_register_type): New function.
10158 (s390_register_raw_size, s390x_register_raw_size): Remove.
10159 (s390_cannot_fetch_register): Remove.
10160 (s390_register_byte): Remove.
10161 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10162 (s390_dwarf_regmap): New variable.
10163 (s390_dwarf_reg_to_regnum): New function.
10164 (s390_stab_reg_to_regnum): Remove.
10165 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10166 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10167 (s390_convert_register_p): Likewise.
10168 (s390_register_to_value, s390_value_to_register): Likewise.
10169 (s390_register_reggroup_p): Likewise.
10170 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10171 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10172 (s390_supply_regset, s390_regset_from_core_section): New functions.
10173 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10174 (S390_FPR_SIZE): Likewise.
10175 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10176 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10177 (S390_NUM_GPRS): Move here from tm-s390.h.
10178 (S390_NUM_FPRS): Likewise.
10179 (s390_in_function_epilogue_p): New function.
10180 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10181 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10182 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10183 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10184 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10185 Remove calls to:
10186 set_gdbarch_deprecated_max_register_raw_size,
10187 set_gdbarch_deprecated_max_register_virtual_size,
10188 set_gdbarch_deprecated_register_byte,
10189 set_gdbarch_cannot_fetch_register,
10190 set_gdbarch_cannot_store_register,
10191 set_gdbarch_deprecated_register_size,
10192 set_gdbarch_deprecated_register_raw_size,
10193 set_gdbarch_deprecated_register_virtual_size,
10194 set_gdbarch_deprecated_register_virtual_type,
10195 set_gdbarch_deprecated_register_bytes.
10196 Add calls to:
10197 set_gdbarch_num_pseudo_regs,
10198 set_gdbarch_register_type,
10199 set_gdbarch_convert_register_p,
10200 set_gdbarch_register_to_value,
10201 set_gdbarch_value_to_register,
10202 set_gdbarch_register_reggroup_p,
10203 set_gdbarch_regset_from_core_section,
10204 set_gdbarch_pseudo_register_read,
10205 set_gdbarch_pseudo_register_write,
10206 set_gdbarch_in_function_epilogue_p.
10207 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10208 (s390_tdep_h): New variable.
10209
10210 2004-02-17 Jim Blandy <jimb@redhat.com>
10211
10212 * findvar.c (value_from_register): If the type has no length, just
10213 return an acceptable value --- don't report an internal error.
10214
10215 * stabsread.c (read_type): If we find any type numbers that are
10216 forward references, complain if the references aren't resolved by
10217 the time we're finished reading.
10218 (cleanup_undefined_types): Make error message more appropriate for
10219 a complaint.
10220
10221 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10222
10223 * Makefile.in (defs_h): Remove dependency on progress_h.
10224 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10225 progress.h.
10226 * main.c (captured_main): Delete use of START_PROGRESS and
10227 END_PROGRESS.
10228
10229 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10230
10231 * objfiles.c (terminate_minimal_symbol_table): Add back
10232 initialization of MSYMBOL_TYPE.
10233
10234 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10235
10236 Committed by Andrew Cagney.
10237 * Makefile.in (ia64_tdep_h): New macro.
10238 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10239 (ia64-tdep.o): Likewise.
10240 * ia64-tdep.h: New file.
10241 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10242 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10243 (ia64_aix_sigcontext_register_address): Likewise.
10244 (ia64_linux_getunwind_table): Delete declaration.
10245 * ia64-linux-tdep.c: Likewise.
10246
10247 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10248
10249 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10250 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10251 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10252
10253 2004-02-17 Andrew Cagney <cagney@redhat.com>
10254
10255 * symtab.c (skip_prologue_using_sal): New function.
10256 * symtab.h (skip_prologue_using_sal): Declare.
10257 * frv-tdep.c: Include "symtab.h".
10258 (skip_prologue_using_sal): Delete function.
10259 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10260 * rs6000-tdep.c (refine_prologue_limit): Mention
10261 skip_prologue_using_sal.
10262 * ia64-tdep.c (refine_prologue_limit): Ditto.
10263 * Makefile.in: Update dependencies.
10264
10265 2004-02-16 Andrew Cagney <cagney@redhat.com>
10266
10267 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10268 START_INFERIOR_TRAPS_EXPECTED.
10269 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10270 START_INFERIOR_TRAPS_EXPECTED.
10271 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10272 Delete macro.
10273 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10274 macro, moved to "nm-osf.h". Update copyright.
10275 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10276 update copyright.
10277
10278 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10279 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10280 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10281 frameless_look_for_prologue.
10282 * frame.h (legacy_frameless_look_for_prologue): Rename
10283 frameless_look_for_prologue.
10284 * gdbarch.h, gdbarch.c: Re-generate.
10285 * sh64-tdep.c (sh64_gdbarch_init): Update.
10286 * sh-tdep.c (sh_gdbarch_init): Update.
10287 * s390-tdep.c (s390_gdbarch_init): Update.
10288 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10289 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10290 * m68k-tdep.c (m68k_gdbarch_init): Update.
10291 (delta68_frame_args_address): Update.
10292 * m32r-tdep.c (m32r_gdbarch_init): Update.
10293 * hppa-tdep.c (hppa_gdbarch_init): Update.
10294 * h8300-tdep.c (h8300_gdbarch_init): Update.
10295 * frv-tdep.c (frv_gdbarch_init): Update.
10296 (frv_frameless_function_invocation): Update.
10297 * cris-tdep.c (cris_gdbarch_init): Update.
10298 (cris_frameless_function_invocation): Update.
10299 * avr-tdep.c (avr_gdbarch_init): Update.
10300 * arm-tdep.c (arm_gdbarch_init): Update.
10301 * stack.c (frame_info): Update, call predicate.
10302 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10303 * frame.c (legacy_get_prev_frame): Update, call predicate..
10304 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10305 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10306 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10307 invocation.
10308 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10309 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10310 * vax-tdep.c (vax_gdbarch_init): Ditto.
10311
10312 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10313 function.
10314
10315 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10316
10317 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10318 initializations.
10319
10320 2004-02-16 Andrew Cagney <cagney@redhat.com>
10321
10322 * tui/tui-windata.c: Include "gdb_string.h".
10323 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10324 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10325 * Makefile.in: Update dependencies.
10326
10327 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10328
10329 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10330 * infrun.c: Include "gdb_assert.h".
10331 (singlestep_ptid, saved_singlestep_ptid)
10332 (stepping_past_singlestep_breakpoint): New variables.
10333 (resume): Set singlestep_ptid. Check for singlestep thread
10334 hop.
10335 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10336 (handle_inferior_event): Handle singlestep thread hop.
10337
10338 2004-02-16 Andrew Cagney <cagney@redhat.com>
10339
10340 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10341 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10342 (dwarf2_frame_init_reg): Ditto.
10343
10344 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10345 suggested by Joshua Neuheisel
10346
10347 * configure.in: Always check for curses, including pdcurses.
10348 Warn, instead of error, when no curses are found. Enable TUI when
10349 curses is available.
10350 * configure: Re-generate.
10351
10352 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10353
10354 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10355 sh_sh4_register_convert_to_virtual.
10356 (sh_register_convert_to_raw): Rename from
10357 sh_sh4_register_convert_to_raw.
10358 (sh_pseudo_register_read): Accomodate above name change.
10359 (sh_pseudo_register_write): Ditto.
10360
10361 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10362
10363 * sh-tdep.c (sh_generic_register_name): Remove.
10364 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10365
10366 2004-02-15 Andrew Cagney <cagney@redhat.com>
10367
10368 * configure.in (build_warnings): Add -Wunused-function.
10369 * configure: Re-generate.
10370
10371 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10372 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10373
10374 * procfs.c (procfs_init_inferior): Assume that
10375 START_INFERIOR_TRAPS_EXPECTED is defined.
10376 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10377 * config/ns32k/tm-nbsd.h: Delete file,
10378 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10379
10380 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10381 * config/vax/tm-vax.h: Delete file.
10382
10383 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10384 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10385 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10386 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10387 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10388 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10389 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10390
10391 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10392
10393 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10394 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10395 (struct dwarf2_frame_ops): New.
10396 (dwarf2_frame_default_init_reg): New function, based on
10397 dwarf2_frame_init_reg.
10398 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10399 (dwarf2_frame_init_reg): Call architecture-specific function.
10400 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10401 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10402 instead of dwarf2_frame_data.
10403 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10404 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10405
10406 2004-02-15 Andrew Cagney <cagney@redhat.com>
10407
10408 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10409 register_gdbarch_swap.
10410 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10411 * f-lang.c (_initialize_f_language): Update, use
10412 DEPRECATED_REGISTER_GDBARCH_SWAP.
10413 * remote.c (_initialize_remote): Ditto.
10414 * regcache.c (_initialize_regcache): Ditto.
10415 * parse.c (_initialize_parse): Ditto.
10416 * infrun.c (_initialize_infrun): Ditto.
10417 * mi/mi-main.c (_initialize_mi_main): Ditto.
10418 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10419
10420 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10421 poking .cacheable directly.
10422 * symfile.c (symfile_bfd_open): Ditto.
10423
10424 * Makefile.in: Update all dependencies.
10425
10426 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10427 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10428 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10429 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10430 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10431
10432 2004-02-14 Andrew Cagney <cagney@redhat.com>
10433
10434 * arch-utils.c (legacy_convert_register_p): Check
10435 DEPRECATED_REGISTER_CONVERTIBLE_P.
10436 * findvar.c (value_of_register): Ditto.
10437
10438 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10439 * gdbarch.h, gdbarch.c: Re-generate.
10440 * arch-utils.c (deprecated_register_convertible_not): Delete.
10441 * arch-utils.h (deprecated_register_convertible_not): Delete.
10442 * mi/mi-main.c (get_register): Update. Update copyright.
10443 * infcmd.c (default_print_registers_info): Update.
10444
10445 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10446 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10447 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10448 * gdbarch.h, gdbarch.c: Re-generate.
10449 * frame.c (deprecated_get_next_frame_hack): Delete function.
10450 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10451 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10452 Update.
10453 * infcall.c (call_function_by_hand): Update.
10454
10455 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10456
10457 * symfile.c (init_entry_point_info, entry_point_address): Move
10458 from here...
10459 * objfiles.c (init_entry_point_info, entry_point_address):..to
10460 here.
10461 * symfile.h (init_entry_point_info, entry_point_address): Remove
10462 prototypes.
10463 * objfiles.h (init_entry_point_info, entry_point_address):Add
10464 prototypes.
10465 * cris-tdep.c: Remove include of symfile.h. Add include of
10466 objfiles.h.
10467 * infcall.c: Ditto.
10468 * mcore-tdep.c: Ditto.
10469 * mn10300-tdep.c: Ditto.
10470 * sh64-tdep.c: Ditto.
10471 * v850-tdep.c: Ditto.
10472 * arm-tdep.c: Remove include of symfile.h.
10473 * blockframe.c: Ditto.
10474 * coffread.c: Ditto.
10475 * dbxread.c: Ditto.
10476 * dwarf2read.c: Ditto.
10477 * dwarfread.c: Ditto.
10478 * frv-tdep.c: Ditto.
10479 * ia64-tdep.c: Ditto.
10480 * mdebugread.c: Ditto.
10481 * mipsread.c: Ditto.
10482 * rs6000-tdep.c: Ditto.
10483 * s390-tdep.c: Ditto.
10484 * sh-tdep.c: Ditto.
10485 * xstormy16-tdep.c: Ditto.
10486 * gdbarch.sh: Remove include of symfile.h.
10487 * gdbarch.c: Regenerate.
10488 * solib-irix.c (enable_break): Use entry_point_address().
10489 Add comment about include file.
10490 * xcoffread.c: Add comment about include file.
10491 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10492 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10493 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10494 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10495 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10496
10497 2004-02-13 Andrew Cagney <cagney@redhat.com>
10498
10499 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10500 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10501 copyright.
10502 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10503
10504 2004-02-12 Fred Fish <fnf@redhat.com>
10505
10506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10507 set_gdbarch_store_return_value.
10508
10509 2004-02-12 Andrew Cagney <cagney@redhat.com>
10510
10511 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10512 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10513 (interrupt_query): Ditto.
10514 (ofunc): Delete unused variable.
10515 * cris-tdep.c (cris_abi): Delete unused function.
10516 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10517 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10518 (cris_get_asr_quick_shift_steps): Ditto.
10519 (cris_skip_prologue_frameless_p): Ditto.
10520 * arm-tdep.c (arm_push_return_address): Delete unused function.
10521 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10522 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10523 * s390-tdep.c (s390_function_start): Delete unused function.
10524
10525 2004-02-12 Andrew Cagney <cagney@redhat.com>
10526
10527 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10528 gdbarch.h, gdbarch.c: Re-generate.
10529 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10530 to generic_prologue_frameless_p.
10531 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10532 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10533
10534 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10535
10536 * mips-linux-tdep.c: Include "frame.h".
10537 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10538 (mips_linux_skip_resolver): New functions.
10539 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10540 and set_gdbarch_in_solib_call_trampoline.
10541 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10542 to after set_gdbarch_in_solib_return_trampoline. Only set the
10543 solib hooks to mips16 functions if the OS ABI is unknown.
10544 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10545 including "config/tm-linux.h".
10546 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10547 * Makefile.in (mips-linux-tdep.o): Update.
10548
10549 2004-02-11 David Carlton <carlton@kealia.com>
10550
10551 * linespec.c (decode_compound): Only look for a class symbol when
10552 considering all but the rightmost component.
10553
10554 2004-02-11 Andrew Cagney <cagney@redhat.com>
10555
10556 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10557 abi code are are separatly grouped.
10558
10559 2004-02-11 Andrew Cagney <cagney@redhat.com>
10560
10561 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10562 * gdbarch.h, gdbarch.c: Re-generate.
10563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10564 * v850-tdep.c (v850_gdbarch_init): Update.
10565 * sh64-tdep.c (sh64_gdbarch_init): Update.
10566 * sh-tdep.c (sh_gdbarch_init): Update.
10567 * s390-tdep.c (s390_gdbarch_init): Update.
10568 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10569 * mips-tdep.c (mips_gdbarch_init): Update.
10570 * mcore-tdep.c (mcore_gdbarch_init): Update.
10571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10572 * m32r-tdep.c (m32r_gdbarch_init): Update.
10573 * ia64-tdep.c (ia64_gdbarch_init): Update.
10574 * hppa-tdep.c (hppa_gdbarch_init): Update.
10575 * h8300-tdep.c (h8300_gdbarch_init): Update.
10576 * frv-tdep.c (frv_gdbarch_init): Update.
10577 * d10v-tdep.c (d10v_gdbarch_init): Update.
10578 * cris-tdep.c (cris_gdbarch_init): Update.
10579 * avr-tdep.c (avr_gdbarch_init): Update.
10580 * arm-tdep.c (arm_gdbarch_init): Update.
10581 * alpha-tdep.c (alpha_gdbarch_init): Update.
10582
10583 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10584
10585 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10586 comma.
10587 (sh_sh4al_dsp_register_name): Ditto.
10588
10589 2004-02-10 Andrew Cagney <cagney@redhat.com>
10590
10591 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10592 (mips_init_frame_pc_first): Delete function.
10593 (mips_frame_saved_pc): Delete function.
10594 (mips_frame_chain): Delete function.
10595 (mips_init_extra_frame_info): Delete function.
10596 (mips_xfer_register): Delete unused variable "reg".
10597 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10598 (mips_n32n64_return_value): Delete unused variable "reg".
10599 (mips_n32n64_return_value): Delete unused variable "pos".
10600 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10601 (mips_o32_return_value): Delete unused variable "pos".
10602 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10603 (mips_print_fp_register): Delete unused variable "namelen"
10604 (mips_print_fp_register): Delete unused variable "flt2"
10605 (get_frame_pointer): Delete function.
10606 (cached_proc_desc): Delete static variable.
10607 (mips_pop_frame): Delete function.
10608 (mips_find_saved_regs): Delete function.
10609 (mips_get_saved_register): Delete function.
10610 (mips_saved_pc_after_call): Delete function.
10611 (SIGFRAME_BASE): Delete macro.
10612 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10613 (SIGFRAME_PC_OFF): Delete macro.
10614 (SIGFRAME_REGSAVE_OFF): Delete macro.
10615 (mips_dump_tdep): Do not print deleted macro definitions.
10616
10617 2004-02-10 Andrew Cagney <cagney@redhat.com>
10618
10619 * Makefile.in (SFILES): Remove explictly listed tui files.
10620 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10621
10622 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10623
10624 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10625 to use paddr functions to format ia64 addresses and long values.
10626 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10627 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10628 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10629 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10630 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10631
10632 2004-02-10 Andrew Cagney <cagney@redhat.com>
10633
10634 * defs.h: Do not include "tui.h".
10635 * gdb_curses.h: New file.
10636 * tui/tui-hooks.h: New file.
10637 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10638 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10639 (tui_initialize_io): Delete declaration.
10640 (tui_initialize_readline: Delete redundant declaration.
10641 (struct tui_point): Delete definition.
10642 * tui/tui-data.h (struct tui_point): Define.
10643 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10644 * utils.c: Include "tui/tui.h".
10645 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10646 * printcmd.c [TUI]: Include "tui/tui.h".
10647 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10648 * tui/tui-command.c: Include "gdb_curses.h".
10649 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10650 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10651 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10652 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10653 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10654 * Makefile.in: Update all dependencies.
10655 (tui_hooks_h, gdb_curses_h): Define.
10656 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10657
10658 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10659
10660 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10661 auxf2. Add comments about some other rarely used fields.
10662
10663 2004-02-10 Andrew Cagney <cagney@redhat.com>
10664
10665 * Makefile.in (init.c): Fix script removing duplicates. Problem
10666 reported by Peter Schauer.
10667
10668 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10669
10670 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10671 obstack_specify_allocation.
10672 * objfiles.c (allocate_objfile): Ditto.
10673 * solib-sunos.c (solib_add_common_symbols)
10674 (allocate_rt_common_objfile): Ditto.
10675 * symfile.c (reread_symbols): Ditto.
10676 * gdb_obstack.h: Add comment.
10677
10678 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10679
10680 * linespec.c (decode_line_1, locate_first_half)
10681 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10682 commented out code.
10683
10684 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10685
10686 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10687 obstack_free.
10688
10689 2004-02-09 Andrew Cagney <cagney@redhat.com>
10690
10691 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10692 fails, try find_pc_section. Fix PR c++/1267.
10693 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10694 instead of find_pc_mapped_section.
10695 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10696 not default to the section containing PC. Fix PR symtab/1519.
10697
10698 2004-02-09 Andrew Cagney <cagney@redhat.com>
10699
10700 * Makefile.in (mips-tdep.o): Update dependencies.
10701 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10702 "trad-frame.h".
10703 (mips_unwind_pc): Return the pseudo PC register.
10704 (mips_unwind_dummy_id): New function.
10705 (mips16_fetch_instruction): New function.
10706 (mips32_fetch_instruction): New function.
10707 (struct mips_frame_cache): Define.
10708 (mips_mdebug_frame_cache): New function.
10709 (mips_mdebug_frame_this_id): New function.
10710 (mips_mdebug_frame_prev_register): New function.
10711 (mips_mdebug_frame_unwind): Define.
10712 (mips_mdebug_frame_sniffer): New function.
10713 (mips_mdebug_frame_base_address): New function.
10714 (mips_mdebug_frame_base): Define.
10715 (mips_mdebug_frame_base_sniffer): New function.
10716 (mips_gdbarch_init): Append unwind and base sniffers. Set
10717 unwind_dummy_id.
10718
10719 2004-02-08 Andrew Cagney <cagney@redhat.com>
10720
10721 * frame.c: Print both the register number and name.
10722
10723 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10724 and a sed into a single sed. Make .c and .o patterns more robust.
10725 (OBS): Delete.
10726 (INIT_FILES): Replace OBS with COMMON_OBS.
10727 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10728
10729 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10730
10731 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10732 the PT_WCOOKIE request.
10733
10734 2004-02-08 Andrew Cagney <cagney@redhat.com>
10735
10736 * mips-tdep.c (mips_unwind_pc): New function.
10737 (mips_gdbarch_init): Set mips_unwind_pc.
10738
10739 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10740 (get_frame_id): Allow the UNKNOWN_FRAME.
10741 (frame_register_unwind, get_frame_type): Ditto.
10742
10743 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10744 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10745 unwind_dummy_id indicates a legacy frame.
10746
10747 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10748 * configure: Re-generate.
10749
10750 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10751 methods.
10752
10753 2004-02-08 Andrew Cagney <cagney@redhat.com>
10754
10755 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10756 makefile macro.
10757 * configure: Re-generate.
10758 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10759 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10760 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10761 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10762 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10763 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10764 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10765 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10766 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10767 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10768
10769 2004-02-07 Andrew Cagney <cagney@redhat.com>
10770
10771 * Makefile.in: Update all dependencies.
10772
10773 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10774 * configure: Re-generate.
10775 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10776 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10777 (COMMON_OBS): Add "main.o" and "annotate.o".
10778 (ANNOTATE_OBS): Delete.
10779 (OBS): Remove ANNOTATE_OBS.
10780 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10781 CONFIG_INITS.
10782 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10783 against CONFIG_OBS and "main.o".
10784 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10785 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10786
10787 * tui/tui-command.c: Include "gdb_string.h", delete register
10788 attribute, use ISO-C function signatures.
10789 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10790 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10791 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10792 * tui/tui.c: Ditto.
10793
10794 * tui/tui-command.c: Change variable and function names to lower
10795 case.
10796 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10797 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10798 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10799 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10800 * tui/tui-winsource.c, tui/tui.c: Ditto.
10801
10802 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10803
10804 * buildsym.c (free_pending_blocks, finish_block)
10805 (record_pending_block, make_blockvector, end_symtab): Replace
10806 symbol_obstack with objfile_obstack.
10807 * coffread.c (process_coff_symbol, coff_read_struct_type)
10808 (coff_read_enum_type): Ditto.
10809 * cp-namespace.c (initialize_namespace_symtab)
10810 (check_one_possible_namespace_symbol): Ditto.
10811 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10812 (dwarf2_symbol_mark_computed): Ditto.
10813 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10814 * elfread.c (elf_symtab_read): Ditto.
10815 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10816 (hpread_read_enum_type, hpread_read_function_type)
10817 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10818 Ditto.
10819 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10820 (java_link_class_type): Ditto.
10821 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10822 (new_symbol): Ditto.
10823 * minsyms.c (install_minimal_symbols): Ditto.
10824 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10825 (terminate_minimal_symbol_table): Replace symbol_obstack with
10826 objfile_obstack.
10827 (free_objfile): Remove freeing of symbol_obstack.
10828 * objfiles.h: Remove symbol_obstack field.
10829 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10830 objfile_obstack.
10831 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10832 symbol_obstack.
10833 (solib_add_common_symbols): Replace symbol_obstack with
10834 objfile_obstack.
10835 * somsolib.c (som_solib_add): Ditto.
10836 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10837 (common_block_start, common_block_end): Ditto.
10838 * symfile.c (reread_symbols): Remove freeing and init of
10839 symbol_obstack.
10840 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10841 * symfile.h: Update comment.
10842 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10843 stats printing.
10844 * symtab.c (symbol_set_names): Replace symbol_obstack with
10845 objfile_obstack.
10846 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10847 Update comments.
10848 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10849 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10850 objfile_obstack.
10851
10852 2004-02-07 Andrew Cagney <cagney@redhat.com>
10853
10854 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10855 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10856 fields and variables.
10857 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10858 (m_beInvisible): Delete macro.
10859 * tui/tui-data.h: Fix case case fields and variables.
10860 (m_genWinPtrIsNull): Delete macro.
10861 (tui_win_list): Rename winList.
10862 (TUI_SRC_WIN): Rename srcWin.
10863 (TUI_DISASM_WIN): Rename disassemWin.
10864 (TUI_DATA_WIN): Rename dataWin.
10865 (TUI_CMD_WIN): Rename cmdWin.
10866 (m_genWinPtrNotNull): Delete macro.
10867 (m_winPtrIsNull): Delete macro.
10868 (m_winPtrNotNull): Delete macro.
10869 (tui_win_is_source_type): Replace m_winIsSourceType
10870 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10871 (tui_win_has_locator): Replace m_hasLocator.
10872 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10873 m_setWinHighlightOff.
10874 * tui/tui-data.c: Update references.
10875 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10876 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10877 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10878 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10879 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10880 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10881 * tui/tui-winsource.c, tui/tui.c: Ditto.
10882
10883 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10884
10885 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10886 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10887 StackGhost.
10888
10889 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10890 variable `i6' to `i7'.
10891 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10892
10893 2004-02-07 Andrew Cagney <cagney@redhat.com>
10894
10895 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10896 (TuiPoint, TuiPointPtr): Ditto.
10897 (TuiStatus, TuiStatusPtr): Ditto.
10898 (TuiWinType, TuiWinTypePtr): Ditto.
10899 (struct tui_point): Rename _TuiPoint.
10900 (tui_get_low_disassembly_address): Rename
10901 tuiGetLowDisassemblyAddress.
10902 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10903 (tuiFree): Delete declaration.
10904 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10905 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10906 * tui/tui.c (tuiFree): Delete function.
10907 * cli/cli-cmds.c (disassemble_command): Update references.
10908 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10909 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10910 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10911 * tui/tui-winsource.c: Ditto.
10912
10913 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10914
10915 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10916 coffstab_build_psymtabs, elfstab_build_psymtabs)
10917 (stabsect_build_psymtabs): Replace psymbol_obstack with
10918 objfile_obstack.
10919 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10920 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10921 Ditto.
10922 * dwarfread.c (scan_compilation_units): Ditto.
10923 * elfread.c (elfstab_offset_sections): Ditto.
10924 * hppa-tdep.c (read_unwind_info): Ditto.
10925 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10926 (hpread_end_psymtab): Ditto.
10927 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10928 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10929 Ditto.
10930 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10931 * objfiles.c (add_to_objfile_sections)
10932 (build_objfile_section_table): Ditto.
10933 (allocate_objfile): Remove init of psymbol_obstack.
10934 (free_objfile): Remove freeing of psymbol_obstack.
10935 * objfiles.h (struct objfile): Remove field
10936 psymbol_obstack. Update comments.
10937 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10938 psymbol_obstack with objfile_obstack.
10939 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10940 psymbol_obstack.
10941 * somread.c (som_symfile_offsets, init_import_symbols)
10942 (init_export_symbols): Replace psymbol_obstack with
10943 objfile_obstack.
10944 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10945 * symfile.c (default_symfile_offsets, syms_from_objfile)
10946 (reread_symbols): Remove freeing and init of psymbol_obstack.
10947 (cashier_psymtab): Update comment.
10948 * symmisc.c (print_objfile_statistics): Don't report stats for
10949 psymbol obstack.
10950 * symtab.h (struct general_symbol_info, struct partial_symtab):
10951 Update comments.
10952 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10953 (xcoff_symfile_offsets): Replace psymbol_obstack with
10954 objfile_obstack.
10955
10956 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10957
10958 * objfiles.h (struct objfile): Add objfile_obstack field.
10959 Remove type_obstack field.
10960
10961 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10962 read_structure_scope read_enumeration, new_symbol): Replace
10963 type_obstack with objfile_obstack.
10964 * dwarfread.c (struct_type, enum_type): Ditto.
10965 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10966 (lookup_fundamental_type): Ditto.
10967 * gdbtypes.h (TYPE_ALLOC): Ditto.
10968 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10969 (hpread_read_doc_function_type, hpread_read_struct_type)
10970 (fix_static_member_physnames, hpread_read_array_type)
10971 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10972 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10973 (java_link_class_type): Ditto.
10974 * mdebugread.c (parse_type): Ditto.
10975 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10976 * solib-sunos.c (solib_add_common_symbols): Ditto.
10977 * stabsread.c (define_symbol, read_type, read_member_functions,
10978 read_cpp_abbrev, read_one_struct_field): Ditto.
10979 * symfile.c (reread_symbols): Ditto.
10980 * symmisc.c (print_objfile_statistics): Ditto.
10981
10982 2004-02-07 Andrew Cagney <cagney@redhat.com>
10983
10984 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10985 (tui_exec_info_content): Rename TuiExecInfoContent.
10986 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10987 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10988 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10989 (TuiList, TuiListPtr): Ditto.
10990 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10991 (TuiDataType, TuiDataTypePtr): Ditto.
10992 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10993 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10994 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10995 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10996 (TuiDataElement, TuiDataElementPtr): Ditto.
10997 (TuiWinElement, TuiWinElementPtr): Ditto.
10998 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10999 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11000 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11001 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11002 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11003 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11004 * tui/tui-command.c, tui/tui-data.c: Update references.
11005 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11006 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11007 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11008 * tui/tui-winsource.c, tui/tui.c: Ditto.
11009
11010 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11011
11012 * dwarf2-frame.h: Update copyright.
11013 (enum dwarf2_frame_reg_rule): New.
11014 (struct dwarf2_frame_state_reg): New.
11015 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11016 * dwarf2-frame.c: Update copyright.
11017 (enum dwarf2_reg_rule): Remove.
11018 (struct dwarf2_frame_state): Remove defenition of `struct
11019 dwarf2_frame_state_reg'.
11020 (read_reg): Call get_frame_arch to get the architecture instead of
11021 using CURRENT_GDBARCH.
11022 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11023 DWARF2_FRAME_.
11024 (dwarf2_frame_init_reg): New function.
11025 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11026 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11027 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11028 tags with DWARF2_FRAME_.
11029 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11030 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11031 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11032
11033 2004-02-06 Andrew Cagney <cagney@redhat.com>
11034
11035 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11036 (enum tui_data_type): Rename _TuiDataType.
11037 (struct tui_layout_def): Rename _TuiLayoutDef.
11038 (struct tui_source_element): Rename _TuiSourceElement.
11039 (struct tui_data_element): Rename _TuiDataElement.
11040 (struct tui_command_element): Rename _TuiCommandElement.
11041 (struct tui_locator_element): Rename _TuiLocatorElement.
11042 (union tui_which_element): Define.
11043 (struct tui_win_element): Rename _TuiWinElement.
11044 (struct tui_data_info): Rename _TuiDataInfo.
11045 (struct tui_source_info): Rename _TuiSourceInfo.
11046 (struct tui_command_info): Rename _TuiCommandInfo.
11047 (tui_initialize_static_data): Rename initializeStaticData.
11048 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11049 (tui_alloc_win_info): Rename allocWinInfo.
11050 (tui_init_generic_part): Rename initGenericPart.
11051 (tui_init_win_info): Rename initWinInfo.
11052 (tui_alloc_content): Rename allocContent.
11053 (tui_add_content_elements): Rename addContentElements.
11054 (tui_init_content_element): Rename initContentElement.
11055 (tui_free_window): Rename freeWindow.
11056 (tui_free_win_content): Rename freeWinContent.
11057 (tui_free_data_content): Rename freeDataContent.
11058 (tui_free_all_source_wins_content): Rename
11059 freeAllSourceWinsContent.
11060 (tui_del_window): Rename tuiDelWindow.
11061 (tui_del_data_windows): Rename tuiDelDataWindows.
11062 (tui_partial_win_by_name): Rename partialWinByName.
11063 (tui_win_name): Rename winName.
11064 (tui_current_layout): Rename currentLayout.
11065 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11066 (tui_term_height): Rename termHeight.
11067 (tui_set_term_height_to): Rename setTermHeightTo.
11068 (tui_term_width): Rename termWidth.
11069 (tui_set_term_width_to): Rename setTermWidthTo.
11070 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11071 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11072 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11073 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11074 (tui_source_windows): Rename sourceWindows.
11075 (tui_clear_source_windows): Rename clearSourceWindows.
11076 (tui_clear_source_windows_detail): Rename
11077 clearSourceWindowsDetail.
11078 (tui_clear_win_detail): Rename clearWinDetail.
11079 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11080 (tui_default_tab_len): Rename tuiDefaultTabLen.
11081 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11082 (tui_win_with_focus): Rename tuiWinWithFocus.
11083 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11084 (tui_layout_def): Rename tuiLayoutDef.
11085 (tui_win_resized): Rename tuiWinResized.
11086 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11087 (tui_next_win): Rename tuiNextWin.
11088 (tui_prev_win): Rename tuiPrevWin.
11089 (tui_add_to_source_windows): Rename addToSourceWindows.
11090 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11091 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11092 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11093 * tui/tui.c, tui/tui-data.c: Ditto.
11094 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11095 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11096
11097 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11098 (struct symtab): Declare.
11099 (tui_set_source_content): Rename tuiSetSourceContent.
11100 (tui_show_symtab_source): Rename tuiShowSource.
11101 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11102 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11103 * tui/tui-source.c: Update copyright. Update references.
11104 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11105 * tui/tui-stack.c: Update references.
11106
11107 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11108 (struct tui_win_info): Declare.
11109 (tui_scroll_forward): Rename tuiScrollForward.
11110 (tui_scroll_backward): Rename tuiScrollBackward.
11111 (tui_scroll_left): Rename tuiScrollLeft.
11112 (tui_scroll_right): Rename tuiScrollRight.
11113 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11114 (tui_resize_all): Rename tuiResizeAll.
11115 (tui_refresh_all_win): Rename tuiRefreshAll.
11116 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11117 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11118 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11119 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11120
11121 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11122 (tui_erase_data_content): Rename tuiEraseDataContent.
11123 (tui_display_all_data): Rename tuiDisplayAllData.
11124 (tui_check_data_values): Rename tuiCheckDataValues.
11125 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11126 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11127 (tui_first_data_element_no_in_line): Rename
11128 tuiFirstDataElementNoInLine.
11129 (tui_delete_data_content_windows): Rename
11130 tuiDeleteDataContentWindows.
11131 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11132 (tui_display_data_from): Rename tuiDisplayDataFrom.
11133 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11134 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11135 * tui/tui-win.c, tui/tui-regs.c: Update references.
11136 * tui/tui-layout.c, tui/tui.c: Update references.
11137
11138 * tui/tui-wingeneral.h: Update copyright.
11139 (m_allBeVisible): Delete macro.
11140 (m_allBeInvisible): Delete macro.
11141 (struct tui_gen_win_info): Declare.
11142 (struct tui_win_info): Declare.
11143 (tui_unhighlight_win): Rename unhighlightWin.
11144 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11145 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11146 (tui_make_window): Rename makeWindow.
11147 (tui_copy_win): Rename copyWin.
11148 (tui_box_win): Rename boxWin.
11149 (tui_highlight_win): Rename highlightWin.
11150 (tui_check_and_display_highlight_if_needed): Rename
11151 checkAndDisplayHighlightIfNeeded.
11152 (tui_refresh_all): Rename refreshAll.
11153 (tui_delete_win): Rename tuiDelwin.
11154 (tui_refresh_win): Rename tuiRefreshWin.
11155 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11156 (tui_make_visible, tui_make_invisible): New functions.
11157 (tui_make_all_visible, tui_make_all_invisible): New functions.
11158 (make_all_visible): Rename makeAllVisible.
11159 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11160 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11161 * tui/tui-windata.c, tui/tui-win.c: Update references.
11162 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11163 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11164
11165 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11166
11167 * proc-api.c (write_with_trace): Initialize local variable to
11168 silence compiler warning.
11169
11170 2004-02-06 Andrew Cagney <cagney@redhat.com>
11171
11172 * tui/tui-source.h: Do not include "defs.h".
11173 (struct tui_win_info): Declare.
11174 (tui_set_source_content_nil): Declare.
11175 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11176 (union tui_line_or_address): Rename _TuiLineOrAddress.
11177 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11178 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11179 (tui_update_source_window_as_is): Rename
11180 tuiUpdateSourceWindowAsIs.
11181 (tui_update_source_windows_with_addr): Rename
11182 tuiUpdateSourceWindowsWithAddr.
11183 (tui_update_source_windows_with_line): Rename
11184 tuiUpdateSourceWindowsWithLine.
11185 (tui_clear_source_content): Rename tuiClearSourceContent.
11186 (tui_erase_source_content): Rename tuiEraseSourceContent.
11187 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11188 (tui_show_source_content): Rename tuiShowSourceContent.
11189 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11190 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11191 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11192 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11193 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11194 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11195 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11196 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11197 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11198 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11199 (struct tui_win_info): Declare.
11200 * tui/tui-stack.c: Update references.
11201 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11202 * tui/tui-win.c, tui/tui-source.c: Ditto.
11203 * tui/tui.c, tui/tui-disasm.c: Ditto.
11204
11205 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11206
11207 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11208 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11209
11210 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11211
11212 * infrun.c (handle_inferior_event): Allow for breakpoint
11213 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11214 and SIGEMT. Update comments.
11215 * NEWS (Revised SPARC target): Mention support for non-executable
11216 stack.
11217
11218 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11219
11220 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11221 * inftarg.c: Update copyright year.
11222 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11223 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11224 (sparc_xfer_wcookie): New function.
11225 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11226 * Makefile.in (sparc-nat.o): Update dependencies.
11227 * config/sparc/nm-nbsd.h: Include "target.h".
11228 (NATIVE_XFER_WCOOKIE): New define.
11229 (sparc_xfer_wcookie): New prototype.
11230
11231 2004-02-04 Andrew Cagney <cagney@redhat.com>
11232
11233 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11234 SYSCALL_TRAP function.
11235 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11236
11237 2004-02-04 Andrew Cagney <cagney@redhat.com>
11238 Daniel Jacobowitz <drow@mvista.com>
11239
11240 * objfiles.h: Delete comments refering to inside_entry_func and
11241 DEPRECATED_FRAME_CHAIN_VALID.
11242 * defs.h (inside_entry_func): Update prototype..
11243 * blockframe.c (inside_entry_func): Rename to
11244 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11245 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11246
11247 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11248
11249 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11250 outside of #ifdef SOLIB_ADD region.
11251 (do_restore_lang_radix_cleanup): Ditto.
11252 (resolve_pending_breakpoint): Ditto.
11253
11254 2004-02-03 Andrew Cagney <cagney@redhat.com>
11255
11256 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11257 (process_note_abi_tag_sections): Delete unused function.
11258 (ia64_read_fp): Delete unused function.
11259 (gdbarch_extract_struct_value_address): Delete declaration.
11260
11261 2004-02-02 Andrew Cagney <cagney@redhat.com>
11262
11263 * vax-tdep.c (vax_frame_chain): Delete call to
11264 deprecated_inside_entry_file.
11265 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11266
11267 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11268
11269 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11270 column that's "empty" or "same value" when eliminating REG_RA
11271 rules.
11272
11273 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11274
11275 * NEWS: Add information about new pending breakpoint support.
11276
11277 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11278
11279 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11280 and pending fields for pending breakpoint support.
11281 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11282 (condition_command): Only parse condition if not a pending
11283 breakpoint.
11284 (print_one_breakpoint): Add support for pending breakpoints.
11285 (describe_other_breakpoints): Add checks to verify we are not
11286 dealing with pending breakpoints.
11287 (check_duplicates): Don't check pending breakpoints.
11288 (set_raw_breakpoint): Initialize pending flag.
11289 (do_restore_lang_radix_cleanup): New cleanup routine.
11290 (resolve_pending_breakpoint): New function.
11291 (re_enable_breakpoints_in_shlibs): Try and resolve any
11292 pending breakpoints via resolve_pending_breakpoint.
11293 (mention): Add pending breakpoint support.
11294 (parse_breakpoint_sals): Add new parameter to pass to
11295 decode_line_1 to indicate silent errors when files or functions
11296 are not found. Change all callers.
11297 (do_captured_parse_breakpoint): New function.
11298 (break_command_1): Change prototype to return an rc value and to
11299 take an optional pending breakpoint pointer. Support creating
11300 a pending breakpoint if a "not found" form of error occurs when
11301 parsing the breakpoint. Also support resolving an existing pending
11302 breakpoint and be silent if the resolution fails.
11303 (create_breakpoints): Change prototype to take pending breakpoint
11304 pointer. When resolving a pending breakpoint, use the new pointer
11305 to provide a conditional or commands added by the end-user.
11306 (delete_breakpoint): Add appropriate check for pending.
11307 (breakpoint_re_set_one): Ditto.
11308 (do_enable_breakpoint): Ditto.
11309
11310 2004-02-02 David Carlton <carlton@kealia.com>
11311
11312 * valops.c (enum oload_classification): New.
11313 (find_overload_match): Break implementation into separate
11314 functions; delete #if 0'd code; look for symbols within
11315 namespaces.
11316 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11317 (find_oload_champ,oload_method_static,classify_oload_match): New.
11318 * cp-support.h: Add declaration for cp_func_name; update
11319 declaration for make_symbol_overload_list.
11320 * cp-support.c (cp_func_name): New.
11321 (overload_list_add_symbol): Fix comment, use
11322 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11323 (make_symbol_overload_list): Take a function name and a namespace
11324 instead of a symbol; change implementation.
11325 (make_symbol_overload_list_using): New.
11326 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11327
11328 2004-02-02 Fred Fish <fnf@redhat.com>
11329
11330 * main.c (gdb_stdtarg): Move definition to group with other
11331 gdb_stdtarg definitions and update copyright years.
11332 * remote-sim.c (gdb_os_write_stderr): Write output to
11333 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11334 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11335 gdb_stderr stream and update copyright years.
11336
11337 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11338
11339 * Makefile.in (mips-linux-nat.o): Update dependencies.
11340 * mips-linux-nat.c: Include mips-tdep.h.
11341
11342 2004-02-01 Roland McGrath <roland@redhat.com>
11343
11344 * sol-thread.c (sol_thread_xfer_partial): New function.
11345 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11346 (init_sol_core_ops): Likewise.
11347
11348 * procfs.c (procfs_xfer_partial): New function.
11349 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11350 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11351
11352 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11353 procfs_xfer_auxv function.
11354
11355 * procfs.c (procfs_make_note_section): If we can read
11356 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11357 * linux-proc.c (linux_make_note_section): Likewise.
11358
11359 * auxv.h: New file.
11360 * auxv.c: New file.
11361 * Makefile.in (auxv_h): New variable.
11362 (COMMON_OBS): Add auxv.o here.
11363 (auxv.o): New target.
11364
11365 * corelow.c (core_xfer_partial): New function.
11366 (init_core_ops): Use it for core_ops.to_xfer_partial.
11367
11368 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11369 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11370 macro if that is defined.
11371
11372 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11373
11374 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11375 and check the specified thread for each breakpoint.
11376 * breakpoint.h (bpstat_stop_status): Update prototype.
11377 * infrun.c (handle_inferior_event): Update calls to
11378 bpstat_stop_status.
11379
11380 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11381
11382 * Makefile.in (cli-cmds.o): Add $(readline_h).
11383
11384 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11385
11386 * cli/cli-cmds.c: Include readline.h.
11387 (complete_command): Pass the start of the last word to
11388 complete_line.
11389
11390 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11391
11392 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11393 argument, and change first argument to a CORE_ADDR.
11394 * breakpoint.h (bpstat_stop_status): Update prototype.
11395 * infrun.c (adjust_pc_after_break): Add a new comment.
11396 (handle_inferior_event): Update calls to bpstat_stop_status.
11397
11398 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11399
11400 * breakpoint.h: Update copyright years.
11401
11402 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11405 (bpstat_stop_status): Don't decrement PC.
11406 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11407 prototype.
11408 * infrun.c (adjust_pc_after_break): New function.
11409 (handle_inferior_event): Call it, early. Remove later references
11410 to DECR_PC_AFTER_BREAK.
11411 (normal_stop): Add commentary.
11412
11413 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11414
11415 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11416 2004-01-27 double-free fix.
11417
11418 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11419
11420 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11421 (sparc32_frame_prev_register): Handle StackGhost.
11422 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11423
11424 2004-01-29 Roland McGrath <roland@redhat.com>
11425
11426 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11427 * configure: Regenerated.
11428
11429 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11430 * Makefile.in (procfs.o): Add dep.
11431
11432 2004-01-28 Andrew Cagney <cagney@redhat.com>
11433
11434 * tui/tui-stack.h: Update copyright.
11435 (struct frame_info): Add opaque declaration.
11436 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11437 (tui_show_locator_content): Rename tuiShowLocatorContent.
11438 (tui_show_frame_info): Rename tuiShowFrameInfo.
11439 * tui/tui-stack.c: Update copyright. Update references.
11440 * tui/tui-winsource.c: Update references.
11441 * tui/tui-win.c: Update references.
11442 * tui/tui-layout.c: Update references.
11443 * tui/tui-hooks.c: Update copyright, update references.
11444 * tui/tui.c: Update copyright, update references.
11445 * tui/tui-disasm.c: Update references.
11446
11447 2004-01-28 David Carlton <carlton@kealia.com>
11448
11449 * dwarf2read.c (add_partial_structure): Use demangled name if
11450 namespace equals "".
11451
11452 2004-01-27 Jim Blandy <jimb@redhat.com>
11453
11454 Clean up misapplied patch:
11455 * dwarf2read.c (determine_prefix): Change one of the two forward
11456 declarations for 'determine_prefix_aux' to a declaration for this.
11457 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11458 argument to 'die_specification'.
11459
11460 * dwarf2read.c (read_func_scope): Re-indent comment.
11461
11462 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11463
11464 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11465 b->exp to NULL after freeing so that error during re-parsing or
11466 evaluation of expressions associated with breakpoint don't
11467 eventually lead to re-freeing of storage.
11468 Committed by Andrew Cagney.
11469
11470 2004-01-27 Andrew Cagney <cagney@redhat.com>
11471
11472 * source.c (ambiguous_line_spec): Delete undefined declaration.
11473 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11474 (m32r_set_server_address, m32r_set_download_path): Ditto.
11475 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11476
11477 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11478
11479 * dwarf2read.c: Update calls to changed and renamed functions, and
11480 references to moved variables.
11481
11482 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11483 language, language_defn, list_in_scope, and ftypes members.
11484 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11485 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11486 (baseaddr): Remove globals.
11487
11488 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11489 (set_cu_language, die_is_declaration, die_specification)
11490 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11491 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11492 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11493 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11494
11495 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11496 cu.list_in_scope. Don't initialize cu_header_offset.
11497 (add_partial_symbol): Add local baseaddr.
11498 (psymtab_to_symtab_1): Add local baseaddr. Use
11499 objfile->section_offsets for consistency. Don't initialize
11500 cu_header_offset; do initialize cu.header.offset and
11501 cu.list_in_scope.
11502 (read_file_scope, read_func_scope, read_lexical_block_scope)
11503 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11504
11505 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11506
11507 * PROBLEMS: Add gdb/1516.
11508
11509 2003-12-29 Robert Millan <robertmh@gnu.org>
11510
11511 Patch committed by Andrw Cagney.
11512 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11513 * configure.tgt: Match knetbsd*-gnu.
11514
11515 2004-01-26 Andrew Cagney <cagney@redhat.com>
11516
11517 * breakpoint.c (catch_command_1): Delete #ifdef code.
11518 (catch_fork_command_1): Delete #ifdef wrapper.
11519 (catch_exec_command_1): Ditto.
11520 (catch_load_command_1): Ditto.
11521 (catch_unload_command_1): Ditto.
11522
11523 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11524 (catch_breakpoint): Delete #if0ed function.
11525 (disable_catch_breakpoint): Ditto.
11526 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11527 (disable_catch, enable_catch, delete_catch): Ditto.
11528
11529 2004-01-26 Andrew Cagney <cagney@redhat.com>
11530
11531 * remote.c (echo_check, quit_flag): Delete variables.
11532 (cisco_kernel_mode): Delete variable.
11533 (minitelnet_return, tty_input, escape_count): Delete variables.
11534 (remote_cisco_mode): Delete variable.
11535 (remote_cisco_open, remote_cisco_close): Delete function.
11536 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11537 (init_remote_cisco_ops): Delete function.
11538 (_initialize_remote): Do not install "remote cisco" code.
11539 (read_frame): Delete cisco specific code.
11540 (remote_info_process): Delete function.
11541 (remote_wait): Delete cisco specific code.
11542 (remote_cisco_section_offsets): Delete function.
11543 (remote_cisco_objfile_relocate): Delete function.
11544 (remote_async_wait): Delete cisco specific code.
11545 (minitelnet, readtty, readsocket): Delete function.
11546
11547 2004-01-26 Andrew Cagney <cagney@redhat.com>
11548
11549 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11550 comments mentioning extract_returned_value_address.
11551 * infcmd.c (print_return_value): Update. Add comments on
11552 extract_returned_value_address.
11553 * stack.c (return_command): Add comments on
11554 extract_returned_value_address.
11555 * values.c: Update comment.
11556 * m32r-tdep.c: Update comment.
11557 * sparc-tdep.c: Update comment.
11558 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11560 * sh64-tdep.c (sh64_gdbarch_init): Update.
11561 * sh-tdep.c (sh_gdbarch_init): Update.
11562 * s390-tdep.c (s390_gdbarch_init): Update.
11563 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11564 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11565 * m68k-tdep.c (m68k_gdbarch_init): Update.
11566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11567 * m32r-tdep.c (m32r_gdbarch_init): Update.
11568 * ia64-tdep.c (ia64_gdbarch_init): Update.
11569 * h8300-tdep.c (h8300_gdbarch_init): Update.
11570 * frv-tdep.c (frv_gdbarch_init): Update.
11571 * arm-tdep.c (arm_gdbarch_init): Update.
11572 * alpha-tdep.c (alpha_gdbarch_init): Update.
11573
11574 2004-01-26 Andrew Cagney <cagney@redhat.com>
11575
11576 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11577 SYMBOL_LOCATION_FUNCS
11578 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11579 "struct symbol_ops".
11580 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11581 type to "struct symbol_ops".
11582 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11583 (struct symbol): Replace ".aux_value.loc.funcs" and
11584 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11585 (SYMBOL_OBJFILE): Delete macro.
11586 (SYMBOL_LOCATION_FUNCS): Delete macro.
11587 (SYMBOL_LOCATION_BATON): Update.
11588 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11589 intead of SYMBOL_LOCATION_FUNCS.
11590 * ax-gdb.c (gen_var_ref): Ditto.
11591 * printcmd.c (address_info): Ditto.
11592 * findvar.c (read_var_value): Ditto.
11593 (symbol_read_needs_frame): Ditto.
11594
11595 2004-01-26 Andrew Cagney <cagney@redhat.com>
11596
11597 * dwarf2read.c (read_func_scope): Document frame-base hack.
11598
11599 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11600
11601 * infcmd.c (print_return_value): Plug memory leak; delete
11602 ui_stream object. Rename argument `structure_return' to
11603 `struct_return'.
11604
11605 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11606
11607 * infcmd.c (print_return_value): Wrap long lines.
11608 (finish_command_continuation, finish_command): Remove unused
11609 variable `funcaddr'. Fix some coding-standards problems.
11610
11611 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11612 SECT_SIZE is large enough, not whether it's exactly the right size.
11613 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11614 TDEP->fpregset to zero.
11615
11616 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11617 floating-point registers for traditional NetBSD core files.
11618 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11619 TDEP->sizeof_fpregset here.
11620
11621 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11622
11623 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11624 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11625 function with code split out from
11626 sparc32nbsd_sigcontext_frame_cache.
11627 (sparc32nbsd_sigcontext_frame_cache): Use
11628 sparc32nbsd_sigcontext_saved_regs.
11629 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11630 OpenBSD.
11631 * sparcobsd-tdep.c: New file.
11632 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11633 (sparcobsd-tdep.o): New dependency.
11634 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11635 * config/sparc/obsd.mt: New file.
11636
11637 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11638 TDEP->fpregset to be initialized to enable core file register
11639 sets.
11640
11641 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11642
11643 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11644 Add opaque declarations.
11645 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11646 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11647 function with code split out from
11648 sparc64nbsd_sigcontext_frame_cache.
11649 (sparc64nbsd_sigcontext_frame_cache): Use
11650 sparc64nbsd_sigcontext_saved_regs.
11651 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11652 OpenBSD.
11653 * sparc64obsd-tdep.c: New file.
11654 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11655 (sparc64obsd-tdep.o): New dependency.
11656 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11657 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11658 * config/sparc/obsd64.mt: New file.
11659
11660 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11661 read the instruction at PC.
11662
11663 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11664 value of GDB_OSABI_DEFAULT.
11665 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11666 instead of GDB_OSABI_NETBSD_AOUT.
11667
11668 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11669
11670 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11671 copyright.
11672
11673 2004-01-23 Andrew Cagney <cagney@redhat.com>
11674
11675 * printcmd.c (display_command): Replace tui_set_display call with
11676 tui_set_layout_for_display_command.
11677 * tui/tui.h (enum tui_win_type): Define.
11678 (tui_set_layout): Delete declaration.
11679 (tui_set_layout_for_display_command): Rename set_tui_layout.
11680 * tui/tui-data.h (enum tui_layout_type): Define.
11681 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11682 "tui.h".
11683 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11684 (tui_default_win_height): Rename tuiDefaultWinHeight.
11685 (tui_default_win_viewport_height): Rename
11686 tuiDefaultWinViewportHeight.
11687 (tui_set_layout): RenametuiSetLayout.
11688 * tui/tui-layout.c: Update references.
11689 * tui/tui.c: Update references.
11690 * tui/tui-disasm.c: Update references.
11691
11692 2004-01-23 David Carlton <carlton@kealia.com>
11693
11694 Partial workaround for PR c++/1511:
11695 * cp-namespace.c: Include frame.h.
11696 (cp_lookup_transparent_type): New
11697 (cp_lookup_transparent_type_loop): New.
11698 * cp-support.h: Declare cp_lookup_transparent_type.
11699 * symtab.c (basic_lookup_transparent_type): Renamed from
11700 lookup_transparent_type.
11701 (lookup_transparent_type): Replace old body by a call to
11702 current_language->la_lookup_transparent_type.
11703 * symtab.h: Update copyright. Declare
11704 basic_lookup_transparent_type.
11705 * language.h: Update copyright.
11706 (struct language_defn): Add la_lookup_transparent_type.
11707 * language.c: Update copyright.
11708 (unknown_language_defn): Add basic_lookup_transparent_type.
11709 (auto_language_defn): Add basic_lookup_transparent_type.
11710 (local_language_defn): Add basic_lookup_transparent_type.
11711 * ada-lang.c: Update copyright.
11712 (ada_language_defn): Add basic_lookup_transparent_type.
11713 * c-lang.c: Update copyright.
11714 (c_language_defn): Add basic_lookup_transparent_type.
11715 (cplus_language_defn): Add basic_lookup_transparent_type.
11716 (asm_language_defn): Add basic_lookup_transparent_type.
11717 (minimal_language_defn): Add basic_lookup_transparent_type.
11718 * f-lang.c: Update copyright.
11719 (f_language_defn): Add basic_lookup_transparent_type.
11720 * jv-lang.c: Update copyright.
11721 (java_language_defn): Add basic_lookup_transparent_type.
11722 * m2-lang.c: Update copyright.
11723 (m2_language_defn): Add basic_lookup_transparent_type.
11724 * objc-lang.c: Update copyright.
11725 (objc_language_defn): Add basic_lookup_transparent_type.
11726 * p-lang.c: Update copyright.
11727 (p_language_defn): Add basic_lookup_transparent_type.
11728 * scm-lang.c: Update copyright.
11729 (scm_language_defn): Add basic_lookup_transparent_type.
11730 * Makefile.in (cp-namespace.o): Depend on frame.h.
11731
11732 2004-01-23 David Carlton <carlton@kealia.com>
11733
11734 Patch for PR c++/1520:
11735 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11736 properly if we have a specification die.
11737 (determine_prefix_aux): Rename from determine_prefix.
11738 (determine_prefix): Like the old determine_prefix, but never
11739 returns NULL.
11740
11741 2004-01-23 Theodore A. Roth <troth@openavr.org>
11742
11743 * avr-tdep.c: Update copyright.
11744 (avr_iaddr_p): Delete unused function.
11745 (avr_saddr_p): Delete unused function.
11746
11747 2004-01-23 David Carlton <carlton@kealia.com>
11748
11749 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11750 Fix for PR symtab/1534.
11751
11752 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11753
11754 * NEWS (New native configurations): Mention OpenBSD/sparc and
11755 OpenBSD/sparc64.
11756 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11757 * configure.host: Likewise.
11758 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11759 handler for OpenBSD.
11760 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11761
11762 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11763
11764 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11765 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11766
11767 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11768 * cli/cli-cmds.c (shell_escape): Likewise.
11769
11770 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11771 OpenBSD .note.openbsd.ident sections.
11772
11773 2004-01-22 David Carlton <carlton@kealia.com>
11774
11775 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11776 get_scope_pc_bounds.
11777 (read_file_scope): Ditto.
11778 (get_scope_pc_bounds): New function, produced by extracting code
11779 from the above two functions, consolidating it, and adding support
11780 for DW_TAG_namespace.
11781
11782 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11783
11784 * osabi.c (MAX_NOTESZ): New define.
11785 (check_note): New function.
11786 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11787 check_note.
11788
11789 2004-01-21 Roland McGrath <roland@redhat.com>
11790
11791 * MAINTAINERS (write after approval): Add myself.
11792
11793 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11794
11795 * utils.c (init_page_info): Move declarations of `rows' and
11796 `cols' before the __GO32__-specific code. Move the closing brace
11797 outside the #ifdef __GO32__..#endif block.
11798 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11799
11800 2004-01-21 Paul Brook <paul@codesourcery.com>
11801
11802 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11803 BPSTAT_WHAT_CHECK_SHLIBS.
11804
11805 2004-01-21 Paul Brook <paul@codesourcery.com>
11806
11807 * MAINTAINERS: Add myself to write-after-approval.
11808
11809 2004-01-20 Andrew Cagney <cagney@redhat.com>
11810
11811 * ax-gdb.c (print_axs_value): Delete unused function.
11812 * jv-lang.c (java_lookup_type): Delete unused function.
11813 * cli/cli-dump.c (dump_filetype): Delete unused function.
11814 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11815 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11816 (mips_getstring): Delete unused function.
11817 (pmon_insert_breakpoint): Delete #if0ed function.
11818 (PMON_MAX_BP): Delete #if0ed MACRO.
11819 (mips_pmon_bp_info): Delete #if0ed variable.
11820 (pmon_remove_breakpoint): Delete #if0ed function.
11821 * monitor.c (monitor_write_even_block): Delete unused function.
11822 (monitor_write_memory_block): Delete #if0ed code.
11823 * dink32-rom.c (dink32_load): Delete unused function.
11824 (_initialize_dink32_rom): Delete #if0ed code.
11825 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11826
11827 * tui/tui-command.c: Update references.
11828 * tui/tui-io.c: Update references.
11829 * tui/tui-command.h: Update copyright.
11830 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11831
11832 * source.c (ambiguous_line_spec): Delete never-defined function.
11833 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11834 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11835 * cli/cli-cmds.c (validate_comname): Ditto.
11836
11837 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11838 "tui-data.h".
11839 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11840 (tui_show_disassem): Rename tuiShowDisassem.
11841 (tui_show_disassem_and_update_source): Rename
11842 tuiVerticalDisassemScroll.
11843 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11844 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11845 * tui/tui.h: Update copyright.
11846 (enum tui_status): Define.
11847 * tui/tui-data.h (enum tui_scroll_direction): Define.
11848 * tui/tui-disasm.c: Update copyright. Update references.
11849 * tui/tui-winsource.c: Update copyright. Update references.
11850 * tui/tui-win.c: Update references.
11851 * tui/tui-layout.c: Update references.
11852
11853 2004-01-20 Andrew Cagney <cagney@redhat.com>
11854
11855 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11856 sym2 to start of block.
11857
11858 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11859
11860 * MAINTAINERS: Delete mmalloc.
11861 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11862 * NEWS: Mention removal of --with-malloc.
11863 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11864 * config.in: Regenerate.
11865 * configure: Regenerate.
11866 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11867 USE_MMALLOC, MMCHECK_FORCE.
11868 * gdbinit.in: Remove mmalloc.
11869 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11870 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11871 * config/i386/go32.mh: Likewise.
11872 * config/i386/interix.mh: Likewise.
11873 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11874
11875 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11876
11877 * linespec.c (decode_variable, symtab_from_filename): Call
11878 error_silent with error message instead of throwing an exception
11879 directly.
11880 * defs.h (error_silent, error_output_message): Add prototypes.
11881 (catch_exceptions_with_msg): Ditto.
11882 * utils.c (error_silent, error_output_message): New functions.
11883 * top.c (catch_exceptions_with_msg): New function.
11884
11885 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11886
11887 * mi/mi-cmds.h (enum print_values): Add definition.
11888
11889 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11890 type and value for simple data types and just the name and type
11891 for complex ones, if required.
11892
11893 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11894 children, if required.
11895
11896 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11897
11898 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11899 unused declarations.
11900
11901 2004-01-19 Andrew Cagney <cagney@redhat.com>
11902
11903 * top.h (mapped_symbol_files): Delete declaration.
11904 * main.c (captured_main): Delete option "m" and "mapped".
11905 * objfiles.c (mapped_symbol_files): Delete variable.
11906 * symfile.c (symbol_file_command): Delete mmap code.
11907 (symbol_file_add_with_addrs_or_offsets): Ditto.
11908 (add_symbol_file_command, reread_separate_symbols): Ditto.
11909 * objfiles.h (OBJF_MAPPED): Delete.
11910 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11911 (free_objfile) [USE_MMALLOC]: Ditto.
11912 (open_existing_mapped_file): Delete function.
11913 (open_mapped_file): Delete function.
11914 (map_to_file): Delete function.
11915
11916 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11917
11918 * infrun.c (step_into_function): Account for possible breakpoint
11919 adjustment when computing ``stop_func_start''.
11920
11921 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11922
11923 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11924 the region size against the size of a pointer, not the size of
11925 a register as given by DEPRECATED_REGISTER_SIZE.
11926
11927 2004-01-19 Andrew Cagney <cagney@redhat.com>
11928
11929 * tui/tui-regs.h: Include "tui-data.h".
11930 (tuiFirstRegElementNoInLine): Delete declaration.
11931 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11932 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11933 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11934 (tui_calculate_regs_column_count): Rename
11935 tuiCalculateRegsColumnCount.
11936 (tui_check_register_values): Rename tuiCheckRegisterValues.
11937 (tui_show_registers): Rename tuiShowRegisters.
11938 (tui_display_registers_from_line): Rename
11939 tuiDisplayRegistersFromLine.
11940 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11941 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11942 (tui_first_reg_element_no_inline): Rename
11943 tuiFirstRegElementNoInLine.
11944 * tui/tui-data.h: Update copyright.
11945 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11946 * tui/tui-windata.c: Update copyright, update references.
11947 * tui/tui-regs.c: Update copyright, update references.
11948 * tui/tui-win.c: Update copyright, update references.
11949 * tui/tui-layout.c: Update copyright, update references.
11950
11951 2004-01-18 Andrew Cagney <cagney@redhat.com>
11952
11953 * tui/tui-io.c: Update copyright.
11954 (key_is_end_sequence, key_is_backspace): New functions.
11955 (key_is_command_char, key_is_start_sequence): New function.
11956 (tui_getc): Update references.
11957 * tui/tui-io.h: Update copyright.
11958 (m_tuiStartNewLine): Delete macro.
11959 (m_isBackspace, m_isDeleteChar): Delete macros.
11960 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11961 (m_isNextPage, m_isPrevPage): Delete macros.
11962 (m_isLeftArrow, m_isRightArrow): Delete macros.
11963 (m_isXdbStyleCommandChar): Delete macro.
11964 (key_is_start_sequence): Declare, replace m_isStartSequence.
11965 (key_is_end_sequence): Declare, replace m_isEndSequence.
11966 (key_is_backspace): Declare ,replace m_isBackspace.
11967 (key_is_command_char): Declare, replace m_isCommandChar.
11968 * tui/tui-command.c: Update copyright.
11969 (tuiDispatchCtrlChar): Update references.
11970
11971 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11972 tuiSourceWin.h.
11973
11974 * tui/tui-command.c: Rename tui/tuiCommand.c.
11975 * tui/tui-command.h: Rename tui/tuiCommand.h.
11976 * tui/tui-data.c: Rename tui/tuiData.c.
11977 * tui/tui-data.h: Rename tui/tuiData.h.
11978 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11979 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11980 * tui/tui-io.c: Rename tui/tuiIO.c.
11981 * tui/tui-io.h: Rename tui/tuiIO.h.
11982 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11983 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11984 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11985 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11986 * tui/tui-source.c: Rename tui/tuiSource.c.
11987 * tui/tui-source.h: Rename tui/tuiSource.h.
11988 * tui/tui-stack.c: Rename tui/tuiStack.c.
11989 * tui/tui-stack.h: Rename tui/tuiStack.h.
11990 * tui/tui-win.c: Rename tui/tuiWin.c.
11991 * tui/tui-win.h: Rename tui/tuiWin.h.
11992 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11993 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11994 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11995 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11996 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11997 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11998 * tui/tui-file.c: Update includes.
11999 * tui/tui-hooks.c: Update includes.
12000 * tui/tui-interp.c: Update includes.
12001 * tui/tui.c: Update includes.
12002 * Makefile.in: Update all tui/ dependencies.
12003 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12004
12005 * Makefile.in: Update copyright. Update dependencies.
12006
12007 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12008 problem.
12009
12010 2004-01-18 Andrew Cagney <cagney@redhat.com>
12011
12012 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12013 instead of register_gdbarch_init.
12014
12015 * remote-sds.c (tohex): Delete unused function. Update copyright.
12016 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12017 * v850-tdep.c (v850_register_virtual_size): Ditto.
12018 * target.c (normal_target_post_startup_inferior): Ditto.
12019 * source.c (ambiguous_line_spec): Ditto.
12020 * remote.c (adapt_remote_get_threadinfo): Ditto.
12021 * mi/mi-out.c (out_field_fmt): Ditto.
12022 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12023 (output_control_change_notification): Ditto.
12024 * m68k-tdep.c (m68k_register_byte): Ditto.
12025 (m68k_remote_breakpoint_from_pc): Ditto.
12026 * ui-out.c (init_ui_out_state): Delete unused declaration.
12027 * stabsread.c (search_value): Ditto.
12028 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12029 * maint.c (print_section_table): Ditto.
12030 * infrun.c (set_follow_fork_mode_command): Ditto.
12031
12032 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12033
12034 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12035 DW_CFA_def_cfa_exporession. Add support for
12036 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12037 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12038
12039 2004-01-18 Andrew Cagney <cagney@redhat.com>
12040
12041 * ocd.c: Update copyright.
12042 (bdm_read_register_command): Delete unused function.
12043 (_initialize_remote_ocd): Delete commented out reference.
12044 (get_quoted_char, reset_packet): Delete #if0ed function.
12045 (output_packet, put_quoted_char): Delete #if0ed function.
12046 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12047 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12048 (BDM_BREAKPOINT): Delete #if0ed macro.
12049 (remote_timeout): Delete #if0ed variable.
12050
12051 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12052
12053 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12054 (core-sol2.o): Remove dependency.
12055 * core-sol2.c: Remove file.
12056
12057 2004-01-17 Andrew Cagney <cagney@redhat.com>
12058
12059 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12060 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12061 enums.
12062
12063 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12064
12065 * remote.c: Update copyright years.
12066
12067 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12068
12069 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12070
12071 2004-01-17 Andrew Cagney <cagney@redhat.com>
12072
12073 * mdebugread.c: Update copyright.
12074 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12075 (parse_type, parse_procedure): Ditto.
12076 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12077
12078 * cris-tdep.c (cris_store_struct_return): Put back accidently
12079 deleted function.
12080
12081 * gdbarch.sh: Update copyright year.
12082 * gdbarch.h, gdbarch.c: Re-generate.
12083
12084 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12085
12086 Suggested by George Anzinger.
12087 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12088 correct stack offset. Include unknown opcode numbers in the error
12089 message.
12090
12091 2004-01-17 Andrew Cagney <cagney@redhat.com>
12092
12093 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12094 extract_struct_value_address, i386 does not set it.
12095 * sparc64-tdep.c (sparc64_init_abi): Do not set
12096 extract_struct_value_address, never called.
12097 (sparc64_extract_struct_value_address): Delete function.
12098 * m68hc11-tdep.c: Update copyright.
12099 (m68hc11_gdbarch_init): Delete redundant assignment of
12100 extract_struct_value_address.
12101 * i386-tdep.c: Update copyright.
12102 (i386_gdbarch_init): Do not set extract_struct_value_address,
12103 never called.
12104 (i386_extract_struct_value_address): Delete function.
12105 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12106 extract_struct_value_address, never called.
12107 (sparc32_extract_struct_value_address): #if 0 function. Add
12108 comments explaining its future.
12109
12110 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12111
12112 * arm-tdep.c (arm_write_pc): New function.
12113 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12114
12115 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12116
12117 * breakpoint.c (must_shift_inst_regs): Delete.
12118 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12119 and SHIFT_INST_REGS.
12120 * infcmd.c (step_1, step_1_continuation): Delete references to
12121 SHIFT_INST_REGS.
12122 * infrun.c (keep_going): Likewise.
12123 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12124 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12125
12126 2004-01-17 Andrew Cagney <cagney@redhat.com>
12127
12128 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12129 * gdbarch.h, gdbarch.c: Re-generate.
12130 * infcmd.c (print_return_value): Delete reference to
12131 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12132
12133 * cris-tdep.c (cris_gdbarch_init): Do not set
12134 deprecated_extract_struct_value_address.
12135
12136 * xstormy16-tdep.c: Update copyright.
12137 (xstormy16_extract_struct_value_address): Update to current
12138 extract struct value address interface.
12139 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12140 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12141 current extract struct value address interface.
12142 (sh64_gdbarch_init): Set extract_struct_value_address.
12143
12144 * cris-tdep.c: Update copyright.
12145 (cris_extract_struct_value_address): Delete function.
12146 (struct_return_address): Delete variable.
12147 (cris_store_struct_return): Do not set struct_return_address.
12148
12149 * mcore-tdep.c: Update copyright.
12150 (mcore_extract_struct_value_address): Delete function. Update
12151 comments.
12152 (mcore_gdbarch_init): Update.
12153 * mn10300-tdep.c: Update copyright.
12154 (mn10300_extract_struct_value_address): Delete function.
12155 (mn10300_gdbarch_init): Update.
12156 * v850-tdep.c: Update copyright.
12157 (v850_extract_struct_value_address): Delete.
12158 (v850_gdbarch_init): Update.
12159 * ns32k-tdep.c: Update copyright.
12160 (ns32k_extract_struct_value_address): Delete.
12161 (ns32k_gdbarch_init): Update.
12162 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12163 (hppa_gdbarch_init): Update.
12164 * vax-tdep.c: Update copyright.
12165 (vax_extract_struct_value_address): Delete.
12166 (vax_gdbarch_init): Update.
12167
12168 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12169 * gdbarch.h, gdbarch.c: Re-generate.
12170 * procfs.c (procfs_fetch_registers): Delete reference to
12171 DEPRECATED_NPC_REGNUM.
12172 (procfs_store_registers): Ditto.
12173 * regcache.c (generic_target_write_pc): Simplify.
12174 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12175
12176 * core-sol2.c (fetch_core_registers): Replace
12177 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12178
12179 * hppa-tdep.c: Update copyright year.
12180 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12181 NPC_REGNUM.
12182 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12183
12184 * mips-tdep.c (mips_write_pc): New function.
12185 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12186 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12187 (mips_find_saved_regs, mips_software_single_step: Ditto.
12188 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12189 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12190
12191 2004-01-17 Andrew Cagney <cagney@redhat.com>
12192
12193 * mips-tdep.c: Re-indent. Group functions by ABI.
12194
12195 2004-01-17 Andrew Cagney <cagney@redhat.com>
12196
12197 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12198 * gdbarch.c: Re-generate.
12199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12200 DECR_PC_AFTER_BREAK to zero.
12201 * vax-tdep.c (vax_gdbarch_init): Ditto.
12202 * v850-tdep.c (v850_gdbarch_init): Ditto.
12203 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12204 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12205 * sh-tdep.c (sh_gdbarch_init): Ditto.
12206 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12207 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12208 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12209 * mips-tdep.c (mips_gdbarch_init): Ditto.
12210 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12212 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12213 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12214 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12215 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12216 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12217 * frv-tdep.c (frv_gdbarch_init): Ditto.
12218 * cris-tdep.c (cris_gdbarch_init): Ditto.
12219 * avr-tdep.c (avr_gdbarch_init): Ditto.
12220 * arm-tdep.c (arm_gdbarch_init): Ditto.
12221 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12222
12223 2004-01-17 J. Brobecker <brobecker@gnat.com>
12224
12225 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12226 Delete, no longer used.
12227 (read_subrange_type): New function, mostly extracted from
12228 read_array_type().
12229 (read_array_type): Replace extracted code by call to
12230 read_subrange_type().
12231 (dwarf2_get_attr_constant_value): New function.
12232 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12233 (add_partial_symbol): Likewise.
12234 (process_die): Likewise.
12235 (new_symbol): Likewise.
12236 (read_type_die): Likewise.
12237
12238 2004-01-16 Andrew Cagney <cagney@redhat.com>
12239
12240 * symfile.c: Update copyright year.
12241 (compare_symbols): Delete unused function.
12242 * stabsread.c: Update copyright year.
12243 (lrs_general_complaint): Delete unused function.
12244 (ref_search_value): Ditto.
12245 (get_substring): Delete declaration.
12246 * sh64-tdep.c: Update copyright year.
12247 (sh64_get_gdb_regnum): Delete unused function.
12248 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12249 Delete unused function.
12250
12251 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12252
12253 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12254 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12255
12256 2004-01-16 Andrew Cagney <cagney@redhat.com>
12257
12258 Changes from Peter Schauer.
12259 * rs6000-tdep.c: Update copyright year.
12260 (rs6000_push_dummy_call): Update the stack pointer before
12261 accessing the corresponding stack region.
12262 * rs6000-nat.c: Update copyright year.
12263 (set_host_arch): Set "info.abfd" to "exec_bfd".
12264
12265 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12266
12267 * blockframe.c: Update copyright year.
12268 (inside_entry_func): Don't treat a zero PC specially.
12269
12270 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12271
12272 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12273 variable.
12274 (gcore_create_callback): Ditto. Skip any memory segment that has
12275 no permissions set.
12276
12277 2004-01-14 David Carlton <carlton@kealia.com>
12278
12279 Change symbols for C++ nested types to contain the fully qualified
12280 name, if possible. (At least in the DWARF-2 case.) Partial fix
12281 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12282 c++/895.
12283 * c-exp.y (qualified_type): Handle types nested within classes.
12284 * cp-namespace.c: Update comments.
12285 (cp_set_block_scope): Delete #if 0.
12286 (cp_lookup_nested_type): Handle types nested within classes.
12287 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12288 when appropriate.
12289 (add_partial_symbol): Add the name of the enclosing namespace to
12290 types.
12291 (pdi_needs_namespace): New.
12292 (add_partial_namespace): Tweak comment.
12293 (add_partial_structure): New.
12294 (psymtab_to_symtab_1): Initialize processing_current_prefix
12295 here...
12296 (process_die): instead of here.
12297 (read_structure_scope): Try to figure out the name of the class or
12298 namespace that the structure might be defined within.
12299 (read_enumeration): Generate fully-qualified names, if possible.
12300 (read_namespace): Don't set name to NULL.
12301 (die_specification): New.
12302 (new_symbol): Generate fully-qualified names for types.
12303 (read_type_die): Determine appropriate prefix.
12304 (determine_prefix): New.
12305 (typename_concat): New.
12306 (class_name): New.
12307 * valops.c (value_aggregate_elt): Pass NOSIDE to
12308 value_struct_elt_for_reference.
12309 (value_struct_elt_for_reference): Make static, add NOSIDE
12310 parameter, call value_maybe_namespace_elt as a last resort.
12311 (value_namespace_elt): Break out code into
12312 value_maybe_namespace_elt.
12313 (value_maybe_namespace_elt): New.
12314
12315 2004-01-12 Andrew Cagney <cagney@redhat.com>
12316
12317 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12318 cooked floating-point registers.
12319 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12320 and value_to_register.
12321
12322 2004-01-13 Andrew Cagney <cagney@redhat.com>
12323
12324 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12325 * gdbarch.c: Re-generate.
12326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12327 FUNCTION_START_OFFSET.
12328 * v850-tdep.c (v850_gdbarch_init): Ditto.
12329 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12330 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12331 * sh-tdep.c (sh_gdbarch_init): Ditto.
12332 * s390-tdep.c (s390_gdbarch_init): Ditto.
12333 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12334 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12335 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12336 * mips-tdep.c (mips_gdbarch_init): Ditto.
12337 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12338 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12340 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12341 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12342 * i386-tdep.c (i386_gdbarch_init): Ditto.
12343 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12345 * frv-tdep.c (frv_gdbarch_init): Ditto.
12346 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12347 * cris-tdep.c (cris_gdbarch_init): Ditto.
12348 * avr-tdep.c (avr_gdbarch_init): Ditto.
12349 * arm-tdep.c (arm_gdbarch_init): Ditto.
12350 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12351
12352 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12353
12354 * infrun.c (follow_fork_mode_ask): Remove.
12355 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12356 (follow_fork): Simplify and remove internal error for
12357 follow_fork_mode_ask.
12358 (_initialize_infrun): Update "set follow-fork-mode" help text.
12359
12360 2004-01-13 Andrew Cagney <cagney@redhat.com>
12361
12362 * configure.in: Update copyright year.
12363 (build_warnings): Add -Wunused-label.
12364 * configure: Re-generate.
12365
12366 2004-01-12 Andrew Cagney <cagney@redhat.com>
12367
12368 * exec.h (exec_ops): Make "extern".
12369
12370 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12371 the function is void.
12372 (mips_pseudo_register_write): Ditto.
12373
12374 2004-01-12 Andrew Cagney <cagney@redhat.com>
12375
12376 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12377 call. Never defined.
12378 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12379 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12380 (struct sparc_gregset, struct regcache): Ditto.
12381 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12382
12383 2004-01-12 Andrew Cagney <cagney@redhat.com>
12384
12385 * mi/ChangeLog: Delete file. Renamed to ...
12386 * mi/ChangeLog-1999-2003: New file.
12387 * tui/ChangeLog: Delete file. Renamed to ...
12388 * tui/ChangeLog-1998-2003: New file.
12389
12390 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12391
12392 * sparc64nbsd-tdep.c: Include "regset.h".
12393 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12394 Remove variables.
12395 (fetch_core_registers): Remove function.
12396 (sparc64nbsd_core_fns): Remove variable.
12397 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12398 functions.
12399 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12400 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12401 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12402
12403 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12404 sparc_extract_struct_value_address.
12405 (sparc32_gdbarch_init): Set extract_struct_value_address.
12406 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12407 function.
12408 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12409 return_value_on_stack.
12410
12411 * NEWS: Mention that %cs and %ss have been added to the AMD64
12412 configurations
12413
12414 * frame.c: Update copyright year.
12415 (get_prev_frame): Improve comment.
12416
12417 * sparc64fbsd-tdep.c: Include "regset.h".
12418 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12419 Remove variables.
12420 (fetch_core_registers): Remove function.
12421 (sparc64fbsd_core_fns): Remove variable.
12422 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12423 functions.
12424 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12425 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12426 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12427
12428 * sparcnbsd-tdep.c: Include "regset.h".
12429 (fetch_core_registers): Remove function.
12430 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12431 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12432 functions.
12433 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12434 TDEP->fpregset.
12435 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12436
12437 * sparc-tdep.h (struct regset): Provide opaque declaration.
12438 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12439 fpregset and sizeof_fpregset members.
12440 * sparc-tdep.c (struct regset): Provide opaque declaration.
12441 (sparc_regset_from_core_section): New function.
12442 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12443 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12444 Set regset_from_core_section when appropriate.
12445
12446 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12447
12448 * x86-64-tdep.c (amd64_non_pod_p): New function.
12449 (amd64_classify_aggregate): Return class memory for non-POD
12450 C++ structure types.
12451
12452 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12453 argument. Use it to reserve a register if necessary.
12454 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12455 amd64_push_arguments.
12456
12457 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12458
12459 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12460 register numbers in comments.
12461 * x86-64-tdep.h: Update copyright year.
12462 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12463 Adjust for addition of %cs and %ss.
12464 * amd64fbsd-nat.c: Update copyright year.
12465 (reg_offset): Add register offsets for %cs and %ss.
12466 * amd64fbsd-tdep.c: Update copyright year.
12467 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12468 (amd64fbsd_sc_reg_offset): Likewise.
12469 * x86-64-linux-nat.c: Update copyright year.
12470 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12471 and %ss.
12472 * amd64nbsd-nat.c: Update copyright year.
12473 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12474 * amd64nbsd-tdep.c: Update copyright year.
12475 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12476 * x86-64-linux-tdep.c: Update copyright year.
12477 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12478 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12479 * regformats/reg-x86-64.dat: Add %cs and %ss.
12480
12481 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12482 variables to prevent long lines. Update comments to reflect
12483 reality.
12484
12485 2004-01-09 David Carlton <carlton@kealia.com>
12486
12487 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12488 * dwarf2read.c (read_namespace): Pull out name-generating code
12489 into namespace_name. Rename previous_namespace to previous_prefix
12490 and processing_current_namespace to processing_current_prefix..
12491 (namespace_name): New function.
12492 (add_partial_symbol): Substitute uses of pdi->name with
12493 actual_name.
12494 * cp-support.h: Rename processing_current_namespace to
12495 processing_current_prefix.
12496 Update copyright year.
12497 * cp-namespace.c: Rename processing_current_namespace to
12498 processing_current_prefix.
12499 Update copyright year.
12500
12501 2004-01-09 Andrew Cagney <cagney@redhat.com>
12502
12503 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12504
12505 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12506
12507 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12508 complaining.
12509 (process_one_symbol): Deal with N_PATCH stabs.
12510
12511 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12512
12513 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12514 ifdeffed code.
12515 Update copyright year.
12516
12517 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12518
12519 * config/pa/tm-hppa.h: Update extern declarations for
12520 hppa32_hpux_frame_saved_pc_in_sigtramp,
12521 hppa32_hpux_frame_base_before_sigtramp, and
12522 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12523
12524 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12525
12526 * config/pa/tm-hppah.h: Update copyright years.
12527
12528 2004-01-08 Andrew Cagney <cagney@redhat.com>
12529
12530 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12531 (mips_o32_reg_struct_has_addr): Delete function.
12532 (mips_gdbarch_init): Update.
12533 (mips_extract_struct_value_address): Delete function.
12534
12535 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12536
12537 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12538 reality.
12539
12540 2004-01-07 Andrew Cagney <cagney@redhat.com>
12541
12542 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12543 architecture's elf flags (when available).
12544
12545 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12546 FPU to the start, check the MIPS FPU when looking for an old
12547 architecture.
12548 (set_mipsfpu_single_command): Update the architecture.
12549 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12550
12551 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12552 (mips_mask_address_p): Add "tdep" parameter.
12553 (show_mask_address, mips_addr_bits_remove): Update.
12554 (mips_dump_tdep): Update.
12555 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12556 (MIPS_STACK_ARGSIZE): Delete macro.
12557 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12558 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12559 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12560 (mips_dump_tdep): Update.
12561 (MIPS_SAVED_REGSIZE): Delete macro.
12562 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12563 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12564 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12565 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12566 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12567 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12568 (mips_pop_frame, return_value_location): Update.
12569 (mips_n32n64_return_value, mips_dump_tdep): Update.
12570
12571 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12572 MIPS ABI.
12573
12574 * mips-tdep.c: Update copyright.
12575 (mips_gdbarch_init): Merge two code blocks handling the register
12576 name and number layout.
12577
12578 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12579
12580 * tracepoint.c (validate_actionline): Fix segv at EOF
12581
12582 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12583
12584 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12585 properly for static fields.
12586
12587 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12588 Jason Molenda <jmolenda@apple.com>
12589
12590 * disasm.c: Update copyright to include 2004.
12591 (do_mixed_source_and_assembly): For uiout asm list
12592 and tuple cleanups, initialize to null_cleanup instead of
12593 NULL and do so prior to loop. Only reset when we close off
12594 the tuple/list. Move check for whether to close off the
12595 asm tuple/list to after dump_insns call where it will be run
12596 on each loop iteration.
12597
12598 2004-01-05 Andrew Cagney <cagney@redhat.com>
12599
12600 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12601 should be a switch case and not a label.
12602 * mips-tdep.c (mips32_next_pc): Delete unused labels
12603 "greater_equal_branch" and "less_zero_branch".
12604 * jv-valprint.c (java_print_value_fields): Delete unused label
12605 "flush_it".
12606
12607 * target.c (unpush_target): Only close a target that is in the
12608 target stack.
12609
12610 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12611
12612 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12613 address from [sp + 64] instead of %o2.
12614
12615 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12616 fixes PR backtrace/1476.
12617
12618 2004-01-05 Andrew Cagney <cagney@redhat.com>
12619
12620 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12621 move to start of file.
12622 * i386-tdep.h (struct regcache): Add opaque declaration.
12623 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12624 declaration.
12625 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12626 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12627 * win32-nat.c (fake_create_process): Use ISO C style definition.
12628 * stabsread.c (define_symbol): Delete #ifndef
12629 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12630 stabs_argument_has_addr call, macro never defined.
12631
12632 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12633
12634 * op50-rom.c: Delete.
12635 * w89k-rom.c: Delete.
12636 * Makefile.in: Remove references.
12637
12638 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12639
12640 * x86-64-tdep.c: Update copyright year.
12641 (struct amd64_register_info): Rename from x86_64_register_info.
12642 (amd64_register_info): Rename from x86_64_register_info.
12643 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12644 (amd64_register_name): Rename from x86_64_register_name.
12645 (amd64_register_type): Rename from x86_64_register_type.
12646 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12647 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12648 (amd64_dwarf_reg_to_regnum): Rename from
12649 x86_64_dwarf_reg_to_regnum.
12650 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12651 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12652 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12653 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12654 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12655 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12656 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12657 (amd64_frame_cache): Rename from x86_64_frame_cache.
12658 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12659 (amd64_frame_prev_register): Rename from
12660 x86_64_frame_prev_register.
12661 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12662 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12663 (amd64_sigtramp_frame_cache): Rename from
12664 x86_64_sigtramp_frame_cache.
12665 (amd64_sigtramp_frame_prev_register): Rename from
12666 x86_64_sigtramp_frame_prev_register.
12667 (amd64_sigtramp_frame_unwind): Rename from
12668 x86_64_sigtramp_frame_unwind.
12669 (amd64_sigtramp_frame_sniffer): Rename from
12670 x86_64_sigtramp_frame_sniffer.
12671 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12672 (amd64_frame_base): Rename from x86_64_frame_base.
12673 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12674 (amd64_frame_align): Rename from x86_64_frame_align.
12675 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12676 (amd64_regset_from_core_section): Rename from
12677 x86_64_regset_from_core_section.
12678 (x86_64_init_abi): Update comments.
12679
12680 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12681
12682 * MAINTAINERS (write after approval): Add myself.
12683
12684 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12685
12686 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12687 `float' arguments.
12688
12689 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12690
12691 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12692 such that it mentions a specific version of GCC that exhibits this
12693 bug.
12694
12695 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12696
12697 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12698 structure that has a single `float' member, store it in %f1 in
12699 addition to %f0.
12700
12701 * sparc-sol2-nat.c: Add missing '\'.
12702
12703 * sparc-tdep.c (sparc32_return_value): New function.
12704 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12705 Remove functions.
12706 (sparc32_gdbarch_init): Set return_value, don't set
12707 extract_return_value, store_return_value, use_struct_convention
12708 and return_value_on_stack.
12709
12710 * sparc-sol2-nat.c: Add missing ')'.
12711
12712 2004-01-03 J. Brobecker <brobecker@gnat.com>
12713
12714 * infrun.c (handle_step_into_function): New function.
12715 (handle_inferior_event): Extract out some code into the new
12716 function above.
12717
12718 2004-01-03 J. Brobecker <brobecker@gnat.com>
12719
12720 * infrun.c (handle_inferior_event): Move the declaration of
12721 real_stop_pc inside the if blocks where it is used.
12722
12723 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12724
12725 * sparc64-tdep.c (sparc64_16_byte_align_p)
12726 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12727 Use check_typedef to get subtypes of structures and unions.
12728 (sparc64_store_return_value): Fix calculation of the appropriate
12729 offset into VALBUF when storing a structure or union.
12730 (sparc64_return_value): New function.
12731 (sparc64_use_struct_convention): Remove function.
12732 (sparc64_init_abi): Set return_value, don't set
12733 extract_return_value, store_return_value and
12734 use_struct_convention.
12735
12736 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12737
12738 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12739 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12740 gdb/config/alpha/xm-alphaosf.h,
12741 gdb/config/powerpc/tm-ppcle-eabi.h,
12742 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12743 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12744 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12745 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12746 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12747 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12748 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12749 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12750 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12751 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12752 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12753 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12754 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12755 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12756 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12757 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12758 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12759 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12760 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12761 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12762 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12763 Remove lines for .cvsignore files.
12764
12765 2004-01-03 J. Brobecker <brobecker@gnat.com>
12766
12767 * infrun.c: Back out the previous change.
12768
12769 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12770
12771 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12772 sparc-*-sunos4* to the list of REMOVED configurations.
12773
12774 * configure.tgt: Add back sparc-*-vxworks*.
12775 * remote-vxsparc.c: Remove all includes except for "defs.h",
12776 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12777 Include "sparc-tdep.h".
12778 (SPARC_R_G1): New define.
12779 (vxsparc_gregset): New variable.
12780 (ext_format_sparc): Remove extern declaration.
12781 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12782 sparc32_supply_fpregset.
12783 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12784 sparc_collect_rwindow and sparc32_collect_fpregset.
12785 * config/sparc/tm-vxworks.h: New file, based on recently removed
12786 tm-vxsparc.h.
12787 * config/sparc/vxworks.mt: New file, based on recently removed
12788 vxworks.mt.
12789
12790 2004-01-03 J. Brobecker <brobecker@gnat.com>
12791
12792 * infrun.c (handle_step_into_function): New function.
12793 (handle_inferior_event): Extract out some code into the new
12794 function above.
12795
12796 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12797
12798 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12799 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12800 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12801 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12802 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12803 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12804 (sparc_nat_h): New variable.
12805 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12806 (tm-sun4os4.h): Remove dependency.
12807 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12808 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12809 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12810 sparc-tdep.o): Update dependencies.
12811 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12812 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12813 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12814 dependencies.
12815 * configure.host: Remove existing sparc-*-lynxos*,
12816 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12817 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12818 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12819 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12820 triplets.
12821 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12822 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12823 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12824 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12825 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12826 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12827 sparc64-*-solaris2* and sparc64-*-* triplets.
12828 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12829 "symtab.h" and "objfiles.h".
12830 (BIAS): Remove define.
12831 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12832 (X_DISP19): Remove macros.
12833 (sparc_fetch_instruction): Remove function.
12834 (struct gdbarch_tdep): Remove definition.
12835 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12836 (sparc_breakpoint_from_pc): Remove function.
12837 (struct sparc64_frame_cache): Remove definition.
12838 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12839 sparc64_unwind_pc): Remove functions.
12840 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12841 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12842 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12843 (sparc64_frame_cache): Change return type to `struct
12844 sparc_frame_cache *'. Simply call sparc_frame_cache.
12845 (sparc64_frame_this_id, sparc64_frame_prev_register,
12846 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12847 instead of `struct sparc64_frame_cache.
12848 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12849 sparc_analyze_control_transfer, sparc_software_single_step,
12850 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12851 _initialize_sparc64_tdep): Remove functions.
12852 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12853 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12854 macros.
12855 (sparc64_supply_gregset, sparc64_collect_gregset,
12856 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12857 (sparc64_init_abi): New function.
12858 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12859 inclusion guard. Include "sparc-tdep.h".
12860 (BIAS): Define.
12861 (r_tstate_offset, r_fprs_offset): New defines.
12862 (enum sparc_regnum): Remove defenition.
12863 (enum sparc64_regnum): Reformat.
12864 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12865 (sparc64_init_abi, sparc64_supply_gregset,
12866 sparc64_collect_gregset, sparc64_supply_fpregset,
12867 sparc64_collect_fpregset): New prototypes.
12868 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12869 Add extern declarations.
12870 (sparc64_sol2_init_abi): New prototype.
12871 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12872 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12873 prototypes.
12874 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12875 "sparnbsd-nat.h".
12876 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12877 functions.
12878 (_initialize_sparc64fbsd_nat): Remove initialization of
12879 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12880 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12881 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12882 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12883 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12884 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12885 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12886 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12887 (sparc64fbsd_r_y_offset): Remove variables.
12888 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12889 Make static and const.
12890 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12891 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12892 functions.
12893 (sparc64fbsd_gregset): New variable.
12894 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12895 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12896 and sparc64_supply_fpregset.
12897 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12898 (sparc64fbsd_sigtramp_frame_this_id)
12899 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12900 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12901 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12902 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12903 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12904 * sparcnbsd-tdep.c: Update copyright year. Include
12905 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12906 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12907 "value.h" and "sparcnbsd-tdep.h".
12908 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12909 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12910 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12911 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12912 defines.
12913 (sparcnbsd_gregset): New variable.
12914 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12915 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12916 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12917 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12918 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12919 variables.
12920 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12921 (sparc32nbsd_sigcontext_frame_this_id)
12922 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12923 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12924 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12925 (sparcnbsd_get_longjmp_target_32,
12926 sparcnbsd_get_longjmp_target_64): Remove functions.
12927 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12928 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12929 sparcnbsd_init_elf): Remove.
12930 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12931 (sparcnbsd_elf_init_abi): New functions.
12932 (_initialize_sparcnbsd_tdep): New prototype.
12933 (_initialize_sparnbsd_tdep): Update.
12934 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12935 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12936 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12937 * config/sparc/linux.mh: Update comment.
12938 (XM_FILE, HOST_IPC): Remove variables.
12939 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12940 sparc-linux-nat.o.
12941 * config/sparc/linux.mt: Update comment.
12942 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12943 * config/sparc/nbsd.mt: Reformat.
12944 * config/sparc/nbsd64.mh: Update comment.
12945 (NATDEPFILES): Add sparc-nat.o.
12946 * config/sparc/nbsd64.mt: Update comment.
12947 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12948 (TM_FILE): Set to tm-nbsd.h.
12949 * config/sparc/nbsdelf.mh: Update comment.
12950 (NATDEPFILES): Add sparc-nat.o.
12951 (XM_FILE): Delete.
12952 * config/sparc/nbsdaout.mh: Update comment.
12953 (NATDEPFILES): Add sparc-nat.o
12954 (XM_FILE): Delete.
12955 * config/sparc/nm-linux.h: Update copyright year. Don't include
12956 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12957 inclusion.
12958 (KERNEL_U_SIZE): Remove define.
12959 (kernel_u_size): Remove prototype.
12960 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12961 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12962 "regcache.h".
12963 (CHILD_PREPARE_TO_STORE): Remove define.
12964 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12965 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12966 sparcnbsd-nat.c: Rewrite files.
12967 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12968 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12969 sparcnbsd-tdep.h: Remove files.
12970 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12971 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12972 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12973 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12974 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12975 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12976 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12977 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12978 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12979 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12980 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12981 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12982 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12983 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12984 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12985 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12986 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12987 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12988 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12989
12990 2004-01-02 Andrew Cagney <cagney@redhat.com>
12991
12992 From 2003-12-18 Kazuhiro Inaoka:
12993 * configure.host: Add m32r-linux target.
12994
12995 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12996
12997 * top.c (print_gdb_version): Update year to 2004.
12998
12999 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13000
13001 * MAINTAINERS: Add myself to the write-after-approval category.
13002
13003 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13004
13005 From Bernardo Innocenti <bernie@develer.com>:
13006 * configure.tgt: Add uClinux target.
13007
13008 2004-01-02 Andrew Cagney <cagney@redhat.com>
13009
13010 * utils.c (do_my_cleanups): Make static, add forward declaration.
13011 * defs.h (do_my_cleanups): Delete declaration.
13012
13013 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13014
13015 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13016 bfd/ChangeLog-0203.
13017
13018 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13019
13020 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13021 in <machine/reg.h>.
13022 * configure, config.in: Regenerate.
13023
13024 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13025 tui/ChangeLog-1998-2003.
13026 \f
13027 Local Variables:
13028 mode: change-log
13029 left-margin: 8
13030 fill-column: 74
13031 version-control: never
13032 End:
This page took 0.371151 seconds and 4 git commands to generate.