* MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-10 Jim Blandy <jimb@redhat.com>
2
3 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
4 reader, tracing bytecode stuff): Remove self.
5
6 2004-10-10 Mark Kettenis <kettenis@gnu.org>
7
8 * sparc64-linux-tdep.c: Update copyright year. Don't include
9 "solib-svr4.h".
10 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
11 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
12 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
13
14 * sparc-linux-tdep.c: Update copyright year.
15 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
16 to struct frame_info *. Use safe_frame_unwind_memory instead of
17 deprecated_read_memory_nobpt.
18 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
19 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
20 changed signature of sparc_linux_sigtramp_start.
21 (sparc32_linux_pc_in_sigtramp): Remove function.
22 (sparc32_linux_sigtramp_p): New function.
23 (sparc32_linux_sigtramp_frame_sniffer): Use
24 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
25
26 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
27 Remove function.
28 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
29
30 * ada-lang.c (lim_warning): Re-implement as a varargs function.
31 (decode_packed_array_type, value_subscript_packed)
32 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
33 argument in call to lim_warning.
34
35 * configure.in: Really disable the TUI if an enhanced curses
36 library isn't found.
37 * configure: Regenerate.
38
39 2004-10-09 Mark Kettenis <kettenis@gnu.org>
40
41 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
42 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
43 * config/i386/nm-nbsdaout.h: Remove file.
44 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
45 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
46 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
47 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
48 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
49 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
50 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
51 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
52 (ldd, ld_un, ld_2): Remove defines.
53 * config/i386/nm-obsd.h: Likewise.
54
55 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
56
57 * ada-lex.l: Remove useless rule whose right-context clause
58 causes unreferenced static function warning for yyrealloc.
59 (ada_flex_use): Remove the artificial reference to yyrealloc.
60
61 2004-10-08 Andrew Cagney <cagney@gnu.org>
62
63 * target.h (struct target_ops): Rename to_xfer_memory to
64 deprecated_xfer_memory.
65 * target.c: Update.
66 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
67 * wince.c: Update.
68 * win32-nat.c: Update.
69 * v850ice.c: Update.
70 * uw-thread.c: Update.
71 * thread-db.c: Update.
72 * sol-thread.c: Update.
73 * remote.c: Update.
74 * remote-vx.c: Update.
75 * remote-st.c: Update.
76 * remote-sim.c: Update.
77 * remote-sds.c: Update.
78 * remote-rdp.c: Update.
79 * remote-rdi.c: Update.
80 * remote-mips.c: Update.
81 * remote-m32r-sdi.c: Update.
82 * remote-e7000.c: Update.
83 * procfs.c: Update.
84 * ppc-bdm.c: Update.
85 * nto-procfs.c: Update.
86 * monitor.c: Update.
87 * linux-nat.c: Update.
88 * inftarg.c: Update.
89 * hpux-thread.c: Update.
90 * go32-nat.c: Update.
91 * gnu-nat.c: Update.
92 * exec.c: Update.
93 * corelow.c: Update.
94 * bsd-kvm.c: Update.
95 * aix-thread.c: Update.
96
97 2004-10-08 Andrew Cagney <cagney@gnu.org>
98
99 * target.c (debug_target): Move to near start of file.
100 (target_stopped_data_address_p): Re-org logic, add casts.
101
102 2004-10-02 Mark Kettenis <kettenis@gnu.org>
103
104 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
105 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
106 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
107 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
108 New defines.
109
110 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
111
112 * target.h (to_stopped_data_address): Change prototype to
113 take a CORE_ADDR pointer and return an int.
114 * target.c (update_current_target): Change to_stopped_data_address
115 to match new prototype.
116 (debug_to_stopped_data_address): Change appropriately.
117 * breakpoint.c (bpstat_stop_status): Change call to
118 target_stopped_data_address to use new prototype.
119 * frv-tdep.c (frv_have_stopped_data_address): New function.
120 (frv_stopped_data_address): Change to new prototype and
121 functionality.
122 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
123 prototype and functionality.
124 (ia64_stopped_by_watchpoint): New function.
125 * i386-nat.c (i386_stopped_data_address): Change to new
126 prototype and functionality.
127 (i386_stopped_by_watchpoint): New function.
128 * remote.c (remote_stopped_data_address): Change to new prototype
129 and functionality.
130 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
131 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
132 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
133 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
134 new i386_stopped_by_watchpoint function.
135 (i386_stopped_by_watchpoint): New prototype.
136 (i386_stoppped_data_address): Change to new prototype.
137 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
138 new ia64_stopped_by_watchpoint function.
139 (ia64_stopped_by_watchpoint): New prototype.
140 (ia64_stopped_data_address): Ditto.
141
142 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
143
144 * ada-typeprint.c (ada_print_type): Use int_string for printing
145 modulus of modular type.
146 * ada-lang.h (ada_modulus): Change return type to unsigned.
147 * ada-lang.c (ada_language_arch_info): Correct type of
148 string_char_type.
149 (ada_modulus): Return unsigned result.
150 (ada_lookup_symbol): Remove user disambiguation and modify comment
151 accordingly.
152
153 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
154
155 Committed by Paul Hilfinger.
156 * ada-lang.c (decode_packed_array): On big-endian targets,
157 left-justify the value if it comes with a modular type.
158
159 2004-10-08 Joel Brobecker <brobecker@gnat.com>
160
161 Committed by Paul Hilfinger.
162 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
163 (is_name_suffix): Add support for "___JM" suffixes.
164 (ada_check_typedef): Renames ada_completed_type.
165 Update all users of CHECK_TYPEDEF, check_typedef, and
166 ada_complete_type to call ada_check_typedef.
167 * ada-typeprint.c: Likewise.
168 * ada-valprint.c: Likewise.
169
170 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
171
172 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
173
174 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
175
176 * MAINTAINERS: Update e-mail address.
177
178 2004-10-07 Daniel Jacobowitz <dan@debian.org>
179
180 From Maciej W. Rozycki <macro@mips.com>:
181 * mips-tdep.c (mips32_next_pc): Check the register's contents,
182 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
183
184 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
185
186 * m32r-tdep.c (decode_prologue): Support functions written
187 in assembler language. Recognize trap instructions as the
188 end of prologue.
189 (m32r_frame_unwind_cache): Ditto.
190 (m32r_skip_prologue): Extend search limit. Quit analyzing
191 prologue if pc's location is not readable.
192
193 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
194
195 * Makefile.in (.l.c): Do conversions of names of alloc and free
196 functions that are done for .y.c files, plus special one
197 for yy_flex_realloc. Also, correct missing-file tests here.
198 * ada-lex.l (malloc, free): Remove macros.
199 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
200 xrealloc.
201 (ada_flex_use): Dummy definition to remove warnings about unused
202 functions.
203 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
204 to suppress warning.
205
206 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
207
208 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
209 RETURN_VALUE.
210 (sh_return_value_fpu): Ditto for CPUs with FPU.
211 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
212 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
213 Install sh_return_value_nofpu resp. sh_return_value_fpu as
214 RETURN_VALUE functions.
215
216 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
217
218 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
219 (sh_pseudo_register_write): Ditto.
220
221 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
222
223 * sh-tdep.c (IS_MACL_STS): New define.
224 (IS_MOVI20): Ditto.
225 (IS_MACL_LDS): Ditto.
226 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
227 instructions in prologue.
228 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
229 instructions in epilogue.
230
231 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
232
233 * sh-tdep.c (SH_NUM_REGS): Define as 67.
234 (sh_sh_register_name): Add eight empty register names.
235 (sh_sh3_register_name): Ditto.
236 (sh_sh3e_register_name): Ditto.
237 (sh_sh2e_register_name): Ditto.
238 (sh_sh2a_register_name): New function, defining SH2A register set.
239 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
240 in nofpu case.
241 (sh_sh_dsp_register_name): Add eight empty register names.
242 (sh_sh3_dsp_register_name): Ditto.
243 (sh_sh4_register_name): Ditto.
244 (sh_sh4_nofpu_register_name): Ditto.
245 (sh_sh4al_dsp_register_name): Ditto.
246 (sh2a_show_regs): New function.
247 (sh2a_nofpu_show_regs): New function.
248 (sh_sh2a_register_type): New function.
249 (do_bank_register_info): New function.
250 (sh_print_pseudo_register): Call do_bank_register_info.
251 Call sh_print_pseudo_register for valid "bank" register.
252 (sh_sh2a_register_sim_regno): New function.
253 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
254 Increment pseudo register count by one for all sh variants with
255 pseudo registers to accomodate pseudo bank register.
256 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
257 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
258 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
259 Increment pseudo register numbers.
260
261 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
262
263 * dwarf2read.c (read_subroutine_type): Call make_function_type
264 instead of lookup_function_type.
265
266 2004-10-05 Jim Blandy <jimb@redhat.com>
267
268 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
269 (Previous change missed some uses.)
270
271 2004-10-05 Andrew Cagney <cagney@gnu.org>
272
273 * target.h (deprecated_child_ops): Rename child_ops.
274 * wince.c: Update copyright. Rename child_ops.
275 * win32-nat.c: Rename child_ops.
276 * target.c: Rename child_ops.
277 * rs6000-nat.c: Rename child_ops.
278 * linux-nat.c: Rename child_ops.
279 * infttrace.c: Rename child_ops.
280 * inftarg.c: Rename child_ops.
281 * infptrace.c: Rename child_ops.
282 * hppah-nat.c: Update copyright. Rename child_ops.
283 * hpux-thread.c: Update copyright. Rename child_ops.
284
285 2004-10-05 Daniel Jacobowitz <dan@debian.org>
286
287 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
288
289 2004-10-05 Andrew Cagney <cagney@gnu.org>
290
291 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
292
293 2004-10-05 Daniel Jacobowitz <dan@debian.org>
294
295 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
296 (die_ref_table): Remove.
297 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
298 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
299 the usage of this type.
300 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
301 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
302 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
303 (dwarf2_create_include_psymtab): Update comment.
304 (find_partial_die): Remove third argument. Remove unreachable call
305 to error ().
306 (dwarf2_find_containing_comp_unit): Update comments. Change one
307 assertion to an error. Remove an unreachable error.
308 (dwarf2_find_comp_unit): Update comments.
309 (type_at_offset): Remove dead code.
310 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
311 (store_in_ref_table): Add CU argument.
312 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
313 inter-compilation-unit references.
314 (load_full_comp_unit, process_full_comp_unit): New functions, based
315 on psymtab_to_symtab_1.
316 (psymtab_to_symtab_1): Use them.
317 (dwarf2_add_dependence): New function.
318 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
319 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
320 (partial_die_parent_scope, guess_structure_name): Update for changes
321 to find_partial_die.
322 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
323 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
324 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
325 (read_die_and_children): Update call to store_in_ref_table.
326 (do_free_die_list_cleanup): Remove.
327 (fixup_partial_die): Update for changes to find_partial_die.
328 (read_full_die): Handle queueing absolute references.
329 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
330 (dwarf2_attr, die_specification, die_type)
331 (die_containing_type, dwarf2_extension): Update calls to
332 follow_die_ref.
333 (dump_die): Update DW_FORM_ref* handling.
334 (dwarf2_get_ref_die_offset): Likewise.
335 (free_one_comp_unit): Release the dies list.
336 (dwarf2_mark_helper): New function.
337 (dwarf2_mark): Use it.
338
339 2004-10-05 Mark Kettenis <kettenis@jive.nl>
340
341 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
342 when writing to memory.
343
344 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
345
346 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
347 (m32r_extract_struct_value_address): Delete function.
348 (m32r_return_value): New function.
349 (m32r_gdbarch_init): Instead of store_return_value,
350 extract_return_value, deprecated_extract_struct_value_address
351 and deprecated_use_struct_convention, set return_value.
352
353 2004-10-03 Daniel Jacobowitz <dan@debian.org>
354
355 * dwarf2read.c (read_subrange_type): Add comment for variable
356 sized arrays.
357
358 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
359
360 * Makefile.in (.l.c): Modify rule for compatibility with recent
361 versions of flex, and remove most command-line options.
362 * ada-lex.l: Add %options line in place of -I -i and -s command-line
363 options.
364
365 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
366
367 Turn on initial Ada support (mainly expression evaluation).
368
369 * Makefile.in (SFILES): Remove ada-tasks.c.
370 (HFILES_NO_SRCDIR): Add ada-lang.h.
371 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
372 (YYOBJ): Add ada-exp.o.
373 (rule .l.c): Generalize to not mention ada.
374 * symtab.c: Include ada-lang.h.
375 (symbol_natural_name, symbol_demangled_name)
376 (symbol_search_name): Add Ada case.
377
378 2004-10-01 Andrew Cagney <cagney@gnu.org>
379
380 * Makefile.in (COMMON_OBS): Add inf-child.o.
381 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
382 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
383 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
384 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
385 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
386 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
387 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
388 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
389 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
390 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
391 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
392 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
393 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
394
395 * target.c (xfer_using_stratum): Change return type to LONGEST.
396 On each iteration offset, readbuf and writebuf.
397 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
398 partial_length, and read/modify/write predicate, update comments.
399 Pass buffer.word to ptrace write.
400
401 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
402
403 * symfile.c (init_filename_language_table): Add extensions for
404 Ada.
405 * defs.h (enum language): Add language_ada.
406 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
407 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
408 (add_symbols_from_enclosing_procs): Make a no-op for now.
409 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
410 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
411 (find_line_in_linetable, find_next_line_in_linetable)
412 (read_all_symtabs, is_plausible_func_for_line)
413 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
414 (is_runtime_sym_defined, check_size): Remove declaration.
415 (function_name_from_pc, ada_translate_error_message)
416 (ada_lookup_minimal_symbol): Remove definition.
417 (ada_add_block_symbols): Remove useless label.
418 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
419 useless declaration.
420 (ada_is_exception_sym): Likewise.
421
422 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
423
424 Add m32r-linux support.
425 * configure.tgt: Add m32r*-*-linux*.
426 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
427 and m32r-linux-tdep.c.
428 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
429 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
430 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
431 m32r-linux-tdep.c.
432 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
433 config/m32r/linux.mh, config/m32r/linux.mt,
434 config/m32r/nm-linux.h: New files.
435
436 2004-09-30 Joel Brobecker <brobecker@gnat.com>
437
438 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
439 (mips32_fetch_instruction): Remove, unused.
440
441 2004-09-30 Joel Brobecker <brobecker@gnat.com>
442
443 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
444 conditions that will always be true.
445
446 2004-09-30 Mark Kettenis <kettenis@gnu.org>
447
448 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
449 (vaxbsd_fetch_inferior_registers): Rename from
450 fetch_inferior_registers. Make static.
451 (vaxbsd_store_inferior_registers): Rename from
452 store_inferior_registers. Make static.
453 (_initialize_vaxbsd_nat): Construct and add target vector.
454 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
455 inftarg.o. Add inf-child.o and inf-ptrace.o.
456 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
457 inftarg.o. Add inf-child.o and inf-ptrace.o.
458 (NAT_FILE): Remove.
459 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
460 inftarg.o. Add inf-child.o and inf-ptrace.o.
461 (NAT_FILE): Remove.
462 * Makefile.in (vaxbsd-nat.o): Update dependencies.
463
464 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
465 (m88kbsd_fetch_inferior_registers): Rename from
466 fetch_inferior_registers. Make static.
467 (m88kbsd_store_inferior_registers): Rename from
468 store_inferior_registers. Make static.
469 (_initialize_m88kbsd_nat): New prototype and function.
470 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
471 inftarg.o. Add inf-child.o and inf-ptrace.o.
472 (NAT_FILE): Remove.
473 * Makefile.in (m88kbsd-nat.o): Update dependencies.
474
475 2004-09-30 Andrew Cagney <cagney@gnu.org>
476
477 * target.c (target_xfer_partial): New function.
478 (target_read_memory_partial, target_write_memory_partial)
479 (default_xfer_partial, target_read_partial, target_write_partial)
480 (xfer_using_stratum): Use.
481 (debug_to_xfer_partial): Delete function.
482 (setup_target_debug): Do not override to_xfer_partial.
483
484 2004-09-30 Mark Kettenis <kettenis@chello.nl>
485
486 * fork-child.c: Update copyright year. Fix coding style.
487
488 2004-09-29 Mark Kettenis <kettenis@gnu.org>
489
490 * defs.h (msavestring, mstrsave): Remove prototypes.
491 * utils.c (msavestring, mstrsave): Remove functions.
492 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
493 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
494 of mstrsave.
495 * source.c (find_and_open_source): Use xstrdup instead of
496 mstrsave.
497
498 2004-09-30 Andrew Cagney <cagney@gnu.org>
499
500 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
501 (inf_ptrace_xfer_memory): Delete.
502 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
503 (target_read_memory, target_write_memory): Use xfer_using_stratum
504 when target_xfer_partial_p.
505 (debug_target): Move to start of file.
506 (target_read_memory_partial, target_write_memory_partial): Use
507 to_xfer_partial when target_xfer_partial_p.
508
509 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
510 inf_ptrace_xfer_memory with equivalent code.
511 * inftarg.c (child_xfer_partial): When performing a write, pass
512 writebuf to child_xfer_memory.
513
514 * target.c (target_read_string): Use target_read_memory instead of
515 target_xfer_memory.
516
517 2004-09-29 Andrew Cagney <cagney@gnu.org>
518
519 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
520 the address of status.
521
522 * infptrace.c (ptrace_wait): Mention problem with HPUX.
523 (kill_inferior): Inline ptrace_wait call.
524 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
525 * inftarg.c (child_wait): Inline ptrace_wait call.
526
527 * target.h (struct target_ops): Delete field to_post_wait.
528 (target_post_wait): Delete macro.
529 (child_post_wait): Delete declaration.
530 * target.c (update_current_target, update_current_target)
531 (debug_to_post_wait, setup_target_debug): Delete functions and
532 references.
533 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
534 * inftarg.c (child_post_wait): Delete.
535 (init_child_ops): Do not set to_post_wait.
536 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
537 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
538 * inf-child.c (inf_child_post_wait): Delete.
539 (inf_child_target): Do not set to_post_wait.
540 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
541 (inf_ptrace_target): Do not set to_post_wait.
542
543 * wince.c (child_ops): Delete.
544 * win32-nat.c (child_ops): Delete.
545
546 * inftarg.c (inftarg_set_find_memory_regions)
547 (inftarg_set_make_corefile_notes): Delete functions.
548 (_initialize_linux_nat): Inline calls.
549
550 * target.h (child_ops): Declare.
551 * inftarg.c (child_ops): Move from here ...
552 * target.c (child_ops): ... to here.
553 * wince.c (child_ops): Delete extern declaration.
554 * win32-nat.c (child_ops): Delete extern declaration.
555 * linux-nat.c (child_ops): Delete extern declaration.
556 * hpux-thread.c (child_ops): Delete extern declaration.
557
558 2004-09-28 Mark Kettenis <kettenis@gnu.org>
559
560 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
561
562 2004-09-28 Mark Kettenis <kettenis@gnu.org>
563
564 * configure.in: Only set host_makefile_frag when building a native
565 debugger.
566 * configure: Regenerate.
567
568 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
569 for OpenBSD ELF.
570
571 2004-09-28 Andrew Cagney <cagney@gnu.org>
572
573 Problem identified by Paul Hilfinger.
574 * Makefile.in (ada_lex_c): Define.
575 (ada-lex.o): Delete rule.
576
577 * linux-proc.c: Delete file.
578 * Makefile.in: Update.
579 * config/sparc/linux64.mh (NATDEPFILES):
580 * config/sparc/linux.mh (NATDEPFILES): Update.
581 * config/s390/s390.mh (NATDEPFILES): Update.
582 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
583 * config/powerpc/linux.mh (NATDEPFILES): Update.
584 * config/pa/linux.mh (NATDEPFILES): Update.
585 * config/mips/linux.mh (NATDEPFILES): Update.
586 * config/m68k/linux.mh (NATDEPFILES): Update.
587 * config/ia64/linux.mh (NATDEPFILES): Update.
588 * config/i386/linux64.mh (NATDEPFILES): Update.
589 * config/i386/linux.mh (NATDEPFILES): Update.
590 * config/arm/linux.mh (NATDEPFILES): Update.
591 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
592 * linux-nat.c: Update copyright. Include <sys/param.h>,
593 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
594 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
595 (O_LARGEFILE): Possibly define.
596 (_initialize_linux_nat, linux_proc_pending_signals)
597 (add_line_to_sigset, linux_proc_xfer_memory)
598 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
599 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
600 (struct linux_corefile_thread_data)
601 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
602 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
603
604 2004-09-16 Andrew Cagney <cagney@gnu.org>
605
606 * lin-lwp.c: Delete file.
607 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
608 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
609 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
610 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
611 (linux_nat_attach, detach_callback, linux_nat_detach)
612 (resume_callback, resume_clear_callback, linux_nat_resume)
613 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
614 (stop_wait_callback, linux_nat_has_pending, flush_callback)
615 (status_callback, running_callback, count_events_callback)
616 (select_singlestep_lwp_callback, select_event_lwp_callback)
617 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
618 (child_wait, stop_and_resume_callback, linux_nat_wait)
619 (kill_callback, kill_wait_callback, linux_nat_kill)
620 (linux_nat_create_inferior, linux_nat_mourn_inferior)
621 (linux_nat_xfer_memory, linux_nat_thread_alive)
622 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
623 (_initialize_linux_nat): New functions.
624 * Makefile.in: Update all dependencies.
625 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
626 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
627 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
628 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
629 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
630 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
631 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
632 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
633 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
634 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
635 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
636 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
637 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
638
639 2004-09-27 Mark Kettenis <kettenis@gnu.org>
640
641 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
642 config/i386/obsd64.mh (NAT_FILE): Remove variable.
643
644 * configure.in: Don't comment out NATDEPFILES in the generated
645 Makefile if NAT_FILE is unset.
646 * configure: Regenerate.
647
648 2004-09-27 Andrew Cagney <cagney@gnu.org>
649
650 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
651 (insert_step_resume_breakpoint): Delete.
652 (insert_step_resume_breakpoint_at_frame): New function.
653 (insert_step_resume_breakpoint_at_sal): New function.
654 (handle_inferior_event, step_into_function)
655 (insert_step_resume_breakpoint): Simplify by using same.
656
657 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
658
659 2004-09-26 Mark Kettenis <kettenis@gnu.org>
660
661 * fbsd-proc.c: Remove file.
662 * Makefile.in (fbsd-proc.o): Remove dependency.
663
664 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
665 code together.
666
667 * config/i386/nm-fbsd64.h: Remove file.
668 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
669
670 2004-09-26 Mark Kettenis <kettenis@gnu.org>
671
672 * amd64-nat.h: Update copyright year.
673 (amd64bsd_target): New prototype.
674 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
675 (amd64bsd_target): New function.
676 (amd64bsd_fetch_inferior_registers): Rename from
677 fetch_inferior_registers. Make static.
678 (amd64bsd_store_inferior_registers): Rename from
679 store_inferior_registers. Make static.
680 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
681 (_initialize_amd64fbsd_nat): Construct and add target vector.
682 * amd64nbsd-nat.o: Include "target.h".
683 (_initialize_amd64nbsd_nat): Construct and add target vector.
684 * amd64obsd-nat.c: Include "target.h".
685 (_initialize_amd64obsd_nat): Construct and add target vector.
686 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
687 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
688 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
689 fbsd-nat.o.
690 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
691 Remove infptrace.o and inftarg.o. Add inf-child.o and
692 inf-ptrace.o.
693 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
694 (amd64obsd-nat.o): Update dependencies.
695
696 2004-09-25 Mark Kettenis <kettenis@gnu.org>
697
698 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
699 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
700 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
701 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
702 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
703
704 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
705 Inline attach call.
706 (inf_ptrace_detach): Inline detach call.
707
708 * configure.in: Check for waddstr instead of mvwaddstr when
709 searching for curses library. Check for wborder.
710 * configure, config.in: Regenerate.
711 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
712 available.
713
714 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
715
716 2004-09-24 Robert Picco <Robert.Picco@hp.com>
717
718 Committed by Andrew Cagney.
719 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
720 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
721 configuration.
722 (fetch_register_using_p): Implement 'p' packet. Based on code by
723 Fernando Nasser.
724 (remote_fetch_registers): Call fetch_register_using_p.
725 (init_all_packet_configs, show_remote_cmd)
726 (_initialize_remote): Add p-packet.
727
728 2004-09-24 Mark Kettenis <kettenis@gnu.org>
729
730 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
731 instead of call_ptrace. Call wait directly instead of
732 ptrace_wait.
733 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
734 (inf_ptrace_wait): Inline ptrace_wait call.
735
736 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
737
738 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
739 rolled back instead.
740
741 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
742
743 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
744 the new argument order.
745
746 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
747
748 * MAINTAINERS: Remove "broken" from XStormy16 entry.
749 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
750 (struct gdbarch_tdep): Remove.
751 (struct xstormy16_frame_cache): New frame cache structure.
752 (xstormy16_register_byte, xstormy16_register_raw_size)
753 (xstormy16_reg_virtual_type, xstormy16_register_type)
754 (xstormy16_push_arguments, xstormy16_push_return_address)
755 (xstormy16_pop_frame, xstormy16_store_struct_return)
756 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
757 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
758 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
759 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
760 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
761 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
762 (xstormy16_use_struct_convention): Drop gcc_p parameter.
763 (xstormy16_extract_return_value, xstormy16_store_return_value):
764 Regcachify. Drop useless struct convention handling.
765 (xstormy16_register_type, xstormy16_return_value)
766 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
767 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
768 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
769 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
770 (xstormy16_unwind_sp, xstormy16_unwind_pc)
771 (xstormy16_unwind_dummy_id) : New functions.
772 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
773 of xstormy16_scan_prologue.
774 (xstormy16_frame_unwind): New frame_unwind structure.
775 (xstormy16_frame_base): New frame_base structure.
776 (xstormy16_gdbarch_init): Accomodate all of the above changes.
777 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
778
779 2004-09-22 Mark Kettenis <kettenis@gnu.org>
780
781 * language.c (language_gdbarch_post_init): Fix off-by one error.
782
783 2004-09-21 Daniel Jacobowitz <dan@debian.org>
784
785 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
786 (struct dwarf2_offset_and_type): New.
787 (set_die_type, reset_die_and_siblings_types, get_die_type)
788 (offset_and_type_hash, offset_and_type_eq): New functions.
789 (read_structure_type, read_enumeration_type, read_array_type)
790 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
791 (read_tag_reference_type, read_tag_const_type)
792 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
793 (read_typedef, read_base_type, read_subrange_type): Use
794 set_die_type.
795
796 2004-09-20 Daniel Jacobowitz <dan@debian.org>
797
798 * Makefile.in (dwarf2read.o): Update dependencies.
799 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
800 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
801 and read_in_chain.
802 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
803 mark, and has_form_ref_addr.
804 (struct dwarf2_per_cu_data): New.
805 (dwarf2_max_cache_age): New.
806 (dwarf2_build_psymtabs_hard): Free cached compilation units
807 after loading. Create and manage the list of compilation units.
808 Remove unnecessary NULL initialization. Fix indentation.
809 (psymtab_to_symtab_1): Initialize all of CU.
810 (dwarf2_read_abbrevs): Set has_form_ref_addr.
811 (find_partial_die): Use dwarf2_find_containing_comp_unit
812 and load_comp_unit.
813 (free_stack_comp_unit): Update comments. Clear the per-cu
814 pointer. Handle aging.
815 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
816 (age_cached_comp_units, free_one_cached_comp_unit)
817 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
818 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
819 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
820 (show_dwarf2_cmd): New.
821 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
822 and "maint show dwarf2 max-cache-age".
823 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
824 externs.
825 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
826 global.
827
828 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
829
830 * dwarf2read.c (typename_concat): Change prototype to accept obstack
831 and dwarf2_cu struct pointer as arguments. Change function to use
832 obstack if provided and use dwarf2_cu to determine language-specific
833 separator.
834 (partial_die_parent_scope): Change comment to include java. Use
835 new version of typename_concat instead of obconcat.
836 (partial_die_full_name): Use typename_concat.
837 (read_namespace): Ditto.
838 (read_enumeration_type): Use typename_concat instead of obconcat.
839 (new_symbol): Ditto.
840 (add_partial_symbol): Enhance tests for C++ to also test for Java.
841 (guess_structure_name): Ditto.
842 (read_subroutine_type): Ditto.
843 (read_structure_type): Ditto.
844 (is_vtable_name): Add Java support.
845 (determine_class_name): Switch to new typename_concat call.
846 (determine_prefix): Switch to new typename_concat call.
847 * jv-exp.y (FuncStart): New pattern.
848 (MethodInvocation): Add support for simple function calls. Change
849 warning message for other forms of inferior call currently not
850 supported.
851 * valarith.c (value_subscript): Treat an array with upper-bound
852 of -1 as unknown size.
853
854 2004-09-20 Daniel Jacobowitz <dan@debian.org>
855
856 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
857 (lookup_partial_symtab): Use symtab_to_fullname.
858
859 2004-09-19 Jim Blandy <jimb@redhat.com>
860
861 * minsyms.c (lookup_minimal_symbol): Doc fix.
862
863 2004-09-20 Andrew Cagney <cagney@gnu.org>
864
865 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
866 CHILD_RESUME.
867 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
868 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
869 KILL_INFERIOR.
870 * infptrace.c: Update.
871
872 2004-09-19 Daniel Jacobowitz <dan@debian.org>
873
874 * symtab.c (output_source_filename): Mark first argument as const.
875 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
876 for "info sources" output.
877
878 2004-09-20 Mark Kettenis <kettenis@gnu.org>
879
880 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
881 <machine/vmparam.h>.
882 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
883 (register_u_addr): Remove prototype.
884
885 2004-09-19 Mark Kettenis <kettenis@gnu.org>
886
887 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
888 (i386bsd_fetch_inferior_registers): Rename from
889 fetch_inferior_registers. Make static.
890 (i386bsd_store_inferior_registers): Rename from
891 store_inferior_registers. Make static.
892 (i386bsd_target): New function.
893 * i386bsd-nat.h: New file.
894 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
895 "i386bsd-nat.h".
896 (i386fbsd_resume): Rename from child_resume. Make static.
897 (_initialize_i386fbsd_nat): Construct and add target vector.
898 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
899 (_initialize_i386nbsd_nat): Construct and add target vector.
900 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
901 Remove defines.
902 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
903 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
904 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
905 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
906 (LOADLIBES): New variable.
907 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
908 inf-ptrace.o. Remove inftarg.o.
909 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
910 inf-ptrace.o. Remove inftarg.o.
911 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
912 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
913 (LOADLIBES): New variable.
914 * Makefile.in (i386bsd_nat_h): New variable.
915 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
916 dependencies.
917
918 * sparc64nbsd-tdep.c: Include "objfiles.h".
919 (sparc64nbsd_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 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
923 "nbsd-tdep.h".
924 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
925 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
926 svr4_lp64_fetch_link_map_offsets.
927 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
928 dependencies.
929
930 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
931 * fbsd-nat.h: New file.
932 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
933 (fbsd_nat_h): New variable.
934 (fbsd-nat.o): New dependency.
935
936 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
937 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
938
939 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
940 comment.
941
942 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
943
944 * ada-exp.y (type_int): New function to add layer of abstraction
945 around references to expression types.
946 (type_long): Ditto.
947 (type_long_long): Ditto.
948 (type_float): Ditto.
949 (type_double): Ditto.
950 (type_long_double): Ditto.
951 (type_char): Ditto.
952 (type_system_address): Ditto.
953 (simple_exp): Use type_* functions in place of builtin_*
954 variables.
955 (exp): Ditto.
956 (write_var_from_name): Ditto.
957 (write_object_renaming): Ditto.
958 * ada-lang.c (ada_create_fundamental_type): Remove redundant
959 declaration.
960 (build_ada_types): Remove, replacing with...
961 (ada_language_arch_info): New function to initialize primitive
962 type vector in language_arch_info.
963 (ada_array_length): Remove use of builtin_type_ada_int.
964 (value_pos_atr): Ditto.
965 (ada_evaluate_subexp): Ditto.
966 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
967 builtin_type_ada_long_long, builtin_type_ada_char,
968 builtin_type_ada_float, builtin_type_ada_double,
969 builtin_type_ada_long_double, builtin_type_ada_natural,
970 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
971 (ada_builtin_types): Remove.
972 (ada_language_defn): Remove entries for la_builtin_type_vector and
973 string_char_type and use ada_language_arch_info.
974 (_initialize_ada_language): Do type-vector initialization along
975 the lines of c-lang.c.
976 (ada_create_fundamental_type): Break up line.
977 (ada_dump_symtab): Remove unused function.
978 (enum ada_primitive_types): Define.
979 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
980 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
981 builtin_type_ada_float, builtin_type_ada_double,
982 builtin_type_ada_long_double, builtin_type_ada_natural,
983 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
984 * ada-lex.l: Use type_* functions in place of builtin_* variables.
985 (processInt): Ditto.
986 (processReal): Ditto.
987 (name_lookup): Ditto.
988 * ada-typeprint.c (print_range): Use builtin_type_int, not
989 builtin_type_ada_int.
990
991 2004-09-18 Mark Kettenis <kettenis@gnu.org>
992
993 * i386-tdep.c (i386_register_name): Rename regno to regnum.
994
995 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
996 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
997 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
998 * configure.in: Improve checks for curses library by checking for
999 mvwaddstr instead of initscr. Drop HP curses in favour of
1000 standard curses on HP-UX.
1001 * configure: Regenerated.
1002
1003 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1004
1005 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1006 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1007 Minor formatting changes.
1008 (empty_array): Slight rewrite for formatting.
1009 (emit_char,parse,ada_language_defn,build_ada_types,
1010 ada_is_exception_sym, _initialize_ada_language): Move
1011 definitions around.
1012 (ada_dump_symtab): Remove unused definition.
1013 (ada_maybe_exception_partial_symbol): Remove unused definition.
1014
1015 2004-09-16 Andrew Cagney <cagney@gnu.org>
1016
1017 * inf-child.c: Include "gdb_string.h".
1018 (inf_child_core_file_to_sym_file): Delete.
1019 (inf_child_target): Set to_fetch_registers and to_store_registers.
1020 * inf-ptrace.c: Include "gdb_string.h".
1021 * Makefile.in: Update all dependencies.
1022
1023 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1024 problem.
1025
1026 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1027
1028 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1029 call to heuristic_proc_desc. Remove code that became redundant
1030 as a consequence.
1031 (read_next_frame_reg): Remove special case for SP_REGNUM.
1032 (set_reg_offset): Fix small typo.
1033 (reset_saved_regs): New procedure.
1034 (mips32_heuristic_proc_desc): No longer compute a fake
1035 procedure descriptor. Compute the full frame cache instead.
1036 Some minor comment reformatting.
1037
1038 2004-09-14 Andrew Cagney <cagney@gnu.org>
1039
1040 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1041 maintainer.
1042
1043 * thread-db.c (thread_db_new_objfile): Assume that there is a
1044 child process.
1045
1046 2004-09-13 Jim Blandy <jimb@redhat.com>
1047
1048 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1049 so that its storage isn't referenced after its lifetime ends.
1050
1051 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1052 and never assigned to. Delete it, and the 'if (use_buffer)'
1053 clauses. Delete 'raw_buffer', since it is now unused.
1054
1055 2004-09-13 Andrew Cagney <cagney@gnu.org>
1056
1057 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1058 * configure: Re-generate.
1059 * nlm/Makefile.in (TAGS): Update.
1060 * Makefile.in (TAGS): Update.
1061 * config/vax/nbsd.mt (TM_FILE): Update.
1062 * config/sparc/vxworks.mt (TM_FILE): Update.
1063 * config/sparc/sol2.mt (TM_FILE): Update.
1064 * config/sparc/sol2-64.mt (TM_FILE): Update.
1065 * config/sparc/obsd64.mt (TM_FILE): Update.
1066 * config/sparc/obsd.mt (TM_FILE): Update.
1067 * config/sparc/nbsd64.mt (TM_FILE): Update.
1068 * config/sparc/nbsd.mt (TM_FILE): Update.
1069 * config/sparc/linux64.mt (TM_FILE): Update.
1070 * config/sparc/linux.mt (TM_FILE): Update.
1071 * config/sparc/fbsd.mt (TM_FILE): Update.
1072 * config/sh/wince.mt (TM_FILE): Update.
1073 * config/sh/nbsd.mt (TM_FILE): Update.
1074 * config/sh/linux.mt (TM_FILE): Update.
1075 * config/sh/embed.mt (TM_FILE): Update.
1076 * config/s390/s390.mt (TM_FILE): Update.
1077 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1078 * config/rs6000/rs6000.mt (TM_FILE): Update.
1079 * config/rs6000/aix4.mt (TM_FILE): Update.
1080 * config/powerpc/vxworks.mt (TM_FILE): Update.
1081 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1082 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1083 * config/powerpc/obsd.mt (TM_FILE): Update.
1084 * config/powerpc/nbsd.mt (TM_FILE): Update.
1085 * config/powerpc/linux.mt (TM_FILE): Update.
1086 * config/powerpc/aix.mt (TM_FILE): Update.
1087 * config/pa/obsd.mt (TM_FILE): Update.
1088 * config/pa/linux.mt (TM_FILE): Update.
1089 * config/pa/hppahpux.mt (TM_FILE): Update.
1090 * config/pa/hppa64.mt (TM_FILE): Update.
1091 * config/pa/hppa.mt (TM_FILE): Update.
1092 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1093 * config/mips/wince.mt (TM_FILE): Update.
1094 * config/mips/vxmips.mt (TM_FILE): Update.
1095 * config/mips/nbsd.mt (TM_FILE): Update.
1096 * config/mips/linux.mt (TM_FILE): Update.
1097 * config/mips/irix6.mt (TM_FILE): Update.
1098 * config/mips/irix5.mt (TM_FILE): Update.
1099 * config/mips/embed.mt (TM_FILE): Update.
1100 * config/m68k/vxworks68.mt (TM_FILE): Update.
1101 * config/m68k/st2000.mt (TM_FILE): Update.
1102 * config/m68k/os68k.mt (TM_FILE): Update.
1103 * config/m68k/obsd.mt (TM_FILE): Update.
1104 * config/m68k/nbsd.mt (TM_FILE): Update.
1105 * config/m68k/monitor.mt (TM_FILE): Update.
1106 * config/m68k/linux.mt (TM_FILE): Update.
1107 * config/m68k/cisco.mt (TM_FILE): Update.
1108 * config/ia64/linux.mt (TM_FILE): Update.
1109 * config/ia64/aix.mt (TM_FILE): Update.
1110 * config/ia64/ia64.mt (TM_FILE): Update.
1111 * config/i386/vxworks.mt (TM_FILE): Update.
1112 * config/i386/obsd64.mt (TM_FILE): Update.
1113 * config/i386/obsd.mt (TM_FILE): Update.
1114 * config/i386/nto.mt (TM_FILE): Update.
1115 * config/i386/nbsd64.mt (TM_FILE): Update.
1116 * config/i386/nbsd.mt (TM_FILE): Update.
1117 * config/i386/linux64.mt (TM_FILE): Update.
1118 * config/i386/linux.mt (TM_FILE): Update.
1119 * config/i386/i386sol2.mt (TM_FILE): Update.
1120 * config/i386/i386lynx.mt (TM_FILE): Update.
1121 * config/i386/fbsd64.mt (TM_FILE): Update.
1122 * config/i386/fbsd.mt (TM_FILE): Update.
1123 * config/i386/cygwin.mt (TM_FILE): Update.
1124 * config/h8300/h8300.mt (TM_FILE): Update.
1125 * config/frv/frv.mt (TM_FILE): Update.
1126 * config/cris/cris.mt (TM_FILE): Update.
1127 * config/arm/wince.mt (TM_FILE): Update.
1128 * config/arm/nbsd.mt (TM_FILE): Update.
1129 * config/arm/linux.mt (TM_FILE): Update.
1130 * config/arm/embed.mt (TM_FILE): Update.
1131 * config/alpha/nbsd.mt (TM_FILE): Update.
1132 * config/alpha/fbsd.mt (TM_FILE): Update.
1133 * config/alpha/alpha.mt (TM_FILE): Update.
1134 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1135 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1136
1137 Eliminate event_loop_p, always has the value 1.
1138 * defs.h (event_loop_p): Delete macro.
1139 * breakpoint.c (until_break_command): Simplify.
1140 * utils.c (prompt_for_continue): Simplify.
1141 * tracepoint.c (read_actions): Simplify.
1142 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1143 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1144 (set_prompt, init_main): Simplify.
1145 (init_signals, disconnect): Delete, unused.
1146 * remote.c (remote_async_resume)
1147 (extended_remote_async_create_inferior): Simplify.
1148 * mi/mi-interp.c (mi_input): Delete, unused.
1149 (mi_interpreter_resume, mi_command_loop): Simplify.
1150 * interps.c (current_interp_command_loop): Simplify.
1151 * infrun.c (proceed): Simplify.
1152 * infcmd.c (run_command, continue_command, step_1, jump_command)
1153 (until_command, advance_command, finish_command)
1154 (interrupt_target_command): Simplify.
1155 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1156
1157 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1158 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1159 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1160 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1161 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1162 * mips-tdep.c (mips_dump_tdep): Do not print same.
1163
1164 2004-09-12 Andrew Cagney <cagney@gnu.org>
1165
1166 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1167 const.
1168 * Makefile.in (valprint.o): Delete explict rule.
1169
1170 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1171 reported by Dave Anderson.
1172
1173 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1174
1175 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1176
1177 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1178 Andrew Cagney <cagney@gnu.org>
1179
1180 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1181 (mi_cmd_data_list_register_values)
1182 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1183 the register number computation.
1184
1185 2004-09-12 Andrew Cagney <cagney@gnu.org>
1186
1187 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1188 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1189 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1190 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1191 target.
1192 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1193 inf-ptrace.o and inf-child.o.
1194 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1195 * Makefile.in: Update dependencies.
1196
1197 2004-09-11 Andrew Cagney <cagney@gnu.org>
1198
1199 * language.c (hex_string, hex_string_custom): Move from here ...
1200 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1201 (CELLSIZE): Increase to 50.
1202 * language.h (hex_string, hex_string_custom): Move from here ...
1203 * defs.h: ... to here.
1204 * Makefile.in: Update all dependencies.
1205
1206 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1207
1208 * language.c (local_hex_format_custom): Remove.
1209 (local_hex_string): Rename to hex_string, use C format, and move to
1210 utils.c
1211 (local_hex_string_custom): Rename to hex_string_custom and change
1212 interface. Now uses C format. Move to utils.c
1213 (local_octal_format_custom): Remove.
1214 (local_decimal_format_custom): Remove.
1215 (unknown_language_defn): Remove language-specific number
1216 formatting entries.
1217 (auto_language_defn): Ditto.
1218 (local_language_defn): Ditto.
1219 * language.h (struct language_format_info): Delete declaration.
1220 (struct language_defn): Remove language_format_info fields
1221 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1222 (local_binary_format): Remove macro.
1223 (local_binary_format_prefix): Remove macro.
1224 (local_binary_format_specifier): Remove macro.
1225 (local_binary_format_suffix): Remove macro.
1226 (local_octal_format): Remove macro.
1227 (local_octal_format_prefix): Remove macro.
1228 (local_octal_format_specifier): Remove macro.
1229 (local_octal_format_suffix): Remove macro.
1230 (local_decimal_format): Remove macro.
1231 (local_decimal_format_prefix): Remove macro.
1232 (local_decimal_format_specifier): Remove macro.
1233 (local_decimal_format_suffix): Remove macro.
1234 (local_hex_format): Remove macro.
1235 (local_hex_format_prefix): Remove macro.
1236 (local_hex_format_specifier): Remove macro.
1237 (local_hex_format_suffix): Remove macro.
1238 (local_decimal_format_custom): Remove.
1239 (local_octal_format_custom): Remove.
1240 (local_hex_format_custom): Remove.
1241 (local_hex_string): Rename to hex_string and move to defs.h.
1242 (local_hex_string_custom): Rename to hex_string_custom, change
1243 interface, and move to defs.h.
1244 * utils.c: (int_string): New function.
1245 (hex_string): New function (from language.c).
1246 (hex_string_custom): New function (from language.c).
1247 (octal2str): New function.
1248 (decimal2str): Add width parameter.
1249 (paddr_u): Use new decimal2str interface.
1250 (paddr_d): Ditto.
1251 * defs.h (hex_string): Declare.
1252 (hex_string_custom): Declare.
1253 (int_string): Declare.
1254 * printcmd.c (print_scalar_formatted): Remove localized binary
1255 formatting.
1256 * valprint.c (print_longest): Use int_string.
1257 (print_floating): Use C hex format.
1258 (print_hex_chars): Ditto.
1259 (print_binary_chars): Remove language-specific formatting.
1260 (print_octal_chars): Use C octal format.
1261 (print_decimal_chars): Delocalize format.
1262 (print_decimal): Remove.
1263 * ada-lang.c (ada_language_defn): Remove language-specific number
1264 formatting entries.
1265 * p-lang.c (pascal_language_defn): Ditto.
1266 * c-lang.c (c_language_defn): Ditto.
1267 (cplus_language_defn): Ditto.
1268 (asm_language_defn): Ditto.
1269 (minimal_language_defn): Ditto.
1270 * f-lang.c (f_language_defn): Ditto.
1271 * jv-lang.c (java_language_defn): Ditto.
1272 * m2-lang.c (m2_language_defn): Ditto.
1273 * scm-lang.c (scm_language_defn): Ditto.
1274 * objc-lang.c (objc_language_defn): Ditto.
1275 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1276 new interface.
1277 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1278 * ui-out.c (ui_out_field_core_addr): Ditto.
1279 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1280 * exec.c (print_section_info): Ditto.
1281 * i387-tdep.c (print_i387_status_word): Ditto.
1282 (print_i387_control_word): Ditto.
1283 (i387_print_float_info): Ditto.
1284 * maint.c (maint_print_section_info): Ditto.
1285 * solib.c (info_sharedlibrary_command): Ditto.
1286 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1287 * symtab.c (print_msymbol_info): Ditto.
1288 * tracepoint.c (tracepoints_info): Ditto.
1289 * solib-frv.c (lm_base): Ditto.
1290 (frv_current_sos): Ditto.
1291 (enable_break2): Ditto.
1292 (enable_break): Ditto.
1293 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1294 (process_one_symbol): Ditto.
1295 * infcmd.c (program_info): Ditto.
1296 * mdebugread.c (parse_partial_symbols): Ditto.
1297 * symfile.c (add_symbol_file_command): Ditto.
1298 * cli/cli-cmds.c (edit_command): Ditto.
1299 (list_command): Ditto.
1300 * infcall.c (call_function_by_hand): Ditto.
1301 * remote-vx.c (vx_run_files_info): Ditto.
1302 (vx_wait): Ditto.
1303 (vx_attach): Ditto.
1304 (vx_detach): Ditto.
1305 (vx_kill): Ditto.
1306 * aix-thread.c (pdc_symbol_addrs): Ditto.
1307 (pdc_read_regs): Ditto.
1308 (pdc_write_regs): Ditto.
1309 (pdc_read_data): Ditto.
1310 (pdc_write_data): Ditto.
1311 * d10v-tdep.c (display_trace): Ditto.
1312 * rs6000-nat.c (find_toc_address): Ditto.
1313 * aix-thread.c: Don't include language.h.
1314 * buildsym.c: Ditto.
1315 * dbxread.c: Ditto.
1316 * mdebugread.c: Ditto.
1317 * rs6000-nat.c: Ditto.
1318 * buildsym.c (make_blockvector): Use renamed hex_string.
1319
1320 2004-09-10 Jason Molenda (jmolenda@apple.com)
1321
1322 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1323 chars after 'if' or 'while' commands in user-defined commands.
1324
1325 2004-09-08 Jim Blandy <jimb@redhat.com>
1326
1327 Fix bug reported and analyzed by Olivier Crete:
1328 * symfile.c (copy_section_addr_info): New function.
1329 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1330 original set of address arguments, instead of handwritten code
1331 that uses one length to allocate and a different length to
1332 initialize. Use make_cleanup_free_section_addr_info.
1333 * symfile.h (copy_section_addr_info): New declaration.
1334 * utils.c: #include "symfile.h".
1335 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1336 New functions.
1337 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1338 * Makefile.in (utils.o): Update dependencies.
1339
1340 2004-09-08 Andrew Cagney <cagney@gnu.org>
1341
1342 * thread-db.c (keep_thread_db): Delete.
1343 (thread_db_new_objfile, thread_db_create_inferior)
1344 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1345
1346 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1347
1348 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1349 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1350 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1351 (i386_frameless_signal_p): Remove prototype.
1352 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1353 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1354 I386_SSE_NUM_REGS.
1355 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1356 instead of FP0_REGNUM.
1357 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1358 of FP0_REGNUM and FPC_REGNUM.
1359
1360 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1361 (sunos_solib_create_inferior_hook): Don't call
1362 sunos_relocate_main_executable.
1363
1364 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1365 solib_svr4_fetch_link_map_offsets to
1366 svr4_ilp32_fetch_link_map_offsets.
1367 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1368 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1369 svr4_ilp32_fetch_link_map_offsets.
1370 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1371
1372 2004-09-07 Jim Blandy <jimb@redhat.com>
1373
1374 * frame.h (frame_register): Doc fix.
1375
1376 2004-09-07 Andrew Cagney <cagney@gnu.org>
1377
1378 * vx-share/wait.h: Delete #ifdef USG.
1379 * utils.c (request_quit): Ditto.
1380 * tui/tui.c (tui_reset): Ditto.
1381 * remote.c: Ditto.
1382 * remote-sds.c: Ditto.
1383 * remote-rdi.c: Ditto.
1384 * mdebugread.c: Ditto.
1385 * m68klinux-nat.c: Ditto.
1386 * infttrace.c: Ditto.
1387 * infptrace.c: Ditto.
1388 * i386v-nat.c: Ditto.
1389 * exec.c: Ditto.
1390 * dbxread.c: Ditto.
1391 * core-aout.c: Ditto.
1392
1393 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1394
1395 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1396 heuristic_proc_desc.
1397 (mips_insn32_frame_cache): Likewise.
1398
1399 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1400
1401 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1402 left behind by error.
1403
1404 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1405
1406 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1407 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1408
1409 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1410
1411 * config/rs6000/xm-aix4.h: Remove this file.
1412 * config/rs6000/aix4.mh (XM_FILE): Delete.
1413
1414 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1415
1416 * config/rs6000/xm-rs6000.h: Remove this file.
1417 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1418
1419 2004-09-03 Andrew Cagney <cagney@gnu.org>
1420
1421 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1422 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1423 only use.
1424
1425 * mips-tdep.c (temp_saved_regs): Delete.
1426 (set_reg_offset): Replace saved_regs parameter with this_cache.
1427 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1428 (mips32_heuristic_proc_desc): Add this_cache parameter.
1429 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1430 (after_prologue): Pass a NULL this_cache.
1431
1432 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1433 non-kernel trap prologues.
1434
1435 * mips-tdep.c (find_proc_desc): Delete function.
1436 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1437 simplify.
1438 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1439 mips_insn32_frame_cache.
1440
1441 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1442 Simplify as NEXT_FRAME is NULL.
1443 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1444
1445 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1446 local variable.
1447 (mips_skip_prologue): Update.
1448
1449 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1450 "cur_frame" parameter.
1451 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1452 (mips_insn32_frame_cache, find_proc_desc): Update
1453
1454 * config/vax/nm-obsd.h: Delete file.
1455 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1456 * config/vax/nm-nbsd.h: Delete file.
1457 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1458 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1459 * config/sh/nm-nbsd.h: Delete file.
1460 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1461 * config/rs6000/nm-rs6000ly.h: Delete file.
1462 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1463 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1464 * config/powerpc/nm-obsd.h: Delete file.
1465 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1466 * config/powerpc/nm-nbsd.h: Delete file.
1467 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1468 * config/pa/nm-obsd.h: Delete file.
1469 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1470 * config/mips/nm-nbsd.h: Delete file.
1471 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1472 * config/m88k/nm-obsd.h: Delete file.
1473 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1474 * config/m68k/nm-nbsd.h: Delete file.
1475 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1476 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1477 * config/i386/nm-nbsd.h: Delete file.
1478 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1479 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1480 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1481 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1482 * config/i386/nm-i386lynx.h: Delete file.
1483 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1484 * config/arm/nm-nbsd.h: Delete file.
1485 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1486 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1487
1488 * config/i386/tm-fbsd.h: Delete file.
1489 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1490 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1491
1492 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1493 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1494 * config/rs6000/aix4.mt (TM_FILE): Set to
1495 config/rs6000/tm-rs6000.h.
1496 * config/powerpc/tm-ppc-aix.h: Delete file.
1497 * config/powerpc/aix.mt (TM_FILE): Set to
1498 config/rs6000/tm-rs6000.h.
1499 * config/m68k/tm-linux.h: Delete file.
1500 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1501 * config/i386/tm-linux64.h: Delete file.
1502 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1503 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1504
1505 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1506 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1507 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1508 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1509 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1510 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1511 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1512 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1513 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1514
1515 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1516 gdb_host_cpu.
1517
1518 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1519
1520 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1521 Minor reformatting. Some code factoring.
1522
1523 2004-09-02 Andrew Cagney <cagney@gnu.org>
1524
1525 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1526 * config/vax/tm-nbsd.h: Delete file.
1527 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1528 * config/sparc/tm-vxworks.h: Delete file.
1529 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1530 * config/sparc/tm-nbsd.h: Delete file.
1531 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1532 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1533 * config/sparc/tm-linux.h: Delete file.
1534 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1535 * config/s390/tm-linux.h: Delete file.
1536 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1537 * config/pa/tm-bsd.h: Delete file.
1538 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1539 * config/m68k/tm-obsd.h: Delete file.
1540 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1541 * config/m68k/tm-nbsd.h: Delete file.
1542 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1543 * config/i386/tm-vxworks.h: Delete file.
1544 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1545 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1546 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1547 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1548 * config/i386/tm-nbsd.h: Delete file.
1549 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1550 * config/i386/tm-i386lynx.h: Delete file.
1551 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1552 * config/cris/tm-cris.h: Delete file.
1553
1554 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1555 * configure: Re-generate.
1556 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1557 * config/arm/tm-nbsd.h: Delete file.
1558
1559 * config/powerpc/tm-ppcle-sim.h: Delete.
1560 * config/powerpc/tm-ppcle-eabi.h: Delete.
1561 * config/powerpc/tm-nbsd.h: Delete.
1562 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1563 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1564 tm-ppcle-eabi.h.
1565
1566 * config/i386/nto.mh (NAT_FILE): Delete.
1567 * config/i386/nm-nto.h: Delete.
1568
1569 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1570 * config/m68k/tm-os68k.h: Ditto.
1571 * config/m68k/tm-monitor.h: Ditto.
1572 * config/m68k/tm-cisco.h: Ditto.
1573 * config/m68k/st2000.mt (TM_FILE): Delete.
1574 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1575 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1576 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1577 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1578
1579 * config/m68k/tm-st2000.h: Delete.
1580 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1581 * config/sparc/fbsd.mt (TM_FILE): Delete.
1582 * config/sparc/tm-fbsd.h: Delete.
1583
1584 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1585 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1586 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1587
1588 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1589 GDB_TM_FILE and GDB_XM_FILE.
1590 * gdbarch.c: Re-generate.
1591 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1592 quotes in macro definition.
1593 * configure.in: Re-generate.
1594
1595 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1596 validating architecture methods.
1597 * gdbarch.c: Re-generate.
1598
1599 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1600 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1601 GDB_MULTI_ARCH_PARTIAL.
1602 * gdbarch.h: Re-generate.
1603
1604 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1605 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1606 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1607 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1608 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1609 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1610 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1611 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1612 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1613 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1614 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1615 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1616
1617 2004-09-01 Andrew Cagney <cagney@gnu.org>
1618
1619 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1620 and main_func_highpc.
1621 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1622 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1623 * nlmread.c (nlm_symfile_read): Update.
1624
1625 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1626
1627 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1628 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1629 (find_proc_desc): Remove dead code.
1630
1631 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1632
1633 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1634
1635 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1636
1637 * observer.sh: Add struct so_list declaration.
1638 * Makefile.in: Add dependencies on observer.h for solib.c and
1639 breakpoint.c.
1640 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1641 function.
1642 (_initialize_breakpoint): Register
1643 disable_breakpoints_in_unloaded_shlib as an observer of the
1644 "solib unloaded" observation event.
1645 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1646 call decode_line_1 so unfound breakpoint errors are silent.
1647 * solib.c (update_solib_list): When a solib is discovered to have
1648 been unloaded by the program, notify all observers of the
1649 "solib unloaded" observation event.
1650
1651 2004-09-01 Andrew Cagney <cagney@gnu.org>
1652
1653 * frame.c: Include "objfiles.h".
1654 (inside_main_func): New function.
1655 (get_prev_frame): Use new inside_main_func.
1656 * Makefile.in (frame.o): Update dependencies.
1657 * defs.h (inside_main_func): Delete declaration.
1658 * blockframe.c (inside_main_func): Delete function.
1659
1660 2004-08-31 Jim Blandy <jimb@redhat.com>
1661
1662 * dwarf2read.c (is_vtable_name): New function, based on logic from
1663 read_structure_type, but passing the correct length to strncmp,
1664 and using 'sizeof' instead of 'strlen'.
1665 (read_structure_type): Call it.
1666
1667 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1668
1669 * config/powerpc/aix.mh: Add comment.
1670
1671 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1672
1673 * MAINTAINERS: Add self to Write-After-Approval.
1674
1675 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1676
1677 * MAINTAINERS: Add self to Write-After-Approval.
1678
1679 2004-08-30 Andrew Cagney <cagney@gnu.org>
1680
1681 Fix PR breakpoints/1757.
1682 * infrun.c (struct execution_control_state): Replace
1683 remove_breakpoints_on_following_step with
1684 step_after_step_resume_breakpoint.
1685 (init_execution_control_state): Update.
1686 (handle_inferior_event): For signals, when stepping off a
1687 breakpoint, set step_after_step_resume_breakpoint. When
1688 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1689 (keep_going): Delete code handling
1690 remove_breakpoints_on_following_step.
1691
1692 2004-08-29 David Lecomber <david@streamline-computing.com>
1693
1694 Fix PR gdb/648
1695 * language.h (enum array_ordering): New enum.
1696 * language.h (struct language_defn): New la_array_ordering
1697 attribute.
1698 * language.c (unknown_language_defn, auto_language_defn)
1699 (local_language_defn): Ditto.
1700 * ada-lang.c (ada_language_defn): Ditto.
1701 * c-lang.c (c_language_defn, cplus_language_defn)
1702 (asm_language_defn, minimal_language_defn): Ditto.
1703 * f-lang.c (f_language_defn): Ditto.
1704 * jv-lang.c (java_language_defn): Ditto.
1705 * m2-lang.c (f_language_defn): Ditto.
1706 * objc-lang.c (objc_language_defn): Ditto.
1707 * p-lang.c (pascal_language_defn): Ditto.
1708 * scm-lang.c (scm_language_defn): Ditto.
1709 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1710 oriented large to small in type structure.
1711 * dwarf2read.c (read_array_order): New function.
1712 (read_array_type): Use read_array_order to check row/column
1713 major ordering.
1714
1715 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1716
1717 * target.c (target_resize_to_sections): Check
1718 current_target.to_sections for an old value when updating.
1719
1720 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1721
1722 * procfs.c (dbx_link_bpt_addr): New static global variable.
1723 (dbx_link_shadow_contents): New static global variable.
1724 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1725 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1726 if we just hit it.
1727 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1728 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1729 from run to run.
1730 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1731 after the inferior has been forked.
1732 (remove_dbx_link_breakpoint): New function.
1733 (dbx_link_addr): New function.
1734 (insert_dbx_link_bpt_in_file): New function.
1735 (insert_dbx_link_bpt_in_region): New function.
1736 (insert_dbx_link_breakpoint): New function.
1737 (proc_trace_syscalls_1): New function, extracted from
1738 proc_trace_syscalls.
1739 (proc_trace_syscalls): Replace extract code by call to
1740 proc_trace_syscalls_1.
1741 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1742 is no longer valid.
1743
1744 2004-08-25 Jim Blandy <jimb@redhat.com>
1745
1746 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1747
1748 2004-08-25 Andrew Cagney <cagney@gnu.org>
1749
1750 * infrun.c (struct execution_control_state): Delete field
1751 "stepping_through_sigtramp".
1752 (init_execution_control_state): Do not set same.
1753 (context_switch): Do not pass same to save_infrun_state and
1754 load_infrun_state.
1755 * gdbthread.h (struct thread_info): Delete field
1756 stepping_through_sigtramp.
1757 (save_infrun_state, load_infrun_state): Delete parameter
1758 stepping_through_sigtramp.
1759 * thread.c (load_infrun_state, save_infrun_state): Update.
1760
1761 * infrun.c: Re-indent. Move expression operators to the beginning
1762 of the line. Remove long disabled #if 0 code.
1763
1764 2004-08-24 Andrew Cagney <cagney@gnu.org>
1765
1766 * doublest.h (floatformat_ieee_quad): Rename
1767 floatformat_ia64_quad.
1768 * doublest.c (floatformat_ieee_quad): Rename
1769 floatformat_ia64_quad.
1770 (_initialize_doublest): Update.
1771
1772 2004-08-24 Jim Blandy <jimb@redhat.com>
1773
1774 * dwarf2expr.h (struct dwarf_expr_context): New members
1775 'num_pieces' and 'pieces', for returning the result of an
1776 expression that uses DW_OP_piece.
1777 (struct dwarf_expr_piece): New struct type.
1778 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1779 pieces.
1780 (free_dwarf_expr_context): Free pieces, if any.
1781 (add_piece): New function.
1782 (execute_stack_op): Implement DW_OP_piece.
1783 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1784 expression is a list of pieces, print an error message.
1785 (dwarf2_loc_desc_needs_frame): If the expression yields
1786 pieces, and any piece is in a register, then we need a frame.
1787
1788 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1789 the stack until we've decided what sort of result the evaluation
1790 has produced. Use separate variables, with more specific names.
1791
1792 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1793
1794 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1795 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1796 (arm_netbsd_init_abi_common): Register them.
1797
1798 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1799
1800 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1801
1802 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1803 safe_frame_unwind_memory instead of target_read_memory.
1804
1805 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1806 Reorder includes.
1807 (fetch_register, store_register): Remove prototypes.
1808 (child_resume): Reorganize code and comments such that it is
1809 grouped a bit more logically.
1810 (attach): Explicitly compare errno against 0.
1811 (detach): Likewise. Use perror_with_name instead of
1812 print_sys_errmsg.
1813 * Makefile.in (infptrace.o): Update dependencies.
1814
1815 * ia64-linux-nat.c: Update copyright year.
1816 (fetch_debug_register, store_debug_register)
1817 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1818 PTRACE_TYPE_ARG3.
1819 * config/ia64/nm-linux.h: Update copyright year.
1820 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1821
1822 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1823 from CORE_ADDR to struct frame_info *. Use
1824 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1825 (amd64_linux_sigtramp_p): Adjust for changed signature of
1826 and64_linux_sigtramp_start
1827
1828 * gdb_ptrace.h: GNU/Linux.
1829
1830 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1831 Remove defines.
1832
1833 * infptrace.c: Include "gdb_assert.h".
1834 (PTRACE_XFER_TYPE): Remove define.
1835 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1836 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1837 Tweak comment.
1838 (fetch_inferior_registers, store_inferior_registers): Remove
1839 redundant culry braces. Tweak comment. s/regno/regnum.
1840 * Makefile.in (infptrace.o): Update dependencies.
1841
1842 * configure.in: Change test for return type of ptrace to default
1843 to `long' instead of `int'.
1844 * configure: Regenerate.
1845
1846 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1847
1848 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1849
1850 * configure.in: Check for ttrace function.
1851 * configure, config.in: Regenerate.
1852
1853 * gdb_ptrace.h: New file.
1854 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1855 <sys/ptrace.h>.
1856 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1857 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1858 (attach): Don't define PT_ATTACH.
1859 (detach): Don't define PT_DETACH.
1860 * Makefile.in (gdb_ptrace_h): New variable.
1861 (infptrace.o): Update dependencies.
1862
1863 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1864
1865 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1866 instead of `int' if not already defined.
1867 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1868 PTRACE_TYPE_ARG3.
1869 * infptrace.c (call_ptrace): Revert change that replaced
1870 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1871
1872 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1873
1874 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1875 Remove defines.
1876
1877 * linux-nat.c (kill_inferior): Add missing third and fourth
1878 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1879
1880 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1881 PTRACE_TYPE_RET.
1882
1883 * proc-why.c (proc_prettyfprint_why): Fix format string.
1884
1885 * solib-osf.c (osf_current_sos): Remove unsused label.
1886
1887 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1888 curses headers.
1889 * configure, config.in: Regenerate.
1890 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1891 <ncurses/ncurses.h>.
1892
1893 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1894 * config/nm-nbsd.h: Update copyright year.
1895 (PTRACE_ARG3_TYPE): Remove define.
1896
1897 * sparc-nat.c (fetch_inferior_registers)
1898 (store_inferior_registers, sparc_xfer_wcookie):
1899 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1900
1901 * alphabsd-nat.c (fetch_inferior_registers):
1902 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1903 PTRACE_TYPE_ARG3.
1904 * amd64bsd-nat.c (fetch_inferior_registers)
1905 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1906 PTRACE_TYPE_ARG3.
1907 * armnbsd-nat.c: Update copyright year.
1908 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1909 (store_register, store_regs, store_fp_register, store_fp_regs):
1910 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1911 * hppabsd-nat.c (fetch_inferior_registers)
1912 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1913 PTRACE_TYPE_ARG3.
1914 * i386bsd-nat.c (fetch_inferior_registers)
1915 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1916 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1917 * m68kbsd-nat.c (fetch_inferior_registers)
1918 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1919 PTRACE_TYPE_ARG3.
1920 * m88kbsd-nat.c (fetch_inferior_registers)
1921 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1922 PTRACE_TYPE_ARG3.
1923 * mipsnbsd-nat.c: Update copyright year.
1924 (fetch_inferior_registers, store_inferior_registers):
1925 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1926 * ns32knbsd-nat.c: Update copyright year.
1927 (fetch_inferior_registers, store_inferior_registers):
1928 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1929 * ppcnbsd-nat.c (fetch_inferior_registers):
1930 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1931 PTRACE_TYPE_ARG3.
1932 * ppcobsd-nat.c (fetch_inferior_registers):
1933 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1934 PTRACE_TYPE_ARG3.
1935 * shnbsd-nat.c: Update copyright year.
1936 (fetch_inferior_registers, store_inferior_registers):
1937 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1938 * vaxbsd-nat.c (fetch_inferior_registers)
1939 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1940 PTRACE_TYPE_ARG3.
1941
1942 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1943 PTRACE_TYPE_ARG3.
1944 * infptrace.c (call_ptrace, child_resume, attach, detach)
1945 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1946 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1947 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1948 PTRACE_TYPE_ARG3.
1949
1950 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1951
1952 * defs.h: Remove out-of-date comment.
1953 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1954 [!GETENV_PROVIDED] (getenv): Remove prototype.
1955
1956 * standalone.c: Remove file.
1957 * Makefile.in (standalone.o): Remove dependency.
1958
1959 * i386-linux-nat.c (dummy_sse_values): Remove function and
1960 prototype.
1961 (i386_linux_dr_get): Fix typo in comment.
1962 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1963
1964 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1965
1966 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1967 from declaration.
1968 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1969 from definition.
1970
1971 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1972
1973 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1974 parenthesis in definition.
1975 * configure: Regenerated.
1976
1977 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1978
1979 * PROBLEMS: Mention build/1411.
1980
1981 2004-08-09 Robert Millan <robertmh@gnu.org>
1982
1983 Committed by Nathanael Nerode.
1984 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1985 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1986
1987 2004-08-12 Andrew Cagney <cagney@gnu.org>
1988
1989 * NEWS: Mention fixes in GDB 6.2.1.
1990 * PROBLEMS: Remove mention of mips-irix.
1991
1992 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1993
1994 * config/powerpc/xm-aix.h: Delete.
1995 * config/powerpc/aix.mh (MH_FILE): Remove.
1996 * config/powerpc/aix432.mh (MH_FILE): Remove.
1997
1998 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1999
2000 * config/powerpc/aix.mh: Remove obsolete comment.
2001 * config/powerpc/aix432.mh: Likewise.
2002
2003 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2004
2005 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2006
2007 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2008
2009 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2010 this file is now empty.
2011 * config/xm-aix4.h: Remove, this file is no longer included
2012 anywhere.
2013
2014 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2015
2016 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2017 that file is now empty.
2018 (termdef): Remove prototype, function no longer used.
2019
2020 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2021
2022 * doc/gdbint.texinfo (Host Definition): Remove documentation
2023 for USE_O_NOCTTY, no longer used.
2024 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2025 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2026
2027 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2028
2029 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2030 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2031 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2032
2033 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2034
2035 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2036 instead of FIVE_ARG_PTRACE.
2037
2038 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2039 (new_tty): Use O_NOCTTY unconditionally.
2040
2041 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2042
2043 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2044 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2045 fflush on stdout.
2046
2047 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2048
2049 * xcoff_symfile_finish: Replace last call to xmfree by call
2050 to xfree.
2051
2052 2004-08-10 Andrew Cagney <cagney@gnu.org>
2053
2054 * main.c (captured_main): Delete call to init_malloc.
2055 * defs.h (init_malloc): Delete declaration.
2056 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2057 (init_malloc): Delete functions.
2058
2059 * defs.h (xmfree): Delete.
2060 * utils.c (xmfree): Delete function.
2061 (xfree): Inline calls to xmfree and mfree.
2062 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2063 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2064 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2065 * somread.c (som_symfile_finish): Ditto.
2066 * objfiles.c (allocate_objfile, free_objfile):
2067 * nlmread.c (nlm_symfile_finish): Ditto.
2068 * hpread.c (hpread_symfile_finish): Ditto.
2069 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2070 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2071 * coffread.c (coff_symfile_finish): Ditto.
2072
2073 * defs.h (xmcalloc): Delete declaration.
2074 * utils.c (xmcalloc): Delete.
2075 (xcalloc): Inline calls to xmcalloc and mcalloc.
2076 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2077 xcalloc and xfree.
2078 * symtab.c (create_demangled_names_hash): Ditto.
2079
2080 * defs.h (xmrealloc): Delete.
2081 * utils.c (xmrealloc): Delete.
2082 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2083 * symmisc.c (extend_psymbol_list): Use xrealloc.
2084 * source.c (find_source_lines): Ditto.
2085 * hpread.c (hpread_lookup_type): Ditto.
2086 * dbxread.c (add_bincl_to_list): Ditto.
2087
2088 * utils.c (xmmalloc): Delete.
2089 (xmalloc): Inline xmmalloc and mmalloc calls.
2090 (msavestring): Use xmalloc.
2091 * defs.h (xmmalloc): Delete declaration.
2092 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2093 xmmalloc.
2094 * symmisc.c (extend_psymbol_list): Ditto.
2095 * symfile.c (init_psymbol_list): Ditto.
2096 * source.c (find_source_lines): Ditto.
2097 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2098 * elfread.c (elf_symtab_read): Ditto.
2099 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2100 * coffread.c (coff_symfile_init): Ditto.
2101
2102 2004-08-10 David Carlton <carlton@bactrian.org>
2103
2104 * MAINTAINERS: Remove David Carlton from c++ testsuite
2105 maintainers.
2106
2107 2004-08-10 Jerome Guitton <guitton@gnat.com>
2108
2109 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2110 print a line feed before the prompt.
2111
2112 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2113
2114 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2115
2116 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2117
2118 General cleanup of the AIX xm include file:
2119 * config/xm-aix4.h (fd_set): Remove undefine.
2120 Remove include of <sys/select.h>.
2121 (HAVE_TERMIO): Remove define.
2122 (USG): Likewise.
2123 (NULL): Remove redefine.
2124 (alloca): Remove #pragma.
2125 (vfork): Remove define.
2126 (termdef): Remove.
2127 (SIGWINCH_HANDLER): Remove.
2128 (SIGWINCH_HANDLER_BODY): Remove.
2129
2130 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2131
2132 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2133 GDB_OSABI_OPENBSD_ELF.
2134
2135 2004-08-07 Robert Millan <robertmh@gnu.org>
2136
2137 * bsd-kvm.c: Check for nlist.h before including it.
2138
2139 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2140
2141 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2142 sigcontext' offset consistency checks for ancient BSD.
2143
2144 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2145
2146 * configure.in: Check for <sys/types.h>. Check return and
2147 argument types of ptrace.
2148 * configure, config.in: Regenerate.
2149
2150 2004-08-09 Jim Blandy <jimb@redhat.com>
2151
2152 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2153 rs6000_register_sim_regno): Doc fixes.
2154
2155 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2156
2157 * mips-tdep.c: Include "floatformat.h".
2158 (n32n64_floatformat_always_valid): New function.
2159 (floatformat_n32n64_long_double_big): New constant.
2160 (mips_gdbarch_init): Set size and format of long double
2161 for N32 and N64 ABIs.
2162 * Makefile.in (mips-tdep.o): Update dependencies.
2163
2164 2004-08-08 Andrew Cagney <cagney@gnu.org>
2165
2166 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2167 print. Improve script's error messages.
2168 * gdbarch.h: Re-generate.
2169
2170 * gdbarch.sh (pformat): New function.
2171 (float_format, double_format, long_double_format): List with bit
2172 members. Use pformat when printing.
2173 * gdbarch.c, gdbarch.h: Re-generate.
2174
2175 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2176
2177 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2178 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2179 (ppcnbsd_supply_pcb): New function.
2180 (_initialize_ppcnbsd_nat): New prototype and function.
2181 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2182 (LOADLIBES): New variable.
2183 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2184
2185 2004-08-08 Andrew Cagney <cagney@gnu.org>
2186
2187 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2188 (builtin_type_ieee_double, builtin_type_ia64_quad)
2189 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2190 BE/LE floating-point types.
2191 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2192 (builtin_type_ieee_double, builtin_type_ia64_quad)
2193 (builtin_type_ia64_spill): Declare.
2194 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2195 (floatformat_ieee_double, floatformat_arm_ext)
2196 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2197 of LE/BE floatformats.
2198 * doublest.h: (struct floatformat, floatformat_ieee_single)
2199 (floatformat_ieee_double, floatformat_arm_ext)
2200 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2201
2202 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2203
2204 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2205
2206 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2207 instead of regcache_raw_supply when storing the registers.
2208
2209 * i386gnu-nat.c: Update copyright year.
2210 (gnu_store_registers): Don't use deprecated_registers and
2211 deprecated_registers_valid. Use regcache_valid_p and
2212 regcache_raw_supply instead.
2213
2214 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2215 frame_pc_unwind.
2216
2217 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2218 variables. Incapitalized "process".
2219
2220 * configure.in: Add cursesX to the list of possible curses libs.
2221 Add cursesX.h to the list of possible curses headers.
2222 * configure, config.in: Regenerate.
2223
2224 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2225
2226 * configure.in: Test for struct lwp in <sys/lwp.h>.
2227 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2228 the offset of l_addr in struct lwp.
2229
2230 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2231
2232 * bsd-kvm.c: Include "gdbcore.h"
2233 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2234
2235 2004-08-07 Andrew Cagney <cagney@gnu.org>
2236
2237 * gdbtypes.c (build_flt, build_complex): New functions.
2238 (gdbtypes_post_init): Use.
2239
2240 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2241
2242 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2243 through to builtin_type_uint128.
2244
2245 * c-exp.y: Use builtin_type function to obtain builtin types.
2246
2247 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2248 builtin_uint128.
2249 * gdbtypes.c (gdbtypes_post_init): Update.
2250 (build_gdbtypes): Move initialization of builtin_type_int0
2251 through to builtin_type_uint128 from here ...
2252 (_initialize_gdbtypes): ... to here.
2253 * d10v-tdep.c (d10v_register_type): Update.
2254
2255 * doublest.c: Update copyright.
2256 (floatformat_from_length): Call error when floatformat is NULL.
2257 (extract_floating_by_length): Remove NULL fmt check.
2258 (store_floating_by_length): Ditto.
2259
2260 2004-08-07 Andrew Cagney <cagney@gnu.org>
2261
2262 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2263 that the register is valid.
2264
2265 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2266
2267 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2268 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2269 struct frame_info *. Use safe_frame_unwind_memory instead of
2270 deprecated_read_memory_nobpt.
2271 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2272 changed signature of i386_linux_sigtramp_start and
2273 i386_linux_rt_sigtramp_start.
2274
2275 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2276 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2277 instead of deprecated_read_memory_nobpt.
2278 (i386nbsd_sigtramp_p): Adjust for changed signature of
2279 i386nbsd_sigtramp_offset.
2280
2281 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2282 safe_frame_unwind_memory instead of target_read_memory.
2283
2284 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2285 !NO_SYS_FILE.
2286 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2287 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2288 (_initialize_kernel_u_addr): Remove prototype and function.
2289 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2290 !NO_SYS_FILE.
2291 * xcoffread.c: Likewise.
2292
2293 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2294
2295 * vax-nat.c: New file.
2296 * vaxbsd-nat.c: Tweak comment.
2297 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2298 vaxnbsd-tdep.c.
2299 (vax-nat.o): New dependency.
2300 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2301 (vax-*-ultrix2*): Remove.
2302 * config/vax/vax.mh: New file.
2303 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2304 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2305 (vax_register_u_addr): New prototype.
2306 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2307 * config/vax/vaxult2.mh: Remove file.
2308 * config/vax/vaxult.mh: Remove file.
2309 * config/vax/vaxbsd.mh: Remove file.
2310 * config/vax/vax.mt (TM_FILE): Remove.
2311 * config/vax/tm-vaxbsd.h: Remove file.
2312
2313 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2314
2315 * aix-thread.c (get_signaled_thread): New function.
2316 (iter_trap): Delete, no longer used.
2317 (iter_tid): New function.
2318 (pd_update): Find the thread that received the SIGTRAP signal
2319 by first locating the kernel thread, and then finding its
2320 associated thread.
2321
2322 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2323
2324 * lin-lwp.c (child_wait): Continue inferior after processing
2325 PTRACE_EVENT_CLONE event.
2326
2327 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2328
2329 * MAINTAINERS: Add self to Write-After-Approval.
2330
2331 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2332
2333 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2334 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2335
2336 2004-08-05 Andrew Cagney <cagney@gnu.org>
2337
2338 * config/xm-sysv4.h: Delete file.
2339 * config/mips/xm-irix5.h: Delete file.
2340 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2341 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2342 * config/ia64/xm-aix.h: Delete file.
2343 * config/ia64/aix.mh (XM_FILE): Delete.
2344 * config/pa/xm-hppah.h: Delete file.
2345 * config/pa/hpux11w.mh (XM_FILE): Delete.
2346 * config/pa/hpux11.mh (XM_FILE): Delete.
2347 * config/pa/hpux1020.mh (XM_FILE): Delete.
2348 * config/pa/hppahpux.mh (XM_FILE): Delete.
2349
2350 * config/alpha/xm-alphalinux.h: Delete file.
2351 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2352 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2353 * config/alpha/xm-alphaosf.h: Delete file.
2354 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2355 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2356 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2357 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2358
2359 * config/i386/xm-i386v.h: Delete file.
2360 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2361 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2362 * config/i386/xm-i386sco.h: Delete file.
2363 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2364 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2365 * config/i386/xm-i386v4.h: Delete file.
2366 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2367 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2368 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2369 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2370
2371 * config/vax/xm-vax.h: Delete file.
2372 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2373 * config/vax/xm-vaxult2.h: Delete file.
2374 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2375 * config/vax/vaxult2.mh (XM_FILE): Delete.
2376 * config/vax/xm-vaxult.h: Delete file.
2377 * config/vax/vaxult.mh (XM_FILE): Delete.
2378 * config/vax/xm-vaxbsd.h: Delete file.
2379 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2380
2381 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2382 * gdbarch.h, gdbarch.c: Re-generate.
2383 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2384 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2385 * frame.h: Delete deprecated_read_fp from comments.
2386 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2387 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2388
2389 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2390
2391 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2392 trampoline in OpenBSD 3.5-current.
2393
2394 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2395 SSE registers.
2396
2397 * Makefile.in: Remove embedded page breaks.
2398
2399 2004-08-04 Jim Blandy <jimb@redhat.com>
2400
2401 * regcache.c (regcache_raw_read): Assert that, after calling
2402 target_fetch_registers, the register we're reading is cached.
2403
2404 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2405 a call to 'internal_error', with a more helpful error message.
2406 * rs6000-tdep.c (e500_pseudo_register_read,
2407 e500_pseudo_register_write, rs6000_store_return_value): Same.
2408
2409 2004-08-04 Andrew Cagney <cagney@gnu.org>
2410
2411 * Makefile.in: Update dependencies.
2412
2413 2004-08-04 Jim Blandy <jimb@redhat.com>
2414
2415 Change the layout of the PowerPC E500 raw register cache to allow
2416 the lower 32-bit halves of the GPRS to be their own raw registers,
2417 not pseudoregisters.
2418 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2419 add ppc_ev0_upper_regnum flag.
2420 * rs6000-tdep.c: #include "reggroups.h".
2421 (spe_register_p): Recognize the ev upper half registers as SPE
2422 registers.
2423 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2424 registers.
2425 (e500_move_ev_register): New function.
2426 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2427 vector registers are the pseudo-registers now, formed by splicing
2428 together the gprs and the upper-half registers.
2429 (e500_register_reggroup_p): New function.
2430 (P): Macro deleted.
2431 (P8, A4): New macro.
2432 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2433 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2434 macros.
2435 (registers_e500): Rearrange register set so that the raw register
2436 set contains 32-bit GPRs and upper-half registers, and the SPE
2437 vector registers become pseudo-registers.
2438 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2439 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2440 register numbers are now the same for the E500 as they are for
2441 other PowerPC variants. Register e500_register_reggroup_p as the
2442 register group function for the E500.
2443 * Makefile.in (rs6000-tdep.o): Update dependencies.
2444
2445 Adapt PPC E500 native support to the new raw regcache layout.
2446 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2447 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2448 (fetch_spe_register, store_spe_register): Handle fetching/storing
2449 all the SPE registers at once, if regno == -1. These now take
2450 over the job of fetch_spe_registers and store_spe_registers.
2451 (fetch_spe_registers, store_spe_registers): Deleted.
2452 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2453 unconditionally; they're always raw. Fetch/store SPE upper half
2454 registers, if present, instead of ev registers.
2455 (fetch_register, store_register): Remove sanity checks: gprs are
2456 never pseudo-registers now, so we never need to even mention any
2457 registers that are ever pseudoregisters.
2458
2459 Use a fixed register numbering when communicating with the PowerPC
2460 simulator.
2461 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2462 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2463 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2464 New functions.
2465 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2466 init_sim_regno_table.
2467 * Makefile.in (gdb_sim_ppc_h): New variable.
2468 (rs6000-tdep.o): Update dependencies.
2469
2470 2004-08-02 Andrew Cagney <cagney@gnu.org>
2471
2472 * cris-tdep.c (cris_register_size): Restore function, still used
2473 locally.
2474
2475 * gdbarch.sh (deprecated_target_read_fp)
2476 (deprecated_frame_locals_address, deprecated_frame_args_address)
2477 (deprecated_frame_chain_valid, deprecated_frame_chain)
2478 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2479 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2480 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2481 * gdbarch.h, gdbarch.c: Re-generate.
2482 * regcache.c (deprecated_read_fp): Do not call
2483 DEPRECATED_TARGET_READ_FP_P.
2484 * infcmd.c (default_print_registers_info): Do not call
2485 DEPRECATED_DO_REGISTERS_INFO.
2486 * frame-base.c (default_frame_locals_address): Do not call
2487 DEPRECATED_FRAME_LOCALS_ADDRESS.
2488 (default_frame_args_address): Do not call
2489 DEPRECATED_FRAME_ARGS_ADDRESS.
2490
2491 * gdbarch.sh (deprecated_register_raw_size)
2492 (deprecated_register_virtual_size:int): Delete.
2493 * gdbarch.h, gdbarch.c: Re-generate.
2494 * cris-tdep.c (cris_register_size): Delete.
2495 (cris_gdbarch_init): Update.
2496 * alpha-tdep.c (alpha_register_raw_size)
2497 (alpha_register_virtual_size): Delete.
2498 (alpha_gdbarch_init): Update.
2499
2500 * gdbarch.sh (deprecated_register_virtual_type)
2501 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2502 (deprecated_dummy_write_sp): Delete.
2503 * gdbarch.h, gdbarch.c: Re-generate.
2504
2505 * gdbarch.sh (deprecated_register_bytes): Delete.
2506 * gdbarch.h, gdbarch.c: Re-generate.
2507 * regcache.c (deprecated_register_bytes): New function.
2508 * regcache.h (deprecated_register_bytes): Declare.
2509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2510 * v850-tdep.c (v850_gdbarch_init): Update.
2511 * sh64-tdep.c (sh64_gdbarch_init): Update.
2512 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2514 * mcore-tdep.c (mcore_gdbarch_init): Update.
2515 * cris-tdep.c (cris_gdbarch_init): Update.
2516 * arm-tdep.c (arm_gdbarch_init): Update.
2517 * remote.c (init_remote_state): Update.
2518 * remote-vx.c (vx_prepare_to_store): Update.
2519 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2520 * irix5-nat.c (fetch_core_registers): Update.
2521 * cris-tdep.c (cris_register_bytes_ok): Update.
2522 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2523
2524 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2525 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2526 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2527 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2528 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2529 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2530 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2531 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2532 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2533 with mips_insn16 and mips_insn32.
2534
2535 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2536 * rs6000-tdep.c (rs6000_push_dummy_call)
2537 (rs6000_extract_return_value): Use register_size.
2538 * xstormy16-tdep.c (xstormy16_get_saved_register)
2539 (xstormy16_extract_return_value): Ditto.
2540 * valops.c (value_assign): Ditto.
2541 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2542 * v850-tdep.c (v850_extract_return_value): Ditto.
2543 * tracepoint.c (collect_symbol): Ditto.
2544 * target.c (debug_print_register): Ditto.
2545 * stack.c (frame_info): Ditto.
2546 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2547 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2548 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2549 (store_register_using_P): Ditto.
2550 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2551 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2552 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2553 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2554 * regcache.c (deprecated_read_register_bytes)
2555 (deprecated_write_register_bytes, read_register)
2556 (write_register): Ditto.
2557 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2558 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2559 * monitor.c (monitor_supply_register, monitor_fetch_register)
2560 (monitor_store_register): Ditto.
2561 * mn10300-tdep.c (mn10300_pop_frame_regular)
2562 (mn10300_print_register): Ditto.
2563 * mipsv4-nat.c (fill_fpregset): Ditto.
2564 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2565 (mips64_fill_fpregset): Ditto.
2566 * mi/mi-main.c (register_changed_p, get_register)
2567 (mi_cmd_data_write_register_values): Ditto.
2568 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2569 * irix5-nat.c (fill_gregset, fetch_core_registers):
2570 * infrun.c (write_inferior_status_register): Ditto.
2571 * infptrace.c (fetch_register, store_register): Ditto.
2572 * infcmd.c (default_print_registers_info): Ditto.
2573 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2574 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2575 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2576 * hpux-thread.c (hpux_thread_fetch_registers)
2577 (hpux_thread_store_registers): Ditto.
2578 * hppah-nat.c (store_inferior_registers, fetch_register):
2579 * findvar.c (value_from_register): Ditto.
2580 * dve3900-rom.c (fetch_bitmapped_register):
2581 * cris-tdep.c (cris_gdbarch_init): Ditto.
2582 * alpha-tdep.h: Ditto.
2583 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2584
2585 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2586 DEPRECATED_REGISTER_RAW_SIZE from comments.
2587 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2588 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2589 DEPRECATED_REGISTER_RAW_SIZE.
2590 * findvar.c (value_of_register): Simplify by assuming that the
2591 registers raw and virtual sizes are identical.
2592 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2593 comment.
2594 * arch-utils.c (generic_register_size): Simplify by assuming
2595 register_type.
2596
2597 * regcache.c (legacy_read_register_gen, real_register)
2598 (legacy_write_register_gen): Delete, not used.
2599
2600 * regcache.c (struct regcache_descr): Delete legacy_p.
2601 (init_legacy_regcache_descr): Delete function.
2602 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2603 Do not use deprecated register functions.
2604 (regcache_raw_read, deprecated_write_register_gen):
2605 (deprecated_read_register_gen, regcache_raw_write): Delete code
2606 predicated on legacy_p.
2607 (register_size): Delete check against register raw size.
2608
2609 * cris-tdep.c (cris_register_type): Replace
2610 cris_register_virtual_type.
2611 (cris_gdbarch_init): Update, set register_type.
2612
2613 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2614 * gdbarch.h, gdbarch.c: Re-generate.
2615 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2616 (arm_gdbarch_init) Do not set frameless function invocation.
2617 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2618 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2619 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2620 (frv_gdbarch_init): Do not set frameless function invocation.
2621 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2622 * sh-tdep.c (sh_gdbarch_init): Ditto.
2623 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2625 * avr-tdep.c (avr_gdbarch_init): Ditto.
2626
2627 * blockframe.c (legacy_frame_chain_valid): Delete function.
2628
2629 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2630 and pc. Update comments.
2631 (pc_in_dummy_frame): Delete function.
2632 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2633 use the "id".
2634 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2635 call_hi, top and pc, use the id.
2636 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2637
2638 * dummy-frame.c: Include "gdb_string.h".
2639 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2640 (generic_save_dummy_frame_tos): Delete.
2641 (dummy_frame_push): New function, replaces above.
2642 * dummy-frame.h: Update copyright.
2643 (dummy_frame_push): Declare.
2644 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2645 (generic_save_call_dummy_addr): Delete declarations.
2646 * infcall.c: Include "dummy-frame.h".
2647 (call_function_by_hand): Add locals caller_regcache,
2648 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2649 with call to frame_save_as_regcache plus cleanup. Delete calls to
2650 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2651 Move clear_proceed_status to just before the resume, add call to
2652 dummy_frame_push (discard cleanup).
2653 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2654 (dummy-frame.o): Add $(gdb_string_h).
2655
2656 2004-08-01 Andrew Cagney <cagney@gnu.org>
2657
2658 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2659 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2660 * dummy-frame.c (find_dummy_frame): Delete.
2661 (struct dummy_frame_cache, dummy_frame_sniffer)
2662 (dummy_frame_prev_register, dummy_frame_this_id)
2663 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2664 frame unwinder using a dummy_frame_cache.
2665
2666 2004-08-01 Andrew Cagney <cagney@gnu.org>
2667
2668 * frame.h (frame_save_as_regcache): Declare.
2669 * frame.c (frame_save_as_regcache): New function.
2670 (do_frame_read_register): Replace do_frame_unwind_register.
2671 (frame_pop): Use frame_save_as_regcache.
2672 * dummy-frame.c (generic_push_dummy_frame): Use
2673 frame_save_as_regcache.
2674
2675 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2676
2677 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2678 file as included until we record the first line in the linetable.
2679
2680 2004-08-01 Andrew Cagney <cagney@gnu.org>
2681
2682 * frame.h (deprecated_pop_dummy_frame)
2683 (deprecated_read_register_dummy)
2684 (deprecated_generic_find_dummy_frame): Delete.
2685 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2686 (deprecated_read_register_dummy)
2687 (deprecated_find_dummy_frame_regcache)
2688 (discard_innermost_dummy)
2689 (deprecated_pop_dummy_frame): Delete.
2690 (dummy_frame_this_id): Simplify.
2691 (struct dummy_frame): Delete "fp" and "sp".
2692 (find_dummy_frame): Simplify.
2693 (generic_push_dummy_frame): Do not set "fp" or "sp".
2694 (fprint_dummy_frames): Do not print "fp" and "sp"
2695
2696 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2697
2698 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2699 (struct i386_insn): New structure.
2700 (i386_match_insn): New function.
2701 (i386_frame_setup_skip_insns): New variable.
2702 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2703 array i386_frame_setup_insns of instructions that should be
2704 skipped inside the frame setup sequence.
2705
2706 2004-08-01 Andrew Cagney <cagney@gnu.org>
2707
2708 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2709 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2710 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2711 * stack.c (frame_info): Delete references to
2712 DEPRECATED_FRAME_INIT_SAVED_REGS and
2713 deprecated_get_frame_saved_regs.
2714 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2715 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2716 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2717 (frame_unwind_register_signed)
2718 (frame_unwind_register_unsigned)
2719 (frame_unwind_unsigned_register): Use register_size.
2720 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2721 (deprecated_frame_xmalloc_with_cleanup)
2722 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2723 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2724
2725 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2726 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2727 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2728 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2729
2730 * infcall.c (call_function_by_hand): Do not use
2731 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2732 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2733 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2734 DEPRECATED_STACK_ALIGN.
2735
2736 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2737
2738 Committed by Andrew Cagney.
2739 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2740
2741 2004-08-01 Andrew Cagney <cagney@gnu.org>
2742
2743 * mips-tdep.c (mips16_frame_cache)
2744 (mips16_frame_this_id, mips16_frame_prev_register)
2745 (mips16_frame_unwind, mips16_frame_sniffer)
2746 (mips16_frame_base_address, mips16_frame_base)
2747 (mips16_frame_base_sniffer, mips32_frame_cache)
2748 (mips32_frame_this_id, mips32_frame_prev_register)
2749 (mips32_frame_unwind, mips32_frame_sniffer)
2750 (mips32_frame_base_address, mips32_frame_base)
2751 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2752 separate heuristic mips16 and mips32 unwinders.
2753 (mips_stub_frame_cache, mips_stub_frame_this_id)
2754 (mips_stub_frame_prev_register)
2755 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2756 (mips_stub_frame_base_address, mips_stub_frame_base)
2757 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2758 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2759 match true mdebug frames.
2760 (non_heuristic_proc_desc): Add forward declaration.
2761
2762 2004-08-01 Andrew Cagney <cagney@gnu.org>
2763
2764 * config/mips/tm-irix6.h: Delete file.
2765 * config/mips/tm-irix5.h: Delete file.
2766 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2767 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2768
2769 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2770 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2771 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2772 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2773 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2774 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2775 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2776 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2777 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2778 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2779 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2780 (TARGET_SIGNAL_RAW_VALUES): Delete.
2781 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2782 Delete.
2783 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2784 (TARGET_HW_WATCH_LIMIT): Delete.
2785 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2786 * minimon.h: Delete file.
2787
2788 * trad-frame.c (trad_frame_get_this_base)
2789 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2790 functions.
2791 * trad-frame.h (trad_frame_set_this_base)
2792 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2793
2794 2004-07-31 Andrew Cagney <cagney@gnu.org>
2795
2796 * trad-frame.c (trad_frame_get_prev_register): Rename
2797 trad_frame_get_prev_register.
2798 * vax-tdep.c (vax_frame_prev_register): Update.
2799 * trad-frame.h: Update.
2800 * trad-frame.c (trad_frame_get_register): Update.
2801 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2802 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2803 Update.
2804 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2805 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2806 Update.
2807 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2808 Update.
2809 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2810 Update.
2811 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2812 Update.
2813 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2814 Update.
2815 * s390-tdep.c (s390_frame_prev_register)
2816 (s390_stub_frame_prev_register)
2817 (s390_sigtramp_frame_prev_register): Update.
2818 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2819 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2820 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2821 * m88k-tdep.c (m88k_frame_prev_register)
2822 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2823 * m32r-tdep.c (m32r_frame_prev_register): Update.
2824 * hppa-tdep.c (hppa_frame_prev_register_helper)
2825 * frv-tdep.c (frv_frame_prev_register): Update.
2826 * d10v-tdep.c (d10v_frame_prev_register): Update.
2827 * cris-tdep.c (cris_frame_prev_register): Update.
2828 * avr-tdep.c (avr_frame_prev_register): Update.
2829 * arm-tdep.c (arm_prologue_prev_register)
2830 (arm_sigtramp_prev_register): Update.
2831
2832 2004-07-31 Andrew Cagney <cagney@gnu.org>
2833
2834 * frame.h (legacy_saved_regs_unwind)
2835 (legacy_frame_chain_valid, legacy_frame_p)
2836 (enum frame_type): Delete UNKNOWN_FRAME.
2837 * dummy-frame.c (dummy_frame_this_id): Simplify.
2838 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2839 * frame.c (struct frame_info): Delete the field "type".
2840 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2841 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2842 (legacy_saved_regs_unwind, legacy_frame_p)
2843 (frame_type_from_pc): Delete.
2844 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2845 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2846
2847 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2848
2849 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2850 indentation.
2851
2852 * mips-nat.c: Remove file.
2853 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2854 (mips-nat.o): Remove dependency.
2855
2856 * infptrace.c: Update copyright year.
2857 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2858 explicitly setting the buffer to all zeroes.
2859
2860 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2861 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2862
2863 2004-07-30 Andrew Cagney <cagney@gnu.org>
2864
2865 * GDB 6.2 released from gdb_6_2-branch.
2866
2867 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2868
2869 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2870
2871 * exec.c (exec_file_attach):
2872 * nto-tdep.c (nto_find_and_open_solib):
2873 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2874 * solib.c (solib_open):
2875 * somsolib.c (som_solib_sizeof_symbol_table):
2876 * source.c (is_regular_file, openp, open_source_file):
2877 * symfile.c (symfile_bfd_open):
2878 * wince.c (upload_to_device): Differentiate between the search for
2879 binary and source files.
2880
2881 2004-07-30 Andrew Cagney <cagney@gnu.org>
2882
2883 * complaints.c (_initialize_complaints): Pass NULL to
2884 add_setshow_zinteger_cmd for help_doc.
2885 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2886
2887 2004-07-30 Andrew Cagney <cagney@gnu.org>
2888
2889 Fix PR i18n/761.
2890 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2891 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2892 $(PACKAGE).pot and update-po.
2893 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2894 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2895 (update-po): New rules.
2896 (localedir): Define using autoconf.
2897 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2898 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2899 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2900 * configure.in: Generate CATALOGS and LINGUAS from contents of
2901 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2902 * configure: Re-generate.
2903 * po/gdbtext: New file
2904
2905 2004-07-30 Jerome Guitton <guitton@gnat.com>
2906
2907 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2908 order.
2909
2910 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2911
2912 * dwarf2read.c (read_file_scope): Set producer if attribute
2913 present.
2914 (struct dwarf2_cu): Added new member producer.
2915
2916 2004-07-30 Jerome Guitton <guitton@gnat.com>
2917
2918 * inflow.c (kill_command): release file handles in BFD.
2919 * exec.c (exec_file_attach): Ditto.
2920 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2921
2922 2004-07-29 Andrew Cagney <cagney@gnu.org>
2923
2924 * PROBLEMS (mips-irix): Note that it is broken.
2925
2926 2004-07-29 Andrew Cagney <cagney@gnu.org>
2927
2928 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2929 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2930
2931 * config/xm-nbsd.h: Delete file.
2932 * config/arm/xm-nbsd.h: Delete file.
2933 * config/i386/xm-nbsd.h: Delete file.
2934 * config/ns32k/xm-nbsd.h: Delete file.
2935 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2936 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2937 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2938 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2939 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2940
2941 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2942 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2943 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2944 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2945 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2946 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2947
2948 * config/powerpc/xm-linux.h: Delete empty file.
2949 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2950 * config/powerpc/linux.mh (XM_FILE): Delete.
2951 * config/m68k/xm-linux.h: Delete empty file.
2952 * config/m68k/linux.mh (XM_FILE): Delete.
2953 * config/ia64/xm-linux.h: Delete empty file.
2954 * config/ia64/linux.mh (XM_FILE): Delete.
2955 * config/arm/xm-linux.h: Delete empty file.
2956 * config/arm/linux.mh (XM_FILE): Delete.
2957
2958 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2959 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2960 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2961 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2962 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2963 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2964 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2965 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2966
2967 * config/m68k/xm-m68k.h: Delete file.
2968 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2969 copyright.
2970 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2971 * config/pa/xm-linux.h: Delete empty file.
2972 * config/pa/linux.mh (XM_FILE): Delete.
2973 * config/i386/xm-i386.h: Delete empty file.
2974 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2975 "i386/xm-i386.h".
2976 * config/i386/obsdaout.mh (XM_FILE): Delete.
2977 * config/i386/obsd64.mh (XM_FILE): Delete.
2978 * config/i386/fbsd64.mh (XM_FILE): Delete.
2979 * config/i386/nto.mh (XM_FILE): Delete.
2980 * config/i386/obsd.mh (XM_FILE): Delete.
2981 * config/i386/linux64.mh (XM_FILE): Delete.
2982 * config/i386/linux.mh (XM_FILE): Delete.
2983 * config/i386/i386sol2.mh (XM_FILE): Delete.
2984 * config/i386/i386gnu.mh (XM_FILE): Delete.
2985 * config/i386/fbsd.mh (XM_FILE): Delete.
2986 * config/i386/nbsd64.mh (XM_FILE): Delete.
2987
2988 2004-07-29 Andrew Cagney <cagney@gnu.org>
2989
2990 * config/pa/xm-linux.h: Do not include "floatformat.h".
2991 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2992 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2993 * config/i386/xm-i386.h: Do not include "floatformat.h".
2994 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2995 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2996 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2997 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2998 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2999 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3000 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3001 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3002 * configure, config.in: Regenerate.
3003 * configure.host (gdb_host_float_format, gdb_host_double_format)
3004 (gdb_host_long_double_format): Set according to the host.
3005
3006 2004-07-29 Andrew Cagney <cagney@gnu.org>
3007
3008 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3009
3010 2004-07-28 Andrew Cagney <cagney@gnu.org>
3011
3012 * PROBLEMS: Mention threads/1650.
3013 * NEWS: Mention the NPTL fix.
3014
3015 2004-07-28 Andrew Cagney <cagney@gnu.org>
3016
3017 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3018 (add_setshow_cmd_full): Make static.
3019 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3020 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3021 * cli/cli-decode.c (add_setshow_filename_cmd)
3022 (add_setshow_string_cmd): New functions.
3023 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3024 * mips-tdep.c (_initialize_mips_tdep): Update.
3025 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3026 * cli/cli-logging.c (_initialize_cli_logging): Update.
3027 * complaints.c (_initialize_complaints): Update.
3028 * remote.c (_initialize_remote): Update.
3029
3030 2004-07-28 Andrew Cagney <cagney@gnu.org>
3031
3032 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3033 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3034 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3035 print parameters. Make string parameters constant.
3036 * command.h: Update. Update copyright.
3037 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3038 * observer.c (_initialize_observer): Ditto.
3039 * frame.c (_initialize_frame): Ditto.
3040 * complaints.c (_initialize_complaints): Ditto.
3041 * maint.c (_initialize_maint_cmds): Ditto.
3042 * target.c (initialize_targets): Ditto.
3043 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3044 * infcall.c (_initialize_infcall): Ditto.
3045 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3046 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3047 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3048 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3049 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3050
3051 2004-07-28 Andrew Cagney <cagney@gnu.org>
3052
3053 * gdbtypes.c (lookup_primitive_typename): Delete function.
3054 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3055 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3056 * gdbtypes.c (lookup_typename): Ditto.
3057 * f-exp.y (yylex): Ditto.
3058 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3059
3060 * scm-lang.c (c_builtin_types): Delete extern declaration.
3061 (scm_language_defn): Replace
3062 string_char_type and primitive_type_vector with
3063 la_language_arch_info.
3064 * jv-lang.c (java_language_defn): Replace
3065 string_char_type and primitive_type_vector with
3066 la_language_arch_info.
3067 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3068 c_builtin_types in comment.
3069 * c-lang.h (struct language_arch_info): Declare opaque.
3070 (c_language_arch_info): Declare.
3071 (c_builtin_types): Delete declaration.
3072 * c-lang.c (c_language_arch_info): Set string_char_type to
3073 builtin_char, not builtin_true_char. Make global.
3074 (c_builtin_types): Delete array.
3075 (asm_language_defn, minimal_language_defn): Replace
3076 string_char_type and primitive_type_vector with
3077 la_language_arch_info.
3078
3079 2004-07-28 Andrew Cagney <cagney@gnu.org>
3080
3081 * gdbtypes.h (struct builtin_type): Rename true_char to
3082 builtin_true_char.
3083 * gdbtypes.c (gdbtypes_post_init): Update.
3084 * c-lang.c (arch_info): New function.
3085 (enum c_primitive_types): New enum.
3086 (c_language_defn): Instead of string_char_type and
3087 primitive_type_vector set la_language_arch_info.
3088
3089 2004-07-28 Andrew Cagney <cagney@gnu.org>
3090
3091 * language.h (struct language_arch_info): Fix typo
3092 s/primative/primitive/.
3093 * gdbtypes.c (lookup_primitive_typename): Ditto.
3094 * language.c (language_lookup_primitive_type_by_name)
3095 (unknown_language_arch_info): Ditto.
3096
3097 2004-07-27 Andrew Cagney <cagney@gnu.org>
3098
3099 * defs.h (enum language): Add nr_languages.
3100 * language.h (struct language_arch_info): Define.
3101 (struct language_defn): Add la_language_arch_info.
3102 (language_lookup_primative_type_by_name): Declare.
3103 (language_string_char_type): Declare.
3104 * language.c (_initialize_language, language_gdbarch_post_init)
3105 (struct language_gdbarch, language_gdbarch_data): Implement
3106 per-architecture language information.
3107 (unknown_language_arch_info, language_string_char_type)
3108 (language_lookup_primative_type_by_name): New functions.
3109 (unknown_language_defn, auto_language_defn)
3110 (local_language_defn): Set la_language_arch_info to
3111 unknown_language_arch_info.
3112 (unknown_builtin_types): Delete.
3113 * gdbtypes.c (lookup_primitive_typename): Use
3114 language_lookup_primative_type_by_name.
3115 (create_string_type): Use language_string_char_type.
3116 * values.c (value_from_string): Use language_string_char_type.
3117 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3118 * p-lang.c (pascal_language_defn): Ditto.
3119 * m2-lang.c (m2_language_defn): Ditto.
3120 * jv-lang.c (java_language_defn): Ditto.
3121 * objc-lang.c (objc_language_defn): Ditto.
3122 * f-lang.c (f_language_defn): Ditto.
3123 * c-lang.c (c_language_defn, cplus_language_defn)
3124 (asm_language_defn, minimal_language_defn): Ditto.
3125
3126 2004-07-27 Andrew Cagney <cagney@gnu.org>
3127
3128 * gdbtypes.h (struct builtin_type): Declare.
3129 (builtin_type): Declare.
3130 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3131 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3132 (gdbtypes_post_init): New function.
3133 (builtin_type): New function.
3134
3135 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3136
3137 * remote-m32r-sdi.c: Fix breakpoint bug.
3138 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3139 recv_char_data, recv_long_data): New functions to replace communication
3140 sequences.
3141
3142 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3143
3144 Document PR threads/1650.
3145 * PROBLEMS (Threads): Document problem with many threads
3146
3147 2004-07-26 Andrew Cagney <cagney@gnu.org>
3148
3149 * gdb-mi.el: Move from here ...
3150 * mi/gdb-mi.el: ... to here.
3151
3152 2004-07-26 Andrew Cagney <cagney@gnu.org>
3153
3154 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3155 * main.c (captured_main): When in batch mode always detach.
3156
3157 2004-07-26 Andrew Cagney <cagney@gnu.org>
3158
3159 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3160 and h8300 as broken.
3161 * NEWS: END-OF-LIFE frame compatibility module.
3162 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3163 specific comments.
3164
3165 2004-07-26 Andrew Cagney <cagney@gnu.org>
3166
3167 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3168 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3169 * wince.c (_initialize_wince): Update.
3170 * win32-nat.c (_initialize_win32_nat): Update.
3171 * varobj.c (_initialize_varobj): Update.
3172 * valops.c (_initialize_valops): Update.
3173 * utils.c (initialize_utils, initialize_utils): Update.
3174 * tui/tui-win.c (_initialize_tui_win): Update.
3175 * top.c (init_main): Update.
3176 * symfile.c (_initialize_symfile): Update.
3177 * source.c (_initialize_source): Update.
3178 * somsolib.c (_initialize_som_solib): Update.
3179 * solib.c (_initialize_solib): Update.
3180 * solib-frv.c (_initialize_frv_solib): Update.
3181 * serial.c (_initialize_serial): Update.
3182 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3183 * remote.c (_initialize_remote, _initialize_remote): Update.
3184 * remote-vx.c (_initialize_vx): Update.
3185 * remote-utils.c (_initialize_sr_support): Update.
3186 * remote-sds.c (_initialize_remote_sds): Update.
3187 * remote-mips.c (_initialize_remote_mips): Update.
3188 * remote-e7000.c (_initialize_remote_e7000): Update.
3189 * proc-api.c (_initialize_proc_api): Update.
3190 * printcmd.c: Update.
3191 * parse.c (_initialize_parse): Update.
3192 * pa64solib.c (_initialize_pa64_solib): Update.
3193 * p-valprint.c (_initialize_pascal_valprint): Update.
3194 * monitor.c (_initialize_remote_monitors): Update.
3195 * mips-tdep.c (_initialize_mips_tdep): Update.
3196 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3197 * maint.c (_initialize_maint_cmds): Update.
3198 * lin-lwp.c (_initialize_lin_lwp): Update.
3199 * language.c (_initialize_language): Update.
3200 * kod.c (_initialize_kod): Update.
3201 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3202 * i386-tdep.c (_initialize_i386_tdep): Update.
3203 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3204 * gdbarch.sh: Update.
3205 * gdbarch.c: Re-generate.
3206 * gdb-events.sh: Update.
3207 * gdb-events.c: Re-generate.
3208 * frame.c (_initialize_frame): Update.
3209 * exec.c: Update.
3210 * demangle.c (_initialize_demangler): Update.
3211 * dcache.c (_initialize_dcache): Update.
3212 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3213 * cp-valprint.c (_initialize_cp_valprint): Update.
3214 * corefile.c (_initialize_core): Update.
3215 * command.h: Update.
3216 * cli/cli-decode.h: Update.
3217 * cli/cli-cmds.c (init_cli_cmds): Update.
3218 * charset.c (_initialize_charset): Update.
3219 * breakpoint.c (_initialize_breakpoint): Update.
3220 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3221 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3222 * aix-thread.c (_initialize_aix_thread): Update.
3223
3224 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3225
3226 Partial fix for PR backtrace/1718.
3227 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3228 that GCC migrates into the prolugue. Don't handle any
3229 instructions that clobber %ebx.
3230
3231 2004-07-23 Andrew Cagney <cagney@gnu.org>
3232
3233 Use regcache_raw_collect instead of regcache_collect.
3234 * regcache.h (regcache_collect): Delete declaration.
3235 * regcache.c (regcache_colect): Delete function.
3236 * win32-nat.c (do_child_store_inferior_registers): Update.
3237 * sol-thread.c (sol_thread_store_registers): Update.
3238 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3239 * rs6000-nat.c (store_register): Update.
3240 * remote.c (store_register_using_P, remote_store_registers): Update.
3241 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3242 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3243 (fill_vrregset, store_spe_registers, fill_gregset)
3244 (fill_gregset): Update.
3245 * nto-procfs.c (procfs_store_registers): Update.
3246 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3247 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3248 * m68klinux-nat.c (store_register, fill_gregset): Update.
3249 * m68k-tdep.c (fill_gregset): Update.
3250 * infptrace.c (store_register): Update.
3251 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3252 * i386-linux-nat.c (store_register, fill_gregset): Update.
3253 * hppa-linux-nat.c (fill_gregset): Update.
3254 * go32-nat.c (store_register): Update.
3255 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3256 (store_fp_regs): Update.
3257 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3258 (store_nwfpe_extended, store_fpregister, store_fpregs)
3259 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3260 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3261 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3262 (store_regs_user_thread, store_regs_kernel_thread): Update.
3263
3264 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3265
3266 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3267 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3268 encoding.
3269 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3270 member of `struct comp_unit'.
3271
3272 2004-07-23 Andrew Cagney <cagney@gnu.org>
3273
3274 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3275 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3276
3277 2004-07-23 Martin Hunt <hunt@redhat.com>
3278 Kevin Buettner <kevinb@redhat.com>
3279
3280 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3281 alignment was being added to the offset instead of multiplied.
3282
3283 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3284
3285 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3286 changed signal trampoline in OpenBSD 3.5-current.
3287
3288 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3289 <machine/pcb.h> and "bsd-kvm.h".
3290 (sparc64nbsd_supply_pcb): New function.
3291 (_initialize_sparc64nbsd_nat): Renamed from
3292 _initialize_sparcnbsd_nat. Enable libkvm interface.
3293 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3294 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3295 (LOADLIBES): New variable.
3296
3297 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3298
3299 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3300
3301 2004-07-21 Andrew Cagney <cagney@gnu.org>
3302
3303 Use regcache_raw_supply instead of supply_register.
3304 * regcache.h (supply_register): Delete declaration.
3305 * regcache.c (supply_register): Delete function.
3306 * wince.c (do_child_fetch_inferior_registers): Update.
3307 * win32-nat.c (do_child_fetch_inferior_registers)
3308 (fetch_elf_core_registers): Update.
3309 * v850ice.c (v850ice_fetch_registers): Update.
3310 * thread-db.c (thread_db_store_registers): Update.
3311 * sol-thread.c (sol_thread_store_registers): Update.
3312 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3313 * rs6000-nat.c (fetch_register): Update.
3314 * rom68k-rom.c (rom68k_supply_one_register): Update.
3315 * remote.c (remote_wait, remote_async_wait): Update.
3316 * remote-st.c (get_hex_regs): Update.
3317 * remote-sim.c (gdbsim_fetch_register): Update.
3318 * remote-sds.c (sds_fetch_registers): Update.
3319 * remote-rdp.c (remote_rdp_fetch_register): Update.
3320 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3321 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3322 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3323 * remote-hms.c (init_hms_cmds): Update.
3324 * remote-est.c (init_est_cmds): Update.
3325 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3326 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3327 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3328 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3329 (fetch_register, supply_vrregset, supply_vrregset)
3330 (fetch_spe_registers): Update.
3331 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3332 * monitor.c (monitor_supply_register): Update.
3333 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3334 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3335 (mipsnbsd_supply_fpreg): Update.
3336 * mips-nat.c (fetch_inferior_registers)
3337 (fetch_core_registers): Update.
3338 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3339 (supply_fpregset, mips64_supply_gregset)
3340 (mips64_supply_fpregset): Update.
3341 * m68klinux-nat.c (fetch_register, supply_gregset)
3342 (supply_fpregset): Update.
3343 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3344 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3345 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3346 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3347 * infptrace.c (fetch_register): Update.
3348 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3349 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3350 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3351 (gnu_fetch_registers, gnu_store_registers): Update.
3352 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3353 * i386-linux-nat.c (fetch_register, supply_gregset)
3354 (dummy_sse_values): Update.
3355 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3356 * hppah-nat.c (fetch_register): Update.
3357 * hppa-linux-nat.c (fetch_register, supply_gregset)
3358 (supply_fpregset): Update.
3359 * go32-nat.c (fetch_register): Update.
3360 * dve3900-rom.c (fetch_bitmapped_register)
3361 (_initialize_r3900_rom): Update.
3362 * cris-tdep.c (supply_gregset): Update.
3363 * abug-rom.c (init_abug_cmds): Update.
3364 * core-aout.c (fetch_core_registers): Update.
3365 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3366 (fetch_register, fetch_fp_register): Update.
3367 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3368 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3369 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3370 * alphanbsd-tdep.c (fetch_core_registers): Update.
3371 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3372 * alpha-nat.c (fetch_osf_core_registers)
3373 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3374 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3375 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3376
3377 2004-07-21 Andrew Cagney <cagney@gnu.org>
3378
3379 * PROBLEMS: Mention breakpoints/1702.
3380 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3381 that is known to work.
3382
3383 2004-07-21 Andrew Cagney <cagney@gnu.org>
3384
3385 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3386 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3387 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3388 (handle_inferior_event): Wrap call to deprecated
3389 IGNORE_HELPER_CALL in #ifdef.
3390 * config/mips/tm-nbsd.h: Update.
3391
3392 2004-07-20 Jim Blandy <jimb@redhat.com>
3393
3394 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3395 bfd_mach_ppc has no segment registers.
3396
3397 Include PowerPC SPR numbers for special-purpose registers.
3398 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3399 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3400 new member in initializer.
3401 (S, S4, SN4, S64): New macros for defining special-purpose
3402 registers.
3403 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3404 registers_403, registers_403GC, registers_505, registers_860,
3405 registers_601, registers_602, registers_603, registers_604,
3406 registers_750, registers_e500): Use them.
3407
3408 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3409 replace references with expression used to initialize variable.
3410
3411 2004-07-20 Andrew Cagney <cagney@gnu.org>
3412
3413 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3414 read_memory_nobpt.
3415 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3416 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3417 (s390_sigtramp_frame_sniffer): Update.
3418 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3419 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3420 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3421 (mips32_fetch_instruction): Update.
3422 * mcore-tdep.c (get_insn): Update.
3423 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3424 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3425 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3426 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3427 (i386_linux_rt_sigtramp_start): Update.
3428 * i386-linux-nat.c (child_resume): Update.
3429 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3430 * hppa-linux-tdep.c (insns_match_pattern): Update.
3431 * gdbcore.h: Update.
3432 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3433 * frame.c (safe_frame_unwind_memory): Update.
3434 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3435 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3436 * alpha-tdep.c (alpha_read_insn): Update.
3437
3438 2004-07-20 Andrew Cagney <cagney@gnu.org>
3439
3440 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3441 containing both bytes and mask. Add "frame_type".
3442 * tramp-frame.c (tramp_frame_start): Update.
3443 (tramp_frame_prepend_unwinder): Update.
3444 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3445 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3446 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3447 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3448
3449 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3450
3451 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3452 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3453 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3454 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3455
3456 2004-07-17 Andrew Cagney <cagney@gnu.org>
3457
3458 * NEWS, PROBLEMS: Update for 6.2.
3459
3460 * README: Update to 6.2.
3461
3462 * utils.c (xvasprintf): Call xstrvprintf.
3463
3464 * parse.c: Update copyright.
3465 (null_post_parser): Eliminate ARGSUSED.
3466
3467 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3468 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3469 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3470
3471 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3472 * ppc-linux-nat.c: Use "Linux kernel".
3473 * hppa-linux-tdep.c: Use GNU/Linux.
3474 * hppa-linux-nat.c: Use GNU/Linux.
3475 * dwarfread.c: Add [sic] to use of Linux.
3476
3477 * hppa-linux-nat.c: Do not include <string.h>.
3478 (supply_fpregset): Remove "register" attribute.
3479
3480 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3481
3482 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3483
3484 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3485 * configure, config.in: Regenerated.
3486
3487 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3488 "bsd-kvm.h".
3489 (vaxbsd_supply_pcb): New function.
3490 (_initialize_vaxbsd_nat): New prototype and function.
3491 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3492 solib-sunos.o.
3493 (LOADLIBES): New variable.
3494 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3495 (LOADLIBES): New variable.
3496 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3497 (LOADLIBES): New variable.
3498 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3499
3500 2004-07-16 Andrew Cagney <cagney@gnu.org>
3501
3502 * defs.h (event_loop_p): Replace variable declaration with macro,
3503 always 1.
3504 * main.c (captured_main): Delete options "-async" and "-noasync".
3505 (event_loop_p): Delete variable.
3506 * NEWS: Mention that "-async" and "-noasync" were removed.
3507
3508 2004-07-16 Andrew Cagney <cagney@gnu.org>
3509
3510 * remote-m32r-sdi.c: Re-indent.
3511
3512 2004-07-16 Jim Blandy <jimb@redhat.com>
3513
3514 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3515 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3516 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3517 missing MPC823 SPRs.
3518 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3519 incorrect. (This was corrected in GDB's register name tables on
3520 2004-07-14.)
3521
3522 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3523 should be "esasrr" ("ESA Save and Restore Register").
3524
3525 2004-07-16 Andrew Cagney <cagney@gnu.org>
3526
3527 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3528 calls, no longer applicable. Update comments and rename parameter
3529 "step_frame" to "return_frame".
3530
3531 2004-07-16 Andrew Cagney <cagney@gnu.org>
3532
3533 * frame.c (fprint_field): New function.
3534 (fprint_frame_id): Use fprint_field.
3535
3536 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3537
3538 * ada-lang.c (ada_language_defn): Remove commented out code.
3539
3540 2004-07-15 Jim Blandy <jimb@redhat.com>
3541
3542 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3543 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3544
3545 2004-07-14 Jim Blandy <jimb@redhat.com>
3546
3547 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3548
3549 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3550
3551 * ppc-tdep.h (ppc_num_srs): New enum constant.
3552
3553 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3554 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3555 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3556 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3557 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3558 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3559 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3560 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3561 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3562 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3563 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3564 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3565 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3566 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3567 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3568 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3569 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3570 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3571 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3572 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3573 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3574 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3575 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3576 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3577 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3578 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3579 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3580 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3581 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3582 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3583 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3584 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3585 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3586 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3587 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3588 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3589 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3590 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3591 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3592 special-purpose register numbers.
3593
3594 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3595 manual mentions 'md_twb', but many mention 'm_twb', and at that
3596 point in the register list.)
3597
3598 2004-07-14 Andrew Cagney <cagney@gnu.org>
3599
3600 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3601 instead of "internal-error".
3602
3603 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3604
3605 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3606 that was inserted inside a comment.
3607
3608 2004-07-10 Randolph Chung <tausq@debian.org>
3609
3610 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3611 function.
3612 (hppa_hpux_push_dummy_code): New function.
3613 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3614 Set find_global_pointer method.
3615
3616 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3617
3618 * NEWS: Mention BSD libkvm interface.
3619
3620 2004-07-10 Michael Snyder <msnyder@redhat.com>
3621
3622 * symfile.c (generic_load): Comment typo.
3623 * stack.c (get_selected_block): Ditto.
3624 * regcache.c (regcache_cooked_read): Ditto.
3625 * monitor.c (monitor_debug): Ditto.
3626 * mips-tdep.c (mips_read_pc): Ditto.
3627 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3628 * gdb_mbuild.sh: Ditto.
3629 * gdbarch.sh: Ditto.
3630 * gdbarch.h: Ditto.
3631
3632 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3633
3634 * ada-tasks.c: Remove file.
3635
3636 Remove ARI problems:
3637
3638 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3639 beginning of line.
3640
3641 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3642 Add comment.
3643 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3644 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3645 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3646 (UMIN_OF_SIZE): Remove.
3647 (max_of_type): New function to replace orphan macro in gdbtypes.h
3648 (min_of_type): Ditto.
3649 (discrete_type_high_bound): Use max_of_type.
3650 (discrete_type_low_bound): Use min_of_type.
3651 (possible_user_operator_p): Move operator to beginning of line.
3652 (ada_is_variant_part): Ditto.
3653 (ensure_lval): Rewrite to avoid deprecated operations.
3654 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3655 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3656 (ada_enum_name): Remove assignments in 'if' statements.
3657 (build_ada_types): Add gdbarch parameter.
3658 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3659 with gdbarch_data_register_post_init.
3660 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3661 add_show_from_set.
3662
3663 * ada-valprint.c (inspect_it): Remove declaration.
3664 (repeat_count_threshold): Remove declaration.
3665 (ada_print_floating): Remove assignments in 'if' statements.
3666 (print_str): Move operator to beginning of line.
3667
3668 2004-07-08 Jim Blandy <jimb@redhat.com>
3669
3670 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3671
3672 2004-07-08 Bob Rossi <bob@brasko.net>
3673
3674 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3675
3676 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3677
3678 * language.h (struct_language_defn): Add new function pointer:
3679 la_class_name_from_physname. Also add new prototype for
3680 language_class_name_from_physname.
3681 * language.c (language_class_name_from_physname): New function.
3682 (unk_lang_class_name): Ditto.
3683 (unknown_language_defn, auto_language_defn): Change
3684 to add unk_lang_class_name function pointer for
3685 la_class_name_from_physname.
3686 (local_language_defn): Ditto.
3687 * dwarf2read.c (guess_structure_name): Change to call
3688 language_class_name_from_physname.
3689 (determine_class_name): Ditto.
3690 * cp-support.c (class_name_from_physname): Renamed.
3691 (cp_class_name_from_physname): New name of function.
3692 * cp-support.h: Ditto.
3693 * c-lang.c (c_language_defn): Change to add NULL
3694 for class_name_from_physname function pointer.
3695 (cplus_language_defn): Change to add cp_class_name_from_physname.
3696 * jv-lang.c (java_class_name_physname): New function.
3697 (java_find_last_component): New static routine.
3698 (java_language_defn): Add java_class_name_from_physname pointer.
3699 * ada-lang.c (ada_language_defn): Change to add NULL
3700 for class_name_from_physname function pointer.
3701 * f-lang.c (f_language_defn): Ditto.
3702 * m2-lang.c (m2_language_defn): Ditto.
3703 * objc-lang.c (objc_language_defn): Ditto.
3704 * p-lang.c (pascal_language_defn): Ditto.
3705 * scm-lang.c (scm_language_defn): Ditto.
3706
3707 2004-07-06 Andrew Cagney <cagney@gnu.org>
3708
3709 Patch from Bart Robinson.
3710 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3711 (O_LARGEFILE): Define to 0, if not defined.
3712
3713 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3714
3715 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3716 <machine/pcb.h> and "bsd-kvm.h".
3717 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3718 (m68kbsd_supply_pcb): New function.
3719 (_initialize_m68kbsd_nat): New prototype and function.
3720 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3721 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3722 (LOADLIBES): New variable.
3723 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3724 (LOADLIBES): New variable.
3725
3726 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3727
3728 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3729
3730 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3731 <sys/proc.h>.
3732 (bsd_kvm_cmdlist): New variable.
3733 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3734 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3735 command and "kvm proc" command.
3736 * Makefile.in (bsd-kvm.o): Update dependencies.
3737
3738 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3739
3740 * osabi.c: Update copyright year.
3741 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3742 notes if EI_OSABI is set to ELFOSABI_HPUX.
3743
3744 2004-07-01 Michael Snyder <msnyder@redhat.com>
3745
3746 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3747 that seems to have gotten whacked out of line.
3748
3749 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3750
3751 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3752 code.
3753
3754 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3755
3756 * ada-lang.c (decode_packed_array): Minor change to comment.
3757 (ada_value_slice_ptr): New function.
3758 (ada_value_slice): New function.
3759 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3760 test. Don't know why it is there.
3761 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3762 to avoid dereferencing huge arrays from which one is slicing.
3763 (empty_array): Correct to return an array rather than
3764 a subrange value.
3765 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3766 on empty arrays (let'em use 'FIRST instead).
3767
3768 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3769
3770 Address complaints from gdb_ari.sh:
3771
3772 * ada-exp.y: Include gdb_string.h rather than string.h.
3773 (convert_char_literal): Reformat declaration.
3774 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3775 * ada-lex.l: Change use of free to xfree (the macro would do so
3776 anyway, but this is harmless).
3777 Include gdb_string.h rather than string.h.
3778 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3779
3780 * ada-lang.c (parse): Remove K&Rism in parameter list.
3781 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3782
3783 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3784
3785 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3786 dead code.
3787
3788 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3789
3790 * alphabsd-nat.c: Update copyright year.
3791 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3792
3793 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3794
3795 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3796 (i386_cygwin_in_solib_call_trampoline): New function.
3797 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3798 and skip_trampoline_code gdbarch methods.
3799
3800 2004-06-29 Jim Blandy <jimb@redhat.com>
3801
3802 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3803 name actually used in the dependency lists.
3804
3805 2004-06-29 Randolph Chung <tausq@debian.org>
3806
3807 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3808
3809 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3810
3811 * win32-nat.c (child_pid_to_exec_file): New function.
3812 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3813 functionality.
3814
3815 2004-06-28 Andrew Cagney <cagney@gnu.org>
3816
3817 * defs.h (xstrvprintf): Declare.
3818 * utils.c (xstrvprintf): New function.
3819 (internal_vproblem, xstrprintf, xasprintf)
3820 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3821 * serial.c (serial_printf): Ditto.
3822 * complaints.c (vcomplaint): Ditto.
3823
3824 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3825
3826 * infcmd.c (attach_command): Move call to target_terminal_inferior
3827 behind loading symbol table.
3828
3829 2004-06-28 Andrew Cagney <cagney@gnu.org>
3830
3831 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3832 change - add back extern deprecated_ui_loop_hook declaration.
3833
3834 2004-06-28 Andrew Cagney <cagney@gnu.org>
3835
3836 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3837 xstrprintf.
3838 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3839 (c_value_of_variable): Ditto.
3840 * utils.c (internal_vproblem): Ditto.
3841 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3842 * remote.c (add_packet_config_cmd): Ditto.
3843 * remote-rdp.c (rdp_set_command_line): Ditto.
3844 * regcache.c (regcache_dump): Ditto.
3845 * frv-tdep.c (new_variant, new_variant): Ditto.
3846 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3847 (fbsd_find_memory_regions): Ditto.
3848 * breakpoint.c (create_thread_event_breakpoint)
3849 (create_breakpoints): Ditto.
3850 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3851 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3852
3853 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3854
3855 * ada-lang.c: Re-indent file, with some massaging to help indent
3856 a bit when the result is otherwise really too ugly.
3857
3858 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3859
3860 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3861 code_addr_p and special_addr_p to 'unsigned int'.
3862
3863 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3864
3865 * i386v4-nat.c: Update copyright year and tweak comment.
3866 (regmap): Remove trailing comma.
3867 (supply_gregset): Rename local variable i to regnum. Call
3868 regcache_raw_supply instead of supply_register.
3869 (fill_gregset): Rename argument regno to regnum. Call
3870 regcache_raw_collect instead of regcache_collect.
3871
3872 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3873
3874 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3875 and special_addr_p.
3876 (frame_id_build, frame_id_build_special): Update comments.
3877 (frame_id_build_wild): New prototype.
3878 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3879 struct frame_id fields.
3880 (frame_id_build_wild): New function.
3881 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3882
3883 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3884
3885 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3886 hppabsd-tdep.c.
3887
3888 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3889
3890 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3891
3892 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3893
3894 * ada-lang.c: Re-indent file.
3895
3896 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3897
3898 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3899 (no_symtab_msg): Likewise.
3900
3901 2004-06-27 Andreas Schwab <schwab@suse.de>
3902
3903 * source.c: Fix whitespace.
3904
3905 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3906
3907 * configure.in: Include <sys/param.h> for td_pcb test.
3908 * configure: Regenerated.
3909
3910 * i386nbsd-nat.c: New file.
3911 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3912 i386obsd-nat.c and i386obsd-tdep.c.
3913 (i386nbsd-nat.o): New dependency.
3914 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3915 bsd-kvm.o.
3916 (LOADLIBES): New variable.
3917 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3918 bsd-kvm.o.
3919 (LOADLIBES): New variable.
3920
3921 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3922 (LOADLIBES): New variable.
3923
3924 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3925 fetching from BSD_KVM_PADDR. Correctly lookup address for
3926 "_thread0".
3927
3928 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3929 "bsd-kvm.h".
3930 (amd64fbsd_supply_pcb): New funcion.
3931 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3932
3933 2004-06-27 <david@streamline-computing.com>
3934
3935 Partial fix for PR cli/1056.
3936 * valarith.c: Check for zero in division and remainder
3937 evaluation.
3938
3939 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3940
3941 * i387-tdep.c: Remove excessive whitespace.
3942
3943 2004-06-26 Andrew Cagney <cagney@gnu.org>
3944
3945 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3946 * gdb-events.h, gdb-events.c: Re-generate.
3947 * tui/tui-hooks.c (tui_install_hooks): Update.
3948 (tui_remove_hooks): Update.
3949 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3950
3951 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3952
3953 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3954 (gregset_t, fpregset_t): Remove typedefs.
3955 (REG_OFFSET): Rename argument.
3956 (amd64bsd_r_reg_offset): Rename from reg_offset.
3957 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3958 Remove functions.
3959 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3960 of reg_offset.
3961 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3962
3963 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3964
3965 * vax-tdep.c: Tweak comment.
3966
3967 Add OpenBSD/hppa support.
3968 * NEWS (New native configurations): Mention OpenBSD/hppa.
3969 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3970 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3971 files.
3972 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3973 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3974 * configure.host: Add hppa*-*-openbsd*.
3975 * configure.tgt: Add hppa*-*-openbsd*.
3976
3977 2004-06-25 Andrew Cagney <cagney@gnu.org>
3978
3979 * defs.h (deprecated_ui_loop_hook): Deprecated.
3980 * wince.c (child_wait): Update.
3981 * win32-nat.c (child_wait): Update.
3982 * v850ice.c (v850ice_wait): Update.
3983 * top.c (deprecated_ui_loop_hook): Update.
3984 * serial.h: Update.
3985 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3986 (do_unix_readchar): Update.
3987 * ser-tcp.c (net_open): Update.
3988 * remote-sim.c (gdb_os_poll_quit): Update.
3989 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3990
3991 2004-06-24 Andrew Cagney <cagney@gnu.org>
3992
3993 * defs.h (deprecated_pre_add_symbol_hook)
3994 (deprecated_post_add_symbol_hook): Deprecated.
3995 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3996 (symbol_file_add_with_addrs_or_offsets): Update references.
3997
3998 2004-06-24 Andrew Cagney <cagney@gnu.org>
3999
4000 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4001 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4002 * wince.c (ui_loop_hook): Delete extern declaration.
4003 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4004 * v850ice.c (ui_loop_hook): Delete extern declaration..
4005 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4006 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4007 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4008 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4009 ui_loop_hook declaration.
4010
4011 2004-06-24 Andrew Cagney <cagney@gnu.org>
4012
4013 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4014 entry_func_highpc fields.
4015 * objfiles.c (init_entry_point_info): Do not clear
4016 entry_func_lowpc and entry_func_highpc.
4017 (objfile_relocate): Do not relocate entry_func_lowpc and
4018 entry_func_highpc.
4019 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4020 entry_func_highpc.
4021 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4022 entry_func_highpc.
4023 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4024 entry_func_lowpc and entry_func_highpc with call to
4025 inside_entry_func.
4026
4027 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4028
4029 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4030 quad-precision floating point arguments in registers.
4031
4032 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4033
4034 From Michael Mueller <m.mueller99@kay-mueller.de>:
4035 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4036 account.
4037
4038 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4039
4040 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4041 to -1.
4042 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4043 untriggered watchpoints to a separate if clause. Update function
4044 comment regarding STOPPED_BY_WATCHPOINT argument.
4045
4046 2004-06-22 Jim Blandy <jimb@redhat.com>
4047
4048 * gdbarch.sh: Doc fix.
4049
4050 2004-06-21 Martin Hunt <hunt@redhat.com>
4051 Kevin Buettner <kevinb@redhat.com>
4052
4053 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4054 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4055 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4056 to set_gdbarch_sp_regnum(). Use cooked register number.
4057 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4058
4059 2004-06-21 Andrew Cagney <cagney@gnu.org>
4060
4061 * gdbarch.sh: When the macro field is empty, do not generate a
4062 macro definition. When the macro field is "=", generate the macro
4063 name from the upper-case function name.
4064 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4065 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4066 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4067 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4068 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4069 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4070 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4071 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4072 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4073 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4074 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4075 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4076 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4077 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4078 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4079 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4080 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4081 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4082 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4083 (DEPRECATED_USE_STRUCT_CONVENTION)
4084 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4085 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4086 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4087 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4088 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4089 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4090 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4091 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4092 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4093 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4094 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4095 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4096 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4097 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4098 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4099 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4100 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4101 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4102
4103 2004-06-21 Andrew Cagney <cagney@gnu.org>
4104
4105 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4106 macro name, and the function rather than macro value. Only wrap
4107 macro print statements in #ifdef. Move format logic to where it
4108 is needed.
4109 * gdbarch.c: Re-generate.
4110
4111 * gdbarch.sh (read): Delete "print_p" and "description", add
4112 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4113 Delete references to print_p.
4114 (TARGET_ARCHITECTURE): Delete print predicate.
4115 * gdbarch.c: Re-generate.
4116
4117 * gdbarch.sh: Check that multi-arch methods do not provide a
4118 macro.
4119 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4120 (print_registers_info, print_float_info, print_vector_info)
4121 (adjust_breakpoint_address, remote_translate_xfer_address)
4122 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4123 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4124 name from the multi-arch definition.
4125
4126 2004-06-20 Andrew Cagney <cagney@gnu.org>
4127
4128 * gdbarch.sh: Sort by the function, instead of macro name.
4129 * gdbarch.c: Re-generate.
4130
4131 2004-06-20 Andrew Cagney <cagney@gnu.org>
4132
4133 * gdbarch.sh: Use the function, instead of macro name in
4134 errors and the log file.
4135 (return_value): Remove stray ":" in spec.
4136
4137 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4138 * gdbarch.h, gdbarch.c: Re-generate.
4139 * Makefile.in (arch-utils.o): Update dependencies.
4140 * values.c (using_struct_return): Move code calling
4141 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4142 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4143 to legacy_return_value, simplify.
4144 * infcmd.c (print_return_value): Move code calling
4145 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4146 to legacy_return_value, simplify.
4147 * infcall.c (call_function_by_hand): Move code calling
4148 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4149 * arch-utils.c: Update copyright. Include "gdbcore.h".
4150 (legacy_return_value): New function.
4151 * arch-utils.h: Update copyright.
4152 (legacy_return_value): Declare.
4153
4154 2004-06-20 Andrew Cagney <cagney@gnu.org>
4155
4156 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4157 * gdbarch.h, gdbarch.c: Re-generate.
4158 * values.c (using_struct_return): Update call.
4159 * mcore-tdep.c: Update comment.
4160 * infcall.c (call_function_by_hand): Update comment.
4161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4162 * arch-utils.h (always_use_struct_convention): Update.
4163 * v850-tdep.c (v850_gdbarch_init): Update.
4164 * sh64-tdep.c (sh64_gdbarch_init): Update.
4165 * sh-tdep.c (sh_gdbarch_init): Update.
4166 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4167 * mips-tdep.c (mips_gdbarch_init): Update.
4168 * mcore-tdep.c (mcore_gdbarch_init): Update.
4169 * m32r-tdep.c (m32r_gdbarch_init): Update.
4170 * ia64-tdep.c (ia64_gdbarch_init): Update.
4171 * h8300-tdep.c (h8300_gdbarch_init): Update.
4172 * frv-tdep.c (frv_gdbarch_init): Update.
4173 * cris-tdep.c (cris_gdbarch_init): Update.
4174 * arm-tdep.c (arm_gdbarch_init): Update.
4175 * alpha-tdep.c (alpha_gdbarch_init): Update.
4176
4177 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4178
4179 * PROBLEMS: Add more specific information, and a work-around,
4180 for PR gdb/1458.
4181
4182 2004-06-18 Andrew Cagney <cagney@gnu.org>
4183
4184 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4185 * gdbarch.h, gdbarch.c: Re-generate.
4186 * ada-lang.c (ada_finish_decode_line_1): Update.
4187 * infrun.c (handle_inferior_event): Update.
4188 * infcall.c (find_function_addr): Update.
4189 * linespec.c (minsym_found): Update.
4190 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4191 Update.
4192 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4193 * cli/cli-cmds.c (disassemble_command): Update.
4194 * vax-tdep.c (vax_gdbarch_init): Update.
4195
4196 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4197
4198 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4199
4200 2004-06-17 Andrew Cagney <cagney@gnu.org>
4201
4202 GDB 6.1.1 released from the GDB 6.1 branch.
4203 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4204 * PROBLEMS: Ditto.
4205
4206 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4207
4208 PR gdb/1658
4209 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4210 operation as a uleb128. Found by Michael Coulter.
4211
4212 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4213
4214 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4215 make it non-static.
4216 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4217 to ada-lang.h; this is needed to be able to implement the kill command
4218 in multi-task mode.
4219 (task_ptid): Ditto.
4220 (task_entry): Ditto.
4221 (task_list): Ditto.
4222 (ada_build_task_list): Ditto.
4223
4224 * ada-lang.c: Conditionalize routines and data structures related
4225 to breakpoints, exceptions, completion, and symbol caching on
4226 GNAT_GDB, since these are not yet used in the submitted public sources.
4227 (ada_main_name): Editorial: Move definition out of exception-related
4228 code.
4229
4230 2004-06-15 Andrew Cagney <cagney@gnu.org>
4231
4232 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4233 deprecated_pc_in_call_dummy.
4234
4235 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4236
4237 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4238 bfd_get_section_size_before_reloc or _raw_size.
4239 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4240 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4241 (dwarf2_read_section): Likewise.
4242 * elfread.c (elf_locate_sections): Likewise.
4243 * gcore.c (derive_heap_segment): Likewise.
4244 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4245 * remote-e7000.c (e7000_load): Likewise.
4246 * remote-m32r-sdi.c (m32r_load): Likewise.
4247 * remote-mips.c (mips_load_srec): Likewise.
4248 (pmon_load_fast): Likewise.
4249 * remote.c (compare_sections_command): Likewise.
4250 * symfile.c (add_section_size_callback): Likewise.
4251 (load_section_callback): Likewise.
4252 (pc_in_unmapped_range): Likewise.
4253 (pc_in_mapped_range): Likewise.
4254 (sections_overlap): Likewise.
4255 (list_overlays_command): Likewise.
4256 (simple_overlay_update_1): Likewise.
4257 (simple_overlay_update): Likewise.
4258 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4259 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4260
4261 2004-06-14 Randolph Chung <tausq@debian.org>
4262
4263 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4264 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4265 static.
4266 (hppa_hpux_inferior_created): New function.
4267 (hppa_hpux_init_abi): Register observer.
4268 * symfile.c (hp_cxx_exception_support_initialized)
4269 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4270 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4271
4272 2004-06-14 Randolph Chung <tausq@debian.org>
4273
4274 * MAINTAINERS (Write After Approval): Alphabetize my entry
4275 correctly.
4276
4277 2004-06-14 Andrew Cagney <cagney@gnu.org>
4278
4279 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4280 testsuite maintainer.
4281
4282 2004-06-13 Andrew Cagney <cagney@gnu.org>
4283
4284 * infcmd.c (print_return_value): Fix logic, allow
4285 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4286
4287 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4288 defining any macros.
4289 * gdbarch.h: Re-generate.
4290
4291 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4292 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4293 * gdbarch.h: Re-generate.
4294
4295 * values.c (generic_use_struct_convention): Don't check gcc_p.
4296
4297 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4298 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4299 * gdbarch.h, gdbarch.c: Regenerate.
4300 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4301 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4302 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4303 deprecated_max_register_raw_size and
4304 deprecated_max_register_virtual_size.
4305 * v850-tdep.c (v850_gdbarch_init): Ditto.
4306 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4307 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4308 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4309 * cris-tdep.c (cris_gdbarch_init): Ditto.
4310
4311 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4312 * gdbarch.h, gdbarch.c: Re-generate.
4313 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4314 (m68hc11_use_struct_convention): Delete function.
4315 (m68hc11_extract_struct_value_address): Delete function.
4316 (m68hc11_return_value): New function.
4317 (m68hc11_gdbarch_init): Instead of store_return_value,
4318 extract_return_value, return_value_on_stack,
4319 deprecated_extract_struct_value_address and use_struct_convention,
4320 set return_value.
4321 * values.c (using_struct_return): Do not call
4322 RETURN_VALUE_ON_STACK.
4323 * arch-utils.h (generic_return_value_on_stack_not): Delete
4324 declaration.
4325 * arch-utils.c (generic_return_value_on_stack_not): Delete
4326 function.
4327
4328 2004-06-12 Andrew Cagney <cagney@gnu.org>
4329
4330 * values.c (register_value_being_returned): Delete function.
4331 * infcmd.c (legacy_return_value): Delete function.
4332 * infcall.c (call_function_by_hand): Inline
4333 "register_value_being_returned", simplify.
4334 * values.c (using_struct_return): Update comment, refer to
4335 print_return_value instead of register_value_being_returned.
4336 * infcmd.c (print_return_value): Inline calls to
4337 register_value_being_returned and legacy_return_value. Simplify.
4338
4339 2004-06-11 Randolph Chung <tausq@debian.org>
4340
4341 * somread.c (som_symtab_read): Exclude gcc local symbols.
4342
4343 2004-06-11 Randolph Chung <tausq@debian.org>
4344
4345 * infrun.c (handle_inferior_event): Handle the case when a
4346 trampoline ends up in the runtime resolver, and if the trampoline
4347 has no name. Rearrange the code so that all the trampoline
4348 processing happens before other step-out-of-range handling.
4349
4350 2004-06-11 Martin Hunt <hunt@redhat.com>
4351
4352 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4353 has no fpu.
4354
4355 2004-06-10 Andrew Cagney <cagney@gnu.org>
4356
4357 * blockframe.c (legacy_inside_entry_func): Delete.
4358 (legacy_frame_chain_valid): Inline call to
4359 legacy_inside_entry_func, simplify.
4360
4361 2004-06-10 Bob Rossi <bob@brasko.net>
4362
4363 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4364 * dwarf2read.c (partial_die_info): Add dirname field.
4365 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4366 (read_partial_die): Save away DW_AT_comp_dir.
4367 * defs.h (symtab_to_filename): Removed.
4368 * source.c (find_and_open_source): Added.
4369 (open_source_file): Just calls find_and_open_source.
4370 (symtab_to_filename): Removed.
4371 (symtab_to_fullname, psymtab_to_fullname): Added.
4372 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4373 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4374 symtab_to_filename.
4375 * symtab.h (partial_symtab): Add dirname field.
4376 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4377 (mi_cmd_file_list_exec_source_file): Call new function
4378 symtab_to_fullname to find fullname.
4379 (mi_cmd_file_list_exec_source_files): Added.
4380 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4381 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4382
4383 2004-06-10 Andrew Cagney <cagney@gnu.org>
4384
4385 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4386 to generic_use_struct_convention, the default value.
4387
4388 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4389 of abort.
4390
4391 * ns32k-tdep.c (ns32k_push_arguments): New function.
4392 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4393 * infcall.c (call_function_by_hand): Call error instead of
4394 legacy_push_arguments.
4395 * value.h (legacy_push_arguments): Delete declaration.
4396 * valops.c (legacy_push_arguments): Delete function.
4397 (value_push): Delete function.
4398
4399 2004-06-10 Brian Ford <ford@vss.fsi.com>
4400
4401 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4402 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4403 info.
4404 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4405
4406 2004-06-10 Andrew Cagney <cagney@gnu.org>
4407
4408 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4409 * gdbarch.h, gdbarch.c: Re-generate.
4410 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4411 parameters.
4412 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4413 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4414 deprecated_pc_in_call_dummy instead of
4415 DEPRECATED_PC_IN_CALL_DUMMY.
4416 (arm_skip_prologue): Ditto.
4417 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4418 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4419 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4420 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4421 Ditto.
4422 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4423 (sh64_init_extra_frame_info, sh64_get_saved_register)
4424 (sh64_pop_frame): Ditto.
4425 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4426 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4427 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4428 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4429 (h8300_pop_frame): Ditto.
4430 * blockframe.c (legacy_inside_entry_func)
4431 (legacy_frame_chain_valid): Ditto.
4432 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4433 to deprecated_pc_in_call_dummy.
4434
4435 2004-06-09 Andrew Cagney <cagney@gnu.org>
4436
4437 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4438 provide a default value.
4439 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4440 * gdbarch.h, gdbarch.c: Re-generate.
4441 * arch-utils.c (generic_convert_register_p): Rename
4442 legacy_convert_register_p
4443 (legacy_register_to_value, legacy_value_to_register): Delete
4444 functions.
4445 * arch-utils.h (generic_convert_register_p): Rename
4446 legacy_convert_register_p.
4447 (legacy_register_to_value, legacy_value_to_register): Delete
4448 declarations.
4449
4450 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4451 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4452 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4453 * gdbarch.h, gdbarch.c: Re-generate.
4454 * infcmd.c (default_print_registers_info): Simplify.
4455 * findvar.c (value_of_register): Simplify.
4456 * mi/mi-main.c (get_register): Simplify.
4457 * arch-utils.c (legacy_convert_register_p): Always return 0.
4458 (legacy_register_to_value, legacy_value_to_register): Always call
4459 internal_error.
4460
4461 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4462 #ifdef CLEAR_INSN_CACHE code.
4463 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4464 Delete #ifdef CLEAR_DEFERRED_STORES code.
4465
4466 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4467
4468 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4469 copyright.
4470 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4471
4472 * config/mips/mipsv4.mh: Delete file.
4473
4474 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4475 unreferenced macro.
4476 (hpread_adjust_stack_address): Delete declaration.
4477
4478 2004-06-08 Andrew Cagney <cagney@gnu.org>
4479
4480 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4481 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4482 PTRACE_ATTACH / PTRACE_DETACH available call error.
4483 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4484 * infttrace.c (update_thread_state_after_attach, attach, detach):
4485 Remove #ifdef wrappers.
4486 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4487 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4488 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4489 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4490 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4491 * config/nm-linux.h (ATTACH_DETACH): Delete.
4492 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4493 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4494 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4495 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4496 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4497
4498 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4499
4500 * configure.in: Set $configdir to the right OS specific value.
4501 Use value when setting $tcldir and $tkdir.
4502 * configure: Regenerate.
4503
4504 2004-06-06 Paul Brook <paul@codesourcery.com>
4505
4506 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4507 records.
4508
4509 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4510
4511 * ada-lang.c (lookup_symbol_in_language): New function to allow
4512 re-use of another language's symbol lookup code. (Placed here
4513 temporarily while Ada support is being integrated into the public
4514 tree).
4515 (restore_language): New auxiliary function for
4516 lookup_symbol_in_language.
4517 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4518 temporarily while Ada support is being integrated into the public
4519 tree).
4520
4521 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4522
4523 * Makefile.in (check//%): New.
4524
4525 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4526 (mn10300_store_return_value): Rewrite.
4527 (mn10300_type_align): New.
4528 (mn10300_use_struct_convention): Rewrite.
4529 (mn10300_return_value): New, using all of the above.
4530 (mn10300_pop_frame_regular): Add saved_regs_size.
4531 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4532
4533 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4534 regs if PC is on movm.
4535
4536 2004-06-07 Jim Blandy <jimb@redhat.com>
4537
4538 Add native Linux support for the PowerPC E500.
4539 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4540 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4541 all architectures except the E500.
4542 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4543 #definitions.
4544 (struct gdb_evrregset_t): New type.
4545 (have_ptrace_getsetevrregs): New variable.
4546 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4547 fetch_spe_registers): New functions.
4548 (fetch_register): Call fetch_spe_register as appropriate.
4549 Assert that we're only passed raw register numbers.
4550 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4551 Don't fetch gprs if they're pseudoregisters.
4552 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4553 store_spe_registers): New functions.
4554 (store_register): Call store_spe_register as appropriate.
4555 Assert that we're only passed raw register numbers.
4556 (store_ppc_registers): Call store_spe_registers as appropriate.
4557 Don't store gprs if they're pseudoregisters.
4558
4559 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4560
4561 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4562 struct if one exists, even if we are dealing with a zombie thread.
4563
4564 2004-06-07 Andrew Cagney <cagney@gnu.org>
4565
4566 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4567 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4568 Rename PC_REQUIRES_RUN_BEFORE_USE.
4569 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4570 #ifdef.
4571
4572 2004-06-07 Randolph Chung <tausq@debian.org>
4573
4574 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4575 unwinding after sp has been saved to the stack but before the end
4576 of the prologue, and after the fp has been modified but before it has
4577 been saved to the stack.
4578 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4579 Remove superfluous definitions.
4580 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4581
4582 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4583
4584 Committed by Randolph Chung.
4585 * hppa-linux-nat.c: Include the correct version of the header file
4586 depending on the kernel version.
4587
4588 2004-06-06 Randolph Chung <tausq@debian.org>
4589
4590 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4591 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4592
4593 2004-06-06 Randolph Chung <tausq@debian.org>
4594
4595 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4596 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4597 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4598 * hppa-tdep.c (hppa_symbol_address): New function definition.
4599 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4600
4601 2004-06-06 Randolph Chung <tausq@debian.org>
4602
4603 * hppa-tdep.h (struct value): Forward declaration.
4604 (gdbarch_tdep): Define tdep find_global_pointer method.
4605 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4606 associated with the function we are trying to call, and write it
4607 to the gp register.
4608 (hppa32_convert_from_funct_ptr_addr): New function.
4609 (hppa_find_global_pointer): New function.
4610 (hppa_gdbarch_init): Set default find_global_pointer method; set
4611 convert_from_func_ptr_addr method.
4612 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4613 (hppa_linux_init_abi): Set find_global_pointer method.
4614 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4615
4616 2004-06-06 Randolph Chung <tausq@debian.org>
4617
4618 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4619 to struct value *function.
4620 * gdbarch.c: Regenerate.
4621 * gdbarch.h: Likewise.
4622 * infcall.c (call_function_by_hand): Pass entire function value
4623 to push_dummy_call.
4624
4625 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4626 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4627 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4628 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4629 * arm-tdep.c (arm_push_dummy_call): Likewise.
4630 * avr-tdep.c (avr_push_dummy_call): Likewise.
4631 * cris-tdep.c (cris_push_dummy_call): Likewise.
4632 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4633 * frv-tdep.c (frv_push_dummy_call): Likewise.
4634 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4635 * hppa-tdep.c (hppa32_push_dummy_call)
4636 (hppa64_push_dummy_call): Likewise.
4637 * i386-tdep.c (i386_push_dummy_call): Likewise.
4638 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4639 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4640 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4641 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4642 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4643 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4644 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4645 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4646 (ppc64_sysv_abi_push_dummy_call): Likewise.
4647 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4648 (ppc64_sysv_abi_push_dummy_call): Likewise.
4649 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4650 * s390-tdep.c (s390_push_dummy_call): Likewise.
4651 * sh-tdep.c (sh_push_dummy_call_fpu)
4652 (sh_push_dummy_call_nofpu): Likewise.
4653 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4654 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4655 * vax-tdep.c (vax_push_dummy_call): Likewise.
4656
4657 2004-06-04 Jim Blandy <jimb@redhat.com>
4658
4659 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4660 gdbarch argument to register_size.
4661
4662 * rs6000-tdep.c (rs6000_store_return_value): Use
4663 regcache_cooked_write_part instead of
4664 deprecated_write_register_bytes.
4665 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4666 not gdbarch_deprecated_store_return_value.
4667
4668 * ppc-linux-nat.c (store_register, fetch_register): Remove
4669 incorrect assertions. Simplify and generalize handling of
4670 transfers whose sizes are not multiples of, or less than, sizeof
4671 (PTRACE_XFER_TYPE).
4672
4673 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4674
4675 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4676 as a new thread event.
4677 * thread-db.c (thread_get_info_callback): If the thread is a
4678 zombie, return TD_THR_ZOMBIE.
4679 (thread_from_lwp): If thread_get_info_callback returns
4680 TD_THR_ZOMBIE, check if the thread is still on the thread list
4681 and return a -1 ptid if not found.
4682 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4683 change the status to TARGET_WAITKIND_SPURIOUS.
4684
4685 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4686
4687 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4688 double values in little endian mode.
4689
4690 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4691
4692 Committed by Andrew Cagney.
4693 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4694 after last enum constant to avoid error from IBM C
4695 compiler.
4696
4697 2004-06-02 Jim Blandy <jimb@redhat.com>
4698
4699 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4700 to 'message', and make it local to the lone block that uses it.
4701
4702 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4703
4704 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4705
4706 * ada-exp.y: Update copyright notice.
4707 Include block.h.
4708
4709 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4710 SPECIAL_VARIABLE and unify the treatment of these cases.
4711
4712 (write_attribute_call0): Remove.
4713 (write_attribute_call1): Remove.
4714 (write_attribute_calln): Remove.
4715 (save_qualifier): Add missing semicolon.
4716
4717 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4718 temporarily disabled to allow compilation with FSF head version.
4719
4720 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4721 use individual operators (OP_*) for all attributes.
4722 (exp syntax): Use write_int.
4723 Handle STRING literals with OP_STRING.
4724 (variable syntax): Add limit parameter to calls to
4725 write_object_renaming.
4726
4727 (temp_parse_space): New definition to hold entities that need
4728 only live until the next call to ada_parse.
4729 (string_to_operator): Rename fields of ada_opname_table entries.
4730
4731 (write_var_from_sym): Record block.
4732 (write_var_from_name): Minor reformatting.
4733 Make sure saved name is properly encoded in the case of multiple
4734 matches, and set its language to Ada.
4735 Update comment.
4736 Modify to indicate unresolved name as symbol in the UNRESOLVED
4737 namespace, allocated in temp_parse_space.
4738 (write_int): New function.
4739
4740 (write_object_renaming): Add max_depth parameter to limit
4741 chains of object renamings.
4742 Handle case where root of renaming expression is itself a renaming.
4743 Use temp_parse_space for temporary name buffer.
4744 Handle renamings to dereferenced pointers (___XEXA suffices).
4745
4746 (ada_parse, yyerror, string_to_operator,
4747 write_var_from_sym, write_var_from_name, write_attribute_call0,
4748 write_attribute_call1, write_attribute_calln,
4749 write_object_renaming): Protoize.
4750
4751 (_initialize_ada_exp): New function.
4752
4753 * ada-lang.c: Update copyright notice.
4754 General terminology change to conform to GNAT compiler usage:
4755 mangle => encode, demangle => decode
4756 Include gdb_obstack.h.
4757 Include gdb_regex.h
4758 Include frame.h
4759 Include hashtab.h
4760 Include completer.h
4761 Include gdb_stat.h
4762 Include block.h
4763 Include infcall.h
4764
4765 (ADA_RETAIN_DOTS): Make sure this is defined.
4766 (TRUNCATION_TOWARDS_ZERO): Define.
4767 (struct string_vector): Define.
4768 (unresolved_names): Remove definition.
4769 (xnew_string_vector): New function.
4770 (string_vector_append): New function.
4771 (extract_string): Make static.
4772 (ada_unqualified_name): New function.
4773 (add_angle_brackets): New function.
4774 (function_name_from_pc): New function.
4775 (place_on_stack): Rename to ensure_lval.
4776
4777 (ensure_lval): Renamed from place_on_stack.
4778 Make identity on lvals.
4779 Update comment.
4780 (is_nonfunction): New interface.
4781 Only symbols in LOC_CONST class can be enumerals.
4782 (fill_in_ada_prototype): Remove; now independent of language.
4783 (add_defn_to_vec): Add obstack and symtab arguments.
4784 Use obstack to hold collected definitions.
4785 (num_defns_collected): New function.
4786 (defns_collected): New function.
4787 (ada_resolve_subexp): Rename to resolve_subexp.
4788 (resolve_subexp): Renamed from ada_resolve_subexp.
4789 (ada_op_name): Return non-const result.
4790 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4791 other purposes.
4792
4793 (to_fixed_array_type): Add declaration.
4794 (coerce_unspec_val_to_type): Remove offset parameter.
4795 (find_sal_from_funcs_and_line): New interface.
4796 (find_line_in_linetable): Ditto.
4797
4798 (all_sals_for_line): Rename to ada_sals_for_line and make
4799 global.
4800 Add new parameter. When set, do not ask the user to choose the
4801 instance, but use the first one found instead.
4802 Use given line number in returned sals.
4803 Fix comment.
4804 Skip the prologue if funfirstline is set.
4805 Correct for memory leak when 0 lines found.
4806
4807 (value_pos_atr): Use pos_atr.
4808 (pos_atr): New function.
4809 (standard_lookup): Add block parameter.
4810
4811 (makeTimeStart): Remove declaration and uses.
4812 (makeTimeStop): Remove declaration and uses.
4813
4814 (ada_completer_word_break_characters): Allow for VMS.
4815 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4816 (raise_sym_name): New constant.
4817 (raise_unhandled_sym_name): New constant.
4818 (raise_assert_sym_name): New constant.
4819 (process_raise_exception_name): New constant.
4820 (longest_exception_template): New constant.
4821 (warning_limit): New variable to limit warnings during expression
4822 evaluation.
4823 (warnings_issued): New variable to keep track of warnings issued.
4824 (known_runtime_file_name_patterns): New constant.
4825 (known_auxiliary_function_name_patterns): New constant.
4826 (symbol_list_obstack): New variable.
4827
4828 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4829 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4830 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4831 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4832 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4833 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4834 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4835 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4836 and strcmp.
4837
4838 (ada_get_field_index): New function.
4839 (lim_warning): New function.
4840 (ada_translate_error_message): New function.
4841 (MAX_OF_SIZE): New function.
4842 (MIN_OF_SIZE): New function.
4843 (UMAX_OF_SIZE): New function.
4844 (UMIN_OF_SIZE): New function.
4845 (discrete_type_high_bound): New function.
4846 (discrete_type_low_bound): New function.
4847 (base_type): New function.
4848 (do_command): Remove.
4849
4850 (ada_update_initial_language): Use language_ada, not language_unknown.
4851 (ada_encode): Renamed from ada_mangle.
4852 Obey ADA_RETAIN_DOTS.
4853 (ada_decode): Renamed from ada_demangle.
4854 Update coding conventions.
4855 (decoded_names_store): New hash table.
4856 (ada_decode_symbol): New function.
4857 (ada_la_decode): New function.
4858
4859 (modify_general_field): Correct computations of offset and bit
4860 position.
4861 (desc_base_type): Handle ref types, too.
4862 (ada_is_direct_array_type): New function.
4863
4864 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4865 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4866 (ada_is_bogus_array_descriptor,ada_type_of_array,
4867 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4868 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4869 ada_is_array_descriptor_type.
4870
4871 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4872 (ada_is_packed_array_type): Handle pointers or
4873 references to packed arrays as well.
4874 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4875 (decode_packed_array_type): Search for the packed array type
4876 symbol in the currently selected block and associated
4877 superblocks too.
4878 Use lookup_symbol again.
4879
4880 (decode_packed_array): Handle pointers and references.
4881 Update call to coerce_unspec_val_to_type.
4882 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4883 (ada_value_primitive_packed_val): Improve comment.
4884
4885 (ada_index_type): Substitute int type for "undefined".
4886 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4887 ada_array_langth, ada_is_string_type): Use renamed
4888 ada_is_simple_array_type.
4889 (empty_array): New function.
4890
4891 (ada_resolve): Rename to resolve.
4892 (resolve): Make static.
4893 Call renamed resolve_subexp.
4894 Update comment.
4895 (ada_resolve_subexp): Rename to resolve_subexp.
4896 (resolve_subexp): Update comment.
4897 Decomment disabled code.
4898 Add LOC_COMPUTED* cases.
4899 Modify to use temporary struct symbols (marked as being in
4900 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4901 OP_UNRESOLVED_VALUE.
4902 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4903 Add OP_STRING case.
4904 Remove OP_ARRAY.
4905 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4906 Use new ada_lookup_symbol_list interface.
4907 Use new ada_resolve_function interface.
4908 Remove OP_TYPE case.
4909
4910 (ada_args_match): Idiot proof against null actuals.
4911 Use intermediate variables to clarify.
4912 (ada_resolve_function): Update comment and interface.
4913 (mangled_ordered_before): Rename to encoded_ordered_before and
4914 update comment.
4915 (sort_choices): Update comment and interface.
4916 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4917 (user_select_syms): New interface.
4918 Use new sort_choices interface.
4919 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4920 (possible_user_operator_p): Idiot-proof against null values.
4921 (ada_simple_renamed_entity): Don't make cleanup; rely on
4922 caller to free result string.
4923 Remove const from return type.
4924 (make_array_descriptor): Rename uses of place_on_stack to
4925 ensure_lval.
4926 Make sure that arrays are on stack.
4927
4928 (HASH_SIZE): Define.
4929 (struct cache_entry): Define.
4930 (cache_space): Define.
4931 (cache): Define.
4932 (clear_ada_sym_cache): New function.
4933 (find_entry): New function.
4934 (lookup_cached_symbol): New function.
4935 (defn_vector_size): Define.
4936 (cache_symbol): New function.
4937 (defn_symbols): Remove.
4938
4939 (standard_lookup): Use lookup_symbol_in_language to get effect of
4940 C lookup.
4941 Cache results.
4942
4943 (symbol_completion_match): New function.
4944 (symbol_completion_add): New function.
4945 (ada_make_symbol_completion_list): New function.
4946
4947 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4948 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4949 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4950 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4951
4952 (ada_lookup_simple_minsym): New function.
4953 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4954
4955 (add_symbols_from_enclosing_procs): New interface.
4956 Conditionalize more helpfully.
4957 Don't bother if program isn't running.
4958 Use new interface to get_frame_block.
4959 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4960
4961 (remove_extra_symbols): New interface.
4962 (xget_renaming_scope): New function.
4963 (is_package_name): New function.
4964 (renaming_is_visible): New function.
4965 (remove_out_of_scope_renamings): New function.
4966
4967 (ada_lookup_symbol_list): New interface.
4968 Properly reinitialize the symbol list obstack.
4969 Don't call add_symbols_from_enclosing_procs if we start from a
4970 static or global block.
4971 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4972 add_symbols_from_enclosing_procs.
4973 Add symtab data to cached entries.
4974 Handle symbols prefixed with
4975 "standard__" specially; strip prefix and don't look in local symbols.
4976 Do not include out of scope renaming symbols in list of
4977 symbols returned.
4978 Add const to block parameter.
4979 Move check for non-local, non-global symbols earlier.
4980 Remove timing stuff.
4981 (ada_lookup_symbol): New interface.
4982 Find symtab as well.
4983 (ada_lookup_symbol_nonlocal): New function.
4984
4985 (is_name_suffix): Enhance suffix detection to recognize
4986 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4987 (is_dot_digits_suffix): New function.
4988 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4989
4990 (ada_add_block_symbols): New interface. Use obstack to return results
4991 in a vector of struct ada_symbol_infos. Add symtab argument.
4992 Use new interface to add_defn_to_vec.
4993 Remove calls to fill_in_ada_prototype.
4994 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4995
4996 (ada_finish_decode_line_1): Add const qualification to local to fix
4997 warning.
4998 Start looking in static block for functions to avoid attempts
4999 to search frame chain for up-level variables.
5000 Adapt to new ada_sals_for_line interface.
5001 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5002 Handle quoting of the function name inside the spec string.
5003 Skip prologue when funfirstline is set and update the
5004 function documentation to that effect.
5005
5006 (debug_print_lines, debug_print_block, debug_print_blocks,
5007 debug_print_symtab): Remove.
5008
5009 (ada_main_name): New function.
5010 (ada_exception_breakpoint_type): New function.
5011 (is_known_support_routine): New function.
5012 (ada_find_printable_frame): Renamed from find_printable_frame and made
5013 global.
5014 Remove level parameter.
5015 Use new interface to select_frame.
5016
5017 (begin_command): Remove.
5018 (ada_adjust_exception_stop): New function.
5019 (ada_print_exception_stop): New function.
5020 (exception_name_from_cond): New function.
5021 (ada_report_exception_break): Replace disabled code with
5022 conditionalization on GNAT_GDB.
5023 Get the exception name from the condition string.
5024 Remove and move functionality into new functions
5025 ada_print_exception_breakpoint_task and
5026 ada_print_exception_breakpoint_nontask.
5027 (error_breakpoint_runtime_sym_not_found): New function.
5028 (is_runtime_sym_defined): New function.
5029 (ada_breakpoint_rewrite): Uncomment suppressed code.
5030 Use symbolic error-message and runtime-symbol names.
5031 Surround runtime symbol names in quotes.
5032 Allow non-specific breakpoints on exceptions and assertions before
5033 program starts.
5034
5035 (ada_is_tagged_type): Add parameter.
5036 (ada_is_tag_type): New function.
5037 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5038 (ada_variant_discrim_type): Ditto.
5039 (value_tag_from_contents_and_address): New function.
5040 (type_from_tag): New function.
5041 (struct tag_args): New structure used to communicate with
5042 ada_tag_name_1.
5043 (ada_tag_name_1): New function.
5044 (ada_tag_name): New function.
5045
5046 (ada_scan_number): Update comment.
5047 (find_struct_field): New function.
5048 (ada_search_struct_field): Make static.
5049 (ada_value_struct_elt): New version that returns references when
5050 given pointers or references to structs.
5051 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5052 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5053 interface.
5054 (ada_value_ind): Use new ada_to_fixed_value interface.
5055 (ada_coerce_ref): Ditto.
5056 (field_offset): Remove.
5057
5058 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5059 (ada_find_renaming_symbol): New function.
5060 (ada_prefer_type): Prefer named types over unnamed ones.
5061 (variant_field_index): New function.
5062 (contains_variant_part): Removed: subsumed by variant_field_index.
5063 (ada_template_to_fixed_record_type): New function, mostly from
5064 template_to_fixed_record_type.
5065 (template_to_fixed_record_type):
5066 Do not scan the type fields beyond the last one; prevents a
5067 potential SEGV.
5068 Handle case where variant field is listed BEFORE discriminant it
5069 depends on.
5070 Fix calculation of record length when bit length is
5071 not evenly divisible by char length.
5072 Move code to ada_template_to_fixed_record_type and call it.
5073
5074 (template_to_static_fixed_type): Revise comment.
5075 Modify to work on ordinary record types as well as templates,
5076 so as to handle fields that use ___XVE or ___XVU encodings.
5077 (to_record_with_fixed_variant_part): Fill out comment.
5078 Initialize C++ stuff in right type.
5079 Allow case where DVAL is null.
5080 Handle case where variant field is not last.
5081 Fix typo concerning record length.
5082 (to_fixed_record_type): Decomment disabled code.
5083 (to_fixed_record_type): Use variant_field_index instead of
5084 contains_variant_part.
5085 (to_fixed_variant_branch_type): Ditto.
5086 (to_fixed_array_type): Decomment disabled code.
5087 (ada_to_fixed_type): Convert tagged types to the specific type.
5088 Deactivate the size-check for array types in order to avoid
5089 some false size alarms.
5090 (to_static_fixed_type): Decomment disabled code.
5091 Modify to call template_to_static_fixed_type
5092 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5093 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5094 Remove valaddr argument, as it is never really used.
5095 (ada_to_fixed_value): Change interface to act on single struct value*
5096 operand.
5097 (adjust_pc_past_prologue): New function.
5098 (ada_attribute_name): Modify to take enum exp_opcode argument.
5099
5100 (ada_enum_name): Recognize new homonym-distinguishing convention.
5101 Adjust local variable's type to remove compiler warning.
5102 Fix a small problem in the part that unqualifies the enumeration name.
5103 (ada_value_binop): New function.
5104 (ada_value_equal): New function.
5105
5106 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5107 Don't give error message when not doing normal evaluation
5108 and a tagged type doesn't seem to contain a structure member.
5109 Give error message for packed arrays.
5110 For indexing arrays, handle pointers to packed arrays correctly.
5111 Handle case of 'first and 'last attributes of bare integral type
5112 without encoded subtype info.
5113 Remove some unnecessary casts.
5114 Fix uninitialized value of type in computing 'first, 'last, or 'length
5115 of array object.
5116 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5117 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5118 calls.
5119 Attributes are now exp_opcode values.
5120 Correct treatment of 'modulus.
5121 Better error message for taking 'length of wrong kind of type;
5122 improve comment.
5123 Change EVAL_NORMAL to noside for consistency.
5124 Use ada_value_binop for DIV, MOD, REM.
5125 Make special case out of array of length 0, since an argument
5126 of 0 upsets some platforms' malloc.
5127 Use OP_STRING instead of OP_ARRAY.
5128 For slice, add check that we have an array type before extracting
5129 a slice out of it. Avoids a SEGV.
5130 When evaluating an array slice, if the array type is a reference to
5131 an aligner type, then replace the aligner type by the actual type.
5132 Decomment disabled code.
5133 Remove some dead code.
5134 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5135 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5136 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5137 and UNOP_MBR to UNOP_IN_RANGE.
5138 If an array type has a parallel ___XVE type, then use it.
5139 Turn arrays into pointers for lvalue arrays.
5140 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5141 bounds error and handle 0-length slices.
5142 Use lim_warning.
5143 When selecting fields, apply ada_to_fixed_value (because the fields
5144 might have ___XVU or ___XVE encodings even if not dynamic.)
5145 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5146 (ada_is_system_address_type): New function.
5147
5148 (get_var_value): Use new interface to ada_lookup_symbol_list.
5149 (get_int_var_value): New interface.
5150 (to_fixed_range_type): Allow unknown bound, with warning.
5151 (ada_is_modular_type): Decomment disabled code.
5152 (ADA_OPERATORS): New definition.
5153 (ada_operator_length): New function.
5154 (ada_expr_op_name): New function.
5155 (ada_forward_operator_length): New function.
5156 (ada_dump_subexp_body): New function.
5157 (ada_print_subexp): New function.
5158 (ada_exp_descriptor): New constant.
5159 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5160 (ada_language_defn): Add ada_exp_descriptor entry.
5161 Change ada_parse => parse.
5162 Add post-parser entry.
5163 Use ada-specific non-local symbol lookup.
5164 Don't use C-style arrays.
5165 String lower-bound is 1.
5166 Decomment disabled code.
5167 (parse): New function.
5168 New fields ada_translate_error_message, ada_lookup_symbol,
5169 ada_lookup_minimal_symbol.
5170
5171 * ada-lang.h: Update copyright dates.
5172 Replace the mangle/demangle terminology throughout by the
5173 more appropriate encode/decode one.
5174 Include breakpoint.h.
5175 Forward declare struct partial_symbol, struct block.
5176 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5177 (EXTRACT_ADDRESS): Remove.
5178 (EXTRACT_INT): Remove.
5179 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5180 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5181 (MAX_RENAMING_CHAIN_LENGTH): Define.
5182 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5183
5184 (enum task_states): Remove.
5185 ada_task_states: Remove.
5186 (fat_string): Remove.
5187 (struct entry_call): Remove.
5188 (struct task_fields): Remove.
5189 (struct task_entry): Remove.
5190
5191 (struct ada_symbol_info): Define.
5192 (enum ada_attribute): Remove.
5193 (enum ada_operator): Define.
5194
5195 (ada_get_field_index): Declare.
5196 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5197 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5198 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5199 (ada_lookup_symbol_list): New interface.
5200 (ada_decode_symbol): Declare.
5201 (ada_decode): Declare.
5202 (ada_lookup_symbol): New interface.
5203 (ada_update_initial_language): Declare.
5204 (ada_lookup_simple_minsym): Declare.
5205 (user_select_syms): New interface.
5206 (ada_sals_for_line): Declare.
5207 (ada_is_tagged_type): New interface.
5208 (ada_tag_name): Declare.
5209 (ada_lookup_struct_elt_type): Remove declaration.
5210 (ada_search_struct_field): Remove declaration.
5211 (ada_attribute_name): New interface.
5212 (ada_is_system_address_type): Declare.
5213 (ada_to_fixed_value): Remove declaration.
5214 (ada_template_to_fixed_record_type_1): Declare.
5215 (get_int_var_value): New interface.
5216 (ada_find_any_symbol): Declare.
5217 (ada_find_renaming_symbol): Declare.
5218 (ada_mangle): Rename to ada_encode.
5219 (ada_simple_renamed_entity): Remove const.
5220 (ada_main_name): Declare.
5221 (get_current_task): Rename to ada_get_current_task.
5222 (get_entry_number): Remove declaration.
5223 (ada_report_exception_break): Remove declaration.
5224 (ada_print_exception_breakpoint_nontask): Declare.
5225 (ada_print_exception_breakpoint_task): Declare.
5226 (ada_find_printable_frame): Declare.
5227
5228 * ada-lex.l: Update copyright notices.
5229 Use xmalloc and xfree instead of malloc and free.
5230 Use new interface to name_lookup.
5231 Use new interface to
5232 ada_mangle=>ada_encode.
5233 Redo handling of '$...' variable to parallel current treatment
5234 in c-exp.y.
5235 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5236 digit_to_int, strtoulst, processInt, processReal, processId,
5237 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5238 yywrap): Protoize.
5239
5240 (processInt): Use cast to remove harmless warning.
5241 (processReal): Modify to get rid of compiler warning on scan formats.
5242
5243 (processId): Replace xmalloc with obstack_alloc for name and remove
5244 call to ada_name_string_cleanup.
5245 Remove obsolete disabled code.
5246 (name_lookup): Ditto.
5247 New interface.
5248 Use obsavestring on temp_parse_space instead of savestring
5249 on name, and remove call to ada_name_string_cleanup.
5250 Free string returned from ada_simple_renamed_entity.
5251 Use new interface to ada_lookup_symbol_list.
5252 Decomment disabled code.
5253 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5254 not types.
5255 When a type name lookup succeeds as a result of
5256 lookup_primitive_typename, check for regular type entry that has not
5257 yet been read in.
5258 Limit length of chain of renamed symbols we are willing to follow.
5259 Do not break names beginning with "standard__" into segments.
5260 (block_lookup): Use new interface to ada_lookup_symbol_list.
5261
5262 * ada-typeprint.c: Update copyright notice.
5263 (demangled_type_name): Rename to decoded_type_name.
5264 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5265 (print_range_bound): Correct handling of negative
5266 bounds that make the index type looked unsigned under STABS.
5267 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5268 (print_range_type_named): Use the builtin int type if no type
5269 corresponding to the given type name could be found.
5270 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5271 Add some bullet-proofing.
5272 (print_variant_clauses): Allow for variant branches with ___XVU
5273 encodings that are not dynamic fields.
5274 Use new interface to ada_is_tagged_type.
5275 (print_record_type): Allow for fields with ___XVE encodings that
5276 are not dynamic fields.
5277 Use new interface to ada_is_tagged_type.
5278 (ada_print_type): ada_is_array_descriptor =>
5279 ada_is_array_descriptor_type.
5280
5281 * ada-valprint.c: Update copyright notice.
5282 Include gdb_string.h
5283 Include infcall.h
5284 (ui_memcpy): New function.
5285 (ada_print_floating): New function.
5286 (ada_print_str): Order arguments correctly.
5287 Correct handling of empty arrays and arrays of 0-length items.
5288 ada_is_array_descriptor => ada_is_array_descriptor_type
5289 Print values of type System.Address in hexadecimal format.
5290 Use ada_print_floating to print floating-point numbers in Ada format.
5291 Print class tag values with type names.
5292 No longer print the address of reference values. Avoids
5293 a potential confusion.
5294 (ada_value_print): Stop printing the object type for reference
5295 values, but preserve that behavior for access types. Avoids
5296 a potential confusion.
5297 Simplify one conditional expression, as the first part is now
5298 necessarily true.
5299 ada_is_array_descriptor => ada_is_array_descriptor_type
5300 Add check for arrays for null records, and print them by hand.
5301
5302 2004-06-01 Jim Blandy <jimb@redhat.com>
5303
5304 * ppc-tdep.h: Delete unused 'regoff' member.
5305 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5306
5307 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5308
5309 Fix PR symtab/1661.
5310 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5311 (hpread_read_struct_type): Likewise.
5312
5313 2004-06-01 Andrew Cagney <cagney@gnu.org>
5314
5315 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5316 instead of xasprintf.
5317 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5318 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5319 (mi_cmd_data_list_register_names)
5320 (mi_cmd_data_list_changed_registers)
5321 (mi_cmd_data_list_register_values)
5322 (get_register, mi_cmd_data_write_register_values)
5323 (mi_cmd_data_write_register_values)
5324 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5325 (mi_cmd_target_download, mi_cmd_target_select)
5326 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5327 (mi_execute_cli_command, mi_execute_async_cli_command)
5328 (mi_execute_async_cli_command): Ditto.
5329 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5330 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5331
5332 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5333 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5334 error_last_message instead of mi_error_last_message.
5335 * mi/mi-main.c (mi_error_last_message): Delete function.
5336
5337 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5338 "invalid number of columns" error. Delete redundant "out of
5339 memory" check.
5340
5341 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5342
5343 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5344 (gregset_t, fpregset_t): Remove typedefs.
5345 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5346 (REG_OFFSET): Rename argument.
5347 (i386bsd_r_reg_offset): Rename from reg_offset.
5348 (REG_ADDR): Remove macro.
5349 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5350 functions.
5351 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5352 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5353 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5354 instead of supply_gregset.
5355 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5356 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5357 instead of fill_gregset.
5358 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5359
5360 * i386bsd-nat.c: Don't include "gregset.h".
5361 (supply_gregset, fill_gregset): Make static.
5362 (supply_fpregset, fill_fpregset): Remove.
5363 * Makefile.in (i386bsd-nat.o): Update dependencies.
5364
5365 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5366
5367 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5368 "gdb_assert.h". Con't include "gregset.h".
5369 (fbsd_make_corefile_notes): Use regset-based core file support
5370 instead off fill_gregset and fill_fpregset.
5371 * Makefile.in (fbsd-proc.o): Update dependencies.
5372
5373 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5374 instructions.
5375 (m88k_frame_prev_register): Simplify code a bit.
5376
5377 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5378 (amd64_collect_fpregset): New function.
5379 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5380
5381 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5382
5383 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5384 (i386_collect_gregset): New function.
5385 (i386_supply_fpregset): Adjust comment.
5386 (i386_collect_fpregset): New function.
5387 (i386_regset_from_core_section): Use i386_collect_gregset and
5388 i386_collect_fpregset.
5389
5390 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5391 handle VALUEP being null.
5392
5393 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5394
5395 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5396
5397 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5398
5399 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5400 assembler in OpenBSD 3.5-current.
5401 (amd64obsd_sigcontext_addr): Likewise.
5402
5403 2004-05-28 Jim Blandy <jimb@redhat.com>
5404
5405 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5406 register set, so our regcache isn't declared "legacy" and our E500
5407 pseudoregister read and write functions aren't ignored.
5408 (rs6000_register_byte, rs6000_register_raw_size,
5409 rs6000_register_virtual_type, rs6000_register_convertible,
5410 rs6000_register_convert_to_virtual,
5411 rs6000_register_convert_to_raw): Deleted.
5412 (rs6000_register_type, rs6000_convert_register_p,
5413 rs6000_register_to_value, rs6000_value_to_register): New
5414 functions.
5415 (rs6000_gdbarch_init): Don't register
5416 gdbarch_deprecated_register_size,
5417 gdbarch_deprecated_register_bytes,
5418 gdbarch_deprecated_register_byte,
5419 gdbarch_deprecated_register_raw_size,
5420 gdbarch_deprecated_register_virtual_type,
5421 gdbarch_deprecated_register_convertible,
5422 gdbarch_deprecated_register_convert_to_virtual, or
5423 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5424 register gdbarch_register_type, gdbarch_convert_register_p,
5425 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5426
5427 2004-05-26 Jim Blandy <jimb@redhat.com>
5428
5429 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5430 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5431 functions, updated to match the register numberings used in GCC.
5432 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5433 rs6000_dwarf2_reg_to_regnum as register number conversions
5434 functions for STABS and Dwarf2.
5435
5436 2004-05-26 Randolph Chung <tausq@debian.org>
5437
5438 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5439 in header file.
5440
5441 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5442
5443 * NEWS: Document new "start" command.
5444
5445 2004-05-25 Randolph Chung <tausq@debian.org>
5446
5447 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5448 hppa-linux.
5449
5450 2004-05-25 Randolph Chung <tausq@debian.org>
5451
5452 * hppa-hpux-tdep.c (offsetof): Define.
5453 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5454 (hppa32_hpux_frame_base_before_sigtramp)
5455 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5456 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5457 (hppa64_hpux_frame_base_before_sigtramp)
5458 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5459 functions.
5460 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5461 (hppa_hpux_sigtramp_frame_unwind_cache)
5462 (hppa_hpux_sigtramp_frame_this_id)
5463 (hppa_hpux_sigtramp_frame_prev_register)
5464 (hppa_hpux_sigtramp_frame_unwind)
5465 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5466 (hppa_hpux_init_abi): Register sigtramp unwinder.
5467 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5468
5469 2004-05-25 Randolph Chung <tausq@debian.org>
5470
5471 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5472 and multiple stack unwinds.
5473 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5474
5475 2004-05-25 Andrew Cagney <cagney@gnu.org>
5476
5477 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5478 * symfile-mem.h: Delete file.
5479 * symfile-mem.c: Do not include "symfile-mem.h".
5480 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5481 "struct bfd_section". When an error do not bother returning NULL.
5482 (add_symbol_file_from_memory_command): Use "struct bfd" and
5483 "struct bfd_section".
5484 * Makefile.in (symfile_mem_h): Delete.
5485 (symfile-mem.o): Update dependencies.
5486
5487 2004-05-25 Nick Roberts <nickrob@gnu.org>
5488
5489 * gdb-mi.el: New file.
5490
5491 2004-05-25 Andrew Cagney <cagney@gnu.org>
5492
5493 * inftarg.c: Include "observer.h".
5494 (child_attach, child_create_inferior): Notify inferior_created.
5495 * corelow.c: Include "observer.h".
5496 (core_open): Notify inferior_created.
5497 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5498
5499 2004-05-25 Andrew Cagney <cagney@gnu.org>
5500
5501 * target.h (struct target_ops): Add from_tty to
5502 to_create_inferior.
5503 (target_create_inferior, find_default_create_inferior): Update.
5504 * infcmd.c (run_command): Update.
5505 * wince.c (child_create_inferior): Update.
5506 * win32-nat.c (child_create_inferior): Update.
5507 * uw-thread.c (uw_thread_create_inferior): Update.
5508 * thread-db.c (thread_db_create_inferior): Update.
5509 * target.c (debug_to_create_inferior)
5510 (find_default_create_inferior): Update.
5511 (maybe_kill_then_create_inferior): Update.
5512 * sol-thread.c (sol_thread_create_inferior): Update.
5513 * remote.c (extended_remote_async_create_inferior)
5514 (extended_remote_create_inferior): Update.
5515 * remote-vx.c (vx_create_inferior): Update.
5516 * remote-st.c (st2000_create_inferior): Update.
5517 * remote-sim.c (gdbsim_create_inferior): Update.
5518 * remote-sds.c (sds_create_inferior): Update.
5519 * remote-rdp.c (remote_rdp_create_inferior): Update.
5520 * remote-rdi.c (arm_rdi_create_inferior): Update.
5521 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5522 * remote-e7000.c (e7000_create_inferior): Update.
5523 * procfs.c (procfs_create_inferior): Update.
5524 * ocd.c (ocd_create_inferior): Update.
5525 * ocd.h (ocd_create_inferior): Update.
5526 * nto-procfs.c (procfs_create_inferior): Update.
5527 * monitor.c (monitor_create_inferior): Update.
5528 * lin-lwp.c (lin_lwp_create_inferior): Update.
5529 * inftarg.c (child_create_inferior): Update.
5530 * hpux-thread.c (hpux_thread_create_inferior): Update.
5531 * gnu-nat.c (gnu_create_inferior): Update.
5532
5533 2004-05-25 Andrew Cagney <cagney@gnu.com>
5534
5535 * MAINTAINERS: Update e-mail address.
5536
5537 2004-05-24 Randolph Chung <tausq@debian.org>
5538
5539 * thread.c (info_threads_command, thread_apply_all_command)
5540 (thread_apply_command, thread_command, do_captured_thread_select):
5541 Remove HPUXHPPA-specific code.
5542
5543 2004-05-24 Randolph Chung <tausq@debian.org>
5544
5545 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5546 unused symbols.
5547 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5548 references.
5549
5550 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5551
5552 * infcmd.c (kill_if_already_running): New function, extracted
5553 from run_command().
5554 (run_command): Replace extracted code by call to
5555 kill_if_already_running().
5556 (start_command): New function.
5557 (_initialize_infcmd): Add "start" command.
5558
5559 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5560
5561 Add OpenBSD/m88k support.
5562 * NEWS (New native configurations): Mention OpenBSD/m88k.
5563 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5564 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5565 * Makefile.in (m88k_tdep_h): New variable.
5566 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5567 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5568 * configure.host: Add m88*-*-openbsd*.
5569 * configure.tgt: Add m88*-*-openbsd*.
5570
5571 2004-05-24 Jim Blandy <jimb@redhat.com>
5572
5573 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5574 to approve changes.
5575
5576 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5577
5578 * symtab.c (fixup_section): Search section table when lookup by
5579 name fails.
5580
5581 2004-05-24 Randolph Chung <tausq@debian.org>
5582
5583 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5584 be "small_struct".
5585
5586 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5587
5588 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5589 register number in regcache_raw_collect call.
5590 (m68kbsd_collect_fpregset): Likewise.
5591 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5592
5593 * regset.h (struct regset): Add back `regset' member.
5594
5595 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5596
5597 * configure.in: Check for td_pcb in `struct thread'.
5598 * configure, config.in: Regenerated.
5599
5600 * dpx2-nat.c: Remove file.
5601 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5602 (dpx2-nat.o): Remove dependencies.
5603
5604 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5605 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5606 (amd64obsd_supply_pcb): New function.
5607 (_initialize_amd64obsd_nat): Enable libkvm interface.
5608 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5609 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5610 (LOADLIBES): New variable.
5611
5612 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5613 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5614 (sparc32nbsd_supply_pcb): New function.
5615 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5616 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5617 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5618 (LOADLIBES): New variable.
5619
5620 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5621
5622 * bsd-kvm.c, bsd-kvm.h: New files.
5623 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5624 "bsd-kvm.h".
5625 (i386fbsd_supply_pcb): New function.
5626 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5627 (i386fbsd-nat.o): Update dependencies.
5628 (bsd_kvm_h): New variable.
5629 (bsd-kvm.o): New dependency.
5630 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5631 (LOADLIBES): New variable.
5632
5633 * regset.c: Tweak comment.
5634 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5635 macro.
5636 * regset.h: Update copyright year.
5637 (struct regset): Remove `descr' member, add `gdbarch' member.
5638 (regset_alloc): Adjust prototype and comment.
5639 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5640 (i386_supply_fpregset): Likewise.
5641 (i386_regset_from_core_section): Update call to regset_alloc.
5642 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5643 REGSET->arch.
5644 (i386obsd_aout_regset_from_core_section): Update call to
5645 regset_alloc.
5646 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5647 REGSET->arch.
5648 (i386nbsd_aout_regset_from_core_section): Update call to
5649 regset_alloc.
5650 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5651 REGSET->arch.
5652 (amd64_regset_from_core_section): Update call to regset_alloc.
5653 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5654 REGSET->arch.
5655 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5656 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5657 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5658 (sparc32nbsd_init_abi): Update call to regset_alloc.
5659 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5660 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5661 (sparc64obsd_init_abi): Update call to regset_alloc.
5662 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5663 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5664 (sparc64nbsd_init_abi): Update call to regset_alloc.
5665 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5666 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5667 (sparc64fbsd_init_abi): Update call to regset_alloc.
5668
5669 2004-05-22 Jim Blandy <jimb@redhat.com>
5670
5671 * ppc-tdep.h (spe_register_p): New declaration.
5672 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5673 ppc_spefscr_regnum.
5674 * rs6000-tdep.c (spe_register_p): New function.
5675 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5676 spefscr.
5677 (rs6000_gdbarch_init): Initialize the new members of the tdep
5678 structure.
5679
5680 2004-05-21 Jim Blandy <jimb@redhat.com>
5681
5682 * ppc-linux-nat.c (fetch_register): Move code back to be next
5683 to the comment that describes it. (Moved code, instead of
5684 comment, for symmetry with store_register.)
5685
5686 Allocate regset structures in the gdbarch's obstack, not using
5687 xmalloc.
5688 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5689 Add 'arch' argument. Allocate the regset on arch's obstack, not
5690 using xmalloc.
5691 * regset.h (regset_alloc): Update declaration.
5692 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5693 gdbarch argument.
5694 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5695 * i386-tdep.c (i386_regset_from_core_section): Same.
5696 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5697 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5698 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5699 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5700 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5701 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5702
5703 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5704
5705 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5706
5707 2004-05-21 Jim Blandy <jimb@redhat.com>
5708
5709 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5710 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5711
5712 2004-05-20 Jim Blandy <jimb@redhat.com>
5713
5714 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5715
5716 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5717
5718 * regset.h: Make prototype const-correct.
5719 * regset.c (regset_xmalloc): Make const-correct.
5720
5721 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5722
5723 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5724 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5725 (symbol_search_name): Declare.
5726
5727 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5728 (iter_name_next_hashed): Ditto.
5729 (iter_name_next_linear): Ditto.
5730 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5731
5732 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5733 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5734 (symbol_search_name): New function.
5735
5736 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5737
5738 * minsyms.c (build_minimal_symbol_hash_tables): Change
5739 test for adding to demangled hash table to check for difference
5740 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5741
5742 2004-05-19 Jim Blandy <jimb@redhat.com>
5743
5744 Use a constructor function to create regset structures.
5745 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5746 (struct regset): Use supply_regset_ftype. Add new
5747 'collect_regset' member.
5748 (regset_xmalloc): New declaration.
5749 * regset.c: New file.
5750 * am64-tdep.c (amd64_regset_from_core_section): Use
5751 regset_xmalloc to construct regset structures.
5752 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5753 * i386-tdep.c (i386_regset_from_core_section): Same.
5754 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5755 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5756 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5757 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5758 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5759 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5760 * Makefile.in (COMMON_OBS): Add regset.o.
5761 (regset.o): New rule.
5762
5763 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5764
5765 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5766 and pthread_cond_wait.c.
5767
5768 2004-05-18 Jim Blandy <jimb@redhat.com>
5769
5770 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5771 before the mach-specific switch, and then let the individual cases
5772 override the defaults, rather than leaving them uninitialized
5773 until the switch and then setting them in each case.
5774
5775 2004-05-18 Randolph Chung <tausq@debian.org>
5776
5777 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5778 millicode functions.
5779
5780 2004-05-18 Randolph Chung <tausq@debian.org>
5781
5782 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5783 references to dld_flags_buffer consistent.
5784
5785 2004-05-18 Randolph Chung <tausq@debian.org>
5786
5787 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5788 it for unwinding the stack.
5789
5790 2004-05-18 Randolph Chung <tausq@debian.org>
5791
5792 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5793 Undefine these so we can overide them using gdbarch.
5794
5795 2004-05-18 Randolph Chung <tausq@debian.org>
5796
5797 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5798 handling for 64-bit HPUX (elf).
5799
5800 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5801
5802 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5803 constants.
5804 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5805 * ia64-tdep.c (examine_prologue): Likewise.
5806 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5807 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5808
5809 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5810
5811 * vax-tdep.c (vax_return_value): Implement
5812 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5813
5814 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5815
5816 * vax-tdep.c (vax_return_value): Fix typo.
5817
5818 2004-05-17 Andrew Cagney <cagney@redhat.com>
5819
5820 * MAINTAINERS: Mark Salter was also responsible for
5821 testsuite/config/
5822
5823 * NEWS: Mention signal fixes.
5824
5825 2004-05-17 Randolph Chung <tausq@debian.org>
5826
5827 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5828 check to see if we are unwinding an export stub. Export stubs clobber
5829 the %rp in the call path and stores the original rp in a stack slot.
5830
5831 2004-05-17 Jim Blandy <jimb@redhat.com>
5832
5833 * MAINTAINERS: Update address for J.T. Conklin.
5834
5835 2004-05-17 Randolph Chung <tausq@debian.org>
5836
5837 * hppa-tdep.c: Remove superfluous #include's.
5838 * Makefile.in (hppa-tdep.o): Update dependencies.
5839
5840 2004-05-17 Randolph Chung <tausq@debian.org>
5841
5842 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5843 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5844 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5845 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5846 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5847 Remove static function declarations.
5848
5849 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5850
5851 * alphabsd-nat.c: Update copyright year.
5852 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5853
5854 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5855 and M68K_A2_REGNUM.
5856
5857 * m68k-tdep.c (m68k_svr4_return_value): Implement
5858 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5859
5860 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5861
5862 * sol-thread.c Update copyright year. Fix various coding
5863 standards violations. Tweak a few comments.
5864 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5865 Delete prototypes.
5866
5867 2004-05-15 Randolph Chung <tausq@debian.org>
5868
5869 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5870 as pointer instead of array reference since HPUX compiler does
5871 not accept unsized array arguments.
5872 * somsolib.c (dld_flags_buffer): Use constant array size.
5873
5874 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5875
5876 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5877 offset with decimal offset.
5878 (amd64obsd_sigcontext_addr): Return correct address for entire
5879 signal trampoline.
5880
5881 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5882 instead of get_frame_base.
5883
5884 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5885 (fill_gregset): Use regcache_raw_collect.
5886
5887 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5888 ppcobsd-tdep.c.
5889
5890 * config/sparc/tm-nbsd64.h: Remove file.
5891 * config/tm-sunos.h: Remove file.
5892
5893 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5894
5895 * rs6000-tdep.c (store_param_on_stack_p): New function,
5896 an improved version of some code extracted from skip_prologue().
5897 (skip_prologue): Use store_param_on_stack_p() to detect
5898 instructions saving a parameter on the stack. Detect when r0
5899 is used to save a parameter.
5900 Do not mark "li rx, SIMM" instructions as part of the prologue,
5901 unless the following instruction is also part of the prologue.
5902
5903 2004-05-14 Andrew Cagney <cagney@redhat.com>
5904
5905 * infrun.c (handle_inferior_event): Simplify
5906 STEP_OVER_UNDEBUGGABLE.
5907
5908 * infrun.c (handle_step_into_function): Delete function.
5909 (handle_inferior_event): Inline calls to
5910 handle_step_into_function.
5911
5912 2004-05-14 Jerome Guitton <guitton@gnat.com>
5913
5914 * rs6000-nat.c: Fix a comment.
5915
5916 2004-05-12 David Anderson <davea@sgi.com>
5917
5918 Committed by Jim Blandy <jimb@redhat.com>:
5919 * regcache.c (struct regcache_descr): fix comment spelling.
5920
5921 2004-05-13 J. Brobecker <brobecker@gnat.com>
5922
5923 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5924 Fixes a link link failure.
5925
5926 2004-05-13 J. Brobecker <brobecker@gnat.com>
5927
5928 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5929 error that was causing the build to fail.
5930
5931 2004-05-13 J. Brobecker <brobecker@gnat.com>
5932
5933 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5934 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5935
5936 2004-05-13 Andrew Cagney <cagney@redhat.com>
5937
5938 * infrun.c (handle_inferior_event): Check for
5939 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5940 calls. Update comments.
5941
5942 2004-05-13 Jim Blandy <jimb@redhat.com>
5943
5944 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5945 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5946 (store_regs_user_thread, store_regs_kernel_thread): Use
5947 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5948 * ppc-linux-nat.c (fill_gregset): Same.
5949 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5950 (ppc_linux_sigtramp_cache): Same.
5951 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5952 (ppcnbsd_sigtramp_cache_init): Same.
5953 * rs6000-nat.c (fetch_core_registers): Same.
5954 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5955 (rs6000_frame_cache): Same.
5956
5957 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5958 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5959 of assuming that the gprs are numbered starting with zero.
5960 * ppc-linux-nat.c (fill_gregset): Same.
5961 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5962 * ppcnbsd-nat.c (getregs_supplies): Same.
5963 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5964 * rs6000-nat.c (fetch_core_registers): Same.
5965 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5966
5967 2004-05-07 Michael Snyder <msnyder@redhat.com>
5968
5969 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5970 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5971
5972 2004-05-13 Andrew Cagney <cagney@redhat.com>
5973
5974 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5975
5976 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5977
5978 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5979 base_address for shared libraries.
5980
5981 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5982
5983 * MAINTAINERS (write after approval): Add myself.
5984
5985 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5986
5987 * breakpoint.c (bpstat_stop_status): Add new argument
5988 STOPPED_BY_WATCHPOINT. Use it instead of testing
5989 target_stopped_data_address agaist 0 to check whether
5990 or not we stopped due to a hardware watchpoint.
5991 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5992 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5993 with new argument.
5994
5995 2004-05-12 Jim Blandy <jimb@redhat.com>
5996
5997 * configure.in: When checking whether we should use the -bbigtoc
5998 option, don't forget to restore the original value of LDFLAGS.
5999 * configure: Regenerated.
6000
6001 2004-05-12 Andrew Cagney <cagney@redhat.com>
6002
6003 * thread.c (load_infrun_state): Delete step_sp.
6004 * infrun.c (context_switch): Ditto.
6005 * inferior.h (step_sp): Ditto.
6006 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6007 * gdbthread.h (struct thread_info, save_infrun_state)
6008 (restore_infrun_state): Ditto.
6009
6010 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6011
6012 * MAINTAINERS (write after approval): Add myself.
6013
6014 2004-05-12 Andrew Cagney <cagney@redhat.com>
6015
6016 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6017 eliminate reference to step_sp.
6018 (struct execution_control_state, init_execution_control_state)
6019 (handle_inferior_event, keep_going): Delete update_step_sp and
6020 step_sp.
6021 * infcmd.c (step_sp): Note that variable is unused.
6022
6023 2004-05-11 Andrew Cagney <cagney@redhat.com>
6024
6025 * infrun.c (step_over_function): Delete function.
6026 (handle_step_into_function): Use insert_step_resume_breakpoint.
6027 (insert_step_resume_breakpoint): Fix assertion.
6028
6029 2004-05-11 Nick Roberts <nickrob@gnu.org>
6030
6031 * utils.c (defaulted_query): Just use the normal query input type
6032 when printing the annotations.
6033
6034 2004-05-11 Andrew Cagney <cagney@redhat.com>
6035
6036 * infrun.c (handle_inferior_event): Simplify code handling
6037 step-into or return-from a signal trampoline.
6038
6039 2004-05-11 Andrew Cagney <cagney@redhat.com>
6040
6041 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6042 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6043
6044 2004-05-10 Jim Blandy <jimb@redhat.com>
6045
6046 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6047 with a call to internal_error.
6048
6049 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6050 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6051 processor variant lacks those registers.
6052 (ppc_floating_point_unit_p): Change description to make it clear
6053 that this returns info about the ISA, not the ABI.
6054 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6055 return true or false by checking tdep->ppc_fp0_regnum and
6056 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6057 arch/mach switching done in rs6000_gdbarch_init; it's better to
6058 keep that logic there, and just check the results here.
6059 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6060 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6061 floating-point registers.
6062 (ppc_supply_fpregset, ppc_collect_fpregset)
6063 (rs6000_push_dummy_call, rs6000_extract_return_value)
6064 (rs6000_store_return_value): Assert that we have floating-point
6065 registers.
6066 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6067 (rs6000_frame_cache): Don't note the locations at which
6068 floating-point registers were saved if we have no fprs.
6069 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6070 registers.
6071 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6072 (store_regs_user_thread, store_regs_kernel_thread): Only call
6073 supply_fprs / fill_fprs if we actually have floating-point
6074 registers.
6075 (special_register_p): Check ppc_fpscr_regnum before matching
6076 against it.
6077 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6078 supply / collect fpscr if we don't have it.
6079 * ppc-bdm.c: #include "gdb_assert.h".
6080 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6081 have floating-point registers, since I can't test this code on
6082 FP-free systems to adapt it.
6083 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6084 fpscr and floating point register numbers if they don't exist.
6085 (fetch_register): Assert that we have floating-point registers
6086 before we reach the code that handles them.
6087 (store_register): Same. And use tdep instead of calling
6088 gdbarch_tdep again.
6089 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6090 don't have them.
6091 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6092 fprs and fpscr if we don't have them.
6093 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6094 don't have them.
6095 * ppcnbsd-nat.c: #include "gdb_assert.h".
6096 (getfpregs_supplies): Assert that we have floating-point registers.
6097 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6098 * ppcobsd-tdep.c: #include "gdb_assert.h".
6099 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6100 have floating-point registers.
6101 * rs6000-nat.c (regmap): Don't match against the fpscr and
6102 floating point register numbers if they don't exist.
6103 (fetch_inferior_registers, store_inferior_registers,
6104 fetch_core_registers): Only fetch / store / supply the
6105 floating-point registers and the fpscr if we have them.
6106 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6107 (ppcobsd-tdep.o): Update dependencies.
6108
6109 2004-05-10 Andrew Cagney <cagney@redhat.com>
6110
6111 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6112 (context_switch): Do not switch through_sigtramp_breakpoint.
6113 * gdbthread.h (save_infrun_state, load_infrun_state)
6114 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6115 and structure member.
6116 * thread.c (load_infrun_state, save_infrun_state): Update.
6117
6118 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6119
6120 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6121
6122 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6123
6124 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6125 throughout.
6126 * aclocal.m4: Regenerate.
6127
6128 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6129
6130 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6131
6132 2004-05-10 Andrew Cagney <cagney@redhat.com>
6133
6134 * infrun.c (check_sigtramp2): Delete function.
6135 (handle_inferior_event): When single stepping, and taking a
6136 signal, set a breakpoint at the signal return address. Delete
6137 redundant calls to check_sigtramp2.
6138 (insert_step_resume_breakpoint): New function.
6139 (through_sigtramp_breakpoint, handle_inferior_event)
6140 (follow_exec, wait_for_inferior, fetch_inferior_event)
6141 (currently_stepping, keep_going): Delete most uses of
6142 through_sigtramp_breakpoint, not that it should be deleted.
6143 (delete_breakpoint_current_contents): Delete function.
6144
6145 2004-05-10 Randolph Chung <tausq@debian.org>
6146
6147 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6148 target.
6149 * config/pa/tm-linux.h: New file.
6150
6151 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6152
6153 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6154 of prefixes. Don't print the prefix twice in the CLI.
6155
6156 2004-05-10 Jim Blandy <jimb@redhat.com>
6157
6158 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6159 collect all the gprs.
6160
6161 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6162 loop collecting gprs.
6163
6164 2004-05-09 Andrew Cagney <cagney@redhat.com>
6165
6166 * remote-vx.c (net_step): Delete step-range code.
6167 * remote.c (remote_resume, init_all_packet_configs)
6168 (set_remote_protocol_E_packet_cmd)
6169 (show_remote_protocol_E_packet_cmd)
6170 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6171 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6172 (show_remote_protocol_e_packet_cmd): Ditto.
6173
6174 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6175
6176 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6177
6178 * hppa-tdep.h: Update copyright year.
6179 (struct trad_frame_saved_reg): Add opaque declaration.
6180
6181 * amd64-tdep.c (amd64_return_value): Implement
6182 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6183
6184 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6185 (m68k_value_to_register): New functions.
6186 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6187 value_to_register.
6188
6189 * defs.h (enum return_value_convention): Add
6190 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6191 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6192 * infcmd.c (legacy_return_value): New function.
6193 (print_return_value): Rwerite to implement
6194 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6195 * values.c (using_struct_return): Check for inequality to
6196 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6197 RETURN_VALUE_STRUCT_CONVENTION.
6198 * i386-tdep.c (i386_return_value): Implement
6199 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6200
6201 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6202 include "symtab.h", "opcode/vax.h" and "inferior.h".
6203 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6204 to read_memory_unsigned_integer.
6205 (vax_gdbarch_init): Reorder.
6206 (_initialize_vax_tdep): Spell out prototype.
6207 * Makefile.in (vax-tdep.o): Update dependencies.
6208
6209 2004-05-08 Andrew Cagney <cagney@redhat.com>
6210
6211 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6212 * target.c (target_detach, target_disconnect): Ditto.
6213
6214 * infcall.c (call_function_by_hand): When no
6215 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6216 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6217 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6220
6221 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6222 * gdbarch.h, gdbarch.c: Re-generate.
6223 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6224 deprecated_fix_call_dummy.
6225 * v850-tdep.c (v850_gdbarch_init): Ditto.
6226 * infcall.c (call_function_by_hand): Do not call
6227 DEPRECATED_FIX_CALL_DUMMY.
6228
6229 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6230 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6231 * gdbarch.h, gdbarch.c: Re-generate.
6232 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6233 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6234 deprecated_sizeof_call_dummy_words.
6235 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6237 * v850-tdep.c (v850_gdbarch_init): Ditto.
6238 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6239 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6241 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6242 * arch-utils.h (legacy_call_dummy_words)
6243 (legacy_sizeof_call_dummy_words): Delete declarations.
6244 * arch-utils.c (legacy_call_dummy_words)
6245 (legacy_sizeof_call_dummy_words): Delete variables.
6246
6247 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6248 * gdbarch.h, gdbarch.c: Re-generate.
6249 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6250 * infcall.c (call_function_by_hand): Eliminate call to
6251 DEPRECATED_PUSH_DUMMY_FRAME.
6252 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6253 push_dummy_frame.
6254 (ns32k_push_dummy_frame): Delete function.
6255
6256 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6257 deprecated_call_dummy_breakpoint_offset or
6258 deprecated_call_dummy_start_offset.
6259 * dummy-frame.c, arm-tdep.c: Update comments.
6260 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6261 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6262 * gdbarch.h, gdbarch.c: Re-generate.
6263
6264 * infcall.c (legacy_push_dummy_code): Delete function.
6265 (push_dummy_code): Delete call.
6266
6267 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6268 * gdbarch.h, gdbarch.c: Re-generate.
6269 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6270 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6271 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6272 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6273
6274 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6275 (struct frame_info): Delete opaque declaration.
6276 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6277 * frame.c (get_frame_type): Delete call.
6278
6279 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6280 pc_in_call_dummy.
6281 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6282 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6283
6284 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6285
6286 * alphanbsd-tdep.c: Include "gdb_string.h".
6287 * armnbsd-tdep.c: Update copyright year.
6288 Include "gdb_string.h".
6289 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6290 dependencies.
6291
6292 * delta68-nat.c: Remove file.
6293 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6294 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6295 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6296 (delta68-nat.o): Remove dependency.
6297
6298 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6299 function.
6300 (m68k_gdbarch_init): Don't set
6301 deprecated_frameless_function_invocation.
6302
6303 2004-05-07 Randolph Chung <tausq@debian.org>
6304
6305 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6306 read_memory_nobpt for code reading when doing frame unwinding.
6307 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6308
6309 2004-05-07 Randolph Chung <tausq@debian.org>
6310
6311 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6312 instead of sp, handle sigaltstack case.
6313 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6314 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6315 signal handler and not that of the caller.
6316 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6317 hppa_linux_sigtramp_find_sigcontext.
6318
6319 2004-05-07 Randolph Chung <tausq@debian.org>
6320
6321 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6322 hppa-linux-nat.c.
6323 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6324 * hppa-linux-nat.c (fetch_register, store_register): Define.
6325 (fetch_inferior_registers, store_inferior_registers): Define.
6326 (supply_gregset): Add comment and clean up some unneeded code.
6327 (fill_gregset): Add comment and fix so that it saves registers in
6328 the right place in the gregset.
6329 (fill_fpregset): Fix buffer overrun problem.
6330 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6331
6332 2004-05-07 Randolph Chung <tausq@debian.org>
6333
6334 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6335 do common handling of the pcoqt register.
6336 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6337 to use helper function.
6338 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6339 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6340 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6341 generic fallback unwinder when all else fails.
6342 (hppa_gdbarch_init): Add fallback sniffer.
6343 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6344 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6345 to use helper function.
6346
6347 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6348
6349 * config/djgpp/fnchange.lst: Add translation rules for
6350 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6351
6352 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6353
6354 * frame.c (get_prev_frame_1): Work around GCC bug.
6355 * frame.h: Add comment about GCC bug.
6356
6357 2004-05-07 Andrew Cagney <cagney@redhat.com>
6358
6359 * observer.c: Include "commands.h" and "gdbcmd.h".
6360 (observer_debug, _initialize_observer): Add the
6361 command "set/show debug observer".
6362 * observer.sh: When observer debugging, log notify calls.
6363 * Makefile.in (observer.o): Update dependencies.
6364
6365 2004-05-07 Jason Molenda (jmolenda@apple.com)
6366
6367 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6368
6369 2004-05-07 Jim Blandy <jimb@redhat.com>
6370
6371 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6372 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6373 to recognize gpr regnums, instead of assuming that
6374 tdep->ppc_fp0_regnum marks the end of the general-purpose
6375 registers.
6376
6377 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6378 the given architecture has floating-point registers.
6379
6380 2004-05-07 Andrew Cagney <cagney@redhat.com>
6381
6382 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6383 macro defined to 1.
6384 * gdbarch.h, gdbarch.c: Re-generate.
6385 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6386 deprecated_use_generic_dummy_frames.
6387
6388 2004-05-07 Brian Ford <ford@vss.fsi.com>
6389
6390 * NEWS: Mention Cygwin DWARF 2 support.
6391
6392 2004-05-07 Andrew Cagney <cagney@redhat.com>
6393
6394 * objfiles.h (struct entry_info): Delete unused fields
6395 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6396 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6397 * mipsread.c (mipscoff_symfile_read): Update.
6398 * mdebugread.c (parse_partial_symbols): Update.
6399 * dwarfread.c (read_file_scope): Update.
6400 * dwarf2read.c (read_file_scope): Update.
6401 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6402 * coffread.c (complete_symtab): Update.
6403
6404 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6405
6406 * infcall.c (_initialize_infcall): Fix typo.
6407
6408 2004-05-07 Andrew Cagney <cagney@redhat.com>
6409
6410 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6411 * command.h (add_setshow_zinteger_cmd): Declare.
6412
6413 2004-05-06 Randolph Chung <tausq@debian.org>
6414
6415 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6416 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6417 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6418 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6419 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6420 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6421 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6422 definitions ...
6423 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6424 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6425 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6426 (hppa64_hpux_frame_find_saved_regs_in_sig)
6427 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6428 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6429 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6430 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6431 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6432 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6433 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6434 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6435 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6436 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6437 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6438 (hppa32_register_type, hppa_cannot_store_register)
6439 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6440 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6441 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6442 * pa64solib.c (pa64_solib_have_load_event)
6443 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6444 (pa64_solib_unloaded_library_pathname): Likewise.
6445 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6446 (som_solib_library_pathname): Likewise.
6447
6448 2004-05-05 Jim Ingham <jingham@apple.com>
6449
6450 * breakpoint.c (create_breakpoints): Copy the ignore count and
6451 thread id over from the pended breakpoint to the actual
6452 breakpoint.
6453
6454 2004-05-05 Andrew Cagney <cagney@redhat.com>
6455
6456 * gdbarch.sh (PARM_BOUNDARY): Delete.
6457 gdbarch.h, gdbarch.c: Re-generate.
6458 * valops.c (PARM_BOUNDARY): Delete macro.
6459 (value_push): Delete PARM_BOUNDARY code.
6460 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6461
6462 2004-05-04 Jim Blandy <jimb@redhat.com>
6463
6464 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6465 Don't assume that the gprs, fprs, and UISA sprs are
6466 contiguous, start at register number zero, and end with fpscr.
6467 Instead, use the numbers from the tdep structure.
6468
6469 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6470 should no longer be used in code specific to the RS6000 and its
6471 derivatives.
6472 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6473 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6474 tdep->ppc_fp0_regnum.
6475 (ppc_supply_fpregset, ppc_collect_fpregset)
6476 (rs6000_push_dummy_call, rs6000_extract_return_value)
6477 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6478 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6479 FP0_REGNUM.
6480 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6481 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6482 Same.
6483 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6484 bdm_ppc_store_registers): Same.
6485 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6486 (store_register, fill_fpregset): Same.
6487 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6488 (ppc_linux_supply_fpregset): Same.
6489 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6490 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6491 Same.
6492 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6493 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6494 ppc64_sysv_abi_return_value): Same.
6495 * rs6000-nat.c (regmap, fetch_inferior_registers)
6496 (store_inferior_registers, fetch_core_registers): Same.
6497
6498 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6499
6500 * m68knbsd-nat.c: Remove file.
6501 * m68knbsd-tdep.c: Remove file.
6502 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6503 dependencies.
6504 * configure.host: Add m68k-*-netbsdelf*.
6505 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6506 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6507 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6508 (XM_FILE): Remove.
6509 * config/m68k/nbsdelf.mh: New file.
6510 * config/m68k/nbsd.mt: New file.
6511 * config/m68k/nbsdaout.mt: Remove file.
6512 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6513 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6514 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6515 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6516 (use_struct_convention): Remove prototype.
6517 (USE_STRUCT_CONVENTION): Remove define.
6518 * config/m68k/xm-nbsd.h: Remove file.
6519
6520 2004-05-04 Michael Snyder <msnyder@redhat.com>
6521
6522 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6523 reg_struct_return method (as gcc usually does for cross targets).
6524
6525 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6526
6527 Committed by Andrew Cagney.
6528 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6529 alignment padding when accessing ucontext struct members.
6530
6531 2004-05-04 Jim Blandy <jimb@redhat.com>
6532
6533 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6534 'ppc_gplast_regnum' member.
6535 (ppc_num_gprs): New enum constant.
6536 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6537 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6538 * rs6000-nat.c (regmap, fetch_inferior_registers,
6539 store_inferior_registers): Same.
6540 * rs6000-tdep.c (e500_pseudo_register_read)
6541 (e500_pseudo_register_write): Same.
6542 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6543
6544 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6545 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6546 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6547 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6548 FPLAST_REGNUM.
6549 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6550 Same.
6551 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6552 * rs6000-nat.c (regmap, fetch_inferior_registers)
6553 (store_inferior_registers): Same.
6554
6555 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6556 with FPLAST_REGNUM.
6557
6558 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6559
6560 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6561 failure detected by recent versions of GCC.
6562 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6563 to be consistent with the usage in dwarf2_create_include_psymtab.
6564
6565 2004-05-03 Michael Snyder <msnyder@redhat.com>
6566
6567 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6568 (heuristic_proc_start): Whitespace cleanup.
6569
6570 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6571
6572 * sun3-nat.c: Remove file.
6573 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6574 dependencies.
6575 (ALLDEPFILES): Remove sun3-nat.c.
6576 (sun3-nat.o): Remove dependencies.
6577
6578 * i386-interix-nat.c, i386-interix-tdep.c,
6579 config/i386/nm-interix.h, config/i386/interix.mh,
6580 config/i386/interix.mt: Remove files.
6581 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6582 dependencies.
6583
6584 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6585
6586 * m68k-tdep.h (struct gdbarch_tdep): Add member
6587 struct_value_regnum.
6588 (m68k_svr4_init_abi): New prototype.
6589 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6590 different calling conventions.
6591 (m68k_extract_return_value): Remove code dealing with single-field
6592 structs.
6593 (m68k_store_return_value): Remove code dealing with single-field
6594 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6595 (m68k_extract_struct_value_address): Remove function.
6596 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6597 (m68k_reg_struct_return_p, m68k_return_value)
6598 (m68k_svr4_return_value): New functions.
6599 (m68k_use_struct_convention): Remove function.
6600 (m68k_push_dummy_call): Use new struct_value_regnum member of
6601 `struct gdbarch_tdep' instead of hardcoded register number to
6602 store STRUCT_ADDR.
6603 (m68k_svr4_init_abi): New function.
6604 (m68k_gdbarch_init): Don't set extract_return_value,
6605 store_return_values, deprecated_extract_struct_value_address and
6606 use_struct_convention. Set return_value instead. Initialize new
6607 struct_value_regnum member of `struct gdbarch_tdep'.
6608 * m68klinux-tdep.c: Update copyright year.
6609 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6610 (m68k_linux_extract_struct_value_address): Remove function.
6611 (m68k_linux_init_abi): Don't set extract_return_value,
6612 store_return_values, deprecated_extract_struct_value_address and
6613 use_struct_convention. Call m68k_svr4_init_abi but override the
6614 new struct_value_regnum member of `struct gdbarch_tdep'.
6615 * Makefile.in (m68k-tdep.o): Update dependencies.
6616
6617 2004-05-03 J. Brobecker <brobecker@gnat.com>
6618
6619 * dwarf2read.c (line_header): Add new included_p field in
6620 field file_names.
6621 (partial_die_info): New field has_stmt_list. New field line_offset.
6622 (dwarf2_create_include_psymtab): New function.
6623 (dwarf2_build_include_psymtabs): New function.
6624 (add_file_name): Add forward declaration. Initialize new field.
6625 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6626 to be able to determine the list of files included by the
6627 given unit, and build their associated psymtabs.
6628 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6629 files as well.
6630 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6631 (read_file_scope): Update call to dwarf_decode_lines.
6632 (read_partial_die): Handle DW_AT_stmt_list attributes.
6633
6634 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6635
6636 Unfix PR gdb/1626.
6637 * configure.in: Revert special case for osf5.*.
6638 * configure: Regenerate.
6639
6640 2004-05-02 Jim Blandy <jimb@redhat.com>
6641
6642 Move the symbol-file-from-memory functions into their own file.
6643 * symfile-mem.c, symfile-mem.h: New files.
6644 * symfile.c (symbol_file_add_from_bfd): New function.
6645 (symbol_file_add): Call symbol_file_add_from_bfd.
6646 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6647 Moved to symfile-mem.c.
6648 (_initialize_symfile): Move definition of
6649 add-symbol-file-from-memory command to symfile-mem.c.
6650 * symfile.h (symbol_file_add_from_bfd): New declaration.
6651 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6652 * config/powerpc/linux.mt (TDEPFILES): Same.
6653 * Makefile.in (SFILES): Add symfile-mem.c.
6654 (symfile_mem_h): New variable.
6655 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6656 (symfile-mem.o): New rule.
6657
6658 2004-05-01 Andrew Cagney <cagney@redhat.com>
6659
6660 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6661 frame_find_by_id instead of frame_relative_level.
6662 (do_enable_breakpoint): Ditto.
6663 * thread.c: Update copyright.
6664 (info_threads_command): Ditto, simplify.
6665
6666 * frame.c (deprecated_generic_get_saved_register): Delete
6667 function, moved to "xstormy16-tdep.c".
6668 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6669 deprecated_generic_get_saved_register from "frame.c".
6670 (xstormy16_frame_saved_register): Call
6671 xstormy16_get_saved_register.
6672 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6673 static.
6674 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6675 * frame.h (deprecated_generic_get_saved_register): Delete.
6676
6677 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6678
6679 * dwarfread.c: Update documentation on the state of dwarf-1.
6680
6681 2004-05-01 Andrew Cagney <cagney@redhat.com>
6682
6683 * stack.c (select_frame_command): Delete call to
6684 frame_relative_level.
6685 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6686 Delete #if0 code.
6687 (frame_info): Do not print FRAMELESS.
6688 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6689 (catch_info): Delete #if0 code.
6690
6691 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6692 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6693 of frame_relative_level.
6694 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6695 to SENTINEL_FRAME.
6696 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6697 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6698 frame_relative_level.
6699
6700 * frame.h (deprecated_set_frame_type): Delete declaration.
6701 * frame.c (deprecated_set_frame_type): Delete function, update
6702 comments.
6703
6704 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6705 * gdbarch.h, gdbarch.c: Re-generate.
6706 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6707 (shnbsd_pc_in_sigtramp): Delete.
6708 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6709 pc_in_sigtramp.
6710 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6711 pc_in_sigtramp.
6712 * frame.h: Update comments.
6713 * ppc-linux-tdep.c: Update comments.
6714 * breakpoint.c (bpstat_what): Update comments.
6715
6716 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6717 m68klinux-tdep.o's dependencies, were previously added to
6718 m68klinux-nat.o.
6719
6720 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6721 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6722 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6723 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6724 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6725
6726 * Makefile.in (m68klinux-nat.o): Update dependencies.
6727 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6728 (m68k_linux_sigtramp_frame_cache)
6729 (m68k_linux_sigtramp_frame_this_id)
6730 (m68k_linux_sigtramp_frame_prev_register)
6731 (m68k_linux_sigtramp_frame_unwind)
6732 (m68k_linux_sigtramp_frame_sniffer)
6733 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6734 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6735 names, use trad-frame.h.
6736 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6737 (struct m68k_sigtramp_info): Delete.
6738 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6739 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6740 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6741 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6742 "m68klinux-tdep.c".
6743
6744 * infrun.c (check_sigtramp2): Delete check for
6745 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6746
6747 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6748
6749 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6750
6751 2004-05-01 Andrew Cagney <cagney@redhat.com>
6752
6753 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6754 (frv_linux_sigtramp_frame_cache)
6755 (frv_linux_sigtramp_frame_this_id)
6756 (frv_linux_sigtramp_frame_prev_register)
6757 (frv_linux_sigtramp_frame_unwind)
6758 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6759 include "linux" in function and variable names, directly call
6760 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6761 the latest trad-frame code.
6762 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6763 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6764 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6765 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6766 * frv-tdep.c (frv_sigtramp_frame_cache)
6767 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6768 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6769 frv-linux-tdep.c.
6770 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6771 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6772 (frv_set_sigcontext_reg_addr): Delete function.
6773
6774 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6775 (DEPRECATED_SIGTRAMP_END): Delete.
6776 * gdbarch.h, gdbarch.c: Re-generate.
6777 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6778 * config/vax/tm-vaxbsd.h: Update copyright.
6779 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6780 (DEPRECATED_IN_SIGTRAMP): Define.
6781 * config/m68k/tm-nbsd.h: Update copyright.
6782 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6783 (DEPRECATED_IN_SIGTRAMP): Define.
6784
6785 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6786
6787 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6788 encondings. Fixes PR gdb/1628.
6789
6790 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6791 DW_CFA_restore state without a matching DW_CFA_remember_state
6792 instead of aborting. Fixes PR backtrace/1589.
6793
6794 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6795
6796 * MAINTAINERS: Add self as AIX maintainer.
6797 Update my e-mail address in write-after-approval section.
6798
6799 2004-04-30 Andrew Cagney <cagney@redhat.com>
6800
6801 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6802 (legacy_get_prev_frame): Ditto.
6803
6804 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6805 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6806 * mipsread.c (sigtramp_address): Delete extern variable.
6807 (mipscoff_new_init): Delete reference.
6808 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6809 (fixup_sigtramp): Delete function.
6810 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6811 (fixup_sigtramp): Delete declarations.
6812
6813 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6814 deprecated_pc_in_sigtramp.
6815 (ppcnbsd_pc_in_sigtramp): Delete function.
6816
6817 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6818
6819 * config/m68k/nm-nbsd.h: Tweak comments.
6820 * config/m68k/nm-nbsdaout.h: Likewise.
6821
6822 2004-04-30 Andrew Cagney <cagney@redhat.com>
6823
6824 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6825 legacy_pc_in_sigtramp.
6826 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6827
6828 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6829
6830 Add OpenBSD/m68k support.
6831 * NEWS (New native configurations): Mention OpenBSD/m68k.
6832 * m68kbsd-tdep.c: New file.
6833 * m68kbsd-nat.c: New file.
6834 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6835 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6836 * configure.host: Add m68k-*-openbsd.
6837 * configure.tgt: Add m68k-*-openbsd.
6838 * config/m68k/tm-obsd.h: New file.
6839 * config/m68k/obsd.mt: New file.
6840 * config/m68k/obsd.mh: New file.
6841 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6842 m68kbsd-tdep.c.
6843
6844 2004-04-30 Andrew Cagney <cagney@redhat.com>
6845
6846 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6847 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6848
6849 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6850
6851 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6852 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6853
6854 2004-04-30 Brian Ford <ford@vss.fsi.com>
6855
6856 Revert 2004-04-16 change.
6857 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6858 (i386_coff_init_abi): Remove.
6859 * i386-tdep.h (i386_coff_init_abi): Remove.
6860 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6861
6862 2004-04-30 Andrew Cagney <cagney@redhat.com>
6863
6864 * blockframe.c (find_pc_partial_function): Delete use of
6865 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6866 DEPRECATED_SIGTRAMP_END.
6867
6868 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6869 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6870 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6871 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6872 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6873
6874 * defs.h (deprecated_inside_entry_file): Delete declaration.
6875 * blockframe.c (deprecated_inside_entry_file): Delete function.
6876 (legacy_frame_chain_valid): Delete call.
6877 * sh64-tdep.c (sh64_frame_chain): Delete call.
6878 * objfiles.h: Update comments.
6879 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6880 call.
6881 * frame.c (get_prev_frame): Delete call, update comments.
6882
6883 2004-04-30 Brian Ford <ford@vss.fsi.com>
6884
6885 * MAINTAINERS (Write After Approval): Add myself.
6886
6887 2004-04-30 Andrew Cagney <cagney@redhat.com>
6888
6889 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6890 * gdbarch.h, gdbarch.c: Re-generate.
6891 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6892 code.
6893
6894 2004-04-30 Andrew Cagney <cagney@redhat.com>
6895
6896 * gdb-events.sh (selected_thread_changed)
6897 (selected_frame_level_changed, target_changed): Delete.
6898 * gdb-events.h, gdb-events.c: Re-generate.
6899 * valops.c (value_assign): Update.
6900 * stack.c (select_frame_command, up_silently_base)
6901 (down_silently_base): Update.
6902
6903 2004-04-29 Andrew Cagney <cagney@redhat.com>
6904
6905 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6906 registers correctly.
6907 (print_gp_register_row, mips32_heuristic_proc_desc)
6908 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6909 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6910 references to mips_isa_regsize.
6911
6912 2004-04-29 Andrew Cagney <cagney@redhat.com>
6913
6914 * mips-tdep.c (struct gdbarch_tdep): Delete
6915 mips_fp_register_double.
6916 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6917 mips_abi_regsize.
6918 (mips_gdbarch_init): Do not set mips_fp_register_double.
6919 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6920
6921 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6922
6923 Committed by Andrew Cagney.
6924 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6925 function calls.
6926
6927 2004-04-29 Andrew Cagney <cagney@redhat.com>
6928
6929 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6930 gdbarch, use mips_abi, update callers.
6931 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6932 mips_abi_regsize, update callers.
6933 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6934 mips_default_abi_regsize.
6935 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6936 mips_default_abi_regsize.
6937
6938 2004-04-29 Andrew Cagney <cagney@redhat.com>
6939
6940 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6941 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6942 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6943 mips_default_abi_regsize.
6944 (mips_isa_regsize): Rename mips_regisze.
6945 * mipsnbsd-tdep.c: Update.
6946 * mips-linux-tdep.c: Update.
6947 * irix5-nat.c: Update.
6948 * mips-tdep.h (mips_isa_regsize): Update.
6949
6950 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6951 Delete all disabled code.
6952 * gdb-events.h, gdb-events.c: Re-generate.
6953
6954 2004-04-19 Jerome Guitton <guitton@gnat.com>
6955 Mark Kettenis <kettenis@gnu.org>
6956
6957 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6958 the function begins with a branch instruction.
6959
6960 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6961
6962 * i386-tdep.c: Fix spelling mistakes.
6963
6964 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6965 Andrew Cagney <cagney@redhat.com>
6966
6967 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6968 <sys/proc.h>.
6969 * acconfig.h: Provide default _KMEMUSER value.
6970 * config.in, configure: Re-generate.
6971 * NEWS: Mention fix.
6972
6973 2004-04-24 Randolph Chung <tausq@debian.org>
6974
6975 * configure.host (hppa*-*-linux*): New target.
6976 * configure.tgt (hppa*-*-linux*): Likewise.
6977 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6978 gdbarch_init_osabi() call earlier so that osabi-specific frame
6979 unwinders can be registered first.
6980 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6981 hppa-linux-nat.c.
6982 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6983 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6984 * config/pa/linux.mh: New file.
6985 * config/pa/linux.mt: New file.
6986 * config/pa/nm-linux.h: New file.
6987 * config/pa/xm-linux.h: New file.
6988 * hppa-linux-nat.c: New file.
6989 * hppa-linux-tdep.c: New file.
6990
6991 2004-04-28 Randolph Chung <tausq@debian.org>
6992
6993 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6994 return values.
6995 (hppa32_push_dummy_call): Fix small struct and floating point argument
6996 passing, and make sure the stack frame is properly aligned.
6997
6998 2004-04-28 Andrew Cagney <cagney@redhat.com>
6999
7000 * stack.c (print_stack_frame): Fix description.
7001
7002 * NEWS: Mention gdb/gdbserver/configure execute permission
7003 changed. PR server/519.
7004
7005 2004-04-28 Andrew Cagney <cagney@redhat.com>
7006
7007 * stack.c (print_stack_frame_stub): Delete declaration.
7008 (struct print_stack_frame_args, print_stack_frame)
7009 (print_frame_info, print_frame): Replace "source" with print what.
7010 Replace "print" with "print_level". Replace "args" with
7011 "print_args".
7012 * frame.h (show_and_print_stack_frame, print_stack_frame)
7013 (print_frame_info): Update declarations.
7014 * stack.c (select_and_print_frame, frame_command)
7015 (current_frame_command, up_command, down_command): Update calls -
7016 use get_selected_frame, pass "enum print_what" for source, do not
7017 call frame_relative_level.
7018 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7019 * remote-rdp.c (remote_rdp_open): Ditto.
7020 * remote-mips.c (common_open): Ditto.
7021 * remote-e7000.c (e7000_start_remote): Ditto.
7022 * ocd.c (ocd_start_remote): Ditto.
7023 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7024 * infrun.c (normal_stop): Ditto.
7025 * inflow.c (kill_command): Ditto.
7026 * infcmd.c (finish_command): Ditto.
7027 * corelow.c (core_open): Ditto.
7028 * tracepoint.c (finish_tfind_command): Ditto.
7029 * thread.c (info_threads_command, info_threads_command)
7030 (restore_current_thread, do_captured_thread_select): Ditto.
7031 * ada-tasks.c (task_command): Ditto.
7032
7033 2004-04-26 Orjan Friberg <orjanf@axis.com>
7034
7035 * frame.c: Include "observer.h".
7036 (frame_observer_target_changed): New function.
7037 (_initialize_frame): Attach target_changed observer.
7038 * regcache.c: Include "observer.h".
7039 (regcache_observer_target_changed): New function.
7040 (_initialize_regcache): Attach target_changed observer.
7041 * valops.c: Include "observer.h".
7042 (value_assign): Notify target_changed event when modifying register.
7043 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7044
7045 2004-04-26 Orjan Friberg <orjanf@axis.com>
7046
7047 From Paul Koning <pkoning@equallogic.com>:
7048 * breakpoint.c (free_valchain): New function.
7049 (insert_bp_location, delete_breakpoint): Use free_valchain.
7050 (remove_breakpoint): Do not remove the valchain.
7051 (bpstat_stop_status): If not stopped by watchpoint, skip
7052 watchpoints when generating stop status list.
7053 * infrun.c (handle_inferior_event): Make
7054 stepped_after_stopped_by_watchpoint a global variable.
7055 * remote.c (remote_stopped_data_address): Return watch data
7056 address rather than zero if stepped_after_stopped_by_watchpoint is
7057 set.
7058
7059 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7060
7061 Fix PR gdb/1626.
7062 * configure.in: Check for curses after termcap.
7063 On osf5.*, do not check for ncurses.
7064 * configure: Regenerate.
7065
7066 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7067
7068 * ppcobsd-nat.c: Include "ppc-tdep.h".
7069 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7070
7071 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7072 Fixes PR tdep/1623 and PR tdep/1624.
7073
7074 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7075
7076 * xmodem.h, xmodem.c: Remove files.
7077 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7078
7079 2004-04-23 Randolph Chung <tausq@debian.org>
7080
7081 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7082 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7083 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7084 for handling stackless frames.
7085 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7086
7087 2004-04-23 Randolph Chung <tausq@debian.org>
7088
7089 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7090 starts at a pc before the frame is created.
7091
7092 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7093
7094 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7095
7096 2004-04-23 Jerome Guitton <guitton@gnat.com>
7097
7098 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7099 use convert_typed_floating to get the appropriate format.
7100
7101 2004-04-22 Randolph Chung <tausq@debian.org>
7102
7103 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7104 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7105 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7106 (hppa_sign_extend): Add prototype.
7107 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7108 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7109 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7110 hppa targets will also use these functions.
7111 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7112 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7113 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7114 (hppa_gdbarch_init): Remove gdbarch setting of
7115 skip_trampoline_code, in_solib_call_trampoline and
7116 in_solib_return_trampoline.
7117 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7118 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7119 hppa_in_solib_call_trampoline.
7120 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7121 Moved from hppa-tdep.c.
7122 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7123 in_solib_call_trampoline and in_solib_return_trampoline.
7124
7125 2004-04-22 Randolph Chung <tausq@debian.org>
7126
7127 * hppa-tdep.c (hppa_debug): New variable.
7128 (find_unwind_entry, hppa_frame_cache): Add debug output.
7129 (_initialize_hppa_tdep): Add command to set debug flag.
7130
7131 2004-04-22 Andrew Cagney <cagney@redhat.com>
7132
7133 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7134 "trad-frame.h".
7135 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7136 signal trampoline unwinder.
7137 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7138
7139 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7140
7141 Add OpenBSD/powerpc support.
7142 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7143 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7144 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7145 (ppc_collect_fpregset): New prototypes.
7146 * ppcobsd-nat.c: New file.
7147 * ppcobsd-tdep.c: New file.
7148 * ppcobsd-tdep.h: New file.
7149 * rs6000-tdep.c: Include "regset.h".
7150 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7151 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7152 New functions.
7153 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7154 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7155 (rs6000-tdep.o): Update dependencies.
7156 * configure.host: Add powerpc-*-openbsd.
7157 * configure.tgt: Add powerpc-*-openbsd.
7158 * config/powerpc/obsd.mh: New file.
7159 * config/powerpc/nm-obsd.h: New file.
7160 * config/powerpc/obsd.mt: New file.
7161
7162 2004-04-22 Andrew Cagney <cagney@redhat.com>
7163
7164 * frame.h (show_frame_info): Delete declaration.
7165
7166 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7167 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7168 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7169 * frv-tdep.c (frv_frame_this_id): Ditto.
7170 * avr-tdep.c (avr_frame_this_id): Ditto.
7171
7172 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7173
7174 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7175
7176 2004-04-22 Jim Blandy <jimb@redhat.com>
7177
7178 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7179 register number zero.
7180
7181 2004-04-21 Michael Snyder <msnyder@redhat.com>
7182
7183 * mips-tdep.c (heuristic_proc_start):
7184 Warning() already prefixes "Warning: ".
7185
7186 2004-04-21 Andrew Cagney <cagney@redhat.com>
7187
7188 * annotate.h (deprecated_annotate_starting_hook)
7189 (deprecated_annotate_stopped_hook)
7190 (deprecated_annotate_exited_hook)
7191 (deprecated_annotate_signal_hook)
7192 (deprecated_annotate_signalled_hook): Deprecate.
7193 * tracepoint.h (deprecated_create_tracepoint_hook)
7194 (deprecated_delete_tracepoint_hook)
7195 (deprecated_modify_tracepoint_hook)
7196 (deprecated_trace_find_hook)
7197 (deprecated_trace_start_stop_hook): Deprecate.
7198 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7199 * remote.h (deprecated_target_resume_hook)
7200 (deprecated_target_wait_loop_hook): Deprecate.
7201 * gdbcore.h (deprecated_exec_file_display_hook)
7202 (deprecated_file_changed_hook): Deprecate.
7203 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7204 * defs.h (deprecated_modify_breakpoint_hook)
7205 (deprecated_command_loop_hook, deprecated_show_load_progress)
7206 (deprecated_print_frame_info_listing_hook)
7207 (deprecated_query_hook, deprecated_warning_hook)
7208 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7209 (deprecated_delete_breakpoint_hook)
7210 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7211 (deprecated_readline_begin_hook, deprecated_readline_hook)
7212 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7213 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7214 (deprecated_context_hook, deprecated_target_wait_hook)
7215 (deprecated_attach_hook, deprecated_detach_hook)
7216 (deprecated_call_command_hook, deprecated_set_hook)
7217 (deprecated_error_hook, deprecated_error_begin_hook)
7218 (deprecated_ui_load_progress_hook): Deprecate.
7219 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7220 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7221 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7222 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7223 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7224 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7225 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7226 * annotate.c, aix-thread.c: Update.
7227
7228 2004-04-21 Andrew Cagney <cagney@redhat.com>
7229
7230 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7231 * vaxnbsd-tdep.c: Include "gdb_string.h".
7232
7233 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7234 (add_symbol_file_from_memory_command): #if 0 function body, call
7235 error instead.
7236
7237 2004-04-21 Andrew Cagney <cagney@redhat.com>
7238
7239 * gdbcore.h: Update copyright.
7240 (deprecated_add_core_fns): Rename add_core_fns.
7241 * win32-nat.c (_initialize_core_win32): Update.
7242 * sun3-nat.c (_initialize_core_sun3): Update.
7243 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7244 * rs6000-nat.c (_initialize_core_rs6000): Update.
7245 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7246 * nto-tdep.c (_initialize_nto_tdep): Update.
7247 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7248 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7249 * mips-nat.c (_initialize_core_mips): Update.
7250 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7251 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7252 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7253 * lynx-nat.c (_initialize_core_lynx): Update.
7254 * irix5-nat.c (_initialize_core_irix5): Update.
7255 * i386-interix-nat.c (_initialize_core_interix): Update.
7256 * cris-tdep.c (_initialize_cris_tdep): Update.
7257 * corelow.c (deprecated_add_core_fns): Update.
7258 * core-regset.c (_initialize_core_regset): Update.
7259 * core-aout.c (_initialize_core_aout): Update.
7260 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7261 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7262 * alpha-nat.c (_initialize_core_alpha): Update.
7263
7264 2004-04-21 Jim Blandy <jimb@redhat.com>
7265
7266 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7267
7268 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7269
7270 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7271 Delete.
7272 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7273 (read_attribute_value): Update calls to dwarf_alloc_block.
7274 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7275 dwarf2_tmp_obstack.
7276 (psymtab_to_symtab_1): Likewise. Clean up using
7277 free_stack_comp_unit.
7278 (add_to_cu_func_list): Use the comp_unit_obstack.
7279
7280 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7281
7282 * dwarf2read.c (dwarf2_flag_true_p): New function.
7283 (die_is_declaration): Use the function above. Add some comments.
7284
7285 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7286
7287 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7288 architecture when registering sparcnbsd_core_osabi_sniffer.
7289 Adjust comment.
7290
7291 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7292
7293 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7294 return value.
7295
7296 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7297 * i386-tdep.c: Correct register numbering scheme comments
7298 throughout.
7299 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7300 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7301 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7302 (i386_gdb_arch_init): Likewise.
7303
7304 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7305 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7306 ppcnbsd-tdep.o.
7307
7308 * m68k-tdep.h: Tweak comments.
7309 * m68k-tdep.c: Tweak comment.
7310
7311 2004-04-17 Randolph Chung <tausq@debian.org>
7312
7313 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7314 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7315 (hppa_hpux_som_init_abi): Set is_elf to 0.
7316 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7317 * hppa-tdep.c (low_text_segment_address): Remove global.
7318 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7319 section offset to calculate segment address.
7320 (internalize_unwinds): Define low_text_segment_address as local and
7321 pass to record_text_segment_lowaddr for ELF targets.
7322 (hppa_gdbarch_init): Zero fill tdep structure.
7323 (hppa_dump_tdep): Print tdep structure.
7324 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7325
7326 2004-04-17 Randolph Chung <tausq@debian.org>
7327
7328 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7329 (hppa_gdbarch_init): Set pseudo_register_read.
7330 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7331 * regcache.c (supply_register): Remove check for
7332 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7333
7334 2004-04-17 Randolph Chung <tausq@debian.org>
7335
7336 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7337 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7338 (hpread_adjust_stack_address): Move to hpread.c.
7339 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7340 obj_private_struct): Move from tm-hppa.h.
7341 * hpread.c (hppa-tdep.h): Include.
7342 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7343 (hpread_read_function_type, hpread_read_doc_function_type)
7344 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7345 directly.
7346 * pa64solib.c (hppa-tdep.h): Include.
7347 * somsolib.c (hppa-tdep.h): Include.
7348 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7349 inferior_status): Remove unused forward declarations.
7350 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7351 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7352 obj_private_struct): Move to hppa-tdep.h.
7353 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7354
7355 2004-04-17 Randolph Chung <tausq@debian.org>
7356
7357 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7358 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7359 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7360 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7361 Remove forward declaration and make static.
7362 (hppa_reg_struct_has_addr): Remove.
7363
7364 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7365
7366 * observer.sh: Move comments in sed command to first column.
7367
7368 2004-04-16 Jason Molenda (jmolenda@apple.com)
7369
7370 * frame.c: Minor typeo corrections in comments.
7371
7372 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7373
7374 * observer.c (observer_test_first_notification_function): Update
7375 function profile.
7376 (observer_test_second_notification_function): Likewise.
7377 (observer_test_third_notification_function): Likewise.
7378
7379 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7380
7381 From Brian Ford <ford@vss.fsi.com>:
7382 * i386-tdep.c (i386_coff_init_abi): New function.
7383 * i386-tdep.h (i386_coff_init_abi): New prototype.
7384 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7385 register number translation functions for DWARF and DWARF 2.
7386
7387 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7388
7389 * dwarf2read.c: Back out my previous change, it was incorrect.
7390
7391 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7392
7393 * dwarf2read.c: Include "hashtab.h".
7394 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7395 has_namespace_info.
7396 (struct partial_die_info): Add comments. Use bitfields to reduce
7397 memory footprint. Add scope, scope_set, has_specification,
7398 spec_offset, die_parent, die_child, and die_sibling.
7399 (peek_die_abbrev): Add prototype.
7400 (partial_read_comp_unit_head): New function, broken out from
7401 dwarf2_build_psymtabs_hard.
7402 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7403 Use partial_read_comp_unit_head. Initialize the CU and
7404 comp_unit_obstack. Update calls to read_partial_die and
7405 scan_partial_symbols. Use free_stack_comp_unit and
7406 load_partial_dies.
7407 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7408 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7409 Update calls to helper functions. Remove NAMESPACE argument.
7410 Update comments.
7411 (partial_die_parent_scope, partial_die_full_name): New functions.
7412 (add_partial_symbol): Remove namespace argument. Update call to
7413 pdi_needs_namespace. Use partial_die_full_name. Handle
7414 DW_TAG_namespace. Check has_namespace_info flag.
7415 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7416 tag. Handle namespaces.
7417 (add_partial_namespace, add_partial_enumeration): Simplify.
7418 (guess_structure_name): New function, derived from
7419 add_partial_structure.
7420 (add_partial_structure): Remove.
7421 (determine_class_name): Update comment.
7422 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7423 (is_type_tag_for_partial, load_partial_dies): New functions.
7424 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7425 Record specifications instead of following them immediately.
7426 (find_partial_die_in_comp_unit, find_partial_die)
7427 (fixup_partial_die, free_stack_comp_unit)
7428 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7429 (partial_die_hash, partial_die_eq): New functions.
7430 * Makefile.in (hashtab_h): Define.
7431 (dwarf2read.o): Update dependencies.
7432 (observer_inc, observer_h): Move to the correct section.
7433
7434 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7435
7436 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7437 (die_is_declaration): Use the function above. Add comment.
7438
7439 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7440
7441 * dwarf2read.c (read_structure_scope): Identify stub types
7442 using die_is_declaration() only.
7443
7444 2004-04-15 Roland McGrath <roland@redhat.com>
7445
7446 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7447 argument instead of NAME.
7448 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7449 in call to symbol_file_add_with_addrs_or_offsets.
7450 (build_addr_info): New function, helper for ...
7451 (symbol_file_add_from_memory): New function.
7452 (add_symbol_file_from_memory_command): New function using that.
7453 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7454 (pre_add_symbol_hook): Add const to argument type.
7455 * symfile.h (symbol_file_add_from_memory): Declare it.
7456
7457 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7458
7459 * NEWS (New native configurations): Mention OpenBSD/vax.
7460 * configure.host: Add vax-*-openbsd*.
7461 * config/vax/obsd.mh: New file.
7462 * config/vax/nm-obsd.h: New file.
7463
7464 * vax-tdep.c: Include "regset.h".
7465 (vax_supply_gregset): New function.
7466 (vax_gregset): New variable.
7467 (vax_regset_from_core_section): New function.
7468 (vax_gdbarch_init): Set regset_from_core_section.
7469 * Makefile.in (vax-tdep.o): Update dependencies.
7470
7471 2004-04-15 Andrew Cagney <cagney@redhat.com>
7472
7473 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7474 (observer_normal_stop_notification_stub)
7475 (observer_attach_normal_stop, observer_detach_normal_stop):
7476 Delete, replaced by #include "observer.inc".
7477 * infrun.c (normal_stop): Pass "stop_bpstat" to
7478 observer_notify_normal_stop.
7479 * Makefile.in (observer_inc): Define.
7480 (observer.o): Update dependencies.
7481 (observer.h, observer.inc): New rules.
7482 * observer.h: Delete file.
7483 * observer.sh: New file.
7484
7485 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7486
7487 * vax-tdep.c (vax_frame_cache): Fix typo.
7488
7489 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7490
7491 * NEWS (New native configurations): Mention NetBSD/vax.
7492 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7493 * config/vax/nbsdelf.mh: New file.
7494 * config/vax/nbsdaout.mh: New file.
7495 * config/vax/nm-nbsd.h: New file.
7496 * config/vax/nm-nbsdaout.h: New file.
7497
7498 * vaxnbsd-tdep.c: New file.
7499 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7500 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7501 * config/vax/nbsd.mt: New file.
7502 * config/vax/tm-nbsd.h: New file.
7503
7504 * Makefile.in (vaxbsd-nat.o): New dependency.
7505
7506 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7507 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7508 struct_addr arguments. Don't push return value address.
7509 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7510 arguments to vax_store_arguments. Store return value address in
7511 R1.
7512 (vax_store_struct_return, vax_extract_return_value)
7513 (vax_store_return_value): Remove functions.
7514 (vax_return_value): New function.
7515 (vax_gdbarch_init): Set return value. Don't set
7516 deprecated_store_struct_return, deprecated_extract_struct_return
7517 and deprecated_store_return_value.
7518
7519 2004-04-14 Andreas Schwab <schwab@suse.de>
7520
7521 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7522 value buffer.
7523 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7524
7525 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7526
7527 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7528 (vax_unwind_dummy_id): New functions.
7529 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7530 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7531 variables.
7532 (vax_fix_call_dummy): Remove function.
7533 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7534 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7535 call_dummy_location, deprecated_call_dummy_words,
7536 deprecated_sizeof_call_dummy_words,
7537 deprecated_call_dummy_breakpoint_offset,
7538 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7539 and deprecated_dummy_write_sp.
7540
7541 2004-04-13 David Carlton <carlton@kealia.com>
7542
7543 * MAINTAINERS: Move myself to "paper trail" section.
7544
7545 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7546
7547 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7548 "trad-frame.h".
7549 (vax_frame_init_saved_regs): Remove function.
7550 (vax_sigtramp_saved_pc): Remove function.
7551 (vax_frame_saved_pc): Remove function.
7552 (vax_frame_args_address): Remove function.
7553 (vax_frame_num_args): Rewrite.
7554 (vax_frame_chain): Remove function.
7555 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7556 VAX_FP_REGNUM.
7557 (vax_pop_frame): Likewise.
7558 (vax_saved_pc_after_call): Remove function.
7559 (struct vax_frame_cache): New structure.
7560 (vax_frame_cache): New function.
7561 (vax_frame_this_id): New function.
7562 (vax_frame_prev_register): New function.
7563 (vax_frame_unwind): New variable.
7564 (vax_frame_sniffer): New function.
7565 (vax_frame_base_address): New function.
7566 (vax_frame_args_address): New function.
7567 (vax_frame_base): New variable.
7568 (vax_unwind_pc): New function.
7569 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7570 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7571 deprecated_frame_chain, deprecated_frame_saved_pc,
7572 deprecated_frame_args_address and
7573 deprecated_frame_init_saved_regs.
7574 * Makefile.in (vax-tdep.o): Update dependencies.
7575
7576 * vaxbsd-nat.c: New file.
7577
7578 * vax-tdep.h: Update copyright year. Adjust comments.
7579 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7580 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7581 (vax_regnum): New enum. Replacing...
7582 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7583 (VAX_PS_REGNUM): ... these removed macros.
7584 * vax-tdep.c (vax_register_name): Remove prototype.
7585 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7586 (vax_register_byte, vax_register_raw_size,
7587 vax_register_virtual_size, vax_register_virtual_type): Remove
7588 functions.
7589 (vax_register_type): New function.
7590 (vax_breakpoint_from_pc): Reorganize.
7591 (vax_gdbarch_init): Set register_type. Don't set
7592 deprecated_register_size, deprecated_register_bytes,
7593 deprecated_register_byte, deprecated_register_raw_size,
7594 deprecated_max_register_raw_size,
7595 deprecated_register_virtual_size,
7596 deprecated_max_register_virtual_size and
7597 deprecated_register_virtual_type. Add comment on stack direction.
7598
7599 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7600
7601 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7602 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7603 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7604
7605 2004-04-10 Randolph Chung <tausq@debian.org>
7606
7607 * MAINTAINERS (write after approval): Add myself.
7608
7609 2004-04-07 Randolph Chung <tausq@debian.org>
7610
7611 * hppa-tdep.c (hppa_inner_than): Remove.
7612 (is_pa_2): Remove unused static variable.
7613 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7614
7615 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7616
7617 * language.h (language_defn): Add new la_post_parser field.
7618 * parser-defs.h (null_post_parser): New declaration (default for
7619 la_post_parser).
7620
7621 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7622 insert call to that function.
7623 (parse_exp_in_context): New function, including code formerly in
7624 parse_exp_1. Calls language-dependent post-parser after
7625 prefixification.
7626 (parse_expression_in_context): New exported function.
7627 (null_post_parser): New definition.
7628 * expression.h (parse_expression_in_context): Add declaration.
7629
7630 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7631 * c-lang.c (c_language_defn): Ditto.
7632 (cplus_language_defn): Ditto.
7633 (asm_language_defn): Ditto.
7634 (minimal_language_defn): Ditto.
7635 * f-lang.c (f_language_defn): Ditto.
7636 * jv-lang.c (java_language_defn): Ditto.
7637 * language.c (unknown_language_defn): Ditto.
7638 (auto_language_defn): Ditto.
7639 (local_language_defn): Ditto.
7640 * m2-lang.c (m2_language_defn): Ditto.
7641 * scm-lang.c (scm_language_defn): Ditto.
7642 * obj-lang.c (objc_language_defn): Ditto.
7643
7644 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7645
7646 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7647 (amd64nbsd_mcontext_addr): New function.
7648 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7649 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7650 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7651
7652 * corelow.c (core_xfer_partial): Fix coding standards violation.
7653 Add support for TARGET_OBJECT_WCOOKIE.
7654
7655 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7656 deprecated_pc_in_sigtramp.
7657 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7658 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7659 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7660 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7661 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7662 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7663 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7664
7665 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7666 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7667 Fix typo.
7668
7669 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7670 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7671 (amd64_collect_fxsave): Likewise.
7672
7673 * i386-sol2-tdep.c: Include "gdb_string.h".
7674 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7675 name.
7676 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7677
7678 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7679
7680 * i386-sol2-tdep.c: Include "solib-svr4.h".
7681 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7682 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7683 * config/i386/tm-i386sol2.h: Include :solib.h".
7684 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7685 solib-svr4.o and solib-legacy.o.
7686 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7687 solib-svr4.o.
7688
7689 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7690
7691 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7692 whether a register is supplied by PTRACE_GETFPREGS.
7693 (store_inferior_registers): Likewise.
7694 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7695 whether a register is supplied by PT_GETFPREGS.
7696 (store_inferior_registers): Likewise.
7697
7698 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7699 * config/i386/linux64.mt (TDEPFILES): Likewise.
7700
7701 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7702
7703 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7704 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7705 the program counter is in the range specified by `struct
7706 gdbarch_tdep'.
7707 * amd64-linux-tdep.c: Include "symtab.h".
7708 (amd64_linux_pc_in_sigtramp): Remove function.
7709 (amd64_linux_sigtramp_p): New function.
7710 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7711 deprecated_pc_in_sigtramp.
7712 * amd64nbsd-tdep.c: Include "symtab.h".
7713 (amd64nbsd_sigtramp_p): New function.
7714 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7715 deprecated_pc_in_sigtramp.
7716 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7717 few comments.
7718 (amd64obsd_pc_in_sigtramp): Remove function.
7719 (amd64obsd_sigtramp_p): New function.
7720 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7721 deprecated_pc_in_sigtramp.
7722 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7723 (i386bsd_pc_ins_sigtramp): Remove prototype.
7724 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7725 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7726 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7727 the program counter is in the range specified by `struct
7728 gdbarch_tdep'.
7729 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7730 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7731 (i386_go32_pc_in_sigtramp): Remove function.
7732 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7733 Initialize TDEP->sigtramp_p.
7734 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7735 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7736 deprecated_pc_in_sigtramp.
7737 * i386-linux-tdep.c: Adjust comments.
7738 (i386_linux_pc_in_sigtramp): Remove function.
7739 (i386_linux_sigtramp_p): New function.
7740 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7741 deprecated_pc_in_sigtramp.
7742 * i386-nto-tdep.c: Update copyright year.
7743 (i386nto_pc_in_sigtramp): Remove function.
7744 (i386nto_sigtramp_p): New function.
7745 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7746 SP_REGNUM.
7747 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7748 deprecated_pc_in_sigtramp.
7749 * i386-sol2-tdep.c: Update copyright year.
7750 (i386_sol2_pc_in_sigtramp): Remove function.
7751 (i386_sol2_sigtramp_p): New function.
7752 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7753 deprecated_pc_in_sigtramp.
7754 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7755 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7756 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7757 deprecated_sigtramp_start and deprecated_sigtramp_end.
7758 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7759 (i386nbsd_pc_in_sigtramp): Remove function.
7760 (i386nbsd_sigtramp_p): New function.
7761 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7762 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7763 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7764 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7765 (i386obsd_pc_in_sigtramp): Remove function.
7766 (i386obsd_sigtramp_p): New function.
7767 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7768 functions.
7769 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7770 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7771 TDEP->sigtramp_p.
7772 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7773 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7774 dependencies.
7775
7776 * config/i386/i386aout.mt: Remove file.
7777
7778 * configure.tgt: Remove i[34567]86-*-go32*,
7779 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7780 and i[34567]86-*-isc*. Set gdb_target to i386 for
7781 i[34567]86-*-netware* and i[34567]86-*-*.
7782 * config/i386/i386.mt: New file.
7783 * config/i386/embed.mt: Remove file.
7784 * config/i386/go32.mt: Remove file.
7785 * config/i386/i386nw.mt: Remove file.
7786 * config/i386/i386v.mt: Remove file.
7787 * config/i386/tm-go32.h: Remove file.
7788
7789 * tui/tui-hooks.c: Include "readline/readline.h" after
7790 "gdb_curses.h" instead of before.
7791 * tui/tui-io.c: Likewise.
7792
7793 * tui/tui.c: Fix typo in comment.
7794
7795 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7796
7797 2004-04-08 Andrew Cagney <cagney@redhat.com>
7798
7799 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7800 (deprecated_exception_support_initialized): Declare.
7801 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7802 (initialize_hp_cxx_exception_support)
7803 (child_enable_exception_callback): Update.
7804 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7805 (deprecated_exception_support_initialized): Rename
7806 deprecated_exception_catchpoints_are_fragile and
7807 deprecated_exception_support_initialized.
7808 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7809
7810 * symtab.c (deprecated_hp_som_som_object_present): Rename
7811 hp_som_som_object_present.
7812 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7813 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7814 Update. Delete extern declaration.
7815 * valops.c (hp_som_som_object_present): Ditto.
7816 * parse.c (deprecated_hp_som_som_object_present)
7817 (parse_nested_classes_for_hpacc): Ditto.
7818 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7819 * hppa-hpux-tdep.c (hp_som_som_object_present)
7820 (initialize_hp_cxx_exception_support): Ditto.
7821 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7822 * cp-valprint.c (hp_som_som_object_present)
7823 (cp_print_class_method): Ditto.
7824 * c-typeprint.c (hp_som_som_object_present):
7825 (c_type_print_base): Ditto.
7826 * c-exp.y (hp_som_som_object_present): Ditto.
7827
7828 2004-04-08 Andrew Cagney <cagney@redhat.com>
7829
7830 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7831 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7832 (frame_unwind_find_by_frame): Re-implement the unwind code so
7833 that it can both prepend and append sniffers. Replace
7834 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7835 * tramp-frame.c (tramp_frame_append): Use
7836 frame_unwind_prepend_unwinder.
7837 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7838 frame_unwind_register_unwinder.
7839 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7840 tramp_frame_append.
7841 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7842 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7843 (mips_linux_init_abi): Update.
7844
7845 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7846
7847 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7848 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7849 file support.
7850
7851 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7852
7853 * ia64-tdep.c (elf.h): Don't include.
7854 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7855
7856 2004-04-07 Jason Molenda (jmolenda@apple.com)
7857
7858 * frame.h: Typeo corrections in comments.
7859
7860 2004-04-07 Jim Blandy <jimb@redhat.com>
7861
7862 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7863 %esp and %ebp
7864
7865 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7866
7867 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7868 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7869 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7870 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7871 and solib-legacy.o.
7872 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7873 solib-svr4.o.
7874 * config/sparc/tm-sol2.h: Update copyright year. Include
7875 "solib.h".
7876
7877 * sparc-sol2-tdep.c: Update copyright year. Include
7878 "solib-svr4.h".
7879 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7880 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7881 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7882 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7883 dependencies.
7884
7885 2004-04-06 Andrew Cagney <cagney@redhat.com>
7886
7887 * infttrace.c: Include "infttrace.h".
7888 * infttrace.h: Include "target.h".
7889 * Makefile.in (infttrace_h): Update.
7890 (infttrace.o): Update.
7891
7892 2004-04-06 Andrew Cagney <cagney@redhat.com>
7893
7894 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7895 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7896 move extern declarations from here ...
7897 * infttrace.h: ... to here.
7898 * Makefile.in (hppah-nat.o): Update dependencies.
7899
7900 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7901 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7902 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7903 (hppa_breakpoint_from_pc): Delete.
7904
7905 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7906
7907 2004-04-05 Andrew Cagney <cagney@redhat.com>
7908
7909 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7910 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7911 <sys/file.h>.
7912
7913 2004-04-06 Randolph Chung <tausq@debian.org>
7914
7915 Committed by Andrew Cagney (mechanical change).
7916 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7917 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7918 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7919 child_enable_exception_callback, current_ex_event,
7920 null_symtab_and_line, child_get_current_exception_event,
7921 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7922 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7923 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7924 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7925 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7926 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7927 Move hpux-specific definitions ...
7928 * hppa-hpux-tdep.c: ... to here.
7929
7930 2004-04-05 Andrew Cagney <cagney@redhat.com>
7931
7932 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7933 skip_prologue_using_sal.
7934
7935 2004-04-05 Andrew Cagney <cagney@redhat.com>
7936
7937 * config/i386/tm-i386.h: Delete file.
7938 * config/i386/tm-vxworks.h: Update copyright, do not include
7939 "tm-i386.h".
7940 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7941 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7942 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7943 * config/i386/ncr3000.mt (TM_FILE): Delete.
7944 * config/i386/interix.mt (TM_FILE): Delete.
7945 * config/i386/i386v.mt (TM_FILE): Delete.
7946 * config/i386/i386nw.mt (TM_FILE): Delete.
7947 * config/i386/i386gnu.mt (TM_FILE): Delete.
7948 * config/i386/i386aout.mt (TM_FILE): Delete.
7949 * config/i386/embed.mt (TM_FILE): Delete.
7950
7951 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7952
7953 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7954 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7955 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7956 (accg7_regnum): New constants.
7957 (last_spr_regnum, last_pseudo_regnum): Update.
7958 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7959 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7960 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7961 for accg registers.
7962 (frv_register_sim_regno): Update spr_map[].
7963
7964 2004-04-04 Andrew Cagney <cagney@redhat.com>
7965
7966 * config/mips/xm-riscos.h: Delete.
7967 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7968 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7969 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7970 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7971 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7972 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7973 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7974 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7975 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7976 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7977 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7978 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7979 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7980 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7981 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7982 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7983 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7984 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7985 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7986 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7987 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7988 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7989 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7990 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7991 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7992 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7993
7994 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7995 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7996 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7997 * configure.host: Remove m680[01]0-sun-sunos3*,
7998 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7999 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8000 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8001 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8002 mips-*-riscos*.
8003 * NEWS: Mention removed systems.
8004
8005 2004-04-04 Andrew Cagney <cagney@redhat.com>
8006
8007 GDB 6.1 release created from 6.1 branch.
8008
8009 2004-04-04 Andrew Cagney <cagney@redhat.com>
8010
8011 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8012 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8013 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8014
8015 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8016 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8017 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8018
8019 2004-04-03 Jim Blandy <jimb@redhat.com>
8020
8021 * MAINTAINERS: Chris Faylor has changed employers; add him to
8022 "paper trail" section, and update his E-mail address.
8023
8024 2004-04-03 Andrew Cagney <cagney@redhat.com>
8025
8026 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8027 generic dummy frames.
8028 * dummy-frame.c: Update copyright.
8029 (dummy_frame_sniffer): Delete check for generic dummy frames.
8030
8031 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8032 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8033 (REG_PARM_STACK_SPACE): Delete.
8034 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8035 Inline reference to REG_PARM_STACK_SPACE.
8036
8037 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8038 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8039 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8040 (FRAME_BASE_BEFORE_SIGTRAMP)
8041 (hppa32_hpux_frame_base_before_sigtramp)
8042 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8043 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8044 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8045 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8046 (FRAME_BASE_BEFORE_SIGTRAMP)
8047 (hppa64_hpux_frame_base_before_sigtramp)
8048 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8049
8050 2004-04-03 Andrew Cagney <cagney@redhat.com>
8051
8052 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8053
8054 2004-04-02 Andrew Cagney <cagney@redhat.com>
8055
8056 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8057 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8058 * dummy-frame.h: Delete out-of-date comments.
8059 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8060 * gdbarch.h, gdbarch.c: Re-generate.
8061
8062 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8063
8064 Committed by Andrew Cagney <cagney@redhat.com>.
8065 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8066 into account an instruction saving a register if we have already
8067 seen an earlier instruction saving that same register.
8068
8069 2004-04-02 Andrew Cagney <cagney@redhat.com>
8070
8071 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8072 * gdbarch.h, gdbarch.c: Re-generate.
8073 * frame.c (legacy_get_prev_frame): Delete references to
8074 DEPRECATED_INIT_FRAME_PC_FIRST.
8075
8076 * infrun.c (pc_in_sigtramp): Delete function.
8077 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8078 get_frame_type.
8079
8080 2004-04-02 Andrew Cagney <cagney@redhat.com>
8081
8082 * infrun.c (handle_step_into_function): Delete code conditional on
8083 legacy_frame_p.
8084 (handle_inferior_event, step_over_function): Ditto.
8085
8086 2004-04-02 Andrew Cagney <cagney@redhat.com>
8087
8088 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8089 "previous frame inner to this frame" test.
8090
8091 2004-04-02 Andrew Cagney <cagney@redhat.com>
8092
8093 * frame.c (safe_frame_unwind_memory): New function.
8094 * frame.h (safe_frame_unwind_memory): Declare. Update description
8095 of /safe_/ methods.
8096 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8097 "next_frame". Use safe_frame_unwind_memory.
8098 (tramp_frame_sniffer): Update call to tramp_frame_start.
8099
8100 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8101
8102 * dwarf2read.c (dwarf2_objfile_data_key): New.
8103 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8104 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8105 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8106 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8107 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8108 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8109 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8110 Remove variables.
8111 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8112 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8113 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8114 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8115 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8116 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8117 Remove macros.
8118 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8119 data.
8120 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8121 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8122 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8123 (read_partial_die, read_full_die, read_indirect_string)
8124 (dwarf_decode_line_header, dwarf_decode_macros)
8125 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8126 Update uses of removed variables.
8127 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8128 of removed macros.
8129 (_initialize_dwarf2_read): New function.
8130 * symfile.h (dwarf2_has_info): Update prototype.
8131 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8132 * elfread.c (elf_symfile_read): Likewise.
8133
8134 2004-04-01 Jim Blandy <jimb@redhat.com>
8135
8136 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8137 function for register numbers on all the rs6000-derived targets.
8138 (rs6000_gdbarch_init): Don't register a separate
8139 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8140 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8141 variants.
8142
8143 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8144 numbering.
8145
8146 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8147
8148 * valarith.c: Update copyright notice.
8149 (value_add): Handle range types.
8150 (value_sub): Ditto.
8151 (value_equal): Ditto.
8152 (value_less): Ditto.
8153 (value_neg): Ditto.
8154 (value_complement): Ditto.
8155 (value_binop): Simplify slightly by using is_integral_type and
8156 eliminiating unnecessary COERCE_ENUMs.
8157
8158 2004-03-31 Andrew Cagney <cagney@redhat.com>
8159
8160 * frame.h (frame_unwind_id): Declare.
8161 * frame.c (frame_unwind_id): New function.
8162 (get_prev_frame_1): New function.
8163 (frame_debug_got_null_frame): New function.
8164 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8165 code proper to prev_frame, update description.
8166 * infrun.c (step_over_function): Use frame_unwind_id.
8167
8168 2004-04-31 J. Brobecker <brobecker@gnat.com>
8169
8170 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8171 (hppa64_push_dummy_call): Likewise.
8172
8173 2004-03-30 Jim Blandy <jimb@redhat.com>
8174
8175 From Ulrich Weigand:
8176 * utils.c (query): Do not use a va_list variable multiple times.
8177
8178 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8179
8180 * Makefile.in (linux_nat_h): Update dependencies.
8181 * configure.in: Check for <gnu/libc-version.h>.
8182 * configure: Regenerate.
8183 * config.in: Regenerate.
8184 * linux-nat.h: Include "target.h". Add waitstatus field to
8185 struct lwp_info.
8186 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8187 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8188 to.
8189 (lin_lwp_handle_extended): New function. Handle clone events.
8190 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8191 thread exit events.
8192 (child_wait): Handle clone events.
8193 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8194 * linux-nat.c (linux_enable_event_reporting): Turn on
8195 PTRACE_O_TRACECLONE.
8196 (linux_handle_extended_wait): Handle clone events.
8197 * thread-db.c: Include <gnu/libc-version.h>.
8198 (struct private_thread_info): Add dying flag.
8199 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8200 higher.
8201 (attach_thread): Update comments. Handle dying threads.
8202 (detach_thread): Set the dying flag.
8203 (check_event): Always call attach_thread.
8204
8205 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8206
8207 * mips-tdep.c (mips_pdr_data): New.
8208 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8209 (_initialize_mips_tdep): Initialize mips_pdr_data.
8210
8211 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8212
8213 * minsyms.c (install_minimal_symbols): Move dropping leading
8214 char from linkage name from here...
8215 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8216 test for "__gnu_compiled*" symbols.
8217
8218 2004-03-28 Jim Blandy <jimb@redhat.com>
8219
8220 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8221 registers to temp register r0 and byte stores as prologue
8222 instructions.
8223
8224 2004-03-28 Andrew Cagney <cagney@redhat.com>
8225
8226 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8227 arm*-*-*.
8228
8229 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8230
8231 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8232 and switch the layout to force a display of register window.
8233
8234 2004-02-26 J. Brobecker <brobecker@gnat.com>
8235
8236 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8237 of the INTEGER class.
8238
8239 2004-03-26 Jim Blandy <jimb@redhat.com>
8240
8241 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8242 bytes long on PPC GNU/Linux.
8243
8244 2004-03-26 David Carlton <carlton@kealia.com>
8245
8246 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8247
8248 2004-03-25 Andrew Cagney <cagney@redhat.com>
8249
8250 * PROBLEMS: Add general section titles, remove references to
8251 specific releases.
8252
8253 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8254
8255 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8256 INT_REGISTER_SIZE.
8257 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8258 FP_REGISTER_VIRTUAL_SIZE.
8259 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8260 of DEPRECATED_REGISTER_RAW_SIZE.
8261 (arm_register_type): Add gdbarch argument.
8262 (arm_register_raw_size, arm_register_virtual_size): Delete.
8263 (arm_register_byte, arm_extract_return_value)
8264 (arm_store_return_value, arm_get_longjmp_target): Update references
8265 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8266 (arm_gdbarch_init): Likewise. Don't set
8267 deprecated_register_raw_size, deprecated_register_virtual_size,
8268 deprecated_max_register_raw_size,
8269 deprecated_max_register_virtual_size, or
8270 deprecated_max_register_virtual_type. Do set register_type.
8271 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8272 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8273 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8274 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8275 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8276 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8277 INT_REGISTER_SIZE.
8278 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8279 (remote_rdp_store_register): Likewise.
8280
8281 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8282
8283 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8284 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8285 to after osabi initialization.
8286 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8287 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8288 functions.
8289 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8290 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8291 variables.
8292 (mips_linux_init_abi): Append signal trampoline unwinders.
8293
8294 2004-03-24 Andrew Cagney <cagney@redhat.com>
8295
8296 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8297 * tramp-frame.c: Include "gdb_assert.h".
8298 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8299 correct sizeof.
8300 (tramp_frame_append): Validate the tramp frame's instructions.
8301 * Makefile.in (tramp-frame.o): Update dependencies.
8302
8303 2004-03-23 Andrew Cagney <cagney@redhat.com>
8304
8305 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8306
8307 2004-03-23 Andrew Cagney <cagney@redhat.com>
8308
8309 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8310 Nasser as past testsuite/lib/ (and other) maintainers.
8311
8312 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8313
8314 * infcmd.c (attach_command): Reread symbols if we already have
8315 an exec file.
8316
8317 2004-03-23 Andrew Cagney <cagney@redhat.com>
8318
8319 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8320
8321 2004-03-23 Andrew Cagney <cagney@redhat.com>
8322
8323 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8324 * gdbarch.h, gdbarch.c: Re-generate.
8325 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8326 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8327 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8328 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8329 (DEPRECATED_SIGTRAMP_START): Update.
8330 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8331 (DEPRECATED_SIGTRAMP_START): Update.
8332 * blockframe.c (find_pc_sect_partial_function): Update.
8333 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8334
8335 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8336
8337 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8338 if necessary.
8339
8340 2004-03-23 Andrew Cagney <cagney@redhat.com>
8341
8342 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8343 predicate, deprecate.
8344 * gdbarch.h, gdbarch.c: Re-generate.
8345 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8346 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8347 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8348 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8349 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8350 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8351 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8352 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8353 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8354 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8355 * blockframe.c (find_pc_partial_function): Update.
8356 * breakpoint.c (bpstat_what): Update.
8357 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8358 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8359 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8360 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8361 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8362 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8363 * i386-nto-tdep.c (i386nto_init_abi): Update.
8364 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8365 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8366 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8367 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8368 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8369 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8370 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8371 * infrun.c (pc_in_sigtramp): Update.
8372 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8373 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8374 * mips-tdep.c (mips_gdbarch_init): Update.
8375 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8376 * ppc-linux-tdep.c: Update comment.
8377 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8378 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8379 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8380 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8381 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8382 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8383 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8384 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8385 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8386 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8387
8388 2004-03-23 Andrew Cagney <cagney@redhat.com>
8389
8390 * tramp-frame.h, tramp-frame.h: New files.
8391 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8392 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8393
8394 * Makefile.in: Update all dependencies.
8395
8396 2004-03-23 Andrew Cagney <cagney@redhat.com>
8397
8398 * Makefile.in (trad_frame_h): Add $(frame_h).
8399 * trad-frame.h: Update copyright. Include "frame.h".
8400 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8401 (trad_frame_set_id, trad_frame_get_id): Declare.
8402 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8403 * trad-frame.c: Update copyright.
8404 (struct trad_frame_cache): Define.
8405 (trad_frame_cache_zalloc): New function.
8406 (trad_frame_set_id, trad_frame_get_id): New functions.
8407 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8408
8409 2004-03-22 Andrew Cagney <cagney@redhat.com>
8410
8411 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8412 s390_pltstub_unwind_cache.
8413 (s390_stub_frame_unwind_cache): Rename
8414 s390_pltstub_frame_unwind_cache.
8415 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8416 (s390_stub_frame_prev_register): Rename
8417 s390_pltstub_frame_prev_register.
8418 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8419 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8420
8421 From Ulrich Weigand:
8422 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8423 pointer calls like PLT calls.
8424
8425 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8426
8427 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8428 PC rather than the partial function start address. Use the start
8429 address to sanity check the found PDR.
8430
8431 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8432
8433 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8434 linux_handle_extended_wait.
8435
8436 2004-03-22 Andrew Cagney <cagney@redhat.com>
8437
8438 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8439 function.
8440
8441 * frame.h (generic_pop_current_frame): Delete declaration.
8442 (deprecate_pop_dummy_frame): Deprecate
8443 generic_pop_dummy_frame.
8444 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8445 (generic_pop_current_frame): Delete function.
8446 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8447 generic_pop_current_frame.
8448 * v850-tdep.c (v850_pop_frame): Update.
8449 * mcore-tdep.c (mcore_pop_frame): Update.
8450 * sh64-tdep.c (sh64_pop_frame): Update.
8451 * h8300-tdep.c (h8300_pop_frame): Update.
8452
8453 2004-03-22 Andrew Cagney <cagney@redhat.com>
8454
8455 * frame.h (deprecated_pc_in_call_dummy): Rename
8456 generic_pc_in_call_dummy.
8457 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8458 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8459 generic_pc_in_call_dummy.
8460 (pc_in_dummy_frame): Make static.
8461 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8462 * gdbarch.h, gdbarch.c: Re-generate.
8463 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8464 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8465 (legacy_get_prev_frame): Ditto.
8466 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8467 comment.
8468
8469 2004-03-21 Andrew Cagney <cagney@redhat.com>
8470
8471 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8472 declaration and out-of-date comment.
8473 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8474 Delete function.
8475 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8476 deprecated_pc_in_call_dummy.
8477
8478 * infrun.c (handle_inferior_event): For non legacy frames, use the
8479 frame ID and frame type to identify a signal trampoline. Update
8480 comments.
8481
8482 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8483
8484 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8485 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8486
8487 2004-03-21 Andrew Cagney <cagney@redhat.com>
8488
8489 * frame-unwind.h: Update copyright.
8490 (struct frame_data): Add opaque declaration.
8491 (frame_sniffer_ftype): Declare.
8492 (struct frame_unwind): Add "unwind_data" and "sniffer".
8493 (frame_unwind_register_unwinder): Declare.
8494 (frame_unwind_find_by_frame): Add parameter "this_cache".
8495 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8496 (legacy_get_prev_frame, legacy_get_prev_frame)
8497 (get_frame_type): Pass the prologue_cache to
8498 frame_unwind_find_by_frame.
8499 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8500 "unwinder".
8501 (frame_unwind_register_unwinder): New function.
8502 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8503
8504 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8505
8506 * bcache.c (print_percentage): Use floating point to avoid
8507 incorrect results when portion*100 overflows.
8508
8509 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8510
8511 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8512 (ppc_linux_init_extra_frame_info)
8513 (ppc_linux_frameless_function_invocation)
8514 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8515 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8516 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8517 (rs6000_frame_chain): Delete declarations.
8518 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8519 (ppc_linux_init_extra_frame_info)
8520 (ppc_linux_frameless_function_invocation)
8521 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8522 (ppc_linux_init_abi): Remove registration of above deleted functions.
8523 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8524 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8525 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8526 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8527 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8528 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8529 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8530 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8531 frame management for all OSABIs.
8532
8533 2004-03-19 Andrew Cagney <cagney@redhat.com>
8534
8535 Committed by Kevin Buettner <kevinb@redhat.com>.
8536
8537 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8538 Update copyright.
8539 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8540 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8541 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8542 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8543 unwinders. #ifdef legacy frame code.
8544 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8545 "frame-base.h".
8546 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8547 (struct rs6000_frame_cache, rs6000_frame_cache)
8548 (rs6000_frame_this_id, rs6000_frame_prev_register)
8549 (rs6000_frame_sniffer, rs6000_frame_unwind)
8550 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8551 (rs6000_frame_base): Implement a traditional frame unwinder.
8552 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8553 frame unwinder.
8554
8555 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8556
8557 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8558 breakpoint address for watchpoints or the catch eventpoints.
8559 Add new paramter ``bptype''. Adjust all callers.
8560
8561 2004-03-19 Andrew Cagney <cagney@redhat.com>
8562
8563 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8564
8565 * PROBLEMS: Delete note that ARM does not use frame code, problem
8566 fixed.
8567
8568 2004-03-18 Andrew Cagney <cagney@redhat.com>
8569
8570 * stack.c (return_command): Delete code wrapped in #ifdef
8571 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8572
8573 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8574
8575 2004-03-18 Andrew Cagney <cagney@redhat.com>
8576
8577 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8578 DEPRECATED_IN_SIGTRAMP.
8579 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8580 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8581 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8582 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8583 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8584 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8585 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8586 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8587 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8588 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8589
8590 2004-03-18 Andrew Cagney <cagney@redhat.com>
8591
8592 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8593 (struct frame_base_table_entry): Define.
8594 (struct frame_base_table): Re-implement as a linked list.
8595 (frame_base_init): Re-implement.
8596 (frame_base_table): Delete function.
8597 (append_predicate): Delete function.
8598 (frame_base_append_sniffer): Update.
8599 (frame_base_set_default): Update.
8600 (frame_base_find_by_frame): Update.
8601 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8602 * Makefile.in (frame-base.o): Update dependencies.
8603
8604 2004-03-17 Andrew Cagney <cagney@redhat.com>
8605
8606 * frame.c (legacy_get_prev_frame): Pass correct frame to
8607 frame_unwind_find_by_frame.
8608
8609 2004-03-17 David Carlton <carlton@kealia.com>
8610
8611 * NEWS: Mention C++ nested types and namespaces
8612
8613 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8614
8615 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8616 and "Regressions since gdb 5.3.". Add known regressions since
8617 gdb 6.0.
8618
8619 2004-03-16 David Carlton <carlton@kealia.com>
8620
8621 * dwarf2read.c (process_structure_scope): Process children even
8622 when we're a declaration.
8623
8624 2004-03-16 Andrew Cagney <cagney@redhat.com>
8625
8626 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8627 * blockframe.c (find_pc_partial_function)
8628 (find_pc_sect_partial_function): Merge into a single
8629 find_pc_partial_function.
8630
8631 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8632
8633 * i386bsd-nat.c: s/regno/regnum/g.
8634 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8635 FP0_REGNUM.
8636 (store_inferior_registers): Likewise.
8637
8638 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8639
8640 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8641 of i387_fill_fsave.
8642 (store_inferior_registers): Call i387_collect_fsave and
8643 i387_collect_fxsave instead of i387_fill_fsave and
8644 i387_fill_fxsave.
8645
8646 2004-03-15 Andrew Cagney <cagney@redhat.com>
8647
8648 * Makefile.in (frame-unwind.o): Update dependencies.
8649 * frame-unwind.c: Include "gdb_obstack.h".
8650 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8651 parameter.
8652 (append_predicate): Delete function.
8653 (struct frame_unwind_table_entry): New structure.
8654 (struct frame_unwind_table): Replace "sniffer" with "head" and
8655 "tail".
8656 (frame_unwind_append_sniffer): Update.
8657 (frame_unwind_find_by_frame): Update.
8658 (_initialize_frame_unwind): Registe frame_unwind_init using
8659 gdbarch_data_register_pre_init.
8660
8661 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8662
8663 * i386bsd-nat.c: Update copyright year.
8664 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8665 define unconditionally.
8666
8667 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8668
8669 * i387-tdep.h (i387_collect_fsave): New prototype.
8670 * i387-tdep.c (i387_collect_fsave): New function containing most
8671 of the code from i387_fill_fsave.
8672 (i387_fill_fsave): Call i387_collect_fsave.
8673
8674 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8675
8676 * i386-linux-tdep.c: Update copyright year.
8677 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8678 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8679 svr4_ilp32_link_map_offsets instead of
8680 i386_linux_svr4_fetch_link_map_offsets.
8681
8682 2004-03-15 David Carlton <carlton@kealia.com>
8683
8684 Fix for PR c++/1553:
8685 * dwarf2read.c (read_structure_type): Determine type name by
8686 calling determine_class_name.
8687 (determine_class_name): New.
8688 (determine_prefix): Look at TYPE_TAG_NAME and call
8689 determine_class_name when appropriate.
8690 (determine_prefix_aux, class_name): Delete.
8691 (read_namespace): Set die->type.
8692
8693 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8694
8695 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8696 unused macro definition. The definition in target.h (or perhaps
8697 elsewhere) takes precedence.
8698
8699 2004-03-15 Andrew Cagney <cagney@redhat.com>
8700
8701 * ppc-tdep.h: Update copyright.
8702 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8703 function signatures to match "regsets.h".
8704 * ppc-linux-tdep.c: Include "regset.h".
8705 (ELF_GREGSET_SIZE): Delete.
8706 (right_supply_register): New function.
8707 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8708 using right_supply_register.
8709 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8710 functions.
8711 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8712 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8713 (_initialize_ppc_linux_tdep): Do not register
8714 ppc_linux_regset_core_fns.
8715 (ppc_linux_regset_from_core_section): Replace
8716 fetch_core_registers.
8717 (ppc_linux_regset_core_fns): Delete.
8718 * ppc-linux-nat.c: (right_fill_reg): New function.
8719 (supply_gregset): Update call to ppc_linux_supply_gregset.
8720 (fill_gregset): Clear the register set, use right_fill_reg.
8721 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8722 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8723
8724 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8725 unsigned.
8726
8727 2004-03-15 Andrew Cagney <cagney@redhat.com>
8728
8729 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8730 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8731 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8732 and register_gdbarch_data.
8733 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8734 (struct gdbarch_data): Replace "init" by "pre_init" and
8735 "post_init".
8736 * gdbarch.h, gdbarch.c: Re-generate.
8737 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8738 with"obstack", use OBSTACK_ZALLOC.
8739 (dwarf2_frame_ops): Delete.
8740 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8741 (dwarf2_frame_init_reg): Use gdbarch_data.
8742 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8743 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8744 (_initialize_svr4_solib): Update.
8745 * user-regs.c (_initialize_user_regs): Update.
8746 * reggroups.c (_initialize_reggroup): Update.
8747 * regcache.c (_initialize_regcache): Update.
8748 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8749 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8750 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8751 * frame-unwind.c (_initialize_frame_unwind): Update.
8752 * frame-base.c (_initialize_frame_base): Update.
8753 * user-regs.c (user_reg_add): Update.
8754 * reggroups.c (reggroup_add): Update.
8755 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8756 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8757 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8758 * frame-base.c (frame_base_table): Update.
8759 * remote.c (_initialize_remote): Update.
8760 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8761
8762 2004-03-15 Andrew Cagney <cagney@redhat.com>
8763
8764 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8765
8766 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8767
8768 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8769 * frv-linux-tdep.c: New file.
8770 * frv-tdep.c (struct gdbarch_tdep): Add new field
8771 ``sigcontext_reg_addr''.
8772 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8773 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8774 (frv_sigramp_frame_sniffer): New functions.
8775 (frv_sigtramp_frame_unwind): New static global.
8776 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8777 sniffers.
8778 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8779 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8780
8781 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8782
8783 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8784 but not via a call to error(), when unable to read memory.
8785
8786 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8787
8788 * frv-tdep.c (frv_call_dummy_words): Delete.
8789 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8790
8791 2004-03-15 Andrew Cagney <cagney@redhat.com>
8792
8793 * infrun.c (handle_step_into_function, step_over_function): Only
8794 update and use STEP_FRAME_ID when the system is using legacy
8795 frames. Update comments.
8796
8797 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8798
8799 * amd64-linux-tdep.h: Remove file.
8800 * amd64-linux-tdep.c: Don't include "inferior.h" and
8801 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8802 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8803 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8804 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8805 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8806 macros.
8807 (user_to_gdb_regmap): Remove variable.
8808 (amd64_linux_gregset_reg_offset): New variable.
8809 (amd64_core_fns): Remove variable.
8810 (fetch_core_registers): Remove function.
8811 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8812 functions.
8813 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8814 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8815 * Makefile.in (amd64_linux_tdep_h): Remove.
8816 (amd64-linux-nat.o): Update dependencies.
8817 (amd64-linux-tdep.o): Update dependencies.
8818
8819 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8820 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8821 functions.
8822 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8823
8824 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8825 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8826
8827 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8828
8829 * dwarf2read.c (read_structure_type): Rename from
8830 read_structure_scope. Don't create a symbol or call process_die.
8831 Return immediately if die->type is set. Call read_type_die before
8832 dwarf2_add_member_fn.
8833 (process_structure_scope): New function.
8834 (read_enumeration_type, process_enumeration_scope): New functions,
8835 broken out from read_enumeration. Don't create the enumeration
8836 type if it has already been created.
8837 (read_enumeration): Removed.
8838 (process_die): Call read_structure_type, process_structure_scope,
8839 read_enumeration_type, and process_enumeration_scope. Just call
8840 new_symbol for base and subrange types. Add a comment about other
8841 type dies.
8842 (read_type_die): Call read_enumeration_type.
8843 (add_partial_structure, new_symbol): Update comments.
8844
8845 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8846
8847 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8848
8849 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8850
8851 * tui/tui-win.h (tui_get_cmd_list): Declare.
8852 * tui/tui-win.c (tui_command): New function.
8853 (tui_get_cmd_list): New function.
8854 (_initialize_tui_win): Moved initialization of tui command in
8855 tui_get_cmd_list.
8856
8857 * tui/tui-data.c (init_content_element): Setup new data members.
8858 (init_win_info): Likewise.
8859 (free_content_elements): Free it.
8860 * tui/tui-data.h (struct tui_data_element): Store the register
8861 content to print.
8862 (struct tui_data_info): Keep the current register group.
8863
8864 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8865
8866 * tui/tui-regs.h (tui_show_registers): Update prototype.
8867 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8868 (tui_resize_all): No need to calculate anything for register window.
8869 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8870 (tui_set_register_element, tui_set_general_regs_content): Remove.
8871 (tui_set_special_regs_content): Remove.
8872 (tui_set_general_and_special_regs_content): Remove.
8873 (tui_set_float_regs_content): Remove.
8874 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8875 (tui_set_regs_content): Remove.
8876 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8877 (tui_v_show_registers_command_support): Remove.
8878 (tui_show_registers): Use a reggroup to specify the registers to show.
8879 (tui_show_register_group): New function.
8880 (tui_display_registers_from): Compute the layout of register window
8881 and refresh with new API; be sure to delete old register windows.
8882 (tui_check_register_values): Update to use tui_get_register and
8883 tui_display_data.
8884 (tui_display_register): Just refresh the register window part.
8885 (tui_register_format): Format registers and save in tui_data_element.
8886 (tui_get_register): New to combine tui_reg_value_has_changed and
8887 tui_get_register_raw_value; fix to use the new gdb API.
8888 (tui_show_float_command): Renamed tui_reg_float_command.
8889 (tui_show_general_command): Renamed tui_reg_general_command.
8890 (tui_show_special_command): Renamed tui_reg_system_command.
8891 (_initialize_tui_regs): Remove unused commands.
8892
8893 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8894
8895 * NEWS (New native configurations): Mention OpenBSD/amd64.
8896
8897 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8898 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8899 Remove defines.
8900 * config/i386/nm-fbsd64.h: Likewise.
8901 * config/i386/nm-obsd.h: Likewise.
8902 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8903 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8904
8905 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8906
8907 * frv-tdep.c (set_variant_scratch_registers): New function.
8908 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8909 New constants.
8910
8911 From Richard Sandiford <rsandifo@redhat.com>:
8912 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8913
8914 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8915
8916 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8917 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8918 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8919 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8920 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8921 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8922 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8923 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8924 definitions from frv-tdep.c to frv-tdep.h.
8925
8926 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8927
8928 Add shared library support for FR-V FDPIC ABI:
8929 * Makefile.in (solib-frv.o): Add dependencies.
8930 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8931 New functions.
8932 (frv_push_dummy_call): Add support for FDPIC ABI.
8933 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8934 for FDPIC ABI.
8935 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8936 (frv_fdpic_find_canonical_descriptor): Declare.
8937 * solib-frv.c: New file.
8938 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8939 * config/frv/tm-frv.h (solib.h): Include.
8940
8941 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8942
8943 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8944 (frv-tdep.o): Update dependencies.
8945 * frv-tdep.h: New file.
8946 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8947 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8948 constants.
8949 (struct gdbarch_tdep): Add new member ``frv_abi''.
8950 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8951 functions.
8952 (new_variant): Set ``frv_abi'' field.
8953 (gdb_arch_init): Detect FDPIC executables.
8954
8955 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8956
8957 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8958 wrapper.
8959
8960 2004-03-11 Andrew Cagney <cagney@redhat.com>
8961
8962 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8963
8964 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8965
8966 * solist.h (master_so_list): New function.
8967 * solib.c (master_so_list): Likewise.
8968 * solib-svr4.c (enable_break): Iterate over so_list entries
8969 obtained from master list instead of entries obtained directly
8970 via svr4_current_sos().
8971
8972 2004-03-10 Ben Elliston <bje@gnu.org>
8973
8974 * MAINTAINERS: Update my mail address.
8975
8976 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8977
8978 * remote-m32r-sdi.c: Support hardware watchpoint.
8979
8980 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8981
8982 * user-regs.c: Update copyright years.
8983 (struct user_regs): Rename to gdb_user_regs.
8984 (append_user_reg, builtin_user_regs, user_regs_init)
8985 (user_reg_add, user_reg_map_name_to_regnum)
8986 (usernum_to_user_reg): Update.
8987
8988 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8991 (skip_children): New functions.
8992 (locate_pdi_sibling): Call skip_children.
8993
8994 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8995
8996 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8997 * gdbtypes.c (check_typedef): Update comments.
8998
8999 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9000
9001 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9002 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9003 pointer. Update comment about comp_unit_head.
9004 (struct abbrev_info): Shorten two int flags.
9005 (dwarf_alloc_abbrev): Take a CU argument.
9006 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9007 each time through the loop. Update cleanup argument.
9008 (psymtab_to_symtab_1): Update cleanup call.
9009 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9010 abbrev_obstack.
9011 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9012 Just call obstack_free and clear the pointer.
9013
9014 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9015
9016 * infrun.c (handle_inferior_event): Remove short-circuit code for
9017 events in a different thread.
9018
9019 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9022 print the whole transfer.
9023 (initialize_targets): Update description of "set debug target".
9024
9025 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9026
9027 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9028
9029 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9030
9031 * MAINTAINERS (write after approval): Add myself.
9032
9033 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9034
9035 * sh-tdep.c (sh_print_registers_info): Use for loop.
9036 Don't skip multiple registers when a float register is encountered.
9037
9038 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9039
9040 Fix PR tdep/1291.
9041 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9042 to official SH documentation.
9043
9044 2004-03-07 Andrew Cagney <cagney@redhat.com>
9045
9046 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9047 unused function.
9048
9049 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9050
9051 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9052 (arm_get_next_pc): Handle BX and BLX.
9053
9054 2004-03-07 Andrew Cagney <cagney@redhat.com>
9055
9056 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9057 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9058 HPPA_SP_REGNUM.
9059 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9060 (hppa_target_read_fp): Delete.
9061 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9062 register_virtual_size, max_register_raw_size,
9063 max_register_virtual_size, register_byte, register_size,
9064 target_read_fp, fp_regnum, and register_bytes. Set register_type
9065 instead of register_virtual_type.
9066 (hppa32_register_type, hppa64_register_type): Replace
9067 hppa32_register_virtual_type and hppa64_register_virtual_type.
9068 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9069 (HPPA_FP_REGNUM): Define.
9070
9071 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9072
9073 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9074 (pa_do_registers_info): Delete.
9075 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9076 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9077 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9078
9079 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9080 GDB_TARGET_IS_HPPA code.
9081 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9082 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9083 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9084 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9085 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9086 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9087 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9088 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9089 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9090 (hppa_frameless_function_invocation, hppa64_store_return_value)
9091 (hppa_store_struct_return, hppa64_extract_return_value)
9092 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9093 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9094 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9095 (find_proc_framesize, deposit_21, restore_pc_queue)
9096 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9097 (rp_saved, pc_in_linker_stub): Delete.
9098
9099 Unconditionally enable 64-bit frame and ABI code.
9100 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9101 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9102 push_dummy_frame, fix_call_dummy, push_arguments,
9103 call_dummy_location, extract_return_value, use_struct_convention,
9104 store_return_value, store_struct_return, saved_pc_after_call,
9105 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9106 frame_chain, frame_chain_valid, frameless_function_invocation,
9107 frame_saved_pc, and pop_frame.
9108
9109 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9110 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9111 (hppa_gdbarch_init): Do not set PC_REGNUM.
9112
9113 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9114
9115 * config/alpha/tm-fbsd.h: Remove file.
9116 * config/alpha/fbsd.mt: Tweak comment.
9117 (TM_FILE): Set to tm-alpha.h.
9118
9119 2004-03-05 Andrew Cagney <cagney@redhat.com>
9120
9121 * infrun.c (step_over_function): When non-legacy code, and no
9122 step_frame_id, use the unwinder to get the caller's frame ID.
9123
9124 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9125
9126 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9127 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9128 bfd_arch_unknown. Adjust comment.
9129
9130 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9131 * i386obsd-tdep.c: Correct spelling in comment.
9132 * i386nbsd-tdep.c: Correct spelling in comment.
9133 * sparc-tdep.c: Correct spelling in comments.
9134
9135 2004-03-05 David Carlton <carlton@kealia.com>
9136
9137 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9138 bug.
9139
9140 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9141
9142 * sparc-tdep.c: Fix typo in comment.
9143
9144 2004-03-04 J. Brobecker <brobecker@gnat.com>
9145
9146 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9147
9148 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * dwarf2read.c: Add comment describing memory lifetimes.
9151 (struct dwarf2_pinfo): Update comment.
9152 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9153 (read_enumeration, new_symbol): Don't use obsavestring.
9154
9155 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9156
9157 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9158 instead of amd64_fill_fxsave.
9159 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9160 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9161
9162 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9163 Reorganize code a bit.
9164
9165 2004-03-04 Orjan Friberg <orjanf@axis.com>
9166
9167 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9168 when the frame pointer is pushed. Don't set the frame pointer's
9169 address on the stack unless it's actually located there.
9170 Set the SRP's address on the stack correctly when the PC is still in
9171 the prologue.
9172 (cris_return_value): New function.
9173 (cris_gdbarch_init): Clear deprecated store_return_value,
9174 extract_return_value.
9175
9176 2004-03-02 Jim Blandy <jimb@redhat.com>
9177
9178 * stabsread.c (reg_value_complaint): The maximum register number
9179 is one less than the number of registers.
9180
9181 2004-03-02 Andrew Cagney <cagney@redhat.com>
9182
9183 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9184 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9185 trailing comma and redundant assignment of I386_ST0_REGNUM.
9186 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9187 32-bit segment registers.
9188
9189 2004-03-01 Andrew Cagney <cagney@redhat.com>
9190
9191 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9192 use frame_relative_level and get_next_frame.
9193
9194 2004-02-29 Andrew Cagney <cagney@redhat.com>
9195
9196 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9197 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9198 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9199 Delete macro.
9200
9201 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9202
9203 * inflow.c (terminal_inferior): Don't give up the terminal if we
9204 previously couldn't get the inferior's terminal state.
9205
9206 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9207
9208 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9209 PC_REGNUM.
9210
9211 2004-02-28 Andrew Cagney <cagney@redhat.com>
9212
9213 * NEWS: Refer to GDB 6.1.
9214 * README: Refer to GDB 6.1.
9215 * PROBLEMS: Refer to GDB 6.1.
9216
9217 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9218
9219 * thread-db.c (disable_thread_signals): Remove unused function.
9220
9221 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9222
9223 * amd64-nat.c: Include "gdb_string.h".
9224 (amd64_collect_native_gregset): Zero-extend the 32-bit
9225 general-purpose registers and %eip.
9226
9227 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9228 * amd64-tdep.c (amd64_collect_fxsave): New function.
9229 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9230
9231 * i387-tdep.h: Update copyright year.
9232 (i387_collect_fxsave): New prototype.
9233 * i387-tdep.c: Update copyright year.
9234 (i387_collect_fxsave): New function containing most of the code
9235 from i387_fill_fxsave.
9236 (i387_fill_fxsave): Call i387_collect_fxsave.
9237
9238 2004-02-28 Andrew Cagney <cagney@redhat.com>
9239
9240 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9241 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9242
9243 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9244
9245 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9246
9247 2004-02-28 Andrew Cagney <cagney@redhat.com>
9248
9249 * utils.c: Use "", instead of <>, to include readline.
9250 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9251 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9252 * source.c, solib.c, exec.c, event-top.c: Ditto.
9253 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9254 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9255 * Makefile.in: Update all dependencies.
9256 (readline_tilde_h, readline_history_h): Define.
9257 (readline_headers): Delete.
9258
9259 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9260
9261 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9262 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9263 "config/i386/tm-lx64.h".
9264
9265 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9266 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9267 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9268
9269 2004-02-28 Andrew Cagney <cagney@redhat.com>
9270
9271 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9272
9273 * breakpoint.c (_initialize_breakpoint): Use
9274 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9275 Add help to show command.
9276
9277 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9278
9279 * i386-nat.c: Reformat to be closer to coding standards.
9280 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9281 `retval'. Make variables `align' and `size' local to while-loop.
9282 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9283 (_initialize_i386_nat): New prototype.
9284
9285 * tui/tui.c: Include <readline/readline.h> instead of
9286 "readline/readline.h". Include it after <term.h> and
9287 "gdb_curses.h".
9288
9289 2004-02-27 Andrew Cagney <cagney@redhat.com>
9290
9291 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9292 the new frame unwind code.
9293 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9294 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9295 PCOQ_HEAD_REGNUM.
9296
9297 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9298 "return_value" and "push_dummy_call".
9299 (hppa32_use_struct_convention): Delete unused function.
9300 (hppa32_store_return_value): Delete unused function.
9301 (hppa32_extract_return_value): Delete unused function.
9302 (hppa32_stack_align): Delete function.
9303
9304 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9305
9306 * coffread.c (enter_linenos): Don't let rawptr reference memory
9307 outside linetab[]'s limits.
9308
9309 2004-02-27 Andrew Cagney <cagney@redhat.com>
9310
9311 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9312 inferior stack space - the stack needs to grow upwards.
9313 (hppa32_frame_align): New function.
9314 (hppa64_frame_align): Replace hppa_frame_align.
9315 (hppa_gdbarch_init): Update.
9316
9317 2004-02-26 Orjan Friberg <orjanf@axis.com>
9318
9319 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9320 (dwarf2-frame.h): Include.
9321 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9322 Remove static variables related to ABI setting.
9323 (struct gdbarch_tdep): Remove cris_abi member.
9324 (struct frame_extra_info): Remove.
9325 (cris_unwind_cache, stack_item): New structs.
9326 (cris_frame_unwind, cris_frame_base): New variables.
9327 (push_stack_item, pop_stack_item)
9328 (cris_frame_unwind_cache, cris_frame_this_id)
9329 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9330 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9331 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9332 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9333 (cris_reg_struct_has_addr): New functions.
9334 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9335 (cris_frame_saved_pc, cris_saved_pc_after_call,
9336 (cris_store_struct_return, cris_frameless_function_invocation)
9337 (cris_pop_frame, cris_skip_prologue_main)
9338 (cris_abi_original_store_return_value)
9339 (cris_abi_v2_store_return_value)
9340 (cris_abi_original_extract_return_value)
9341 (cris_abi_v2_extract_return_value)
9342 (cris_abi_original_reg_struct_has_addr)
9343 (cris_abi_v2_reg_struct_has_addr)
9344 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9345 (cris_push_return_address, cris_abi_update): Remove.
9346 (_initialize_cris_tdep): Remove ABI command.
9347 (cris_dump_tdep): Ditto.
9348 (cris_gdbarch_init): Remove ABI command.
9349 Set store_return_value, extract_return_value, push_dummy_code,
9350 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9351 frame_unwind_append_sniffer, frame_base_set_default.
9352 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9353 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9354 sizeof_call_dummy_words, get_saved_register, push_return_address,
9355 pop_frame, store_struct_return, frame_init_saved_regs,
9356 init_extra_frame_info, frameless_function_invocation, frame_chain,
9357 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9358 dummy_write_sp.
9359
9360 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9361
9362 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9363 * valprint.c (print_hex_chars): Change from static to external.
9364 (print_char_chars): New function.
9365 * printcmd.c (print_scalar_formatted): For integer and enum types
9366 that are longer than LONGEST, perform processing via appropriate
9367 print_*_chars routines.
9368
9369 2004-02-26 Andrew Cagney <cagney@redhat.com>
9370
9371 * Makefile.in: Update dependencies.
9372 Changes from Ulrich Weigand,
9373 * s390-tdep.c: Include "dwarf2-frame.h".
9374 (s390_dwarf2_frame_init_reg): New function.
9375 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9376 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9377
9378 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9379
9380 * breakpoint.c (pending_break_support): New setting variable.
9381 (break_command_1): Account for pending_break_support setting
9382 when creating pending breakpoints.
9383 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9384 (_initialize_breakpoint): Add "set breakpoint pending" and
9385 "show breakpoint pending" commands.
9386
9387 2004-02-26 Andrew Cagney <cagney@redhat.com>
9388
9389 Fix PR i18n/1570.
9390 * charset.c (backslashable, backslashed, represented): Remove 'e'
9391 from list of escaped characters, not part of ISO-C.
9392
9393 2004-02-25 J. Brobecker <brobecker@gnat.com>
9394
9395 From Peter Schauer <schauer@pdf.de>:
9396 * tui/tui.c: Move system header includes after local includes.
9397 Fixes a build failure on solaris systems.
9398
9399 2004-02-25 J. Brobecker <brobecker@gnat.com>
9400
9401 * configure.in: Refine the previous change.
9402 * configure: Regenerate.
9403
9404 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9405
9406 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9407 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9408 "amd64-tdep.h" instead of "x86-64-tdep.h".
9409 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9410 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9411 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9412 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9413 and "x86-64-tdep.c".
9414 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9415 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9416 and "x86-64-tdep.c".
9417 * amd64bsd-nat.c: Update copyright year.
9418 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9419 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9420 "x86-64-tdep.h".
9421 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9422 "x86-64-tdep.h".
9423 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9424 "x86-64-tdep.h".
9425 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9426 "x86-64-tdep.h".
9427 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9428 "x86-64-tdep.h".
9429 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9430 "x86-64-tdep.h".
9431 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9432 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9433 * Makefile.in (amd64_linux_tdep_h): Renamed from
9434 x86_64_linux_tdep_h.
9435 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9436 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9437 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9438 (amd64obsd-tdep.o): Update dependencies.
9439 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9440 dependencies.
9441 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9442 dependencies.
9443 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9444 amd64-linux-nat.c amd64-linux-tdep.c.
9445 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9446 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9447 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9448 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9449 amd64-tdep.o and amd64-linux-tdep.o.
9450 (TM_FILE): Set to tm-linux64.h.
9451 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9452 (NAT_FILE): Set to nm-linux64.h.
9453 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9454 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9455 amd64-tdep.o.
9456 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9457 amd64-tdep.o.
9458 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9459 amd64-tdep.o.
9460
9461 2004-02-25 Roland McGrath <roland@redhat.com>
9462
9463 * remote.c (remote_protocol_qPart_auxv): New variable.
9464 (init_all_packet_configs): Initialize it.
9465 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9466 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9467 (show_remote_cmd): Call it.
9468 (_initialize_remote): Initialize commands.
9469 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9470 service TARGET_OBJECT_AUXV requests.
9471
9472 2004-02-25 J. Brobecker <brobecker@gnat.com>
9473
9474 * configure.in: Make sure that the wborder function is available.
9475 Otherwise, search for it in the cur_colr library.
9476 * configure: Regenerate.
9477
9478 2004-02-25 Andrew Cagney <cagney@redhat.com>
9479
9480 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9481
9482 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9483
9484 * config/i386/tm-x86-64linux.h: Tweak comments.
9485
9486 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9487
9488 * MAINTAINERS: Add self to write-after-approval list.
9489
9490 2004-02-25 Andrew Cagney <cagney@redhat.com>
9491
9492 PR cli/1566. Problem found, and fix suggested by David Allan.
9493 * cli/cli-script.c (execute_control_command): Unconditionally
9494 install a cleanup. Default "ret" to "invalid_control". Use
9495 "break" instead of "return" to escape from the switch.
9496
9497 2004-02-24 J. Brobecker <brobecker@gnat.com>
9498
9499 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9500 with the lines macro defined in term.h on AiX.
9501 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9502 a collision with the label_width macro defined in term.h on AiX.
9503
9504 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9505
9506 Committed by Kevin Buettner <kevinb@redhat.com>.
9507
9508 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9509 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9510 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9511 instead of ia64_write_pc().
9512 * ia64-linux-tdep.c (regcache.h): Include.
9513 (ia64_linux_write_pc): New function.
9514
9515 2004-02-23 Roland McGrath <roland@redhat.com>
9516
9517 * auxv.c (info_auxv_command): Fix typos in error messages.
9518
9519 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9520
9521 * x86-64-tdep.h: Tweak comment.
9522 (enum amd64_regnum): New.
9523 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9524 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9525 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9526 (X86_64_XMM1_REGNUM): Removed.
9527 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9528 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9529 prototypes for renamed functions.
9530 * x86-64-tdep.c: Fix typo.
9531 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9532 register numbers.
9533 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9534 Use constants from `enum amd64_regnum' for register numbers.
9535 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9536 (amd64_analyze_prologue, amd64_frame_cache,
9537 amd64_sigtramp_frame_cache): Use constants from `enum
9538 amd64_regnum' for register numbers.
9539 (amd64_supply_fpregset): Adjust for renamed functions.
9540 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9541 `enum amd64_regnum' for register numbers.
9542 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9543 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9544 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9545 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9546 (amd64_linux_fill_gregset): Adjust for renamed macros.
9547 (fetch_core_registers): Adjust for renamed functions.
9548 (amd64_linux_init_abi): Adjust for renamed functions.
9549 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9550 renamed functions.
9551 * amd64-nat.c: Adjust for renamed macros.
9552 * amd64bsd-nat.c (fetch_inferior_registers)
9553 (store_inferior_registers): Use constants from `enum amd64_regnum'
9554 for register numbers. Adjust for renamed variables.
9555 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9556 renamed variables.
9557 (_initialize_amd64fbsd_nat): Use constants from `enum
9558 amd64_regnum' for register numbers.
9559 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9560 `enum amd64_regnum' for register numbers.
9561 (amd64fbsd_init_abi): Adjust for renamed functions.
9562 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9563 `enum amd64_regnum' for register numbers.
9564 (amd64nbsd_init_abi): Adjust for renamed functions.
9565 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9566 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9567 `enum amd64_regnum' for register numbers.
9568 (amd64obsd_init_abi): Adjust for renamed functions.
9569 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9570
9571 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9572
9573 * breakpoint.c (print_one_breakpoint): Do not output spaces
9574 after printing <PENDING> for a pending breakpoint.
9575
9576 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9577
9578 * printcmd.c (print_scalar_formatted): Initialize val_long
9579 to remove compiler warning message.
9580
9581 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9582
9583 * defs.h (nquery, yquery): New prototypes.
9584 * breakpoint.c (break_command_1): Use new nquery interface.
9585 * utils.c (defaulted_query, nquery, yquery): New functions.
9586
9587 2004-02-23 Andrew Cagney <cagney@redhat.com>
9588
9589 * hppa-tdep.c (hppa_frame_align): New function.
9590 (hppa32_push_dummy_call): New function.
9591 (hppa64_push_dummy_call): New function.
9592 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9593 disabled.
9594
9595 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9596 FIX_CALL_DUMMY when push_dummy_call is available.
9597 (call_function_by_hand, push_dummy_code): Ditto.
9598
9599 2004-02-22 Andrew Cagney <cagney@redhat.com>
9600
9601 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9602 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9603 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9604 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9605 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9606 call_dummy_location to ON_STACK.
9607
9608 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9609
9610 * x86-64-linux-tdep.c: Tweak comment.
9611 (amd64_linux_supply_gregset): Renamed from
9612 x86_64_linux_supply_gresget.
9613 (amd64_linux_fill_gregset): Renamed from
9614 x86_64_linux_fill_gregset.
9615 (fetch_core_registers): Adjust for renamed functions.
9616 (amd64_core_fns): Renamed from x86_64_core_fns.
9617 (amd64_linux_sigtramp_start): Renamed from
9618 x86_64_linux_sigtramp_start.
9619 (amd64_linux_pc_in_sigtramp): Renamed from
9620 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9621 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9622 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9623 (amd64_linux_sigcontext_addr): Renamed from
9624 x86_64_linux_sigcontext_addr.
9625 (amd64_linux_sc_reg_offset): Renamed from
9626 x86_64_linux_sc_reg_offset.
9627 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9628 Adjust for renamed functions and variables.
9629 (_initialize_amd64_linux_tdep): Renamed from
9630 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9631 variables.
9632 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9633 Adjust for renamed functions.
9634
9635 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9636 from x86_64_linux_gregset64_reg_offset.
9637 (amd64_linux_gregset32_reg_offset): Rename from
9638 x86_64_linux_gregset64_reg_offset.
9639 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9640 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9641 (amd64_linux_dr_set_control): Renamed from
9642 x86_64_linux_dr_set_control. Adjust for renamed functions.
9643 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9644 Adjust for renamed functions.
9645 (amd64_linux_dr_reset_addr): Renamed from
9646 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9647 (amd64_linux_dr_get_status): Renamed from
9648 x86_64_linux_dr_get_status. Adjust for renamed functions.
9649 (_initialize_amd64_linux_nat): Renamed from
9650 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9651 functions.
9652 * config/i386/nm-x86-64linux.h: Update copyright year.
9653 Adjust for renamed functions.
9654
9655 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9656 amd64fbsd_sigtramp_start.
9657 (amd64fbsd_sigtramp_end_addr): Renamed from
9658 amd64fbsd_sigtramp_end.
9659 (amd64fbsd_init_abi): Adjust for renamed variables.
9660 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9661 variables.
9662 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9663 amd64fbsd_sigtramp_start.
9664 (amd64fbsd_sigtramp_end_addr): Renamed from
9665 amd64fbsd_sigtramp_end.
9666
9667 2004-02-22 Andrew Cagney <cagney@redhat.com>
9668
9669 * hppa-tdep.c (hppa32_return_value): New function.
9670 (hppa64_return_value): New function.
9671 (hppa_gdbarch_init): Set return_value; keep disabled.
9672
9673 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9674 struct-return and inferior function call methods.
9675
9676 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9677 "frame-base.h".
9678 (struct hppa_frame_cache): Define.
9679 (hppa_frame_cache, hppa_frame_this_id): New functions.
9680 (hppa_frame_prev_register): New function.
9681 (hppa_frame_unwind, hppa_frame_base): New variables.
9682 (hppa_frame_unwind_sniffer): New function.
9683 (hppa_frame_base_address, hppa_unwind_pc): New function.
9684 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9685 sniffer, and frame base sniffer; keep disabled.
9686 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9687 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9688
9689 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9690 to predicates for "seriously old code".
9691
9692 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9693 runtime if(0).
9694
9695 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9696 unsigned.
9697 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9698
9699 * config/pa/tm-hppa.h: Update copyright.
9700 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9701 (deprecated_init_frame_pc_default): Delete declaration.
9702 (hppa_frame_init_saved_regs): Delete declaration.
9703 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9704 * hppa-tdep.c: Include "arch-utils.h".
9705 (hppa_gdbarch_init): Set deprecated init_frame_pc
9706 and deprecated frame_init_saved_regs.
9707 (hppa_frame_init_saved_regs): Make static.
9708
9709 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9710
9711 Remove old 386BSD support.
9712 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9713 * configure.host: Remove i[34567]86-*-bsd*.
9714 * configure.tgt: Remove i[34567]86-*-bsd*.
9715 * i386b-nat.c: Removed.
9716 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9717 (i386b-nat.o): Remove dependencies.
9718
9719 * config/i386/i386bsd.mh: Removed.
9720 * config/i386/i386bsd.mt: Removed.
9721 * config/i386/nm-i386bsd.h: Removed.
9722 * config/i386/tm-i386bsd.h: Removed.
9723 * config/i386/xm-i386bsd.h: Removed.
9724
9725 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9726
9727 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9728 (amd64fbsd_init_abi): Set link map offsets.
9729 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9730 (amd64nbsd_init_abi): Set link map offsets.
9731 * amd64obsd-tdep.c: Include "solib-svr4.h".
9732 (amd64obsd_init_abi): Set link map offsets.
9733 * i386fbsd-tdep.c: Include "solib-svr4.h".
9734 (i386fbsd_init_abi): Set link map offsets.
9735 * i386nbsd-tdep.c: Include "solib-svr4.h".
9736 (i386nbsdelf_init_abi): Set link map offsets.
9737 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9738 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9739 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9740 solib-legacy.o and core-aout.o. Reformat.
9741 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9742 solib-svr4.o, solib-legacy.o. Reformat.
9743 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9744 * config/i386/nbsdelf.mh: Reformat.
9745 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9746 solib-svr4.o, solib-legacy.o and corelow.o.
9747 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9748 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9749 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9750 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9751 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9752 (TM_FILE): Set to tm-fbsd.h.
9753 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9754 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9755 solib-svr4.o.
9756 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9757 solib-svr4.o.
9758 (TM_FILE): Set to nm-nbsd.h.
9759 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9760 Simplify shared library support. Don't include "elf/common.h".
9761 (SVR4_SHARED_LIBS): Don't define.
9762 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9763 "solib.h".
9764 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9765 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9766 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9767 Don't include "i386/tm-i386.h". Include "solib.h".
9768 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9769 Don't include "i386/tm-i386.h".
9770 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9771 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9772 Include "i386/xm-i386.h".
9773 (HOST_LONG_DOUBLE_FORMAT): Remove.
9774
9775 Fix OpenBSD/i386 sigtramp recognition.
9776 * i386-tdep.h: Update copyright year.
9777 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9778 (i386bsd_sigtramp_end): New prototypes.
9779 (i386fbsd_sigtramp_start_addr): Renamed from
9780 i386fbsd_sigtramp_start.
9781 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9782 (i386obsd_sigtramp_start_addr): Renamed from
9783 i386obsd_sigtramp_start.
9784 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9785 * i386bsd-tdep.c: Update copyright year.
9786 (i386bsd_pc_in_sigtramp): Make public.
9787 * i386fbsd-nat.c: Update copyright year.
9788 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9789 * i386fbsd-tdep.c: Update copyright year.
9790 (i386fbsd_sigtramp_start_addr): Renamed from
9791 i386fbsd_sigtramp_start.
9792 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9793 (i386fbsdaout_init_abi): Adjust for renamed variables.
9794 * i386obsd-nat.c: Update copyright year.
9795 (_initialize_i386obsd_nat): Adjust for renamed variables.
9796 * i386obsd-tdep.c: Include "target.h".
9797 (i386obsd_page_size): New variable.
9798 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9799 (i386obsd_sigtramp_end): New functions.
9800 (i386obsd_sigtramp_start_addr): Renamed from
9801 i386obsd_sigtramp_start.
9802 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9803 (i386obsd_init_abi): Adjust for renamed variables. Set
9804 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9805 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9806
9807 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9808 trampoline change in OpenBSD kernel.
9809
9810 * amd64-nat.c: Update copyright year.
9811 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9812 architecture from REGCACHE.
9813
9814 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9815 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9816
9817 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9818
9819 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9820 i[34567]86-*-openbsd3.[0-3].
9821 * config/i386/obsdaout.mh: New file.
9822
9823 * config/i386/obsd.mh (MH_FLAGS): Remove.
9824
9825 Fix PR build/1549.
9826 * i386obsd-tdep.c: Update copyright years. Include
9827 "solib-svr4.h".
9828 (i386obsd_init_abi): Don't set regset_from_core_section here.
9829 (i386obsd_aout_init_abi): New function. Set
9830 regset_from_core_section here.
9831 (i386obsd_elf_init_abi): New function.
9832 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9833 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9834 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9835 (TM_FILE): Set to tm-nbsd.h.
9836
9837 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9838 solib-sunos.o.
9839
9840 * solib-svr4.h: Update copyright year.
9841 (svr4_ilp32_fetch_link_map_offsets)
9842 (svr4_lp64_fetch_link_map_offsets): New prototype.
9843 * solib-svr4.c: Update copyright year.
9844 (svr4_ilp32_fetch_link_map_offsets)
9845 (svr4_lp64_fetch_link_map_offsets): New function.
9846
9847 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9848
9849 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9850 to the partial symbol table.
9851
9852 2004-02-20 J. brobecker <brobecker@gnat.com>
9853
9854 * PROBLEMS: Add description of problem documented under gdb/1560.
9855
9856 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9857
9858 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9859 comments.
9860 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9861 functions.
9862 (amd64obsd_init_abi): Reorder initializations. Use
9863 amd64obsd_r_reg_offset to initialize the general-purpose register
9864 set details. Set regset_from_core_section.
9865 (_initialize_amd64obsd_tdep): Rename from
9866 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9867 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9868 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9869
9870 * NEWS (New native configurations): Mention OpenBSD/alpha.
9871 * configure.tgt: Add alpha*-*-openbsd*.
9872 * configure.host: Add alpha*-*-openbsd*.
9873 * alphanbsd-tdep.c: Update copyright year.
9874 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9875
9876 2004-02-20 Andrew Cagney <cagney@redhat.com>
9877
9878 Fix PR tdep/1372.
9879 * configure.tgt: Delete target "none-*-*".
9880 * configure.host: Delete host "none-*-*".
9881 * config/none/none.mh: Delete file.
9882 * config/none/none.mt: Delete file.
9883 * config/none/xm-none.h: Delete file.
9884 * config/none/tm-none.h: Delete file.
9885 * config/none/nm-none.h: Delete file.
9886
9887 2004-02-19 Fred Fish <fnf@redhat.com>
9888
9889 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9890 cache->uses_fp prior to setting it.
9891
9892 2004-02-19 Fred Fish <fnf@redhat.com>
9893
9894 Fix for PR breakpoint/1558.
9895 * sh-tdep.c (IS_JSR): New macro.
9896 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9897
9898 2004-02-19 Jim Blandy <jimb@redhat.com>
9899
9900 * findvar.c (value_from_register): Doc fix.
9901
9902 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9903
9904 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9905 type being greater than sizeof of host's LONGEST. Always use
9906 unpack_long() unless format 'f' chosen.
9907
9908 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9909
9910 Committed by Elena Zannoni <ezannoni@redhat.com>
9911
9912 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9913 contains a symbol wich is the best, non-exact match for the given
9914 pc. Update comments.
9915
9916 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9917
9918 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9919 macro, which was part of the now removed Mach 3 port.
9920 * utils.c (request_quit): Ditto.
9921
9922 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9923
9924 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9925 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9926
9927 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9928
9929 Committed by Mark Kettenis <kettenis@gnu.org>.
9930
9931 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9932 Define.
9933
9934 2004-02-18 Andrew Cagney <cagney@redhat.com>
9935
9936 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9937 CONFIG_INSTALL and CONFIG_UNINSTALL.
9938 * configure: Re-generate.
9939 * interps.h (INTERP_TUI): Define.
9940 * Makefile.in: Update dependencies.
9941 (TUI): New macro.
9942 (tui-main.o): Specify dependencies.
9943 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9944 * tui/tui-main.c: New file.
9945
9946 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9947
9948 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9949 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9950 dependencies.
9951 * configure.host: Add x86_64-*-openbsd*.
9952 * configure.tgt: Add x86_64-*-openbsd*.
9953 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9954
9955 * tui/tui.c: Don't include <malloc.h>.
9956
9957 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9958 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9959 amd64nbsd-tdep.c.
9960
9961 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9962 static. Remove extraneous whitespace.
9963 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9964 static.
9965
9966 2004-02-17 Jim Blandy <jimb@redhat.com>
9967
9968 * findvar.c (value_from_register): Doc fix.
9969
9970 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9971
9972 Committed by Jim Blandy <jimb@redhat.com>.
9973
9974 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9975 CORE_ADDR as type for selectors. Correct types for GNU run time
9976 message lookup function to use double indirection.
9977 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9978 * objc-lang.h (lookup_child_selector): Adapt prototype.
9979
9980 * s390-nat.c (SUBOFF): New macro.
9981 (supply_gregset, fill_gregset): Use it to handle debugging
9982 of 32-bit exectuables running under a 64-bit kernel.
9983 * s390-tdep.c: Include "solib-svr4.h".
9984 (s390_svr4_fetch_link_map_offset): New function.
9985 (s390x_svr_fetch_link_map_offset): Likewise.
9986 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9987 * Makefile.in (s390-tdep.o): Update dependencies.
9988
9989 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9990 "frame-unwind.h".
9991 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9992 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9993 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9994 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9995 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9996 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9997 S390_SIGNAL_FRAMESIZE,
9998 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9999 (struct frame_extra_info): Remove.
10000 (s390_memset_extra_info): Remove.
10001 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10002 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10003 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10004 (is_rse): Renamed to ...
10005 (is_rsy): ... this. Support long displacements.
10006 (is_rxe): Renamed to ...
10007 (is_rxy): ... this. Support long displacements.
10008 (compute_x_addr): Support long displacements.
10009 (struct s390_prologue_data): New data type.
10010 (s390_on_stack): Change API to use struct s390_prologue_data.
10011 (s390_store): Reimplement.
10012 (s390_load): New function.
10013 (s390_get_signal_frame_info): Remove.
10014 (s390_get_frame_info): Remove, replace by ...
10015 (s390_analyze_prolog): ... this new function.
10016 (s390_check_function_end): Remove.
10017 (s390_function_start): Remove.
10018 (s390_frameless_function_invokation): Remove.
10019 (s390_is_sigreturn): Remove.
10020 (s390_init_frame_pc_first): Remove.
10021 (s390_init_frame_extra_info): Remove.
10022 (s390_frame_init_saved_regs): Remove.
10023 (s390_frame_saved_pc_nofix): Remove.
10024 (s390_frame_saved_pc): Remove.
10025 (s390_frame_chain): Remove.
10026 (s390_fp_regnum, s390_read_fp): Remove.
10027 (s390_pop_frame_regular, s390_pop_frame): Remove.
10028 (s390_saved_pc_after_call): Remove.
10029 (s390_skip_prologue): Reimplement.
10030 (s390_in_function_epilogue_p): Support long displacements.
10031 (struct s390_unwind_cache): New data structure.
10032 (s390_frame_unwind_cache): New function.
10033 (s390_prologue_frame_unwind_cache): Likewise.
10034 (s390_backchain_frame_unwind_cache): Likewise.
10035 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10036 (s390_frame_unwind): Define.
10037 (s390_frame_sniffer): New function.
10038 (struct s390_pltstub_unwind_cache): New data structure.
10039 (s390_pltstub_frame_unwind_cache): New function.
10040 (s390_pltstub_frame_this_id): Likewise.
10041 (s390_pltstub_frame_prev_register): Likewise.
10042 (s390_pltstub_frame_unwind): Define.
10043 (s390_pltstub_frame_sniffer): New function.
10044 (struct s390_sigtramp_unwind_cache): New data structure.
10045 (s390_sigtramp_frame_unwind_cache): New function.
10046 (s390_sigtramp_frame_this_id): Likewise.
10047 (s390_sigtramp_frame_prev_register): Likewise.
10048 (s390_sigtramp_frame_unwind): Define.
10049 (s390_sigtramp_frame_sniffer): New function.
10050 (s390_frame_base_address, s390_local_base_address): New functions.
10051 (s390_frame_base): Define.
10052 (s390_unwind_pc, s390_unwind_sp): New function.
10053 (s390_push_dummy_call): Use new frame base location.
10054 (s390_unwind_dummy_id): Likewise.
10055 (s390_gdbarch_init): Remove calls to:
10056 set_gdbarch_frameless_function_invocation,
10057 set_gdbarch_deprecated_init_frame_pc,
10058 set_gdbarch_deprecated_frame_chain,
10059 set_gdbarch_deprecated_frame_init_saved_regs,
10060 set_gdbarch_deprecated_pop_frame,
10061 set_gdbarch_deprecated_init_extra_frame_info,
10062 set_gdbarch_deprecated_init_frame_pc_first,
10063 set_gdbarch_deprecated_target_read_fp,
10064 set_gdbarch_deprecated_frame_saved_pc,
10065 set_gdbarch_deprecated_saved_pc_after_call,
10066 set_gdbarch_deprecated_fp_regnum.
10067 Add calls to:
10068 set_gdbarch_in_solib_call_trampoline,
10069 frame_unwind_append_sniffer,
10070 frame_base_set_default,
10071 set_gdbarch_unwind_pc,
10072 set_gdbarch_unwind_sp.
10073 * Makefile.in (s390-tdep.o): Update dependencies.
10074
10075 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10076 (S390_STACK_FRAME_OVERHEAD): Remove.
10077 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10078 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10079 (s390_promote_integer_argument): Remove.
10080 (s390_cannot_extract_struct_value_address): Remove.
10081 (s390_use_struct_convention, s390_store_struct_return): Remove.
10082 (s390_extract_return_value, s390_store_return_value): Remove.
10083 (s390_return_value_convention, s390_return_value): New functions.
10084 (is_float_singleton): Handle typedefs.
10085 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10086 Remove, replace by ...
10087 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10088 s390_function_arg_integer): ... these new functions.
10089 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10090 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10091 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10092 Fill in tdep->abi.
10093 Remove calls to:
10094 set_gdbarch_deprecated_store_struct_return,
10095 set_gdbarch_deprecated_extract_return_value,
10096 set_gdbarch_deprecated_store_return_value,
10097 set_gdbarch_use_struct_convention,
10098 set_gdbarch_extract_struct_value_address,
10099 set_gdbarch_deprecated_pc_in_call_dummy,
10100 set_gdbarch_deprecated_push_arguments,
10101 set_gdbarch_deprecated_save_dummy_frame_tos,
10102 set_gdbarch_deprecated_push_return_address,
10103 set_gdbarch_deprecated_sizeof_call_dummy_words,
10104 set_gdbarch_deprecated_call_dummy_words,
10105 set_gdbarch_deprecated_dummy_write_sp.
10106 Add calls to:
10107 set_gdbarch_push_dummy_call,
10108 set_gdbarch_unwind_dummy_id,
10109 set_gdbarch_return_value.
10110
10111 * config/s390/nm-linux.h: Update comments.
10112 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10113 (STOPPED_BY_WATCHPOINT): Redefine.
10114 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10115 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10116 (s390_stopped_by_watchpoint): Likewise.
10117 (watch_area_cnt): Remove.
10118 * s390-nat.c: Update comments.
10119 (watch_area): Remove typedef.
10120 Global replace watch_area by struct watch_area.
10121 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10122 (s390_stopped_by_watchpoint): Remove pid argument,
10123 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10124 (s390_fix_watch_points): Remove pid argument,
10125 use s390_inferior_tid. Recompute area spanned by watchpoints.
10126 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10127 argument. Reimplement.
10128
10129 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10130 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10131 (FETCH_INFERIOR_REGISTERS): Define.
10132 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10133 core-regset.o.
10134 * config/s390/s390x.mt: Remove.
10135 * config/s390/tm-s390.h: Remove.
10136 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10137 (TARGET_ELF64): Remove.
10138 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10139 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10140 s390*-*-* case; always set gdb_target to s390.
10141 * regformats/reg-s390.dat: Remove control registers.
10142 * regformats/reg-s390x.dat: Likewise.
10143 * s390-tdep.h: New file.
10144 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10145 Include "inferior.h" and "s390-tdep.h".
10146 Remove private definition of offsetof.
10147 (s390_register_u_addr): Remove.
10148 (regmap_gregset, regmap_fpregset): Define.
10149 (supply_gregset, fill_gregset): Reimplement.
10150 (supply_fpregset, fill_fpregset): Likewise.
10151 (s390_inferior_tid): New function.
10152 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10153 (fetch_inferior_registers, store_inferior_registers): Likewise.
10154 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10155 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10156 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10157 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10158 (struct gdbarch_tdep): Define.
10159 (struct s390_register_info): Define.
10160 (s390_register_info): New variable.
10161 (s390_register_name): Reimplement.
10162 (s390_register_type): New function.
10163 (s390_register_raw_size, s390x_register_raw_size): Remove.
10164 (s390_cannot_fetch_register): Remove.
10165 (s390_register_byte): Remove.
10166 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10167 (s390_dwarf_regmap): New variable.
10168 (s390_dwarf_reg_to_regnum): New function.
10169 (s390_stab_reg_to_regnum): Remove.
10170 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10171 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10172 (s390_convert_register_p): Likewise.
10173 (s390_register_to_value, s390_value_to_register): Likewise.
10174 (s390_register_reggroup_p): Likewise.
10175 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10176 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10177 (s390_supply_regset, s390_regset_from_core_section): New functions.
10178 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10179 (S390_FPR_SIZE): Likewise.
10180 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10181 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10182 (S390_NUM_GPRS): Move here from tm-s390.h.
10183 (S390_NUM_FPRS): Likewise.
10184 (s390_in_function_epilogue_p): New function.
10185 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10186 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10187 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10188 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10189 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10190 Remove calls to:
10191 set_gdbarch_deprecated_max_register_raw_size,
10192 set_gdbarch_deprecated_max_register_virtual_size,
10193 set_gdbarch_deprecated_register_byte,
10194 set_gdbarch_cannot_fetch_register,
10195 set_gdbarch_cannot_store_register,
10196 set_gdbarch_deprecated_register_size,
10197 set_gdbarch_deprecated_register_raw_size,
10198 set_gdbarch_deprecated_register_virtual_size,
10199 set_gdbarch_deprecated_register_virtual_type,
10200 set_gdbarch_deprecated_register_bytes.
10201 Add calls to:
10202 set_gdbarch_num_pseudo_regs,
10203 set_gdbarch_register_type,
10204 set_gdbarch_convert_register_p,
10205 set_gdbarch_register_to_value,
10206 set_gdbarch_value_to_register,
10207 set_gdbarch_register_reggroup_p,
10208 set_gdbarch_regset_from_core_section,
10209 set_gdbarch_pseudo_register_read,
10210 set_gdbarch_pseudo_register_write,
10211 set_gdbarch_in_function_epilogue_p.
10212 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10213 (s390_tdep_h): New variable.
10214
10215 2004-02-17 Jim Blandy <jimb@redhat.com>
10216
10217 * findvar.c (value_from_register): If the type has no length, just
10218 return an acceptable value --- don't report an internal error.
10219
10220 * stabsread.c (read_type): If we find any type numbers that are
10221 forward references, complain if the references aren't resolved by
10222 the time we're finished reading.
10223 (cleanup_undefined_types): Make error message more appropriate for
10224 a complaint.
10225
10226 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10227
10228 * Makefile.in (defs_h): Remove dependency on progress_h.
10229 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10230 progress.h.
10231 * main.c (captured_main): Delete use of START_PROGRESS and
10232 END_PROGRESS.
10233
10234 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10235
10236 * objfiles.c (terminate_minimal_symbol_table): Add back
10237 initialization of MSYMBOL_TYPE.
10238
10239 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10240
10241 Committed by Andrew Cagney.
10242 * Makefile.in (ia64_tdep_h): New macro.
10243 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10244 (ia64-tdep.o): Likewise.
10245 * ia64-tdep.h: New file.
10246 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10247 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10248 (ia64_aix_sigcontext_register_address): Likewise.
10249 (ia64_linux_getunwind_table): Delete declaration.
10250 * ia64-linux-tdep.c: Likewise.
10251
10252 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10253
10254 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10255 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10256 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10257
10258 2004-02-17 Andrew Cagney <cagney@redhat.com>
10259
10260 * symtab.c (skip_prologue_using_sal): New function.
10261 * symtab.h (skip_prologue_using_sal): Declare.
10262 * frv-tdep.c: Include "symtab.h".
10263 (skip_prologue_using_sal): Delete function.
10264 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10265 * rs6000-tdep.c (refine_prologue_limit): Mention
10266 skip_prologue_using_sal.
10267 * ia64-tdep.c (refine_prologue_limit): Ditto.
10268 * Makefile.in: Update dependencies.
10269
10270 2004-02-16 Andrew Cagney <cagney@redhat.com>
10271
10272 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10273 START_INFERIOR_TRAPS_EXPECTED.
10274 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10275 START_INFERIOR_TRAPS_EXPECTED.
10276 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10277 Delete macro.
10278 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10279 macro, moved to "nm-osf.h". Update copyright.
10280 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10281 update copyright.
10282
10283 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10284 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10285 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10286 frameless_look_for_prologue.
10287 * frame.h (legacy_frameless_look_for_prologue): Rename
10288 frameless_look_for_prologue.
10289 * gdbarch.h, gdbarch.c: Re-generate.
10290 * sh64-tdep.c (sh64_gdbarch_init): Update.
10291 * sh-tdep.c (sh_gdbarch_init): Update.
10292 * s390-tdep.c (s390_gdbarch_init): Update.
10293 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10294 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10295 * m68k-tdep.c (m68k_gdbarch_init): Update.
10296 (delta68_frame_args_address): Update.
10297 * m32r-tdep.c (m32r_gdbarch_init): Update.
10298 * hppa-tdep.c (hppa_gdbarch_init): Update.
10299 * h8300-tdep.c (h8300_gdbarch_init): Update.
10300 * frv-tdep.c (frv_gdbarch_init): Update.
10301 (frv_frameless_function_invocation): Update.
10302 * cris-tdep.c (cris_gdbarch_init): Update.
10303 (cris_frameless_function_invocation): Update.
10304 * avr-tdep.c (avr_gdbarch_init): Update.
10305 * arm-tdep.c (arm_gdbarch_init): Update.
10306 * stack.c (frame_info): Update, call predicate.
10307 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10308 * frame.c (legacy_get_prev_frame): Update, call predicate..
10309 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10310 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10311 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10312 invocation.
10313 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10314 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10315 * vax-tdep.c (vax_gdbarch_init): Ditto.
10316
10317 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10318 function.
10319
10320 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10321
10322 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10323 initializations.
10324
10325 2004-02-16 Andrew Cagney <cagney@redhat.com>
10326
10327 * tui/tui-windata.c: Include "gdb_string.h".
10328 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10329 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10330 * Makefile.in: Update dependencies.
10331
10332 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10335 * infrun.c: Include "gdb_assert.h".
10336 (singlestep_ptid, saved_singlestep_ptid)
10337 (stepping_past_singlestep_breakpoint): New variables.
10338 (resume): Set singlestep_ptid. Check for singlestep thread
10339 hop.
10340 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10341 (handle_inferior_event): Handle singlestep thread hop.
10342
10343 2004-02-16 Andrew Cagney <cagney@redhat.com>
10344
10345 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10346 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10347 (dwarf2_frame_init_reg): Ditto.
10348
10349 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10350 suggested by Joshua Neuheisel
10351
10352 * configure.in: Always check for curses, including pdcurses.
10353 Warn, instead of error, when no curses are found. Enable TUI when
10354 curses is available.
10355 * configure: Re-generate.
10356
10357 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10358
10359 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10360 sh_sh4_register_convert_to_virtual.
10361 (sh_register_convert_to_raw): Rename from
10362 sh_sh4_register_convert_to_raw.
10363 (sh_pseudo_register_read): Accomodate above name change.
10364 (sh_pseudo_register_write): Ditto.
10365
10366 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10367
10368 * sh-tdep.c (sh_generic_register_name): Remove.
10369 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10370
10371 2004-02-15 Andrew Cagney <cagney@redhat.com>
10372
10373 * configure.in (build_warnings): Add -Wunused-function.
10374 * configure: Re-generate.
10375
10376 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10377 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10378
10379 * procfs.c (procfs_init_inferior): Assume that
10380 START_INFERIOR_TRAPS_EXPECTED is defined.
10381 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10382 * config/ns32k/tm-nbsd.h: Delete file,
10383 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10384
10385 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10386 * config/vax/tm-vax.h: Delete file.
10387
10388 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10389 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10390 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10391 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10392 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10393 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10394 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10395
10396 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10397
10398 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10399 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10400 (struct dwarf2_frame_ops): New.
10401 (dwarf2_frame_default_init_reg): New function, based on
10402 dwarf2_frame_init_reg.
10403 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10404 (dwarf2_frame_init_reg): Call architecture-specific function.
10405 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10406 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10407 instead of dwarf2_frame_data.
10408 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10409 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10410
10411 2004-02-15 Andrew Cagney <cagney@redhat.com>
10412
10413 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10414 register_gdbarch_swap.
10415 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10416 * f-lang.c (_initialize_f_language): Update, use
10417 DEPRECATED_REGISTER_GDBARCH_SWAP.
10418 * remote.c (_initialize_remote): Ditto.
10419 * regcache.c (_initialize_regcache): Ditto.
10420 * parse.c (_initialize_parse): Ditto.
10421 * infrun.c (_initialize_infrun): Ditto.
10422 * mi/mi-main.c (_initialize_mi_main): Ditto.
10423 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10424
10425 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10426 poking .cacheable directly.
10427 * symfile.c (symfile_bfd_open): Ditto.
10428
10429 * Makefile.in: Update all dependencies.
10430
10431 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10432 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10433 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10434 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10435 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10436
10437 2004-02-14 Andrew Cagney <cagney@redhat.com>
10438
10439 * arch-utils.c (legacy_convert_register_p): Check
10440 DEPRECATED_REGISTER_CONVERTIBLE_P.
10441 * findvar.c (value_of_register): Ditto.
10442
10443 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10444 * gdbarch.h, gdbarch.c: Re-generate.
10445 * arch-utils.c (deprecated_register_convertible_not): Delete.
10446 * arch-utils.h (deprecated_register_convertible_not): Delete.
10447 * mi/mi-main.c (get_register): Update. Update copyright.
10448 * infcmd.c (default_print_registers_info): Update.
10449
10450 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10451 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10452 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10453 * gdbarch.h, gdbarch.c: Re-generate.
10454 * frame.c (deprecated_get_next_frame_hack): Delete function.
10455 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10456 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10457 Update.
10458 * infcall.c (call_function_by_hand): Update.
10459
10460 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10461
10462 * symfile.c (init_entry_point_info, entry_point_address): Move
10463 from here...
10464 * objfiles.c (init_entry_point_info, entry_point_address):..to
10465 here.
10466 * symfile.h (init_entry_point_info, entry_point_address): Remove
10467 prototypes.
10468 * objfiles.h (init_entry_point_info, entry_point_address):Add
10469 prototypes.
10470 * cris-tdep.c: Remove include of symfile.h. Add include of
10471 objfiles.h.
10472 * infcall.c: Ditto.
10473 * mcore-tdep.c: Ditto.
10474 * mn10300-tdep.c: Ditto.
10475 * sh64-tdep.c: Ditto.
10476 * v850-tdep.c: Ditto.
10477 * arm-tdep.c: Remove include of symfile.h.
10478 * blockframe.c: Ditto.
10479 * coffread.c: Ditto.
10480 * dbxread.c: Ditto.
10481 * dwarf2read.c: Ditto.
10482 * dwarfread.c: Ditto.
10483 * frv-tdep.c: Ditto.
10484 * ia64-tdep.c: Ditto.
10485 * mdebugread.c: Ditto.
10486 * mipsread.c: Ditto.
10487 * rs6000-tdep.c: Ditto.
10488 * s390-tdep.c: Ditto.
10489 * sh-tdep.c: Ditto.
10490 * xstormy16-tdep.c: Ditto.
10491 * gdbarch.sh: Remove include of symfile.h.
10492 * gdbarch.c: Regenerate.
10493 * solib-irix.c (enable_break): Use entry_point_address().
10494 Add comment about include file.
10495 * xcoffread.c: Add comment about include file.
10496 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10497 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10498 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10499 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10500 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10501
10502 2004-02-13 Andrew Cagney <cagney@redhat.com>
10503
10504 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10505 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10506 copyright.
10507 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10508
10509 2004-02-12 Fred Fish <fnf@redhat.com>
10510
10511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10512 set_gdbarch_store_return_value.
10513
10514 2004-02-12 Andrew Cagney <cagney@redhat.com>
10515
10516 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10517 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10518 (interrupt_query): Ditto.
10519 (ofunc): Delete unused variable.
10520 * cris-tdep.c (cris_abi): Delete unused function.
10521 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10522 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10523 (cris_get_asr_quick_shift_steps): Ditto.
10524 (cris_skip_prologue_frameless_p): Ditto.
10525 * arm-tdep.c (arm_push_return_address): Delete unused function.
10526 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10527 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10528 * s390-tdep.c (s390_function_start): Delete unused function.
10529
10530 2004-02-12 Andrew Cagney <cagney@redhat.com>
10531
10532 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10533 gdbarch.h, gdbarch.c: Re-generate.
10534 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10535 to generic_prologue_frameless_p.
10536 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10537 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10538
10539 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * mips-linux-tdep.c: Include "frame.h".
10542 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10543 (mips_linux_skip_resolver): New functions.
10544 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10545 and set_gdbarch_in_solib_call_trampoline.
10546 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10547 to after set_gdbarch_in_solib_return_trampoline. Only set the
10548 solib hooks to mips16 functions if the OS ABI is unknown.
10549 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10550 including "config/tm-linux.h".
10551 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10552 * Makefile.in (mips-linux-tdep.o): Update.
10553
10554 2004-02-11 David Carlton <carlton@kealia.com>
10555
10556 * linespec.c (decode_compound): Only look for a class symbol when
10557 considering all but the rightmost component.
10558
10559 2004-02-11 Andrew Cagney <cagney@redhat.com>
10560
10561 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10562 abi code are are separatly grouped.
10563
10564 2004-02-11 Andrew Cagney <cagney@redhat.com>
10565
10566 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10567 * gdbarch.h, gdbarch.c: Re-generate.
10568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10569 * v850-tdep.c (v850_gdbarch_init): Update.
10570 * sh64-tdep.c (sh64_gdbarch_init): Update.
10571 * sh-tdep.c (sh_gdbarch_init): Update.
10572 * s390-tdep.c (s390_gdbarch_init): Update.
10573 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10574 * mips-tdep.c (mips_gdbarch_init): Update.
10575 * mcore-tdep.c (mcore_gdbarch_init): Update.
10576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10577 * m32r-tdep.c (m32r_gdbarch_init): Update.
10578 * ia64-tdep.c (ia64_gdbarch_init): Update.
10579 * hppa-tdep.c (hppa_gdbarch_init): Update.
10580 * h8300-tdep.c (h8300_gdbarch_init): Update.
10581 * frv-tdep.c (frv_gdbarch_init): Update.
10582 * d10v-tdep.c (d10v_gdbarch_init): Update.
10583 * cris-tdep.c (cris_gdbarch_init): Update.
10584 * avr-tdep.c (avr_gdbarch_init): Update.
10585 * arm-tdep.c (arm_gdbarch_init): Update.
10586 * alpha-tdep.c (alpha_gdbarch_init): Update.
10587
10588 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10589
10590 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10591 comma.
10592 (sh_sh4al_dsp_register_name): Ditto.
10593
10594 2004-02-10 Andrew Cagney <cagney@redhat.com>
10595
10596 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10597 (mips_init_frame_pc_first): Delete function.
10598 (mips_frame_saved_pc): Delete function.
10599 (mips_frame_chain): Delete function.
10600 (mips_init_extra_frame_info): Delete function.
10601 (mips_xfer_register): Delete unused variable "reg".
10602 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10603 (mips_n32n64_return_value): Delete unused variable "reg".
10604 (mips_n32n64_return_value): Delete unused variable "pos".
10605 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10606 (mips_o32_return_value): Delete unused variable "pos".
10607 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10608 (mips_print_fp_register): Delete unused variable "namelen"
10609 (mips_print_fp_register): Delete unused variable "flt2"
10610 (get_frame_pointer): Delete function.
10611 (cached_proc_desc): Delete static variable.
10612 (mips_pop_frame): Delete function.
10613 (mips_find_saved_regs): Delete function.
10614 (mips_get_saved_register): Delete function.
10615 (mips_saved_pc_after_call): Delete function.
10616 (SIGFRAME_BASE): Delete macro.
10617 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10618 (SIGFRAME_PC_OFF): Delete macro.
10619 (SIGFRAME_REGSAVE_OFF): Delete macro.
10620 (mips_dump_tdep): Do not print deleted macro definitions.
10621
10622 2004-02-10 Andrew Cagney <cagney@redhat.com>
10623
10624 * Makefile.in (SFILES): Remove explictly listed tui files.
10625 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10626
10627 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10628
10629 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10630 to use paddr functions to format ia64 addresses and long values.
10631 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10632 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10633 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10634 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10635 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10636
10637 2004-02-10 Andrew Cagney <cagney@redhat.com>
10638
10639 * defs.h: Do not include "tui.h".
10640 * gdb_curses.h: New file.
10641 * tui/tui-hooks.h: New file.
10642 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10643 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10644 (tui_initialize_io): Delete declaration.
10645 (tui_initialize_readline: Delete redundant declaration.
10646 (struct tui_point): Delete definition.
10647 * tui/tui-data.h (struct tui_point): Define.
10648 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10649 * utils.c: Include "tui/tui.h".
10650 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10651 * printcmd.c [TUI]: Include "tui/tui.h".
10652 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10653 * tui/tui-command.c: Include "gdb_curses.h".
10654 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10655 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10656 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10657 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10658 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10659 * Makefile.in: Update all dependencies.
10660 (tui_hooks_h, gdb_curses_h): Define.
10661 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10662
10663 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10664
10665 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10666 auxf2. Add comments about some other rarely used fields.
10667
10668 2004-02-10 Andrew Cagney <cagney@redhat.com>
10669
10670 * Makefile.in (init.c): Fix script removing duplicates. Problem
10671 reported by Peter Schauer.
10672
10673 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10674
10675 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10676 obstack_specify_allocation.
10677 * objfiles.c (allocate_objfile): Ditto.
10678 * solib-sunos.c (solib_add_common_symbols)
10679 (allocate_rt_common_objfile): Ditto.
10680 * symfile.c (reread_symbols): Ditto.
10681 * gdb_obstack.h: Add comment.
10682
10683 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10684
10685 * linespec.c (decode_line_1, locate_first_half)
10686 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10687 commented out code.
10688
10689 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10690
10691 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10692 obstack_free.
10693
10694 2004-02-09 Andrew Cagney <cagney@redhat.com>
10695
10696 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10697 fails, try find_pc_section. Fix PR c++/1267.
10698 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10699 instead of find_pc_mapped_section.
10700 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10701 not default to the section containing PC. Fix PR symtab/1519.
10702
10703 2004-02-09 Andrew Cagney <cagney@redhat.com>
10704
10705 * Makefile.in (mips-tdep.o): Update dependencies.
10706 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10707 "trad-frame.h".
10708 (mips_unwind_pc): Return the pseudo PC register.
10709 (mips_unwind_dummy_id): New function.
10710 (mips16_fetch_instruction): New function.
10711 (mips32_fetch_instruction): New function.
10712 (struct mips_frame_cache): Define.
10713 (mips_mdebug_frame_cache): New function.
10714 (mips_mdebug_frame_this_id): New function.
10715 (mips_mdebug_frame_prev_register): New function.
10716 (mips_mdebug_frame_unwind): Define.
10717 (mips_mdebug_frame_sniffer): New function.
10718 (mips_mdebug_frame_base_address): New function.
10719 (mips_mdebug_frame_base): Define.
10720 (mips_mdebug_frame_base_sniffer): New function.
10721 (mips_gdbarch_init): Append unwind and base sniffers. Set
10722 unwind_dummy_id.
10723
10724 2004-02-08 Andrew Cagney <cagney@redhat.com>
10725
10726 * frame.c: Print both the register number and name.
10727
10728 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10729 and a sed into a single sed. Make .c and .o patterns more robust.
10730 (OBS): Delete.
10731 (INIT_FILES): Replace OBS with COMMON_OBS.
10732 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10733
10734 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10735
10736 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10737 the PT_WCOOKIE request.
10738
10739 2004-02-08 Andrew Cagney <cagney@redhat.com>
10740
10741 * mips-tdep.c (mips_unwind_pc): New function.
10742 (mips_gdbarch_init): Set mips_unwind_pc.
10743
10744 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10745 (get_frame_id): Allow the UNKNOWN_FRAME.
10746 (frame_register_unwind, get_frame_type): Ditto.
10747
10748 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10749 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10750 unwind_dummy_id indicates a legacy frame.
10751
10752 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10753 * configure: Re-generate.
10754
10755 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10756 methods.
10757
10758 2004-02-08 Andrew Cagney <cagney@redhat.com>
10759
10760 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10761 makefile macro.
10762 * configure: Re-generate.
10763 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10764 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10765 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10766 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10767 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10768 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10769 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10770 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10771 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10772 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10773
10774 2004-02-07 Andrew Cagney <cagney@redhat.com>
10775
10776 * Makefile.in: Update all dependencies.
10777
10778 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10779 * configure: Re-generate.
10780 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10781 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10782 (COMMON_OBS): Add "main.o" and "annotate.o".
10783 (ANNOTATE_OBS): Delete.
10784 (OBS): Remove ANNOTATE_OBS.
10785 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10786 CONFIG_INITS.
10787 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10788 against CONFIG_OBS and "main.o".
10789 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10790 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10791
10792 * tui/tui-command.c: Include "gdb_string.h", delete register
10793 attribute, use ISO-C function signatures.
10794 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10795 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10796 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10797 * tui/tui.c: Ditto.
10798
10799 * tui/tui-command.c: Change variable and function names to lower
10800 case.
10801 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10802 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10803 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10804 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10805 * tui/tui-winsource.c, tui/tui.c: Ditto.
10806
10807 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10808
10809 * buildsym.c (free_pending_blocks, finish_block)
10810 (record_pending_block, make_blockvector, end_symtab): Replace
10811 symbol_obstack with objfile_obstack.
10812 * coffread.c (process_coff_symbol, coff_read_struct_type)
10813 (coff_read_enum_type): Ditto.
10814 * cp-namespace.c (initialize_namespace_symtab)
10815 (check_one_possible_namespace_symbol): Ditto.
10816 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10817 (dwarf2_symbol_mark_computed): Ditto.
10818 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10819 * elfread.c (elf_symtab_read): Ditto.
10820 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10821 (hpread_read_enum_type, hpread_read_function_type)
10822 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10823 Ditto.
10824 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10825 (java_link_class_type): Ditto.
10826 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10827 (new_symbol): Ditto.
10828 * minsyms.c (install_minimal_symbols): Ditto.
10829 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10830 (terminate_minimal_symbol_table): Replace symbol_obstack with
10831 objfile_obstack.
10832 (free_objfile): Remove freeing of symbol_obstack.
10833 * objfiles.h: Remove symbol_obstack field.
10834 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10835 objfile_obstack.
10836 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10837 symbol_obstack.
10838 (solib_add_common_symbols): Replace symbol_obstack with
10839 objfile_obstack.
10840 * somsolib.c (som_solib_add): Ditto.
10841 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10842 (common_block_start, common_block_end): Ditto.
10843 * symfile.c (reread_symbols): Remove freeing and init of
10844 symbol_obstack.
10845 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10846 * symfile.h: Update comment.
10847 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10848 stats printing.
10849 * symtab.c (symbol_set_names): Replace symbol_obstack with
10850 objfile_obstack.
10851 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10852 Update comments.
10853 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10854 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10855 objfile_obstack.
10856
10857 2004-02-07 Andrew Cagney <cagney@redhat.com>
10858
10859 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10860 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10861 fields and variables.
10862 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10863 (m_beInvisible): Delete macro.
10864 * tui/tui-data.h: Fix case case fields and variables.
10865 (m_genWinPtrIsNull): Delete macro.
10866 (tui_win_list): Rename winList.
10867 (TUI_SRC_WIN): Rename srcWin.
10868 (TUI_DISASM_WIN): Rename disassemWin.
10869 (TUI_DATA_WIN): Rename dataWin.
10870 (TUI_CMD_WIN): Rename cmdWin.
10871 (m_genWinPtrNotNull): Delete macro.
10872 (m_winPtrIsNull): Delete macro.
10873 (m_winPtrNotNull): Delete macro.
10874 (tui_win_is_source_type): Replace m_winIsSourceType
10875 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10876 (tui_win_has_locator): Replace m_hasLocator.
10877 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10878 m_setWinHighlightOff.
10879 * tui/tui-data.c: Update references.
10880 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10881 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10882 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10883 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10884 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10885 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10886 * tui/tui-winsource.c, tui/tui.c: Ditto.
10887
10888 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10889
10890 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10891 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10892 StackGhost.
10893
10894 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10895 variable `i6' to `i7'.
10896 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10897
10898 2004-02-07 Andrew Cagney <cagney@redhat.com>
10899
10900 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10901 (TuiPoint, TuiPointPtr): Ditto.
10902 (TuiStatus, TuiStatusPtr): Ditto.
10903 (TuiWinType, TuiWinTypePtr): Ditto.
10904 (struct tui_point): Rename _TuiPoint.
10905 (tui_get_low_disassembly_address): Rename
10906 tuiGetLowDisassemblyAddress.
10907 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10908 (tuiFree): Delete declaration.
10909 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10910 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10911 * tui/tui.c (tuiFree): Delete function.
10912 * cli/cli-cmds.c (disassemble_command): Update references.
10913 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10914 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10915 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10916 * tui/tui-winsource.c: Ditto.
10917
10918 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10919
10920 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10921 coffstab_build_psymtabs, elfstab_build_psymtabs)
10922 (stabsect_build_psymtabs): Replace psymbol_obstack with
10923 objfile_obstack.
10924 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10925 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10926 Ditto.
10927 * dwarfread.c (scan_compilation_units): Ditto.
10928 * elfread.c (elfstab_offset_sections): Ditto.
10929 * hppa-tdep.c (read_unwind_info): Ditto.
10930 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10931 (hpread_end_psymtab): Ditto.
10932 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10933 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10934 Ditto.
10935 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10936 * objfiles.c (add_to_objfile_sections)
10937 (build_objfile_section_table): Ditto.
10938 (allocate_objfile): Remove init of psymbol_obstack.
10939 (free_objfile): Remove freeing of psymbol_obstack.
10940 * objfiles.h (struct objfile): Remove field
10941 psymbol_obstack. Update comments.
10942 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10943 psymbol_obstack with objfile_obstack.
10944 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10945 psymbol_obstack.
10946 * somread.c (som_symfile_offsets, init_import_symbols)
10947 (init_export_symbols): Replace psymbol_obstack with
10948 objfile_obstack.
10949 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10950 * symfile.c (default_symfile_offsets, syms_from_objfile)
10951 (reread_symbols): Remove freeing and init of psymbol_obstack.
10952 (cashier_psymtab): Update comment.
10953 * symmisc.c (print_objfile_statistics): Don't report stats for
10954 psymbol obstack.
10955 * symtab.h (struct general_symbol_info, struct partial_symtab):
10956 Update comments.
10957 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10958 (xcoff_symfile_offsets): Replace psymbol_obstack with
10959 objfile_obstack.
10960
10961 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10962
10963 * objfiles.h (struct objfile): Add objfile_obstack field.
10964 Remove type_obstack field.
10965
10966 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10967 read_structure_scope read_enumeration, new_symbol): Replace
10968 type_obstack with objfile_obstack.
10969 * dwarfread.c (struct_type, enum_type): Ditto.
10970 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10971 (lookup_fundamental_type): Ditto.
10972 * gdbtypes.h (TYPE_ALLOC): Ditto.
10973 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10974 (hpread_read_doc_function_type, hpread_read_struct_type)
10975 (fix_static_member_physnames, hpread_read_array_type)
10976 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10977 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10978 (java_link_class_type): Ditto.
10979 * mdebugread.c (parse_type): Ditto.
10980 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10981 * solib-sunos.c (solib_add_common_symbols): Ditto.
10982 * stabsread.c (define_symbol, read_type, read_member_functions,
10983 read_cpp_abbrev, read_one_struct_field): Ditto.
10984 * symfile.c (reread_symbols): Ditto.
10985 * symmisc.c (print_objfile_statistics): Ditto.
10986
10987 2004-02-07 Andrew Cagney <cagney@redhat.com>
10988
10989 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10990 (tui_exec_info_content): Rename TuiExecInfoContent.
10991 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10992 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10993 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10994 (TuiList, TuiListPtr): Ditto.
10995 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10996 (TuiDataType, TuiDataTypePtr): Ditto.
10997 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10998 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10999 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11000 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11001 (TuiDataElement, TuiDataElementPtr): Ditto.
11002 (TuiWinElement, TuiWinElementPtr): Ditto.
11003 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11004 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11005 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11006 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11007 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11008 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11009 * tui/tui-command.c, tui/tui-data.c: Update references.
11010 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11011 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11012 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11013 * tui/tui-winsource.c, tui/tui.c: Ditto.
11014
11015 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11016
11017 * dwarf2-frame.h: Update copyright.
11018 (enum dwarf2_frame_reg_rule): New.
11019 (struct dwarf2_frame_state_reg): New.
11020 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11021 * dwarf2-frame.c: Update copyright.
11022 (enum dwarf2_reg_rule): Remove.
11023 (struct dwarf2_frame_state): Remove defenition of `struct
11024 dwarf2_frame_state_reg'.
11025 (read_reg): Call get_frame_arch to get the architecture instead of
11026 using CURRENT_GDBARCH.
11027 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11028 DWARF2_FRAME_.
11029 (dwarf2_frame_init_reg): New function.
11030 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11031 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11032 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11033 tags with DWARF2_FRAME_.
11034 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11035 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11036 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11037
11038 2004-02-06 Andrew Cagney <cagney@redhat.com>
11039
11040 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11041 (enum tui_data_type): Rename _TuiDataType.
11042 (struct tui_layout_def): Rename _TuiLayoutDef.
11043 (struct tui_source_element): Rename _TuiSourceElement.
11044 (struct tui_data_element): Rename _TuiDataElement.
11045 (struct tui_command_element): Rename _TuiCommandElement.
11046 (struct tui_locator_element): Rename _TuiLocatorElement.
11047 (union tui_which_element): Define.
11048 (struct tui_win_element): Rename _TuiWinElement.
11049 (struct tui_data_info): Rename _TuiDataInfo.
11050 (struct tui_source_info): Rename _TuiSourceInfo.
11051 (struct tui_command_info): Rename _TuiCommandInfo.
11052 (tui_initialize_static_data): Rename initializeStaticData.
11053 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11054 (tui_alloc_win_info): Rename allocWinInfo.
11055 (tui_init_generic_part): Rename initGenericPart.
11056 (tui_init_win_info): Rename initWinInfo.
11057 (tui_alloc_content): Rename allocContent.
11058 (tui_add_content_elements): Rename addContentElements.
11059 (tui_init_content_element): Rename initContentElement.
11060 (tui_free_window): Rename freeWindow.
11061 (tui_free_win_content): Rename freeWinContent.
11062 (tui_free_data_content): Rename freeDataContent.
11063 (tui_free_all_source_wins_content): Rename
11064 freeAllSourceWinsContent.
11065 (tui_del_window): Rename tuiDelWindow.
11066 (tui_del_data_windows): Rename tuiDelDataWindows.
11067 (tui_partial_win_by_name): Rename partialWinByName.
11068 (tui_win_name): Rename winName.
11069 (tui_current_layout): Rename currentLayout.
11070 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11071 (tui_term_height): Rename termHeight.
11072 (tui_set_term_height_to): Rename setTermHeightTo.
11073 (tui_term_width): Rename termWidth.
11074 (tui_set_term_width_to): Rename setTermWidthTo.
11075 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11076 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11077 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11078 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11079 (tui_source_windows): Rename sourceWindows.
11080 (tui_clear_source_windows): Rename clearSourceWindows.
11081 (tui_clear_source_windows_detail): Rename
11082 clearSourceWindowsDetail.
11083 (tui_clear_win_detail): Rename clearWinDetail.
11084 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11085 (tui_default_tab_len): Rename tuiDefaultTabLen.
11086 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11087 (tui_win_with_focus): Rename tuiWinWithFocus.
11088 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11089 (tui_layout_def): Rename tuiLayoutDef.
11090 (tui_win_resized): Rename tuiWinResized.
11091 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11092 (tui_next_win): Rename tuiNextWin.
11093 (tui_prev_win): Rename tuiPrevWin.
11094 (tui_add_to_source_windows): Rename addToSourceWindows.
11095 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11096 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11097 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11098 * tui/tui.c, tui/tui-data.c: Ditto.
11099 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11100 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11101
11102 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11103 (struct symtab): Declare.
11104 (tui_set_source_content): Rename tuiSetSourceContent.
11105 (tui_show_symtab_source): Rename tuiShowSource.
11106 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11107 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11108 * tui/tui-source.c: Update copyright. Update references.
11109 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11110 * tui/tui-stack.c: Update references.
11111
11112 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11113 (struct tui_win_info): Declare.
11114 (tui_scroll_forward): Rename tuiScrollForward.
11115 (tui_scroll_backward): Rename tuiScrollBackward.
11116 (tui_scroll_left): Rename tuiScrollLeft.
11117 (tui_scroll_right): Rename tuiScrollRight.
11118 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11119 (tui_resize_all): Rename tuiResizeAll.
11120 (tui_refresh_all_win): Rename tuiRefreshAll.
11121 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11122 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11123 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11124 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11125
11126 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11127 (tui_erase_data_content): Rename tuiEraseDataContent.
11128 (tui_display_all_data): Rename tuiDisplayAllData.
11129 (tui_check_data_values): Rename tuiCheckDataValues.
11130 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11131 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11132 (tui_first_data_element_no_in_line): Rename
11133 tuiFirstDataElementNoInLine.
11134 (tui_delete_data_content_windows): Rename
11135 tuiDeleteDataContentWindows.
11136 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11137 (tui_display_data_from): Rename tuiDisplayDataFrom.
11138 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11139 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11140 * tui/tui-win.c, tui/tui-regs.c: Update references.
11141 * tui/tui-layout.c, tui/tui.c: Update references.
11142
11143 * tui/tui-wingeneral.h: Update copyright.
11144 (m_allBeVisible): Delete macro.
11145 (m_allBeInvisible): Delete macro.
11146 (struct tui_gen_win_info): Declare.
11147 (struct tui_win_info): Declare.
11148 (tui_unhighlight_win): Rename unhighlightWin.
11149 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11150 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11151 (tui_make_window): Rename makeWindow.
11152 (tui_copy_win): Rename copyWin.
11153 (tui_box_win): Rename boxWin.
11154 (tui_highlight_win): Rename highlightWin.
11155 (tui_check_and_display_highlight_if_needed): Rename
11156 checkAndDisplayHighlightIfNeeded.
11157 (tui_refresh_all): Rename refreshAll.
11158 (tui_delete_win): Rename tuiDelwin.
11159 (tui_refresh_win): Rename tuiRefreshWin.
11160 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11161 (tui_make_visible, tui_make_invisible): New functions.
11162 (tui_make_all_visible, tui_make_all_invisible): New functions.
11163 (make_all_visible): Rename makeAllVisible.
11164 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11165 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11166 * tui/tui-windata.c, tui/tui-win.c: Update references.
11167 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11168 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11169
11170 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11171
11172 * proc-api.c (write_with_trace): Initialize local variable to
11173 silence compiler warning.
11174
11175 2004-02-06 Andrew Cagney <cagney@redhat.com>
11176
11177 * tui/tui-source.h: Do not include "defs.h".
11178 (struct tui_win_info): Declare.
11179 (tui_set_source_content_nil): Declare.
11180 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11181 (union tui_line_or_address): Rename _TuiLineOrAddress.
11182 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11183 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11184 (tui_update_source_window_as_is): Rename
11185 tuiUpdateSourceWindowAsIs.
11186 (tui_update_source_windows_with_addr): Rename
11187 tuiUpdateSourceWindowsWithAddr.
11188 (tui_update_source_windows_with_line): Rename
11189 tuiUpdateSourceWindowsWithLine.
11190 (tui_clear_source_content): Rename tuiClearSourceContent.
11191 (tui_erase_source_content): Rename tuiEraseSourceContent.
11192 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11193 (tui_show_source_content): Rename tuiShowSourceContent.
11194 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11195 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11196 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11197 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11198 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11199 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11200 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11201 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11202 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11203 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11204 (struct tui_win_info): Declare.
11205 * tui/tui-stack.c: Update references.
11206 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11207 * tui/tui-win.c, tui/tui-source.c: Ditto.
11208 * tui/tui.c, tui/tui-disasm.c: Ditto.
11209
11210 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11211
11212 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11213 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11214
11215 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11216
11217 * infrun.c (handle_inferior_event): Allow for breakpoint
11218 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11219 and SIGEMT. Update comments.
11220 * NEWS (Revised SPARC target): Mention support for non-executable
11221 stack.
11222
11223 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11224
11225 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11226 * inftarg.c: Update copyright year.
11227 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11228 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11229 (sparc_xfer_wcookie): New function.
11230 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11231 * Makefile.in (sparc-nat.o): Update dependencies.
11232 * config/sparc/nm-nbsd.h: Include "target.h".
11233 (NATIVE_XFER_WCOOKIE): New define.
11234 (sparc_xfer_wcookie): New prototype.
11235
11236 2004-02-04 Andrew Cagney <cagney@redhat.com>
11237
11238 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11239 SYSCALL_TRAP function.
11240 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11241
11242 2004-02-04 Andrew Cagney <cagney@redhat.com>
11243 Daniel Jacobowitz <drow@mvista.com>
11244
11245 * objfiles.h: Delete comments refering to inside_entry_func and
11246 DEPRECATED_FRAME_CHAIN_VALID.
11247 * defs.h (inside_entry_func): Update prototype..
11248 * blockframe.c (inside_entry_func): Rename to
11249 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11250 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11251
11252 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11253
11254 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11255 outside of #ifdef SOLIB_ADD region.
11256 (do_restore_lang_radix_cleanup): Ditto.
11257 (resolve_pending_breakpoint): Ditto.
11258
11259 2004-02-03 Andrew Cagney <cagney@redhat.com>
11260
11261 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11262 (process_note_abi_tag_sections): Delete unused function.
11263 (ia64_read_fp): Delete unused function.
11264 (gdbarch_extract_struct_value_address): Delete declaration.
11265
11266 2004-02-02 Andrew Cagney <cagney@redhat.com>
11267
11268 * vax-tdep.c (vax_frame_chain): Delete call to
11269 deprecated_inside_entry_file.
11270 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11271
11272 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11273
11274 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11275 column that's "empty" or "same value" when eliminating REG_RA
11276 rules.
11277
11278 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11279
11280 * NEWS: Add information about new pending breakpoint support.
11281
11282 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11283
11284 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11285 and pending fields for pending breakpoint support.
11286 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11287 (condition_command): Only parse condition if not a pending
11288 breakpoint.
11289 (print_one_breakpoint): Add support for pending breakpoints.
11290 (describe_other_breakpoints): Add checks to verify we are not
11291 dealing with pending breakpoints.
11292 (check_duplicates): Don't check pending breakpoints.
11293 (set_raw_breakpoint): Initialize pending flag.
11294 (do_restore_lang_radix_cleanup): New cleanup routine.
11295 (resolve_pending_breakpoint): New function.
11296 (re_enable_breakpoints_in_shlibs): Try and resolve any
11297 pending breakpoints via resolve_pending_breakpoint.
11298 (mention): Add pending breakpoint support.
11299 (parse_breakpoint_sals): Add new parameter to pass to
11300 decode_line_1 to indicate silent errors when files or functions
11301 are not found. Change all callers.
11302 (do_captured_parse_breakpoint): New function.
11303 (break_command_1): Change prototype to return an rc value and to
11304 take an optional pending breakpoint pointer. Support creating
11305 a pending breakpoint if a "not found" form of error occurs when
11306 parsing the breakpoint. Also support resolving an existing pending
11307 breakpoint and be silent if the resolution fails.
11308 (create_breakpoints): Change prototype to take pending breakpoint
11309 pointer. When resolving a pending breakpoint, use the new pointer
11310 to provide a conditional or commands added by the end-user.
11311 (delete_breakpoint): Add appropriate check for pending.
11312 (breakpoint_re_set_one): Ditto.
11313 (do_enable_breakpoint): Ditto.
11314
11315 2004-02-02 David Carlton <carlton@kealia.com>
11316
11317 * valops.c (enum oload_classification): New.
11318 (find_overload_match): Break implementation into separate
11319 functions; delete #if 0'd code; look for symbols within
11320 namespaces.
11321 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11322 (find_oload_champ,oload_method_static,classify_oload_match): New.
11323 * cp-support.h: Add declaration for cp_func_name; update
11324 declaration for make_symbol_overload_list.
11325 * cp-support.c (cp_func_name): New.
11326 (overload_list_add_symbol): Fix comment, use
11327 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11328 (make_symbol_overload_list): Take a function name and a namespace
11329 instead of a symbol; change implementation.
11330 (make_symbol_overload_list_using): New.
11331 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11332
11333 2004-02-02 Fred Fish <fnf@redhat.com>
11334
11335 * main.c (gdb_stdtarg): Move definition to group with other
11336 gdb_stdtarg definitions and update copyright years.
11337 * remote-sim.c (gdb_os_write_stderr): Write output to
11338 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11339 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11340 gdb_stderr stream and update copyright years.
11341
11342 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11343
11344 * Makefile.in (mips-linux-nat.o): Update dependencies.
11345 * mips-linux-nat.c: Include mips-tdep.h.
11346
11347 2004-02-01 Roland McGrath <roland@redhat.com>
11348
11349 * sol-thread.c (sol_thread_xfer_partial): New function.
11350 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11351 (init_sol_core_ops): Likewise.
11352
11353 * procfs.c (procfs_xfer_partial): New function.
11354 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11355 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11356
11357 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11358 procfs_xfer_auxv function.
11359
11360 * procfs.c (procfs_make_note_section): If we can read
11361 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11362 * linux-proc.c (linux_make_note_section): Likewise.
11363
11364 * auxv.h: New file.
11365 * auxv.c: New file.
11366 * Makefile.in (auxv_h): New variable.
11367 (COMMON_OBS): Add auxv.o here.
11368 (auxv.o): New target.
11369
11370 * corelow.c (core_xfer_partial): New function.
11371 (init_core_ops): Use it for core_ops.to_xfer_partial.
11372
11373 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11374 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11375 macro if that is defined.
11376
11377 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11378
11379 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11380 and check the specified thread for each breakpoint.
11381 * breakpoint.h (bpstat_stop_status): Update prototype.
11382 * infrun.c (handle_inferior_event): Update calls to
11383 bpstat_stop_status.
11384
11385 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11386
11387 * Makefile.in (cli-cmds.o): Add $(readline_h).
11388
11389 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11390
11391 * cli/cli-cmds.c: Include readline.h.
11392 (complete_command): Pass the start of the last word to
11393 complete_line.
11394
11395 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11396
11397 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11398 argument, and change first argument to a CORE_ADDR.
11399 * breakpoint.h (bpstat_stop_status): Update prototype.
11400 * infrun.c (adjust_pc_after_break): Add a new comment.
11401 (handle_inferior_event): Update calls to bpstat_stop_status.
11402
11403 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11404
11405 * breakpoint.h: Update copyright years.
11406
11407 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11408
11409 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11410 (bpstat_stop_status): Don't decrement PC.
11411 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11412 prototype.
11413 * infrun.c (adjust_pc_after_break): New function.
11414 (handle_inferior_event): Call it, early. Remove later references
11415 to DECR_PC_AFTER_BREAK.
11416 (normal_stop): Add commentary.
11417
11418 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11419
11420 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11421 2004-01-27 double-free fix.
11422
11423 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11424
11425 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11426 (sparc32_frame_prev_register): Handle StackGhost.
11427 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11428
11429 2004-01-29 Roland McGrath <roland@redhat.com>
11430
11431 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11432 * configure: Regenerated.
11433
11434 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11435 * Makefile.in (procfs.o): Add dep.
11436
11437 2004-01-28 Andrew Cagney <cagney@redhat.com>
11438
11439 * tui/tui-stack.h: Update copyright.
11440 (struct frame_info): Add opaque declaration.
11441 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11442 (tui_show_locator_content): Rename tuiShowLocatorContent.
11443 (tui_show_frame_info): Rename tuiShowFrameInfo.
11444 * tui/tui-stack.c: Update copyright. Update references.
11445 * tui/tui-winsource.c: Update references.
11446 * tui/tui-win.c: Update references.
11447 * tui/tui-layout.c: Update references.
11448 * tui/tui-hooks.c: Update copyright, update references.
11449 * tui/tui.c: Update copyright, update references.
11450 * tui/tui-disasm.c: Update references.
11451
11452 2004-01-28 David Carlton <carlton@kealia.com>
11453
11454 * dwarf2read.c (add_partial_structure): Use demangled name if
11455 namespace equals "".
11456
11457 2004-01-27 Jim Blandy <jimb@redhat.com>
11458
11459 Clean up misapplied patch:
11460 * dwarf2read.c (determine_prefix): Change one of the two forward
11461 declarations for 'determine_prefix_aux' to a declaration for this.
11462 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11463 argument to 'die_specification'.
11464
11465 * dwarf2read.c (read_func_scope): Re-indent comment.
11466
11467 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11468
11469 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11470 b->exp to NULL after freeing so that error during re-parsing or
11471 evaluation of expressions associated with breakpoint don't
11472 eventually lead to re-freeing of storage.
11473 Committed by Andrew Cagney.
11474
11475 2004-01-27 Andrew Cagney <cagney@redhat.com>
11476
11477 * source.c (ambiguous_line_spec): Delete undefined declaration.
11478 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11479 (m32r_set_server_address, m32r_set_download_path): Ditto.
11480 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11481
11482 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11483
11484 * dwarf2read.c: Update calls to changed and renamed functions, and
11485 references to moved variables.
11486
11487 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11488 language, language_defn, list_in_scope, and ftypes members.
11489 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11490 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11491 (baseaddr): Remove globals.
11492
11493 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11494 (set_cu_language, die_is_declaration, die_specification)
11495 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11496 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11497 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11498 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11499
11500 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11501 cu.list_in_scope. Don't initialize cu_header_offset.
11502 (add_partial_symbol): Add local baseaddr.
11503 (psymtab_to_symtab_1): Add local baseaddr. Use
11504 objfile->section_offsets for consistency. Don't initialize
11505 cu_header_offset; do initialize cu.header.offset and
11506 cu.list_in_scope.
11507 (read_file_scope, read_func_scope, read_lexical_block_scope)
11508 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11509
11510 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11511
11512 * PROBLEMS: Add gdb/1516.
11513
11514 2003-12-29 Robert Millan <robertmh@gnu.org>
11515
11516 Patch committed by Andrw Cagney.
11517 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11518 * configure.tgt: Match knetbsd*-gnu.
11519
11520 2004-01-26 Andrew Cagney <cagney@redhat.com>
11521
11522 * breakpoint.c (catch_command_1): Delete #ifdef code.
11523 (catch_fork_command_1): Delete #ifdef wrapper.
11524 (catch_exec_command_1): Ditto.
11525 (catch_load_command_1): Ditto.
11526 (catch_unload_command_1): Ditto.
11527
11528 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11529 (catch_breakpoint): Delete #if0ed function.
11530 (disable_catch_breakpoint): Ditto.
11531 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11532 (disable_catch, enable_catch, delete_catch): Ditto.
11533
11534 2004-01-26 Andrew Cagney <cagney@redhat.com>
11535
11536 * remote.c (echo_check, quit_flag): Delete variables.
11537 (cisco_kernel_mode): Delete variable.
11538 (minitelnet_return, tty_input, escape_count): Delete variables.
11539 (remote_cisco_mode): Delete variable.
11540 (remote_cisco_open, remote_cisco_close): Delete function.
11541 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11542 (init_remote_cisco_ops): Delete function.
11543 (_initialize_remote): Do not install "remote cisco" code.
11544 (read_frame): Delete cisco specific code.
11545 (remote_info_process): Delete function.
11546 (remote_wait): Delete cisco specific code.
11547 (remote_cisco_section_offsets): Delete function.
11548 (remote_cisco_objfile_relocate): Delete function.
11549 (remote_async_wait): Delete cisco specific code.
11550 (minitelnet, readtty, readsocket): Delete function.
11551
11552 2004-01-26 Andrew Cagney <cagney@redhat.com>
11553
11554 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11555 comments mentioning extract_returned_value_address.
11556 * infcmd.c (print_return_value): Update. Add comments on
11557 extract_returned_value_address.
11558 * stack.c (return_command): Add comments on
11559 extract_returned_value_address.
11560 * values.c: Update comment.
11561 * m32r-tdep.c: Update comment.
11562 * sparc-tdep.c: Update comment.
11563 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11565 * sh64-tdep.c (sh64_gdbarch_init): Update.
11566 * sh-tdep.c (sh_gdbarch_init): Update.
11567 * s390-tdep.c (s390_gdbarch_init): Update.
11568 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11569 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11570 * m68k-tdep.c (m68k_gdbarch_init): Update.
11571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11572 * m32r-tdep.c (m32r_gdbarch_init): Update.
11573 * ia64-tdep.c (ia64_gdbarch_init): Update.
11574 * h8300-tdep.c (h8300_gdbarch_init): Update.
11575 * frv-tdep.c (frv_gdbarch_init): Update.
11576 * arm-tdep.c (arm_gdbarch_init): Update.
11577 * alpha-tdep.c (alpha_gdbarch_init): Update.
11578
11579 2004-01-26 Andrew Cagney <cagney@redhat.com>
11580
11581 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11582 SYMBOL_LOCATION_FUNCS
11583 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11584 "struct symbol_ops".
11585 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11586 type to "struct symbol_ops".
11587 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11588 (struct symbol): Replace ".aux_value.loc.funcs" and
11589 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11590 (SYMBOL_OBJFILE): Delete macro.
11591 (SYMBOL_LOCATION_FUNCS): Delete macro.
11592 (SYMBOL_LOCATION_BATON): Update.
11593 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11594 intead of SYMBOL_LOCATION_FUNCS.
11595 * ax-gdb.c (gen_var_ref): Ditto.
11596 * printcmd.c (address_info): Ditto.
11597 * findvar.c (read_var_value): Ditto.
11598 (symbol_read_needs_frame): Ditto.
11599
11600 2004-01-26 Andrew Cagney <cagney@redhat.com>
11601
11602 * dwarf2read.c (read_func_scope): Document frame-base hack.
11603
11604 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11605
11606 * infcmd.c (print_return_value): Plug memory leak; delete
11607 ui_stream object. Rename argument `structure_return' to
11608 `struct_return'.
11609
11610 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11611
11612 * infcmd.c (print_return_value): Wrap long lines.
11613 (finish_command_continuation, finish_command): Remove unused
11614 variable `funcaddr'. Fix some coding-standards problems.
11615
11616 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11617 SECT_SIZE is large enough, not whether it's exactly the right size.
11618 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11619 TDEP->fpregset to zero.
11620
11621 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11622 floating-point registers for traditional NetBSD core files.
11623 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11624 TDEP->sizeof_fpregset here.
11625
11626 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11627
11628 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11629 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11630 function with code split out from
11631 sparc32nbsd_sigcontext_frame_cache.
11632 (sparc32nbsd_sigcontext_frame_cache): Use
11633 sparc32nbsd_sigcontext_saved_regs.
11634 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11635 OpenBSD.
11636 * sparcobsd-tdep.c: New file.
11637 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11638 (sparcobsd-tdep.o): New dependency.
11639 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11640 * config/sparc/obsd.mt: New file.
11641
11642 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11643 TDEP->fpregset to be initialized to enable core file register
11644 sets.
11645
11646 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11647
11648 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11649 Add opaque declarations.
11650 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11651 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11652 function with code split out from
11653 sparc64nbsd_sigcontext_frame_cache.
11654 (sparc64nbsd_sigcontext_frame_cache): Use
11655 sparc64nbsd_sigcontext_saved_regs.
11656 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11657 OpenBSD.
11658 * sparc64obsd-tdep.c: New file.
11659 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11660 (sparc64obsd-tdep.o): New dependency.
11661 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11662 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11663 * config/sparc/obsd64.mt: New file.
11664
11665 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11666 read the instruction at PC.
11667
11668 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11669 value of GDB_OSABI_DEFAULT.
11670 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11671 instead of GDB_OSABI_NETBSD_AOUT.
11672
11673 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11674
11675 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11676 copyright.
11677
11678 2004-01-23 Andrew Cagney <cagney@redhat.com>
11679
11680 * printcmd.c (display_command): Replace tui_set_display call with
11681 tui_set_layout_for_display_command.
11682 * tui/tui.h (enum tui_win_type): Define.
11683 (tui_set_layout): Delete declaration.
11684 (tui_set_layout_for_display_command): Rename set_tui_layout.
11685 * tui/tui-data.h (enum tui_layout_type): Define.
11686 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11687 "tui.h".
11688 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11689 (tui_default_win_height): Rename tuiDefaultWinHeight.
11690 (tui_default_win_viewport_height): Rename
11691 tuiDefaultWinViewportHeight.
11692 (tui_set_layout): RenametuiSetLayout.
11693 * tui/tui-layout.c: Update references.
11694 * tui/tui.c: Update references.
11695 * tui/tui-disasm.c: Update references.
11696
11697 2004-01-23 David Carlton <carlton@kealia.com>
11698
11699 Partial workaround for PR c++/1511:
11700 * cp-namespace.c: Include frame.h.
11701 (cp_lookup_transparent_type): New
11702 (cp_lookup_transparent_type_loop): New.
11703 * cp-support.h: Declare cp_lookup_transparent_type.
11704 * symtab.c (basic_lookup_transparent_type): Renamed from
11705 lookup_transparent_type.
11706 (lookup_transparent_type): Replace old body by a call to
11707 current_language->la_lookup_transparent_type.
11708 * symtab.h: Update copyright. Declare
11709 basic_lookup_transparent_type.
11710 * language.h: Update copyright.
11711 (struct language_defn): Add la_lookup_transparent_type.
11712 * language.c: Update copyright.
11713 (unknown_language_defn): Add basic_lookup_transparent_type.
11714 (auto_language_defn): Add basic_lookup_transparent_type.
11715 (local_language_defn): Add basic_lookup_transparent_type.
11716 * ada-lang.c: Update copyright.
11717 (ada_language_defn): Add basic_lookup_transparent_type.
11718 * c-lang.c: Update copyright.
11719 (c_language_defn): Add basic_lookup_transparent_type.
11720 (cplus_language_defn): Add basic_lookup_transparent_type.
11721 (asm_language_defn): Add basic_lookup_transparent_type.
11722 (minimal_language_defn): Add basic_lookup_transparent_type.
11723 * f-lang.c: Update copyright.
11724 (f_language_defn): Add basic_lookup_transparent_type.
11725 * jv-lang.c: Update copyright.
11726 (java_language_defn): Add basic_lookup_transparent_type.
11727 * m2-lang.c: Update copyright.
11728 (m2_language_defn): Add basic_lookup_transparent_type.
11729 * objc-lang.c: Update copyright.
11730 (objc_language_defn): Add basic_lookup_transparent_type.
11731 * p-lang.c: Update copyright.
11732 (p_language_defn): Add basic_lookup_transparent_type.
11733 * scm-lang.c: Update copyright.
11734 (scm_language_defn): Add basic_lookup_transparent_type.
11735 * Makefile.in (cp-namespace.o): Depend on frame.h.
11736
11737 2004-01-23 David Carlton <carlton@kealia.com>
11738
11739 Patch for PR c++/1520:
11740 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11741 properly if we have a specification die.
11742 (determine_prefix_aux): Rename from determine_prefix.
11743 (determine_prefix): Like the old determine_prefix, but never
11744 returns NULL.
11745
11746 2004-01-23 Theodore A. Roth <troth@openavr.org>
11747
11748 * avr-tdep.c: Update copyright.
11749 (avr_iaddr_p): Delete unused function.
11750 (avr_saddr_p): Delete unused function.
11751
11752 2004-01-23 David Carlton <carlton@kealia.com>
11753
11754 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11755 Fix for PR symtab/1534.
11756
11757 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11758
11759 * NEWS (New native configurations): Mention OpenBSD/sparc and
11760 OpenBSD/sparc64.
11761 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11762 * configure.host: Likewise.
11763 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11764 handler for OpenBSD.
11765 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11766
11767 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11768
11769 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11770 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11771
11772 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11773 * cli/cli-cmds.c (shell_escape): Likewise.
11774
11775 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11776 OpenBSD .note.openbsd.ident sections.
11777
11778 2004-01-22 David Carlton <carlton@kealia.com>
11779
11780 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11781 get_scope_pc_bounds.
11782 (read_file_scope): Ditto.
11783 (get_scope_pc_bounds): New function, produced by extracting code
11784 from the above two functions, consolidating it, and adding support
11785 for DW_TAG_namespace.
11786
11787 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11788
11789 * osabi.c (MAX_NOTESZ): New define.
11790 (check_note): New function.
11791 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11792 check_note.
11793
11794 2004-01-21 Roland McGrath <roland@redhat.com>
11795
11796 * MAINTAINERS (write after approval): Add myself.
11797
11798 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11799
11800 * utils.c (init_page_info): Move declarations of `rows' and
11801 `cols' before the __GO32__-specific code. Move the closing brace
11802 outside the #ifdef __GO32__..#endif block.
11803 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11804
11805 2004-01-21 Paul Brook <paul@codesourcery.com>
11806
11807 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11808 BPSTAT_WHAT_CHECK_SHLIBS.
11809
11810 2004-01-21 Paul Brook <paul@codesourcery.com>
11811
11812 * MAINTAINERS: Add myself to write-after-approval.
11813
11814 2004-01-20 Andrew Cagney <cagney@redhat.com>
11815
11816 * ax-gdb.c (print_axs_value): Delete unused function.
11817 * jv-lang.c (java_lookup_type): Delete unused function.
11818 * cli/cli-dump.c (dump_filetype): Delete unused function.
11819 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11820 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11821 (mips_getstring): Delete unused function.
11822 (pmon_insert_breakpoint): Delete #if0ed function.
11823 (PMON_MAX_BP): Delete #if0ed MACRO.
11824 (mips_pmon_bp_info): Delete #if0ed variable.
11825 (pmon_remove_breakpoint): Delete #if0ed function.
11826 * monitor.c (monitor_write_even_block): Delete unused function.
11827 (monitor_write_memory_block): Delete #if0ed code.
11828 * dink32-rom.c (dink32_load): Delete unused function.
11829 (_initialize_dink32_rom): Delete #if0ed code.
11830 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11831
11832 * tui/tui-command.c: Update references.
11833 * tui/tui-io.c: Update references.
11834 * tui/tui-command.h: Update copyright.
11835 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11836
11837 * source.c (ambiguous_line_spec): Delete never-defined function.
11838 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11839 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11840 * cli/cli-cmds.c (validate_comname): Ditto.
11841
11842 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11843 "tui-data.h".
11844 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11845 (tui_show_disassem): Rename tuiShowDisassem.
11846 (tui_show_disassem_and_update_source): Rename
11847 tuiVerticalDisassemScroll.
11848 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11849 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11850 * tui/tui.h: Update copyright.
11851 (enum tui_status): Define.
11852 * tui/tui-data.h (enum tui_scroll_direction): Define.
11853 * tui/tui-disasm.c: Update copyright. Update references.
11854 * tui/tui-winsource.c: Update copyright. Update references.
11855 * tui/tui-win.c: Update references.
11856 * tui/tui-layout.c: Update references.
11857
11858 2004-01-20 Andrew Cagney <cagney@redhat.com>
11859
11860 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11861 sym2 to start of block.
11862
11863 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11864
11865 * MAINTAINERS: Delete mmalloc.
11866 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11867 * NEWS: Mention removal of --with-malloc.
11868 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11869 * config.in: Regenerate.
11870 * configure: Regenerate.
11871 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11872 USE_MMALLOC, MMCHECK_FORCE.
11873 * gdbinit.in: Remove mmalloc.
11874 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11875 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11876 * config/i386/go32.mh: Likewise.
11877 * config/i386/interix.mh: Likewise.
11878 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11879
11880 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11881
11882 * linespec.c (decode_variable, symtab_from_filename): Call
11883 error_silent with error message instead of throwing an exception
11884 directly.
11885 * defs.h (error_silent, error_output_message): Add prototypes.
11886 (catch_exceptions_with_msg): Ditto.
11887 * utils.c (error_silent, error_output_message): New functions.
11888 * top.c (catch_exceptions_with_msg): New function.
11889
11890 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11891
11892 * mi/mi-cmds.h (enum print_values): Add definition.
11893
11894 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11895 type and value for simple data types and just the name and type
11896 for complex ones, if required.
11897
11898 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11899 children, if required.
11900
11901 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11902
11903 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11904 unused declarations.
11905
11906 2004-01-19 Andrew Cagney <cagney@redhat.com>
11907
11908 * top.h (mapped_symbol_files): Delete declaration.
11909 * main.c (captured_main): Delete option "m" and "mapped".
11910 * objfiles.c (mapped_symbol_files): Delete variable.
11911 * symfile.c (symbol_file_command): Delete mmap code.
11912 (symbol_file_add_with_addrs_or_offsets): Ditto.
11913 (add_symbol_file_command, reread_separate_symbols): Ditto.
11914 * objfiles.h (OBJF_MAPPED): Delete.
11915 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11916 (free_objfile) [USE_MMALLOC]: Ditto.
11917 (open_existing_mapped_file): Delete function.
11918 (open_mapped_file): Delete function.
11919 (map_to_file): Delete function.
11920
11921 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11922
11923 * infrun.c (step_into_function): Account for possible breakpoint
11924 adjustment when computing ``stop_func_start''.
11925
11926 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11927
11928 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11929 the region size against the size of a pointer, not the size of
11930 a register as given by DEPRECATED_REGISTER_SIZE.
11931
11932 2004-01-19 Andrew Cagney <cagney@redhat.com>
11933
11934 * tui/tui-regs.h: Include "tui-data.h".
11935 (tuiFirstRegElementNoInLine): Delete declaration.
11936 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11937 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11938 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11939 (tui_calculate_regs_column_count): Rename
11940 tuiCalculateRegsColumnCount.
11941 (tui_check_register_values): Rename tuiCheckRegisterValues.
11942 (tui_show_registers): Rename tuiShowRegisters.
11943 (tui_display_registers_from_line): Rename
11944 tuiDisplayRegistersFromLine.
11945 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11946 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11947 (tui_first_reg_element_no_inline): Rename
11948 tuiFirstRegElementNoInLine.
11949 * tui/tui-data.h: Update copyright.
11950 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11951 * tui/tui-windata.c: Update copyright, update references.
11952 * tui/tui-regs.c: Update copyright, update references.
11953 * tui/tui-win.c: Update copyright, update references.
11954 * tui/tui-layout.c: Update copyright, update references.
11955
11956 2004-01-18 Andrew Cagney <cagney@redhat.com>
11957
11958 * tui/tui-io.c: Update copyright.
11959 (key_is_end_sequence, key_is_backspace): New functions.
11960 (key_is_command_char, key_is_start_sequence): New function.
11961 (tui_getc): Update references.
11962 * tui/tui-io.h: Update copyright.
11963 (m_tuiStartNewLine): Delete macro.
11964 (m_isBackspace, m_isDeleteChar): Delete macros.
11965 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11966 (m_isNextPage, m_isPrevPage): Delete macros.
11967 (m_isLeftArrow, m_isRightArrow): Delete macros.
11968 (m_isXdbStyleCommandChar): Delete macro.
11969 (key_is_start_sequence): Declare, replace m_isStartSequence.
11970 (key_is_end_sequence): Declare, replace m_isEndSequence.
11971 (key_is_backspace): Declare ,replace m_isBackspace.
11972 (key_is_command_char): Declare, replace m_isCommandChar.
11973 * tui/tui-command.c: Update copyright.
11974 (tuiDispatchCtrlChar): Update references.
11975
11976 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11977 tuiSourceWin.h.
11978
11979 * tui/tui-command.c: Rename tui/tuiCommand.c.
11980 * tui/tui-command.h: Rename tui/tuiCommand.h.
11981 * tui/tui-data.c: Rename tui/tuiData.c.
11982 * tui/tui-data.h: Rename tui/tuiData.h.
11983 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11984 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11985 * tui/tui-io.c: Rename tui/tuiIO.c.
11986 * tui/tui-io.h: Rename tui/tuiIO.h.
11987 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11988 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11989 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11990 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11991 * tui/tui-source.c: Rename tui/tuiSource.c.
11992 * tui/tui-source.h: Rename tui/tuiSource.h.
11993 * tui/tui-stack.c: Rename tui/tuiStack.c.
11994 * tui/tui-stack.h: Rename tui/tuiStack.h.
11995 * tui/tui-win.c: Rename tui/tuiWin.c.
11996 * tui/tui-win.h: Rename tui/tuiWin.h.
11997 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11998 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11999 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12000 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12001 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12002 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12003 * tui/tui-file.c: Update includes.
12004 * tui/tui-hooks.c: Update includes.
12005 * tui/tui-interp.c: Update includes.
12006 * tui/tui.c: Update includes.
12007 * Makefile.in: Update all tui/ dependencies.
12008 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12009
12010 * Makefile.in: Update copyright. Update dependencies.
12011
12012 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12013 problem.
12014
12015 2004-01-18 Andrew Cagney <cagney@redhat.com>
12016
12017 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12018 instead of register_gdbarch_init.
12019
12020 * remote-sds.c (tohex): Delete unused function. Update copyright.
12021 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12022 * v850-tdep.c (v850_register_virtual_size): Ditto.
12023 * target.c (normal_target_post_startup_inferior): Ditto.
12024 * source.c (ambiguous_line_spec): Ditto.
12025 * remote.c (adapt_remote_get_threadinfo): Ditto.
12026 * mi/mi-out.c (out_field_fmt): Ditto.
12027 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12028 (output_control_change_notification): Ditto.
12029 * m68k-tdep.c (m68k_register_byte): Ditto.
12030 (m68k_remote_breakpoint_from_pc): Ditto.
12031 * ui-out.c (init_ui_out_state): Delete unused declaration.
12032 * stabsread.c (search_value): Ditto.
12033 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12034 * maint.c (print_section_table): Ditto.
12035 * infrun.c (set_follow_fork_mode_command): Ditto.
12036
12037 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12038
12039 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12040 DW_CFA_def_cfa_exporession. Add support for
12041 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12042 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12043
12044 2004-01-18 Andrew Cagney <cagney@redhat.com>
12045
12046 * ocd.c: Update copyright.
12047 (bdm_read_register_command): Delete unused function.
12048 (_initialize_remote_ocd): Delete commented out reference.
12049 (get_quoted_char, reset_packet): Delete #if0ed function.
12050 (output_packet, put_quoted_char): Delete #if0ed function.
12051 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12052 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12053 (BDM_BREAKPOINT): Delete #if0ed macro.
12054 (remote_timeout): Delete #if0ed variable.
12055
12056 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12057
12058 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12059 (core-sol2.o): Remove dependency.
12060 * core-sol2.c: Remove file.
12061
12062 2004-01-17 Andrew Cagney <cagney@redhat.com>
12063
12064 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12065 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12066 enums.
12067
12068 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12069
12070 * remote.c: Update copyright years.
12071
12072 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12073
12074 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12075
12076 2004-01-17 Andrew Cagney <cagney@redhat.com>
12077
12078 * mdebugread.c: Update copyright.
12079 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12080 (parse_type, parse_procedure): Ditto.
12081 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12082
12083 * cris-tdep.c (cris_store_struct_return): Put back accidently
12084 deleted function.
12085
12086 * gdbarch.sh: Update copyright year.
12087 * gdbarch.h, gdbarch.c: Re-generate.
12088
12089 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12090
12091 Suggested by George Anzinger.
12092 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12093 correct stack offset. Include unknown opcode numbers in the error
12094 message.
12095
12096 2004-01-17 Andrew Cagney <cagney@redhat.com>
12097
12098 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12099 extract_struct_value_address, i386 does not set it.
12100 * sparc64-tdep.c (sparc64_init_abi): Do not set
12101 extract_struct_value_address, never called.
12102 (sparc64_extract_struct_value_address): Delete function.
12103 * m68hc11-tdep.c: Update copyright.
12104 (m68hc11_gdbarch_init): Delete redundant assignment of
12105 extract_struct_value_address.
12106 * i386-tdep.c: Update copyright.
12107 (i386_gdbarch_init): Do not set extract_struct_value_address,
12108 never called.
12109 (i386_extract_struct_value_address): Delete function.
12110 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12111 extract_struct_value_address, never called.
12112 (sparc32_extract_struct_value_address): #if 0 function. Add
12113 comments explaining its future.
12114
12115 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12116
12117 * arm-tdep.c (arm_write_pc): New function.
12118 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12119
12120 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12121
12122 * breakpoint.c (must_shift_inst_regs): Delete.
12123 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12124 and SHIFT_INST_REGS.
12125 * infcmd.c (step_1, step_1_continuation): Delete references to
12126 SHIFT_INST_REGS.
12127 * infrun.c (keep_going): Likewise.
12128 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12129 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12130
12131 2004-01-17 Andrew Cagney <cagney@redhat.com>
12132
12133 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12134 * gdbarch.h, gdbarch.c: Re-generate.
12135 * infcmd.c (print_return_value): Delete reference to
12136 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12137
12138 * cris-tdep.c (cris_gdbarch_init): Do not set
12139 deprecated_extract_struct_value_address.
12140
12141 * xstormy16-tdep.c: Update copyright.
12142 (xstormy16_extract_struct_value_address): Update to current
12143 extract struct value address interface.
12144 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12145 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12146 current extract struct value address interface.
12147 (sh64_gdbarch_init): Set extract_struct_value_address.
12148
12149 * cris-tdep.c: Update copyright.
12150 (cris_extract_struct_value_address): Delete function.
12151 (struct_return_address): Delete variable.
12152 (cris_store_struct_return): Do not set struct_return_address.
12153
12154 * mcore-tdep.c: Update copyright.
12155 (mcore_extract_struct_value_address): Delete function. Update
12156 comments.
12157 (mcore_gdbarch_init): Update.
12158 * mn10300-tdep.c: Update copyright.
12159 (mn10300_extract_struct_value_address): Delete function.
12160 (mn10300_gdbarch_init): Update.
12161 * v850-tdep.c: Update copyright.
12162 (v850_extract_struct_value_address): Delete.
12163 (v850_gdbarch_init): Update.
12164 * ns32k-tdep.c: Update copyright.
12165 (ns32k_extract_struct_value_address): Delete.
12166 (ns32k_gdbarch_init): Update.
12167 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12168 (hppa_gdbarch_init): Update.
12169 * vax-tdep.c: Update copyright.
12170 (vax_extract_struct_value_address): Delete.
12171 (vax_gdbarch_init): Update.
12172
12173 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12174 * gdbarch.h, gdbarch.c: Re-generate.
12175 * procfs.c (procfs_fetch_registers): Delete reference to
12176 DEPRECATED_NPC_REGNUM.
12177 (procfs_store_registers): Ditto.
12178 * regcache.c (generic_target_write_pc): Simplify.
12179 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12180
12181 * core-sol2.c (fetch_core_registers): Replace
12182 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12183
12184 * hppa-tdep.c: Update copyright year.
12185 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12186 NPC_REGNUM.
12187 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12188
12189 * mips-tdep.c (mips_write_pc): New function.
12190 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12191 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12192 (mips_find_saved_regs, mips_software_single_step: Ditto.
12193 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12194 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12195
12196 2004-01-17 Andrew Cagney <cagney@redhat.com>
12197
12198 * mips-tdep.c: Re-indent. Group functions by ABI.
12199
12200 2004-01-17 Andrew Cagney <cagney@redhat.com>
12201
12202 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12203 * gdbarch.c: Re-generate.
12204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12205 DECR_PC_AFTER_BREAK to zero.
12206 * vax-tdep.c (vax_gdbarch_init): Ditto.
12207 * v850-tdep.c (v850_gdbarch_init): Ditto.
12208 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12209 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12210 * sh-tdep.c (sh_gdbarch_init): Ditto.
12211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12212 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12214 * mips-tdep.c (mips_gdbarch_init): Ditto.
12215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12217 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12219 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12220 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12222 * frv-tdep.c (frv_gdbarch_init): Ditto.
12223 * cris-tdep.c (cris_gdbarch_init): Ditto.
12224 * avr-tdep.c (avr_gdbarch_init): Ditto.
12225 * arm-tdep.c (arm_gdbarch_init): Ditto.
12226 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12227
12228 2004-01-17 J. Brobecker <brobecker@gnat.com>
12229
12230 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12231 Delete, no longer used.
12232 (read_subrange_type): New function, mostly extracted from
12233 read_array_type().
12234 (read_array_type): Replace extracted code by call to
12235 read_subrange_type().
12236 (dwarf2_get_attr_constant_value): New function.
12237 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12238 (add_partial_symbol): Likewise.
12239 (process_die): Likewise.
12240 (new_symbol): Likewise.
12241 (read_type_die): Likewise.
12242
12243 2004-01-16 Andrew Cagney <cagney@redhat.com>
12244
12245 * symfile.c: Update copyright year.
12246 (compare_symbols): Delete unused function.
12247 * stabsread.c: Update copyright year.
12248 (lrs_general_complaint): Delete unused function.
12249 (ref_search_value): Ditto.
12250 (get_substring): Delete declaration.
12251 * sh64-tdep.c: Update copyright year.
12252 (sh64_get_gdb_regnum): Delete unused function.
12253 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12254 Delete unused function.
12255
12256 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12257
12258 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12259 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12260
12261 2004-01-16 Andrew Cagney <cagney@redhat.com>
12262
12263 Changes from Peter Schauer.
12264 * rs6000-tdep.c: Update copyright year.
12265 (rs6000_push_dummy_call): Update the stack pointer before
12266 accessing the corresponding stack region.
12267 * rs6000-nat.c: Update copyright year.
12268 (set_host_arch): Set "info.abfd" to "exec_bfd".
12269
12270 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12271
12272 * blockframe.c: Update copyright year.
12273 (inside_entry_func): Don't treat a zero PC specially.
12274
12275 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12276
12277 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12278 variable.
12279 (gcore_create_callback): Ditto. Skip any memory segment that has
12280 no permissions set.
12281
12282 2004-01-14 David Carlton <carlton@kealia.com>
12283
12284 Change symbols for C++ nested types to contain the fully qualified
12285 name, if possible. (At least in the DWARF-2 case.) Partial fix
12286 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12287 c++/895.
12288 * c-exp.y (qualified_type): Handle types nested within classes.
12289 * cp-namespace.c: Update comments.
12290 (cp_set_block_scope): Delete #if 0.
12291 (cp_lookup_nested_type): Handle types nested within classes.
12292 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12293 when appropriate.
12294 (add_partial_symbol): Add the name of the enclosing namespace to
12295 types.
12296 (pdi_needs_namespace): New.
12297 (add_partial_namespace): Tweak comment.
12298 (add_partial_structure): New.
12299 (psymtab_to_symtab_1): Initialize processing_current_prefix
12300 here...
12301 (process_die): instead of here.
12302 (read_structure_scope): Try to figure out the name of the class or
12303 namespace that the structure might be defined within.
12304 (read_enumeration): Generate fully-qualified names, if possible.
12305 (read_namespace): Don't set name to NULL.
12306 (die_specification): New.
12307 (new_symbol): Generate fully-qualified names for types.
12308 (read_type_die): Determine appropriate prefix.
12309 (determine_prefix): New.
12310 (typename_concat): New.
12311 (class_name): New.
12312 * valops.c (value_aggregate_elt): Pass NOSIDE to
12313 value_struct_elt_for_reference.
12314 (value_struct_elt_for_reference): Make static, add NOSIDE
12315 parameter, call value_maybe_namespace_elt as a last resort.
12316 (value_namespace_elt): Break out code into
12317 value_maybe_namespace_elt.
12318 (value_maybe_namespace_elt): New.
12319
12320 2004-01-12 Andrew Cagney <cagney@redhat.com>
12321
12322 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12323 cooked floating-point registers.
12324 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12325 and value_to_register.
12326
12327 2004-01-13 Andrew Cagney <cagney@redhat.com>
12328
12329 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12330 * gdbarch.c: Re-generate.
12331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12332 FUNCTION_START_OFFSET.
12333 * v850-tdep.c (v850_gdbarch_init): Ditto.
12334 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12335 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12336 * sh-tdep.c (sh_gdbarch_init): Ditto.
12337 * s390-tdep.c (s390_gdbarch_init): Ditto.
12338 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12339 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12341 * mips-tdep.c (mips_gdbarch_init): Ditto.
12342 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12343 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12345 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12346 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12347 * i386-tdep.c (i386_gdbarch_init): Ditto.
12348 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12349 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12350 * frv-tdep.c (frv_gdbarch_init): Ditto.
12351 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12352 * cris-tdep.c (cris_gdbarch_init): Ditto.
12353 * avr-tdep.c (avr_gdbarch_init): Ditto.
12354 * arm-tdep.c (arm_gdbarch_init): Ditto.
12355 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12356
12357 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12358
12359 * infrun.c (follow_fork_mode_ask): Remove.
12360 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12361 (follow_fork): Simplify and remove internal error for
12362 follow_fork_mode_ask.
12363 (_initialize_infrun): Update "set follow-fork-mode" help text.
12364
12365 2004-01-13 Andrew Cagney <cagney@redhat.com>
12366
12367 * configure.in: Update copyright year.
12368 (build_warnings): Add -Wunused-label.
12369 * configure: Re-generate.
12370
12371 2004-01-12 Andrew Cagney <cagney@redhat.com>
12372
12373 * exec.h (exec_ops): Make "extern".
12374
12375 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12376 the function is void.
12377 (mips_pseudo_register_write): Ditto.
12378
12379 2004-01-12 Andrew Cagney <cagney@redhat.com>
12380
12381 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12382 call. Never defined.
12383 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12384 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12385 (struct sparc_gregset, struct regcache): Ditto.
12386 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12387
12388 2004-01-12 Andrew Cagney <cagney@redhat.com>
12389
12390 * mi/ChangeLog: Delete file. Renamed to ...
12391 * mi/ChangeLog-1999-2003: New file.
12392 * tui/ChangeLog: Delete file. Renamed to ...
12393 * tui/ChangeLog-1998-2003: New file.
12394
12395 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12396
12397 * sparc64nbsd-tdep.c: Include "regset.h".
12398 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12399 Remove variables.
12400 (fetch_core_registers): Remove function.
12401 (sparc64nbsd_core_fns): Remove variable.
12402 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12403 functions.
12404 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12405 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12406 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12407
12408 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12409 sparc_extract_struct_value_address.
12410 (sparc32_gdbarch_init): Set extract_struct_value_address.
12411 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12412 function.
12413 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12414 return_value_on_stack.
12415
12416 * NEWS: Mention that %cs and %ss have been added to the AMD64
12417 configurations
12418
12419 * frame.c: Update copyright year.
12420 (get_prev_frame): Improve comment.
12421
12422 * sparc64fbsd-tdep.c: Include "regset.h".
12423 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12424 Remove variables.
12425 (fetch_core_registers): Remove function.
12426 (sparc64fbsd_core_fns): Remove variable.
12427 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12428 functions.
12429 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12430 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12431 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12432
12433 * sparcnbsd-tdep.c: Include "regset.h".
12434 (fetch_core_registers): Remove function.
12435 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12436 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12437 functions.
12438 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12439 TDEP->fpregset.
12440 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12441
12442 * sparc-tdep.h (struct regset): Provide opaque declaration.
12443 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12444 fpregset and sizeof_fpregset members.
12445 * sparc-tdep.c (struct regset): Provide opaque declaration.
12446 (sparc_regset_from_core_section): New function.
12447 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12448 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12449 Set regset_from_core_section when appropriate.
12450
12451 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12452
12453 * x86-64-tdep.c (amd64_non_pod_p): New function.
12454 (amd64_classify_aggregate): Return class memory for non-POD
12455 C++ structure types.
12456
12457 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12458 argument. Use it to reserve a register if necessary.
12459 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12460 amd64_push_arguments.
12461
12462 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12463
12464 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12465 register numbers in comments.
12466 * x86-64-tdep.h: Update copyright year.
12467 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12468 Adjust for addition of %cs and %ss.
12469 * amd64fbsd-nat.c: Update copyright year.
12470 (reg_offset): Add register offsets for %cs and %ss.
12471 * amd64fbsd-tdep.c: Update copyright year.
12472 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12473 (amd64fbsd_sc_reg_offset): Likewise.
12474 * x86-64-linux-nat.c: Update copyright year.
12475 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12476 and %ss.
12477 * amd64nbsd-nat.c: Update copyright year.
12478 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12479 * amd64nbsd-tdep.c: Update copyright year.
12480 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12481 * x86-64-linux-tdep.c: Update copyright year.
12482 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12483 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12484 * regformats/reg-x86-64.dat: Add %cs and %ss.
12485
12486 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12487 variables to prevent long lines. Update comments to reflect
12488 reality.
12489
12490 2004-01-09 David Carlton <carlton@kealia.com>
12491
12492 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12493 * dwarf2read.c (read_namespace): Pull out name-generating code
12494 into namespace_name. Rename previous_namespace to previous_prefix
12495 and processing_current_namespace to processing_current_prefix..
12496 (namespace_name): New function.
12497 (add_partial_symbol): Substitute uses of pdi->name with
12498 actual_name.
12499 * cp-support.h: Rename processing_current_namespace to
12500 processing_current_prefix.
12501 Update copyright year.
12502 * cp-namespace.c: Rename processing_current_namespace to
12503 processing_current_prefix.
12504 Update copyright year.
12505
12506 2004-01-09 Andrew Cagney <cagney@redhat.com>
12507
12508 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12509
12510 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12511
12512 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12513 complaining.
12514 (process_one_symbol): Deal with N_PATCH stabs.
12515
12516 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12517
12518 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12519 ifdeffed code.
12520 Update copyright year.
12521
12522 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12523
12524 * config/pa/tm-hppa.h: Update extern declarations for
12525 hppa32_hpux_frame_saved_pc_in_sigtramp,
12526 hppa32_hpux_frame_base_before_sigtramp, and
12527 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12528
12529 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12530
12531 * config/pa/tm-hppah.h: Update copyright years.
12532
12533 2004-01-08 Andrew Cagney <cagney@redhat.com>
12534
12535 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12536 (mips_o32_reg_struct_has_addr): Delete function.
12537 (mips_gdbarch_init): Update.
12538 (mips_extract_struct_value_address): Delete function.
12539
12540 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12541
12542 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12543 reality.
12544
12545 2004-01-07 Andrew Cagney <cagney@redhat.com>
12546
12547 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12548 architecture's elf flags (when available).
12549
12550 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12551 FPU to the start, check the MIPS FPU when looking for an old
12552 architecture.
12553 (set_mipsfpu_single_command): Update the architecture.
12554 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12555
12556 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12557 (mips_mask_address_p): Add "tdep" parameter.
12558 (show_mask_address, mips_addr_bits_remove): Update.
12559 (mips_dump_tdep): Update.
12560 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12561 (MIPS_STACK_ARGSIZE): Delete macro.
12562 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12563 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12564 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12565 (mips_dump_tdep): Update.
12566 (MIPS_SAVED_REGSIZE): Delete macro.
12567 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12568 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12569 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12570 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12571 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12572 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12573 (mips_pop_frame, return_value_location): Update.
12574 (mips_n32n64_return_value, mips_dump_tdep): Update.
12575
12576 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12577 MIPS ABI.
12578
12579 * mips-tdep.c: Update copyright.
12580 (mips_gdbarch_init): Merge two code blocks handling the register
12581 name and number layout.
12582
12583 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12584
12585 * tracepoint.c (validate_actionline): Fix segv at EOF
12586
12587 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12588
12589 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12590 properly for static fields.
12591
12592 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12593 Jason Molenda <jmolenda@apple.com>
12594
12595 * disasm.c: Update copyright to include 2004.
12596 (do_mixed_source_and_assembly): For uiout asm list
12597 and tuple cleanups, initialize to null_cleanup instead of
12598 NULL and do so prior to loop. Only reset when we close off
12599 the tuple/list. Move check for whether to close off the
12600 asm tuple/list to after dump_insns call where it will be run
12601 on each loop iteration.
12602
12603 2004-01-05 Andrew Cagney <cagney@redhat.com>
12604
12605 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12606 should be a switch case and not a label.
12607 * mips-tdep.c (mips32_next_pc): Delete unused labels
12608 "greater_equal_branch" and "less_zero_branch".
12609 * jv-valprint.c (java_print_value_fields): Delete unused label
12610 "flush_it".
12611
12612 * target.c (unpush_target): Only close a target that is in the
12613 target stack.
12614
12615 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12616
12617 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12618 address from [sp + 64] instead of %o2.
12619
12620 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12621 fixes PR backtrace/1476.
12622
12623 2004-01-05 Andrew Cagney <cagney@redhat.com>
12624
12625 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12626 move to start of file.
12627 * i386-tdep.h (struct regcache): Add opaque declaration.
12628 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12629 declaration.
12630 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12631 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12632 * win32-nat.c (fake_create_process): Use ISO C style definition.
12633 * stabsread.c (define_symbol): Delete #ifndef
12634 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12635 stabs_argument_has_addr call, macro never defined.
12636
12637 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12638
12639 * op50-rom.c: Delete.
12640 * w89k-rom.c: Delete.
12641 * Makefile.in: Remove references.
12642
12643 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12644
12645 * x86-64-tdep.c: Update copyright year.
12646 (struct amd64_register_info): Rename from x86_64_register_info.
12647 (amd64_register_info): Rename from x86_64_register_info.
12648 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12649 (amd64_register_name): Rename from x86_64_register_name.
12650 (amd64_register_type): Rename from x86_64_register_type.
12651 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12652 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12653 (amd64_dwarf_reg_to_regnum): Rename from
12654 x86_64_dwarf_reg_to_regnum.
12655 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12656 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12657 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12658 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12659 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12660 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12661 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12662 (amd64_frame_cache): Rename from x86_64_frame_cache.
12663 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12664 (amd64_frame_prev_register): Rename from
12665 x86_64_frame_prev_register.
12666 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12667 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12668 (amd64_sigtramp_frame_cache): Rename from
12669 x86_64_sigtramp_frame_cache.
12670 (amd64_sigtramp_frame_prev_register): Rename from
12671 x86_64_sigtramp_frame_prev_register.
12672 (amd64_sigtramp_frame_unwind): Rename from
12673 x86_64_sigtramp_frame_unwind.
12674 (amd64_sigtramp_frame_sniffer): Rename from
12675 x86_64_sigtramp_frame_sniffer.
12676 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12677 (amd64_frame_base): Rename from x86_64_frame_base.
12678 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12679 (amd64_frame_align): Rename from x86_64_frame_align.
12680 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12681 (amd64_regset_from_core_section): Rename from
12682 x86_64_regset_from_core_section.
12683 (x86_64_init_abi): Update comments.
12684
12685 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12686
12687 * MAINTAINERS (write after approval): Add myself.
12688
12689 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12690
12691 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12692 `float' arguments.
12693
12694 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12695
12696 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12697 such that it mentions a specific version of GCC that exhibits this
12698 bug.
12699
12700 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12701
12702 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12703 structure that has a single `float' member, store it in %f1 in
12704 addition to %f0.
12705
12706 * sparc-sol2-nat.c: Add missing '\'.
12707
12708 * sparc-tdep.c (sparc32_return_value): New function.
12709 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12710 Remove functions.
12711 (sparc32_gdbarch_init): Set return_value, don't set
12712 extract_return_value, store_return_value, use_struct_convention
12713 and return_value_on_stack.
12714
12715 * sparc-sol2-nat.c: Add missing ')'.
12716
12717 2004-01-03 J. Brobecker <brobecker@gnat.com>
12718
12719 * infrun.c (handle_step_into_function): New function.
12720 (handle_inferior_event): Extract out some code into the new
12721 function above.
12722
12723 2004-01-03 J. Brobecker <brobecker@gnat.com>
12724
12725 * infrun.c (handle_inferior_event): Move the declaration of
12726 real_stop_pc inside the if blocks where it is used.
12727
12728 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12729
12730 * sparc64-tdep.c (sparc64_16_byte_align_p)
12731 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12732 Use check_typedef to get subtypes of structures and unions.
12733 (sparc64_store_return_value): Fix calculation of the appropriate
12734 offset into VALBUF when storing a structure or union.
12735 (sparc64_return_value): New function.
12736 (sparc64_use_struct_convention): Remove function.
12737 (sparc64_init_abi): Set return_value, don't set
12738 extract_return_value, store_return_value and
12739 use_struct_convention.
12740
12741 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12742
12743 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12744 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12745 gdb/config/alpha/xm-alphaosf.h,
12746 gdb/config/powerpc/tm-ppcle-eabi.h,
12747 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12748 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12749 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12750 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12751 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12752 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12753 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12754 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12755 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12756 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12757 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12758 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12759 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12760 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12761 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12762 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12763 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12764 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12765 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12766 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12767 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12768 Remove lines for .cvsignore files.
12769
12770 2004-01-03 J. Brobecker <brobecker@gnat.com>
12771
12772 * infrun.c: Back out the previous change.
12773
12774 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12775
12776 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12777 sparc-*-sunos4* to the list of REMOVED configurations.
12778
12779 * configure.tgt: Add back sparc-*-vxworks*.
12780 * remote-vxsparc.c: Remove all includes except for "defs.h",
12781 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12782 Include "sparc-tdep.h".
12783 (SPARC_R_G1): New define.
12784 (vxsparc_gregset): New variable.
12785 (ext_format_sparc): Remove extern declaration.
12786 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12787 sparc32_supply_fpregset.
12788 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12789 sparc_collect_rwindow and sparc32_collect_fpregset.
12790 * config/sparc/tm-vxworks.h: New file, based on recently removed
12791 tm-vxsparc.h.
12792 * config/sparc/vxworks.mt: New file, based on recently removed
12793 vxworks.mt.
12794
12795 2004-01-03 J. Brobecker <brobecker@gnat.com>
12796
12797 * infrun.c (handle_step_into_function): New function.
12798 (handle_inferior_event): Extract out some code into the new
12799 function above.
12800
12801 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12802
12803 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12804 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12805 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12806 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12807 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12808 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12809 (sparc_nat_h): New variable.
12810 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12811 (tm-sun4os4.h): Remove dependency.
12812 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12813 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12814 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12815 sparc-tdep.o): Update dependencies.
12816 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12817 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12818 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12819 dependencies.
12820 * configure.host: Remove existing sparc-*-lynxos*,
12821 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12822 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12823 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12824 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12825 triplets.
12826 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12827 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12828 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12829 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12830 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12831 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12832 sparc64-*-solaris2* and sparc64-*-* triplets.
12833 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12834 "symtab.h" and "objfiles.h".
12835 (BIAS): Remove define.
12836 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12837 (X_DISP19): Remove macros.
12838 (sparc_fetch_instruction): Remove function.
12839 (struct gdbarch_tdep): Remove definition.
12840 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12841 (sparc_breakpoint_from_pc): Remove function.
12842 (struct sparc64_frame_cache): Remove definition.
12843 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12844 sparc64_unwind_pc): Remove functions.
12845 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12846 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12847 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12848 (sparc64_frame_cache): Change return type to `struct
12849 sparc_frame_cache *'. Simply call sparc_frame_cache.
12850 (sparc64_frame_this_id, sparc64_frame_prev_register,
12851 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12852 instead of `struct sparc64_frame_cache.
12853 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12854 sparc_analyze_control_transfer, sparc_software_single_step,
12855 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12856 _initialize_sparc64_tdep): Remove functions.
12857 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12858 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12859 macros.
12860 (sparc64_supply_gregset, sparc64_collect_gregset,
12861 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12862 (sparc64_init_abi): New function.
12863 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12864 inclusion guard. Include "sparc-tdep.h".
12865 (BIAS): Define.
12866 (r_tstate_offset, r_fprs_offset): New defines.
12867 (enum sparc_regnum): Remove defenition.
12868 (enum sparc64_regnum): Reformat.
12869 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12870 (sparc64_init_abi, sparc64_supply_gregset,
12871 sparc64_collect_gregset, sparc64_supply_fpregset,
12872 sparc64_collect_fpregset): New prototypes.
12873 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12874 Add extern declarations.
12875 (sparc64_sol2_init_abi): New prototype.
12876 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12877 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12878 prototypes.
12879 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12880 "sparnbsd-nat.h".
12881 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12882 functions.
12883 (_initialize_sparc64fbsd_nat): Remove initialization of
12884 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12885 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12886 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12887 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12888 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12889 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12890 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12891 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12892 (sparc64fbsd_r_y_offset): Remove variables.
12893 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12894 Make static and const.
12895 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12896 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12897 functions.
12898 (sparc64fbsd_gregset): New variable.
12899 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12900 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12901 and sparc64_supply_fpregset.
12902 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12903 (sparc64fbsd_sigtramp_frame_this_id)
12904 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12905 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12906 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12907 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12908 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12909 * sparcnbsd-tdep.c: Update copyright year. Include
12910 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12911 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12912 "value.h" and "sparcnbsd-tdep.h".
12913 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12914 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12915 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12916 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12917 defines.
12918 (sparcnbsd_gregset): New variable.
12919 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12920 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12921 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12922 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12923 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12924 variables.
12925 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12926 (sparc32nbsd_sigcontext_frame_this_id)
12927 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12928 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12929 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12930 (sparcnbsd_get_longjmp_target_32,
12931 sparcnbsd_get_longjmp_target_64): Remove functions.
12932 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12933 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12934 sparcnbsd_init_elf): Remove.
12935 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12936 (sparcnbsd_elf_init_abi): New functions.
12937 (_initialize_sparcnbsd_tdep): New prototype.
12938 (_initialize_sparnbsd_tdep): Update.
12939 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12940 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12941 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12942 * config/sparc/linux.mh: Update comment.
12943 (XM_FILE, HOST_IPC): Remove variables.
12944 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12945 sparc-linux-nat.o.
12946 * config/sparc/linux.mt: Update comment.
12947 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12948 * config/sparc/nbsd.mt: Reformat.
12949 * config/sparc/nbsd64.mh: Update comment.
12950 (NATDEPFILES): Add sparc-nat.o.
12951 * config/sparc/nbsd64.mt: Update comment.
12952 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12953 (TM_FILE): Set to tm-nbsd.h.
12954 * config/sparc/nbsdelf.mh: Update comment.
12955 (NATDEPFILES): Add sparc-nat.o.
12956 (XM_FILE): Delete.
12957 * config/sparc/nbsdaout.mh: Update comment.
12958 (NATDEPFILES): Add sparc-nat.o
12959 (XM_FILE): Delete.
12960 * config/sparc/nm-linux.h: Update copyright year. Don't include
12961 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12962 inclusion.
12963 (KERNEL_U_SIZE): Remove define.
12964 (kernel_u_size): Remove prototype.
12965 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12966 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12967 "regcache.h".
12968 (CHILD_PREPARE_TO_STORE): Remove define.
12969 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12970 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12971 sparcnbsd-nat.c: Rewrite files.
12972 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12973 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12974 sparcnbsd-tdep.h: Remove files.
12975 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12976 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12977 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12978 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12979 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12980 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12981 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12982 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12983 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12984 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12985 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12986 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12987 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12988 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12989 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12990 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12991 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12992 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12993 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12994
12995 2004-01-02 Andrew Cagney <cagney@redhat.com>
12996
12997 From 2003-12-18 Kazuhiro Inaoka:
12998 * configure.host: Add m32r-linux target.
12999
13000 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13001
13002 * top.c (print_gdb_version): Update year to 2004.
13003
13004 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13005
13006 * MAINTAINERS: Add myself to the write-after-approval category.
13007
13008 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13009
13010 From Bernardo Innocenti <bernie@develer.com>:
13011 * configure.tgt: Add uClinux target.
13012
13013 2004-01-02 Andrew Cagney <cagney@redhat.com>
13014
13015 * utils.c (do_my_cleanups): Make static, add forward declaration.
13016 * defs.h (do_my_cleanups): Delete declaration.
13017
13018 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13019
13020 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13021 bfd/ChangeLog-0203.
13022
13023 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13024
13025 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13026 in <machine/reg.h>.
13027 * configure, config.in: Regenerate.
13028
13029 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13030 tui/ChangeLog-1998-2003.
13031 \f
13032 Local Variables:
13033 mode: change-log
13034 left-margin: 8
13035 fill-column: 74
13036 version-control: never
13037 End:
This page took 0.300703 seconds and 4 git commands to generate.