* mips-tdep.c (mips16_scan_prologue): Renames
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2
3 * mips-tdep.c (mips16_scan_prologue): Renames
4 mips16_heuristic_proc_desc. Update comment.
5 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
6 (heuristic_proc_desc): Update calls to the 2 functions above.
7
8 2004-10-10 Joel Brobecker <brobecker@gnat.com>
9
10 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
11 Update comments. Also immediately return empty cache when the start
12 address of our function could not be found.
13 (mips_insn32_frame_cache): Likewise.
14
15 2004-10-10 Joel Brobecker <brobecker@gnat.com>
16
17 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
18 (mips_insn16_frame_cache): Pass frame cache in call to
19 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
20 Remove code that became redundant as a consequence.
21 (mips32_heuristic_proc_desc): No longer compute a fake
22 procedure descriptor. Compute the full frame cache instead.
23 Some minor comment reformatting.
24
25 2004-10-10 Jim Blandy <jimb@redhat.com>
26
27 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
28 reader, tracing bytecode stuff): Remove self.
29
30 2004-10-10 Mark Kettenis <kettenis@gnu.org>
31
32 * sparc64-linux-tdep.c: Update copyright year. Don't include
33 "solib-svr4.h".
34 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
35 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
36 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
37
38 * sparc-linux-tdep.c: Update copyright year.
39 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
40 to struct frame_info *. Use safe_frame_unwind_memory instead of
41 deprecated_read_memory_nobpt.
42 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
43 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
44 changed signature of sparc_linux_sigtramp_start.
45 (sparc32_linux_pc_in_sigtramp): Remove function.
46 (sparc32_linux_sigtramp_p): New function.
47 (sparc32_linux_sigtramp_frame_sniffer): Use
48 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
49
50 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
51 Remove function.
52 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
53
54 * ada-lang.c (lim_warning): Re-implement as a varargs function.
55 (decode_packed_array_type, value_subscript_packed)
56 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
57 argument in call to lim_warning.
58
59 * configure.in: Really disable the TUI if an enhanced curses
60 library isn't found.
61 * configure: Regenerate.
62
63 2004-10-09 Mark Kettenis <kettenis@gnu.org>
64
65 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
66 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
67 * config/i386/nm-nbsdaout.h: Remove file.
68 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
69 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
70 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
71 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
72 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
73 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
74 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
75 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
76 (ldd, ld_un, ld_2): Remove defines.
77 * config/i386/nm-obsd.h: Likewise.
78
79 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
80
81 * ada-lex.l: Remove useless rule whose right-context clause
82 causes unreferenced static function warning for yyrealloc.
83 (ada_flex_use): Remove the artificial reference to yyrealloc.
84
85 2004-10-08 Andrew Cagney <cagney@gnu.org>
86
87 * target.h (struct target_ops): Rename to_xfer_memory to
88 deprecated_xfer_memory.
89 * target.c: Update.
90 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
91 * wince.c: Update.
92 * win32-nat.c: Update.
93 * v850ice.c: Update.
94 * uw-thread.c: Update.
95 * thread-db.c: Update.
96 * sol-thread.c: Update.
97 * remote.c: Update.
98 * remote-vx.c: Update.
99 * remote-st.c: Update.
100 * remote-sim.c: Update.
101 * remote-sds.c: Update.
102 * remote-rdp.c: Update.
103 * remote-rdi.c: Update.
104 * remote-mips.c: Update.
105 * remote-m32r-sdi.c: Update.
106 * remote-e7000.c: Update.
107 * procfs.c: Update.
108 * ppc-bdm.c: Update.
109 * nto-procfs.c: Update.
110 * monitor.c: Update.
111 * linux-nat.c: Update.
112 * inftarg.c: Update.
113 * hpux-thread.c: Update.
114 * go32-nat.c: Update.
115 * gnu-nat.c: Update.
116 * exec.c: Update.
117 * corelow.c: Update.
118 * bsd-kvm.c: Update.
119 * aix-thread.c: Update.
120
121 2004-10-08 Andrew Cagney <cagney@gnu.org>
122
123 * target.c (debug_target): Move to near start of file.
124 (target_stopped_data_address_p): Re-org logic, add casts.
125
126 2004-10-02 Mark Kettenis <kettenis@gnu.org>
127
128 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
129 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
130 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
131 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
132 New defines.
133
134 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
135
136 * target.h (to_stopped_data_address): Change prototype to
137 take a CORE_ADDR pointer and return an int.
138 * target.c (update_current_target): Change to_stopped_data_address
139 to match new prototype.
140 (debug_to_stopped_data_address): Change appropriately.
141 * breakpoint.c (bpstat_stop_status): Change call to
142 target_stopped_data_address to use new prototype.
143 * frv-tdep.c (frv_have_stopped_data_address): New function.
144 (frv_stopped_data_address): Change to new prototype and
145 functionality.
146 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
147 prototype and functionality.
148 (ia64_stopped_by_watchpoint): New function.
149 * i386-nat.c (i386_stopped_data_address): Change to new
150 prototype and functionality.
151 (i386_stopped_by_watchpoint): New function.
152 * remote.c (remote_stopped_data_address): Change to new prototype
153 and functionality.
154 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
155 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
156 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
157 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
158 new i386_stopped_by_watchpoint function.
159 (i386_stopped_by_watchpoint): New prototype.
160 (i386_stoppped_data_address): Change to new prototype.
161 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
162 new ia64_stopped_by_watchpoint function.
163 (ia64_stopped_by_watchpoint): New prototype.
164 (ia64_stopped_data_address): Ditto.
165
166 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
167
168 * ada-typeprint.c (ada_print_type): Use int_string for printing
169 modulus of modular type.
170 * ada-lang.h (ada_modulus): Change return type to unsigned.
171 * ada-lang.c (ada_language_arch_info): Correct type of
172 string_char_type.
173 (ada_modulus): Return unsigned result.
174 (ada_lookup_symbol): Remove user disambiguation and modify comment
175 accordingly.
176
177 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
178
179 Committed by Paul Hilfinger.
180 * ada-lang.c (decode_packed_array): On big-endian targets,
181 left-justify the value if it comes with a modular type.
182
183 2004-10-08 Joel Brobecker <brobecker@gnat.com>
184
185 Committed by Paul Hilfinger.
186 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
187 (is_name_suffix): Add support for "___JM" suffixes.
188 (ada_check_typedef): Renames ada_completed_type.
189 Update all users of CHECK_TYPEDEF, check_typedef, and
190 ada_complete_type to call ada_check_typedef.
191 * ada-typeprint.c: Likewise.
192 * ada-valprint.c: Likewise.
193
194 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
195
196 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
197
198 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
199
200 * MAINTAINERS: Update e-mail address.
201
202 2004-10-07 Daniel Jacobowitz <dan@debian.org>
203
204 From Maciej W. Rozycki <macro@mips.com>:
205 * mips-tdep.c (mips32_next_pc): Check the register's contents,
206 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
207
208 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
209
210 * m32r-tdep.c (decode_prologue): Support functions written
211 in assembler language. Recognize trap instructions as the
212 end of prologue.
213 (m32r_frame_unwind_cache): Ditto.
214 (m32r_skip_prologue): Extend search limit. Quit analyzing
215 prologue if pc's location is not readable.
216
217 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
218
219 * Makefile.in (.l.c): Do conversions of names of alloc and free
220 functions that are done for .y.c files, plus special one
221 for yy_flex_realloc. Also, correct missing-file tests here.
222 * ada-lex.l (malloc, free): Remove macros.
223 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
224 xrealloc.
225 (ada_flex_use): Dummy definition to remove warnings about unused
226 functions.
227 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
228 to suppress warning.
229
230 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
231
232 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
233 RETURN_VALUE.
234 (sh_return_value_fpu): Ditto for CPUs with FPU.
235 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
236 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
237 Install sh_return_value_nofpu resp. sh_return_value_fpu as
238 RETURN_VALUE functions.
239
240 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
241
242 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
243 (sh_pseudo_register_write): Ditto.
244
245 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
246
247 * sh-tdep.c (IS_MACL_STS): New define.
248 (IS_MOVI20): Ditto.
249 (IS_MACL_LDS): Ditto.
250 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
251 instructions in prologue.
252 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
253 instructions in epilogue.
254
255 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
256
257 * sh-tdep.c (SH_NUM_REGS): Define as 67.
258 (sh_sh_register_name): Add eight empty register names.
259 (sh_sh3_register_name): Ditto.
260 (sh_sh3e_register_name): Ditto.
261 (sh_sh2e_register_name): Ditto.
262 (sh_sh2a_register_name): New function, defining SH2A register set.
263 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
264 in nofpu case.
265 (sh_sh_dsp_register_name): Add eight empty register names.
266 (sh_sh3_dsp_register_name): Ditto.
267 (sh_sh4_register_name): Ditto.
268 (sh_sh4_nofpu_register_name): Ditto.
269 (sh_sh4al_dsp_register_name): Ditto.
270 (sh2a_show_regs): New function.
271 (sh2a_nofpu_show_regs): New function.
272 (sh_sh2a_register_type): New function.
273 (do_bank_register_info): New function.
274 (sh_print_pseudo_register): Call do_bank_register_info.
275 Call sh_print_pseudo_register for valid "bank" register.
276 (sh_sh2a_register_sim_regno): New function.
277 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
278 Increment pseudo register count by one for all sh variants with
279 pseudo registers to accomodate pseudo bank register.
280 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
281 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
282 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
283 Increment pseudo register numbers.
284
285 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
286
287 * dwarf2read.c (read_subroutine_type): Call make_function_type
288 instead of lookup_function_type.
289
290 2004-10-05 Jim Blandy <jimb@redhat.com>
291
292 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
293 (Previous change missed some uses.)
294
295 2004-10-05 Andrew Cagney <cagney@gnu.org>
296
297 * target.h (deprecated_child_ops): Rename child_ops.
298 * wince.c: Update copyright. Rename child_ops.
299 * win32-nat.c: Rename child_ops.
300 * target.c: Rename child_ops.
301 * rs6000-nat.c: Rename child_ops.
302 * linux-nat.c: Rename child_ops.
303 * infttrace.c: Rename child_ops.
304 * inftarg.c: Rename child_ops.
305 * infptrace.c: Rename child_ops.
306 * hppah-nat.c: Update copyright. Rename child_ops.
307 * hpux-thread.c: Update copyright. Rename child_ops.
308
309 2004-10-05 Daniel Jacobowitz <dan@debian.org>
310
311 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
312
313 2004-10-05 Andrew Cagney <cagney@gnu.org>
314
315 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
316
317 2004-10-05 Daniel Jacobowitz <dan@debian.org>
318
319 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
320 (die_ref_table): Remove.
321 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
322 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
323 the usage of this type.
324 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
325 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
326 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
327 (dwarf2_create_include_psymtab): Update comment.
328 (find_partial_die): Remove third argument. Remove unreachable call
329 to error ().
330 (dwarf2_find_containing_comp_unit): Update comments. Change one
331 assertion to an error. Remove an unreachable error.
332 (dwarf2_find_comp_unit): Update comments.
333 (type_at_offset): Remove dead code.
334 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
335 (store_in_ref_table): Add CU argument.
336 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
337 inter-compilation-unit references.
338 (load_full_comp_unit, process_full_comp_unit): New functions, based
339 on psymtab_to_symtab_1.
340 (psymtab_to_symtab_1): Use them.
341 (dwarf2_add_dependence): New function.
342 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
343 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
344 (partial_die_parent_scope, guess_structure_name): Update for changes
345 to find_partial_die.
346 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
347 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
348 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
349 (read_die_and_children): Update call to store_in_ref_table.
350 (do_free_die_list_cleanup): Remove.
351 (fixup_partial_die): Update for changes to find_partial_die.
352 (read_full_die): Handle queueing absolute references.
353 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
354 (dwarf2_attr, die_specification, die_type)
355 (die_containing_type, dwarf2_extension): Update calls to
356 follow_die_ref.
357 (dump_die): Update DW_FORM_ref* handling.
358 (dwarf2_get_ref_die_offset): Likewise.
359 (free_one_comp_unit): Release the dies list.
360 (dwarf2_mark_helper): New function.
361 (dwarf2_mark): Use it.
362
363 2004-10-05 Mark Kettenis <kettenis@jive.nl>
364
365 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
366 when writing to memory.
367
368 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
369
370 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
371 (m32r_extract_struct_value_address): Delete function.
372 (m32r_return_value): New function.
373 (m32r_gdbarch_init): Instead of store_return_value,
374 extract_return_value, deprecated_extract_struct_value_address
375 and deprecated_use_struct_convention, set return_value.
376
377 2004-10-03 Daniel Jacobowitz <dan@debian.org>
378
379 * dwarf2read.c (read_subrange_type): Add comment for variable
380 sized arrays.
381
382 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
383
384 * Makefile.in (.l.c): Modify rule for compatibility with recent
385 versions of flex, and remove most command-line options.
386 * ada-lex.l: Add %options line in place of -I -i and -s command-line
387 options.
388
389 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
390
391 Turn on initial Ada support (mainly expression evaluation).
392
393 * Makefile.in (SFILES): Remove ada-tasks.c.
394 (HFILES_NO_SRCDIR): Add ada-lang.h.
395 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
396 (YYOBJ): Add ada-exp.o.
397 (rule .l.c): Generalize to not mention ada.
398 * symtab.c: Include ada-lang.h.
399 (symbol_natural_name, symbol_demangled_name)
400 (symbol_search_name): Add Ada case.
401
402 2004-10-01 Andrew Cagney <cagney@gnu.org>
403
404 * Makefile.in (COMMON_OBS): Add inf-child.o.
405 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
406 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
407 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
408 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
409 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
410 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
411 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
412 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
413 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
414 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
415 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
416 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
417 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
418
419 * target.c (xfer_using_stratum): Change return type to LONGEST.
420 On each iteration offset, readbuf and writebuf.
421 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
422 partial_length, and read/modify/write predicate, update comments.
423 Pass buffer.word to ptrace write.
424
425 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
426
427 * symfile.c (init_filename_language_table): Add extensions for
428 Ada.
429 * defs.h (enum language): Add language_ada.
430 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
431 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
432 (add_symbols_from_enclosing_procs): Make a no-op for now.
433 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
434 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
435 (find_line_in_linetable, find_next_line_in_linetable)
436 (read_all_symtabs, is_plausible_func_for_line)
437 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
438 (is_runtime_sym_defined, check_size): Remove declaration.
439 (function_name_from_pc, ada_translate_error_message)
440 (ada_lookup_minimal_symbol): Remove definition.
441 (ada_add_block_symbols): Remove useless label.
442 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
443 useless declaration.
444 (ada_is_exception_sym): Likewise.
445
446 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
447
448 Add m32r-linux support.
449 * configure.tgt: Add m32r*-*-linux*.
450 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
451 and m32r-linux-tdep.c.
452 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
453 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
454 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
455 m32r-linux-tdep.c.
456 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
457 config/m32r/linux.mh, config/m32r/linux.mt,
458 config/m32r/nm-linux.h: New files.
459
460 2004-09-30 Joel Brobecker <brobecker@gnat.com>
461
462 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
463 (mips32_fetch_instruction): Remove, unused.
464
465 2004-09-30 Joel Brobecker <brobecker@gnat.com>
466
467 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
468 conditions that will always be true.
469
470 2004-09-30 Mark Kettenis <kettenis@gnu.org>
471
472 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
473 (vaxbsd_fetch_inferior_registers): Rename from
474 fetch_inferior_registers. Make static.
475 (vaxbsd_store_inferior_registers): Rename from
476 store_inferior_registers. Make static.
477 (_initialize_vaxbsd_nat): Construct and add target vector.
478 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
479 inftarg.o. Add inf-child.o and inf-ptrace.o.
480 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
481 inftarg.o. Add inf-child.o and inf-ptrace.o.
482 (NAT_FILE): Remove.
483 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
484 inftarg.o. Add inf-child.o and inf-ptrace.o.
485 (NAT_FILE): Remove.
486 * Makefile.in (vaxbsd-nat.o): Update dependencies.
487
488 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
489 (m88kbsd_fetch_inferior_registers): Rename from
490 fetch_inferior_registers. Make static.
491 (m88kbsd_store_inferior_registers): Rename from
492 store_inferior_registers. Make static.
493 (_initialize_m88kbsd_nat): New prototype and function.
494 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
495 inftarg.o. Add inf-child.o and inf-ptrace.o.
496 (NAT_FILE): Remove.
497 * Makefile.in (m88kbsd-nat.o): Update dependencies.
498
499 2004-09-30 Andrew Cagney <cagney@gnu.org>
500
501 * target.c (target_xfer_partial): New function.
502 (target_read_memory_partial, target_write_memory_partial)
503 (default_xfer_partial, target_read_partial, target_write_partial)
504 (xfer_using_stratum): Use.
505 (debug_to_xfer_partial): Delete function.
506 (setup_target_debug): Do not override to_xfer_partial.
507
508 2004-09-30 Mark Kettenis <kettenis@chello.nl>
509
510 * fork-child.c: Update copyright year. Fix coding style.
511
512 2004-09-29 Mark Kettenis <kettenis@gnu.org>
513
514 * defs.h (msavestring, mstrsave): Remove prototypes.
515 * utils.c (msavestring, mstrsave): Remove functions.
516 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
517 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
518 of mstrsave.
519 * source.c (find_and_open_source): Use xstrdup instead of
520 mstrsave.
521
522 2004-09-30 Andrew Cagney <cagney@gnu.org>
523
524 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
525 (inf_ptrace_xfer_memory): Delete.
526 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
527 (target_read_memory, target_write_memory): Use xfer_using_stratum
528 when target_xfer_partial_p.
529 (debug_target): Move to start of file.
530 (target_read_memory_partial, target_write_memory_partial): Use
531 to_xfer_partial when target_xfer_partial_p.
532
533 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
534 inf_ptrace_xfer_memory with equivalent code.
535 * inftarg.c (child_xfer_partial): When performing a write, pass
536 writebuf to child_xfer_memory.
537
538 * target.c (target_read_string): Use target_read_memory instead of
539 target_xfer_memory.
540
541 2004-09-29 Andrew Cagney <cagney@gnu.org>
542
543 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
544 the address of status.
545
546 * infptrace.c (ptrace_wait): Mention problem with HPUX.
547 (kill_inferior): Inline ptrace_wait call.
548 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
549 * inftarg.c (child_wait): Inline ptrace_wait call.
550
551 * target.h (struct target_ops): Delete field to_post_wait.
552 (target_post_wait): Delete macro.
553 (child_post_wait): Delete declaration.
554 * target.c (update_current_target, update_current_target)
555 (debug_to_post_wait, setup_target_debug): Delete functions and
556 references.
557 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
558 * inftarg.c (child_post_wait): Delete.
559 (init_child_ops): Do not set to_post_wait.
560 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
561 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
562 * inf-child.c (inf_child_post_wait): Delete.
563 (inf_child_target): Do not set to_post_wait.
564 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
565 (inf_ptrace_target): Do not set to_post_wait.
566
567 * wince.c (child_ops): Delete.
568 * win32-nat.c (child_ops): Delete.
569
570 * inftarg.c (inftarg_set_find_memory_regions)
571 (inftarg_set_make_corefile_notes): Delete functions.
572 (_initialize_linux_nat): Inline calls.
573
574 * target.h (child_ops): Declare.
575 * inftarg.c (child_ops): Move from here ...
576 * target.c (child_ops): ... to here.
577 * wince.c (child_ops): Delete extern declaration.
578 * win32-nat.c (child_ops): Delete extern declaration.
579 * linux-nat.c (child_ops): Delete extern declaration.
580 * hpux-thread.c (child_ops): Delete extern declaration.
581
582 2004-09-28 Mark Kettenis <kettenis@gnu.org>
583
584 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
585
586 2004-09-28 Mark Kettenis <kettenis@gnu.org>
587
588 * configure.in: Only set host_makefile_frag when building a native
589 debugger.
590 * configure: Regenerate.
591
592 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
593 for OpenBSD ELF.
594
595 2004-09-28 Andrew Cagney <cagney@gnu.org>
596
597 Problem identified by Paul Hilfinger.
598 * Makefile.in (ada_lex_c): Define.
599 (ada-lex.o): Delete rule.
600
601 * linux-proc.c: Delete file.
602 * Makefile.in: Update.
603 * config/sparc/linux64.mh (NATDEPFILES):
604 * config/sparc/linux.mh (NATDEPFILES): Update.
605 * config/s390/s390.mh (NATDEPFILES): Update.
606 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
607 * config/powerpc/linux.mh (NATDEPFILES): Update.
608 * config/pa/linux.mh (NATDEPFILES): Update.
609 * config/mips/linux.mh (NATDEPFILES): Update.
610 * config/m68k/linux.mh (NATDEPFILES): Update.
611 * config/ia64/linux.mh (NATDEPFILES): Update.
612 * config/i386/linux64.mh (NATDEPFILES): Update.
613 * config/i386/linux.mh (NATDEPFILES): Update.
614 * config/arm/linux.mh (NATDEPFILES): Update.
615 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
616 * linux-nat.c: Update copyright. Include <sys/param.h>,
617 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
618 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
619 (O_LARGEFILE): Possibly define.
620 (_initialize_linux_nat, linux_proc_pending_signals)
621 (add_line_to_sigset, linux_proc_xfer_memory)
622 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
623 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
624 (struct linux_corefile_thread_data)
625 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
626 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
627
628 2004-09-16 Andrew Cagney <cagney@gnu.org>
629
630 * lin-lwp.c: Delete file.
631 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
632 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
633 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
634 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
635 (linux_nat_attach, detach_callback, linux_nat_detach)
636 (resume_callback, resume_clear_callback, linux_nat_resume)
637 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
638 (stop_wait_callback, linux_nat_has_pending, flush_callback)
639 (status_callback, running_callback, count_events_callback)
640 (select_singlestep_lwp_callback, select_event_lwp_callback)
641 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
642 (child_wait, stop_and_resume_callback, linux_nat_wait)
643 (kill_callback, kill_wait_callback, linux_nat_kill)
644 (linux_nat_create_inferior, linux_nat_mourn_inferior)
645 (linux_nat_xfer_memory, linux_nat_thread_alive)
646 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
647 (_initialize_linux_nat): New functions.
648 * Makefile.in: Update all dependencies.
649 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
650 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
651 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
652 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
653 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
654 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
655 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
656 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
657 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
658 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
659 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
660 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
661 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
662
663 2004-09-27 Mark Kettenis <kettenis@gnu.org>
664
665 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
666 config/i386/obsd64.mh (NAT_FILE): Remove variable.
667
668 * configure.in: Don't comment out NATDEPFILES in the generated
669 Makefile if NAT_FILE is unset.
670 * configure: Regenerate.
671
672 2004-09-27 Andrew Cagney <cagney@gnu.org>
673
674 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
675 (insert_step_resume_breakpoint): Delete.
676 (insert_step_resume_breakpoint_at_frame): New function.
677 (insert_step_resume_breakpoint_at_sal): New function.
678 (handle_inferior_event, step_into_function)
679 (insert_step_resume_breakpoint): Simplify by using same.
680
681 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
682
683 2004-09-26 Mark Kettenis <kettenis@gnu.org>
684
685 * fbsd-proc.c: Remove file.
686 * Makefile.in (fbsd-proc.o): Remove dependency.
687
688 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
689 code together.
690
691 * config/i386/nm-fbsd64.h: Remove file.
692 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
693
694 2004-09-26 Mark Kettenis <kettenis@gnu.org>
695
696 * amd64-nat.h: Update copyright year.
697 (amd64bsd_target): New prototype.
698 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
699 (amd64bsd_target): New function.
700 (amd64bsd_fetch_inferior_registers): Rename from
701 fetch_inferior_registers. Make static.
702 (amd64bsd_store_inferior_registers): Rename from
703 store_inferior_registers. Make static.
704 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
705 (_initialize_amd64fbsd_nat): Construct and add target vector.
706 * amd64nbsd-nat.o: Include "target.h".
707 (_initialize_amd64nbsd_nat): Construct and add target vector.
708 * amd64obsd-nat.c: Include "target.h".
709 (_initialize_amd64obsd_nat): Construct and add target vector.
710 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
711 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
712 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
713 fbsd-nat.o.
714 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
715 Remove infptrace.o and inftarg.o. Add inf-child.o and
716 inf-ptrace.o.
717 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
718 (amd64obsd-nat.o): Update dependencies.
719
720 2004-09-25 Mark Kettenis <kettenis@gnu.org>
721
722 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
723 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
724 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
725 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
726 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
727
728 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
729 Inline attach call.
730 (inf_ptrace_detach): Inline detach call.
731
732 * configure.in: Check for waddstr instead of mvwaddstr when
733 searching for curses library. Check for wborder.
734 * configure, config.in: Regenerate.
735 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
736 available.
737
738 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
739
740 2004-09-24 Robert Picco <Robert.Picco@hp.com>
741
742 Committed by Andrew Cagney.
743 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
744 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
745 configuration.
746 (fetch_register_using_p): Implement 'p' packet. Based on code by
747 Fernando Nasser.
748 (remote_fetch_registers): Call fetch_register_using_p.
749 (init_all_packet_configs, show_remote_cmd)
750 (_initialize_remote): Add p-packet.
751
752 2004-09-24 Mark Kettenis <kettenis@gnu.org>
753
754 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
755 instead of call_ptrace. Call wait directly instead of
756 ptrace_wait.
757 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
758 (inf_ptrace_wait): Inline ptrace_wait call.
759
760 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
761
762 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
763 rolled back instead.
764
765 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
766
767 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
768 the new argument order.
769
770 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
771
772 * MAINTAINERS: Remove "broken" from XStormy16 entry.
773 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
774 (struct gdbarch_tdep): Remove.
775 (struct xstormy16_frame_cache): New frame cache structure.
776 (xstormy16_register_byte, xstormy16_register_raw_size)
777 (xstormy16_reg_virtual_type, xstormy16_register_type)
778 (xstormy16_push_arguments, xstormy16_push_return_address)
779 (xstormy16_pop_frame, xstormy16_store_struct_return)
780 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
781 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
782 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
783 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
784 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
785 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
786 (xstormy16_use_struct_convention): Drop gcc_p parameter.
787 (xstormy16_extract_return_value, xstormy16_store_return_value):
788 Regcachify. Drop useless struct convention handling.
789 (xstormy16_register_type, xstormy16_return_value)
790 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
791 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
792 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
793 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
794 (xstormy16_unwind_sp, xstormy16_unwind_pc)
795 (xstormy16_unwind_dummy_id) : New functions.
796 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
797 of xstormy16_scan_prologue.
798 (xstormy16_frame_unwind): New frame_unwind structure.
799 (xstormy16_frame_base): New frame_base structure.
800 (xstormy16_gdbarch_init): Accomodate all of the above changes.
801 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
802
803 2004-09-22 Mark Kettenis <kettenis@gnu.org>
804
805 * language.c (language_gdbarch_post_init): Fix off-by one error.
806
807 2004-09-21 Daniel Jacobowitz <dan@debian.org>
808
809 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
810 (struct dwarf2_offset_and_type): New.
811 (set_die_type, reset_die_and_siblings_types, get_die_type)
812 (offset_and_type_hash, offset_and_type_eq): New functions.
813 (read_structure_type, read_enumeration_type, read_array_type)
814 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
815 (read_tag_reference_type, read_tag_const_type)
816 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
817 (read_typedef, read_base_type, read_subrange_type): Use
818 set_die_type.
819
820 2004-09-20 Daniel Jacobowitz <dan@debian.org>
821
822 * Makefile.in (dwarf2read.o): Update dependencies.
823 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
824 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
825 and read_in_chain.
826 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
827 mark, and has_form_ref_addr.
828 (struct dwarf2_per_cu_data): New.
829 (dwarf2_max_cache_age): New.
830 (dwarf2_build_psymtabs_hard): Free cached compilation units
831 after loading. Create and manage the list of compilation units.
832 Remove unnecessary NULL initialization. Fix indentation.
833 (psymtab_to_symtab_1): Initialize all of CU.
834 (dwarf2_read_abbrevs): Set has_form_ref_addr.
835 (find_partial_die): Use dwarf2_find_containing_comp_unit
836 and load_comp_unit.
837 (free_stack_comp_unit): Update comments. Clear the per-cu
838 pointer. Handle aging.
839 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
840 (age_cached_comp_units, free_one_cached_comp_unit)
841 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
842 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
843 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
844 (show_dwarf2_cmd): New.
845 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
846 and "maint show dwarf2 max-cache-age".
847 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
848 externs.
849 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
850 global.
851
852 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
853
854 * dwarf2read.c (typename_concat): Change prototype to accept obstack
855 and dwarf2_cu struct pointer as arguments. Change function to use
856 obstack if provided and use dwarf2_cu to determine language-specific
857 separator.
858 (partial_die_parent_scope): Change comment to include java. Use
859 new version of typename_concat instead of obconcat.
860 (partial_die_full_name): Use typename_concat.
861 (read_namespace): Ditto.
862 (read_enumeration_type): Use typename_concat instead of obconcat.
863 (new_symbol): Ditto.
864 (add_partial_symbol): Enhance tests for C++ to also test for Java.
865 (guess_structure_name): Ditto.
866 (read_subroutine_type): Ditto.
867 (read_structure_type): Ditto.
868 (is_vtable_name): Add Java support.
869 (determine_class_name): Switch to new typename_concat call.
870 (determine_prefix): Switch to new typename_concat call.
871 * jv-exp.y (FuncStart): New pattern.
872 (MethodInvocation): Add support for simple function calls. Change
873 warning message for other forms of inferior call currently not
874 supported.
875 * valarith.c (value_subscript): Treat an array with upper-bound
876 of -1 as unknown size.
877
878 2004-09-20 Daniel Jacobowitz <dan@debian.org>
879
880 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
881 (lookup_partial_symtab): Use symtab_to_fullname.
882
883 2004-09-19 Jim Blandy <jimb@redhat.com>
884
885 * minsyms.c (lookup_minimal_symbol): Doc fix.
886
887 2004-09-20 Andrew Cagney <cagney@gnu.org>
888
889 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
890 CHILD_RESUME.
891 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
892 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
893 KILL_INFERIOR.
894 * infptrace.c: Update.
895
896 2004-09-19 Daniel Jacobowitz <dan@debian.org>
897
898 * symtab.c (output_source_filename): Mark first argument as const.
899 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
900 for "info sources" output.
901
902 2004-09-20 Mark Kettenis <kettenis@gnu.org>
903
904 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
905 <machine/vmparam.h>.
906 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
907 (register_u_addr): Remove prototype.
908
909 2004-09-19 Mark Kettenis <kettenis@gnu.org>
910
911 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
912 (i386bsd_fetch_inferior_registers): Rename from
913 fetch_inferior_registers. Make static.
914 (i386bsd_store_inferior_registers): Rename from
915 store_inferior_registers. Make static.
916 (i386bsd_target): New function.
917 * i386bsd-nat.h: New file.
918 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
919 "i386bsd-nat.h".
920 (i386fbsd_resume): Rename from child_resume. Make static.
921 (_initialize_i386fbsd_nat): Construct and add target vector.
922 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
923 (_initialize_i386nbsd_nat): Construct and add target vector.
924 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
925 Remove defines.
926 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
927 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
928 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
929 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
930 (LOADLIBES): New variable.
931 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
932 inf-ptrace.o. Remove inftarg.o.
933 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
934 inf-ptrace.o. Remove inftarg.o.
935 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
936 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
937 (LOADLIBES): New variable.
938 * Makefile.in (i386bsd_nat_h): New variable.
939 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
940 dependencies.
941
942 * sparc64nbsd-tdep.c: Include "objfiles.h".
943 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
944 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
945 svr4_lp64_fetch_link_map_offsets.
946 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
947 "nbsd-tdep.h".
948 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
949 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
950 svr4_lp64_fetch_link_map_offsets.
951 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
952 dependencies.
953
954 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
955 * fbsd-nat.h: New file.
956 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
957 (fbsd_nat_h): New variable.
958 (fbsd-nat.o): New dependency.
959
960 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
961 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
962
963 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
964 comment.
965
966 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
967
968 * ada-exp.y (type_int): New function to add layer of abstraction
969 around references to expression types.
970 (type_long): Ditto.
971 (type_long_long): Ditto.
972 (type_float): Ditto.
973 (type_double): Ditto.
974 (type_long_double): Ditto.
975 (type_char): Ditto.
976 (type_system_address): Ditto.
977 (simple_exp): Use type_* functions in place of builtin_*
978 variables.
979 (exp): Ditto.
980 (write_var_from_name): Ditto.
981 (write_object_renaming): Ditto.
982 * ada-lang.c (ada_create_fundamental_type): Remove redundant
983 declaration.
984 (build_ada_types): Remove, replacing with...
985 (ada_language_arch_info): New function to initialize primitive
986 type vector in language_arch_info.
987 (ada_array_length): Remove use of builtin_type_ada_int.
988 (value_pos_atr): Ditto.
989 (ada_evaluate_subexp): Ditto.
990 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
991 builtin_type_ada_long_long, builtin_type_ada_char,
992 builtin_type_ada_float, builtin_type_ada_double,
993 builtin_type_ada_long_double, builtin_type_ada_natural,
994 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
995 (ada_builtin_types): Remove.
996 (ada_language_defn): Remove entries for la_builtin_type_vector and
997 string_char_type and use ada_language_arch_info.
998 (_initialize_ada_language): Do type-vector initialization along
999 the lines of c-lang.c.
1000 (ada_create_fundamental_type): Break up line.
1001 (ada_dump_symtab): Remove unused function.
1002 (enum ada_primitive_types): Define.
1003 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1004 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1005 builtin_type_ada_float, builtin_type_ada_double,
1006 builtin_type_ada_long_double, builtin_type_ada_natural,
1007 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1008 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1009 (processInt): Ditto.
1010 (processReal): Ditto.
1011 (name_lookup): Ditto.
1012 * ada-typeprint.c (print_range): Use builtin_type_int, not
1013 builtin_type_ada_int.
1014
1015 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1016
1017 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1018
1019 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1020 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1021 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1022 * configure.in: Improve checks for curses library by checking for
1023 mvwaddstr instead of initscr. Drop HP curses in favour of
1024 standard curses on HP-UX.
1025 * configure: Regenerated.
1026
1027 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1028
1029 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1030 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1031 Minor formatting changes.
1032 (empty_array): Slight rewrite for formatting.
1033 (emit_char,parse,ada_language_defn,build_ada_types,
1034 ada_is_exception_sym, _initialize_ada_language): Move
1035 definitions around.
1036 (ada_dump_symtab): Remove unused definition.
1037 (ada_maybe_exception_partial_symbol): Remove unused definition.
1038
1039 2004-09-16 Andrew Cagney <cagney@gnu.org>
1040
1041 * inf-child.c: Include "gdb_string.h".
1042 (inf_child_core_file_to_sym_file): Delete.
1043 (inf_child_target): Set to_fetch_registers and to_store_registers.
1044 * inf-ptrace.c: Include "gdb_string.h".
1045 * Makefile.in: Update all dependencies.
1046
1047 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1048 problem.
1049
1050 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1051
1052 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1053 call to heuristic_proc_desc. Remove code that became redundant
1054 as a consequence.
1055 (read_next_frame_reg): Remove special case for SP_REGNUM.
1056 (set_reg_offset): Fix small typo.
1057 (reset_saved_regs): New procedure.
1058 (mips32_heuristic_proc_desc): No longer compute a fake
1059 procedure descriptor. Compute the full frame cache instead.
1060 Some minor comment reformatting.
1061
1062 2004-09-14 Andrew Cagney <cagney@gnu.org>
1063
1064 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1065 maintainer.
1066
1067 * thread-db.c (thread_db_new_objfile): Assume that there is a
1068 child process.
1069
1070 2004-09-13 Jim Blandy <jimb@redhat.com>
1071
1072 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1073 so that its storage isn't referenced after its lifetime ends.
1074
1075 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1076 and never assigned to. Delete it, and the 'if (use_buffer)'
1077 clauses. Delete 'raw_buffer', since it is now unused.
1078
1079 2004-09-13 Andrew Cagney <cagney@gnu.org>
1080
1081 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1082 * configure: Re-generate.
1083 * nlm/Makefile.in (TAGS): Update.
1084 * Makefile.in (TAGS): Update.
1085 * config/vax/nbsd.mt (TM_FILE): Update.
1086 * config/sparc/vxworks.mt (TM_FILE): Update.
1087 * config/sparc/sol2.mt (TM_FILE): Update.
1088 * config/sparc/sol2-64.mt (TM_FILE): Update.
1089 * config/sparc/obsd64.mt (TM_FILE): Update.
1090 * config/sparc/obsd.mt (TM_FILE): Update.
1091 * config/sparc/nbsd64.mt (TM_FILE): Update.
1092 * config/sparc/nbsd.mt (TM_FILE): Update.
1093 * config/sparc/linux64.mt (TM_FILE): Update.
1094 * config/sparc/linux.mt (TM_FILE): Update.
1095 * config/sparc/fbsd.mt (TM_FILE): Update.
1096 * config/sh/wince.mt (TM_FILE): Update.
1097 * config/sh/nbsd.mt (TM_FILE): Update.
1098 * config/sh/linux.mt (TM_FILE): Update.
1099 * config/sh/embed.mt (TM_FILE): Update.
1100 * config/s390/s390.mt (TM_FILE): Update.
1101 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1102 * config/rs6000/rs6000.mt (TM_FILE): Update.
1103 * config/rs6000/aix4.mt (TM_FILE): Update.
1104 * config/powerpc/vxworks.mt (TM_FILE): Update.
1105 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1106 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1107 * config/powerpc/obsd.mt (TM_FILE): Update.
1108 * config/powerpc/nbsd.mt (TM_FILE): Update.
1109 * config/powerpc/linux.mt (TM_FILE): Update.
1110 * config/powerpc/aix.mt (TM_FILE): Update.
1111 * config/pa/obsd.mt (TM_FILE): Update.
1112 * config/pa/linux.mt (TM_FILE): Update.
1113 * config/pa/hppahpux.mt (TM_FILE): Update.
1114 * config/pa/hppa64.mt (TM_FILE): Update.
1115 * config/pa/hppa.mt (TM_FILE): Update.
1116 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1117 * config/mips/wince.mt (TM_FILE): Update.
1118 * config/mips/vxmips.mt (TM_FILE): Update.
1119 * config/mips/nbsd.mt (TM_FILE): Update.
1120 * config/mips/linux.mt (TM_FILE): Update.
1121 * config/mips/irix6.mt (TM_FILE): Update.
1122 * config/mips/irix5.mt (TM_FILE): Update.
1123 * config/mips/embed.mt (TM_FILE): Update.
1124 * config/m68k/vxworks68.mt (TM_FILE): Update.
1125 * config/m68k/st2000.mt (TM_FILE): Update.
1126 * config/m68k/os68k.mt (TM_FILE): Update.
1127 * config/m68k/obsd.mt (TM_FILE): Update.
1128 * config/m68k/nbsd.mt (TM_FILE): Update.
1129 * config/m68k/monitor.mt (TM_FILE): Update.
1130 * config/m68k/linux.mt (TM_FILE): Update.
1131 * config/m68k/cisco.mt (TM_FILE): Update.
1132 * config/ia64/linux.mt (TM_FILE): Update.
1133 * config/ia64/aix.mt (TM_FILE): Update.
1134 * config/ia64/ia64.mt (TM_FILE): Update.
1135 * config/i386/vxworks.mt (TM_FILE): Update.
1136 * config/i386/obsd64.mt (TM_FILE): Update.
1137 * config/i386/obsd.mt (TM_FILE): Update.
1138 * config/i386/nto.mt (TM_FILE): Update.
1139 * config/i386/nbsd64.mt (TM_FILE): Update.
1140 * config/i386/nbsd.mt (TM_FILE): Update.
1141 * config/i386/linux64.mt (TM_FILE): Update.
1142 * config/i386/linux.mt (TM_FILE): Update.
1143 * config/i386/i386sol2.mt (TM_FILE): Update.
1144 * config/i386/i386lynx.mt (TM_FILE): Update.
1145 * config/i386/fbsd64.mt (TM_FILE): Update.
1146 * config/i386/fbsd.mt (TM_FILE): Update.
1147 * config/i386/cygwin.mt (TM_FILE): Update.
1148 * config/h8300/h8300.mt (TM_FILE): Update.
1149 * config/frv/frv.mt (TM_FILE): Update.
1150 * config/cris/cris.mt (TM_FILE): Update.
1151 * config/arm/wince.mt (TM_FILE): Update.
1152 * config/arm/nbsd.mt (TM_FILE): Update.
1153 * config/arm/linux.mt (TM_FILE): Update.
1154 * config/arm/embed.mt (TM_FILE): Update.
1155 * config/alpha/nbsd.mt (TM_FILE): Update.
1156 * config/alpha/fbsd.mt (TM_FILE): Update.
1157 * config/alpha/alpha.mt (TM_FILE): Update.
1158 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1159 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1160
1161 Eliminate event_loop_p, always has the value 1.
1162 * defs.h (event_loop_p): Delete macro.
1163 * breakpoint.c (until_break_command): Simplify.
1164 * utils.c (prompt_for_continue): Simplify.
1165 * tracepoint.c (read_actions): Simplify.
1166 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1167 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1168 (set_prompt, init_main): Simplify.
1169 (init_signals, disconnect): Delete, unused.
1170 * remote.c (remote_async_resume)
1171 (extended_remote_async_create_inferior): Simplify.
1172 * mi/mi-interp.c (mi_input): Delete, unused.
1173 (mi_interpreter_resume, mi_command_loop): Simplify.
1174 * interps.c (current_interp_command_loop): Simplify.
1175 * infrun.c (proceed): Simplify.
1176 * infcmd.c (run_command, continue_command, step_1, jump_command)
1177 (until_command, advance_command, finish_command)
1178 (interrupt_target_command): Simplify.
1179 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1180
1181 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1182 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1183 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1184 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1185 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1186 * mips-tdep.c (mips_dump_tdep): Do not print same.
1187
1188 2004-09-12 Andrew Cagney <cagney@gnu.org>
1189
1190 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1191 const.
1192 * Makefile.in (valprint.o): Delete explict rule.
1193
1194 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1195 reported by Dave Anderson.
1196
1197 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1198
1199 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1200
1201 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1202 Andrew Cagney <cagney@gnu.org>
1203
1204 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1205 (mi_cmd_data_list_register_values)
1206 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1207 the register number computation.
1208
1209 2004-09-12 Andrew Cagney <cagney@gnu.org>
1210
1211 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1212 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1213 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1214 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1215 target.
1216 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1217 inf-ptrace.o and inf-child.o.
1218 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1219 * Makefile.in: Update dependencies.
1220
1221 2004-09-11 Andrew Cagney <cagney@gnu.org>
1222
1223 * language.c (hex_string, hex_string_custom): Move from here ...
1224 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1225 (CELLSIZE): Increase to 50.
1226 * language.h (hex_string, hex_string_custom): Move from here ...
1227 * defs.h: ... to here.
1228 * Makefile.in: Update all dependencies.
1229
1230 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1231
1232 * language.c (local_hex_format_custom): Remove.
1233 (local_hex_string): Rename to hex_string, use C format, and move to
1234 utils.c
1235 (local_hex_string_custom): Rename to hex_string_custom and change
1236 interface. Now uses C format. Move to utils.c
1237 (local_octal_format_custom): Remove.
1238 (local_decimal_format_custom): Remove.
1239 (unknown_language_defn): Remove language-specific number
1240 formatting entries.
1241 (auto_language_defn): Ditto.
1242 (local_language_defn): Ditto.
1243 * language.h (struct language_format_info): Delete declaration.
1244 (struct language_defn): Remove language_format_info fields
1245 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1246 (local_binary_format): Remove macro.
1247 (local_binary_format_prefix): Remove macro.
1248 (local_binary_format_specifier): Remove macro.
1249 (local_binary_format_suffix): Remove macro.
1250 (local_octal_format): Remove macro.
1251 (local_octal_format_prefix): Remove macro.
1252 (local_octal_format_specifier): Remove macro.
1253 (local_octal_format_suffix): Remove macro.
1254 (local_decimal_format): Remove macro.
1255 (local_decimal_format_prefix): Remove macro.
1256 (local_decimal_format_specifier): Remove macro.
1257 (local_decimal_format_suffix): Remove macro.
1258 (local_hex_format): Remove macro.
1259 (local_hex_format_prefix): Remove macro.
1260 (local_hex_format_specifier): Remove macro.
1261 (local_hex_format_suffix): Remove macro.
1262 (local_decimal_format_custom): Remove.
1263 (local_octal_format_custom): Remove.
1264 (local_hex_format_custom): Remove.
1265 (local_hex_string): Rename to hex_string and move to defs.h.
1266 (local_hex_string_custom): Rename to hex_string_custom, change
1267 interface, and move to defs.h.
1268 * utils.c: (int_string): New function.
1269 (hex_string): New function (from language.c).
1270 (hex_string_custom): New function (from language.c).
1271 (octal2str): New function.
1272 (decimal2str): Add width parameter.
1273 (paddr_u): Use new decimal2str interface.
1274 (paddr_d): Ditto.
1275 * defs.h (hex_string): Declare.
1276 (hex_string_custom): Declare.
1277 (int_string): Declare.
1278 * printcmd.c (print_scalar_formatted): Remove localized binary
1279 formatting.
1280 * valprint.c (print_longest): Use int_string.
1281 (print_floating): Use C hex format.
1282 (print_hex_chars): Ditto.
1283 (print_binary_chars): Remove language-specific formatting.
1284 (print_octal_chars): Use C octal format.
1285 (print_decimal_chars): Delocalize format.
1286 (print_decimal): Remove.
1287 * ada-lang.c (ada_language_defn): Remove language-specific number
1288 formatting entries.
1289 * p-lang.c (pascal_language_defn): Ditto.
1290 * c-lang.c (c_language_defn): Ditto.
1291 (cplus_language_defn): Ditto.
1292 (asm_language_defn): Ditto.
1293 (minimal_language_defn): Ditto.
1294 * f-lang.c (f_language_defn): Ditto.
1295 * jv-lang.c (java_language_defn): Ditto.
1296 * m2-lang.c (m2_language_defn): Ditto.
1297 * scm-lang.c (scm_language_defn): Ditto.
1298 * objc-lang.c (objc_language_defn): Ditto.
1299 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1300 new interface.
1301 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1302 * ui-out.c (ui_out_field_core_addr): Ditto.
1303 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1304 * exec.c (print_section_info): Ditto.
1305 * i387-tdep.c (print_i387_status_word): Ditto.
1306 (print_i387_control_word): Ditto.
1307 (i387_print_float_info): Ditto.
1308 * maint.c (maint_print_section_info): Ditto.
1309 * solib.c (info_sharedlibrary_command): Ditto.
1310 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1311 * symtab.c (print_msymbol_info): Ditto.
1312 * tracepoint.c (tracepoints_info): Ditto.
1313 * solib-frv.c (lm_base): Ditto.
1314 (frv_current_sos): Ditto.
1315 (enable_break2): Ditto.
1316 (enable_break): Ditto.
1317 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1318 (process_one_symbol): Ditto.
1319 * infcmd.c (program_info): Ditto.
1320 * mdebugread.c (parse_partial_symbols): Ditto.
1321 * symfile.c (add_symbol_file_command): Ditto.
1322 * cli/cli-cmds.c (edit_command): Ditto.
1323 (list_command): Ditto.
1324 * infcall.c (call_function_by_hand): Ditto.
1325 * remote-vx.c (vx_run_files_info): Ditto.
1326 (vx_wait): Ditto.
1327 (vx_attach): Ditto.
1328 (vx_detach): Ditto.
1329 (vx_kill): Ditto.
1330 * aix-thread.c (pdc_symbol_addrs): Ditto.
1331 (pdc_read_regs): Ditto.
1332 (pdc_write_regs): Ditto.
1333 (pdc_read_data): Ditto.
1334 (pdc_write_data): Ditto.
1335 * d10v-tdep.c (display_trace): Ditto.
1336 * rs6000-nat.c (find_toc_address): Ditto.
1337 * aix-thread.c: Don't include language.h.
1338 * buildsym.c: Ditto.
1339 * dbxread.c: Ditto.
1340 * mdebugread.c: Ditto.
1341 * rs6000-nat.c: Ditto.
1342 * buildsym.c (make_blockvector): Use renamed hex_string.
1343
1344 2004-09-10 Jason Molenda (jmolenda@apple.com)
1345
1346 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1347 chars after 'if' or 'while' commands in user-defined commands.
1348
1349 2004-09-08 Jim Blandy <jimb@redhat.com>
1350
1351 Fix bug reported and analyzed by Olivier Crete:
1352 * symfile.c (copy_section_addr_info): New function.
1353 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1354 original set of address arguments, instead of handwritten code
1355 that uses one length to allocate and a different length to
1356 initialize. Use make_cleanup_free_section_addr_info.
1357 * symfile.h (copy_section_addr_info): New declaration.
1358 * utils.c: #include "symfile.h".
1359 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1360 New functions.
1361 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1362 * Makefile.in (utils.o): Update dependencies.
1363
1364 2004-09-08 Andrew Cagney <cagney@gnu.org>
1365
1366 * thread-db.c (keep_thread_db): Delete.
1367 (thread_db_new_objfile, thread_db_create_inferior)
1368 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1369
1370 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1371
1372 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1373 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1374 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1375 (i386_frameless_signal_p): Remove prototype.
1376 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1377 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1378 I386_SSE_NUM_REGS.
1379 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1380 instead of FP0_REGNUM.
1381 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1382 of FP0_REGNUM and FPC_REGNUM.
1383
1384 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1385 (sunos_solib_create_inferior_hook): Don't call
1386 sunos_relocate_main_executable.
1387
1388 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1389 solib_svr4_fetch_link_map_offsets to
1390 svr4_ilp32_fetch_link_map_offsets.
1391 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1392 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1393 svr4_ilp32_fetch_link_map_offsets.
1394 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1395
1396 2004-09-07 Jim Blandy <jimb@redhat.com>
1397
1398 * frame.h (frame_register): Doc fix.
1399
1400 2004-09-07 Andrew Cagney <cagney@gnu.org>
1401
1402 * vx-share/wait.h: Delete #ifdef USG.
1403 * utils.c (request_quit): Ditto.
1404 * tui/tui.c (tui_reset): Ditto.
1405 * remote.c: Ditto.
1406 * remote-sds.c: Ditto.
1407 * remote-rdi.c: Ditto.
1408 * mdebugread.c: Ditto.
1409 * m68klinux-nat.c: Ditto.
1410 * infttrace.c: Ditto.
1411 * infptrace.c: Ditto.
1412 * i386v-nat.c: Ditto.
1413 * exec.c: Ditto.
1414 * dbxread.c: Ditto.
1415 * core-aout.c: Ditto.
1416
1417 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1418
1419 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1420 heuristic_proc_desc.
1421 (mips_insn32_frame_cache): Likewise.
1422
1423 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1424
1425 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1426 left behind by error.
1427
1428 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1429
1430 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1431 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1432
1433 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1434
1435 * config/rs6000/xm-aix4.h: Remove this file.
1436 * config/rs6000/aix4.mh (XM_FILE): Delete.
1437
1438 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1439
1440 * config/rs6000/xm-rs6000.h: Remove this file.
1441 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1442
1443 2004-09-03 Andrew Cagney <cagney@gnu.org>
1444
1445 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1446 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1447 only use.
1448
1449 * mips-tdep.c (temp_saved_regs): Delete.
1450 (set_reg_offset): Replace saved_regs parameter with this_cache.
1451 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1452 (mips32_heuristic_proc_desc): Add this_cache parameter.
1453 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1454 (after_prologue): Pass a NULL this_cache.
1455
1456 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1457 non-kernel trap prologues.
1458
1459 * mips-tdep.c (find_proc_desc): Delete function.
1460 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1461 simplify.
1462 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1463 mips_insn32_frame_cache.
1464
1465 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1466 Simplify as NEXT_FRAME is NULL.
1467 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1468
1469 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1470 local variable.
1471 (mips_skip_prologue): Update.
1472
1473 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1474 "cur_frame" parameter.
1475 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1476 (mips_insn32_frame_cache, find_proc_desc): Update
1477
1478 * config/vax/nm-obsd.h: Delete file.
1479 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1480 * config/vax/nm-nbsd.h: Delete file.
1481 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1482 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1483 * config/sh/nm-nbsd.h: Delete file.
1484 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1485 * config/rs6000/nm-rs6000ly.h: Delete file.
1486 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1487 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1488 * config/powerpc/nm-obsd.h: Delete file.
1489 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1490 * config/powerpc/nm-nbsd.h: Delete file.
1491 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1492 * config/pa/nm-obsd.h: Delete file.
1493 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1494 * config/mips/nm-nbsd.h: Delete file.
1495 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1496 * config/m88k/nm-obsd.h: Delete file.
1497 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1498 * config/m68k/nm-nbsd.h: Delete file.
1499 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1500 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1501 * config/i386/nm-nbsd.h: Delete file.
1502 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1503 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1504 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1505 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1506 * config/i386/nm-i386lynx.h: Delete file.
1507 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1508 * config/arm/nm-nbsd.h: Delete file.
1509 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1510 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1511
1512 * config/i386/tm-fbsd.h: Delete file.
1513 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1514 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1515
1516 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1517 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1518 * config/rs6000/aix4.mt (TM_FILE): Set to
1519 config/rs6000/tm-rs6000.h.
1520 * config/powerpc/tm-ppc-aix.h: Delete file.
1521 * config/powerpc/aix.mt (TM_FILE): Set to
1522 config/rs6000/tm-rs6000.h.
1523 * config/m68k/tm-linux.h: Delete file.
1524 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1525 * config/i386/tm-linux64.h: Delete file.
1526 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1527 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1528
1529 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1530 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1531 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1532 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1533 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1534 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1535 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1536 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1537 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1538
1539 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1540 gdb_host_cpu.
1541
1542 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1543
1544 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1545 Minor reformatting. Some code factoring.
1546
1547 2004-09-02 Andrew Cagney <cagney@gnu.org>
1548
1549 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1550 * config/vax/tm-nbsd.h: Delete file.
1551 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1552 * config/sparc/tm-vxworks.h: Delete file.
1553 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1554 * config/sparc/tm-nbsd.h: Delete file.
1555 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1556 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1557 * config/sparc/tm-linux.h: Delete file.
1558 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1559 * config/s390/tm-linux.h: Delete file.
1560 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1561 * config/pa/tm-bsd.h: Delete file.
1562 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1563 * config/m68k/tm-obsd.h: Delete file.
1564 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1565 * config/m68k/tm-nbsd.h: Delete file.
1566 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1567 * config/i386/tm-vxworks.h: Delete file.
1568 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1569 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1570 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1571 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1572 * config/i386/tm-nbsd.h: Delete file.
1573 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1574 * config/i386/tm-i386lynx.h: Delete file.
1575 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1576 * config/cris/tm-cris.h: Delete file.
1577
1578 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1579 * configure: Re-generate.
1580 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1581 * config/arm/tm-nbsd.h: Delete file.
1582
1583 * config/powerpc/tm-ppcle-sim.h: Delete.
1584 * config/powerpc/tm-ppcle-eabi.h: Delete.
1585 * config/powerpc/tm-nbsd.h: Delete.
1586 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1587 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1588 tm-ppcle-eabi.h.
1589
1590 * config/i386/nto.mh (NAT_FILE): Delete.
1591 * config/i386/nm-nto.h: Delete.
1592
1593 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1594 * config/m68k/tm-os68k.h: Ditto.
1595 * config/m68k/tm-monitor.h: Ditto.
1596 * config/m68k/tm-cisco.h: Ditto.
1597 * config/m68k/st2000.mt (TM_FILE): Delete.
1598 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1599 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1600 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1601 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1602
1603 * config/m68k/tm-st2000.h: Delete.
1604 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1605 * config/sparc/fbsd.mt (TM_FILE): Delete.
1606 * config/sparc/tm-fbsd.h: Delete.
1607
1608 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1609 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1610 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1611
1612 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1613 GDB_TM_FILE and GDB_XM_FILE.
1614 * gdbarch.c: Re-generate.
1615 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1616 quotes in macro definition.
1617 * configure.in: Re-generate.
1618
1619 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1620 validating architecture methods.
1621 * gdbarch.c: Re-generate.
1622
1623 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1624 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1625 GDB_MULTI_ARCH_PARTIAL.
1626 * gdbarch.h: Re-generate.
1627
1628 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1629 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1630 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1631 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1632 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1633 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1634 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1635 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1636 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1637 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1638 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1639 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1640
1641 2004-09-01 Andrew Cagney <cagney@gnu.org>
1642
1643 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1644 and main_func_highpc.
1645 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1646 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1647 * nlmread.c (nlm_symfile_read): Update.
1648
1649 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1650
1651 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1652 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1653 (find_proc_desc): Remove dead code.
1654
1655 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1656
1657 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1658
1659 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1660
1661 * observer.sh: Add struct so_list declaration.
1662 * Makefile.in: Add dependencies on observer.h for solib.c and
1663 breakpoint.c.
1664 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1665 function.
1666 (_initialize_breakpoint): Register
1667 disable_breakpoints_in_unloaded_shlib as an observer of the
1668 "solib unloaded" observation event.
1669 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1670 call decode_line_1 so unfound breakpoint errors are silent.
1671 * solib.c (update_solib_list): When a solib is discovered to have
1672 been unloaded by the program, notify all observers of the
1673 "solib unloaded" observation event.
1674
1675 2004-09-01 Andrew Cagney <cagney@gnu.org>
1676
1677 * frame.c: Include "objfiles.h".
1678 (inside_main_func): New function.
1679 (get_prev_frame): Use new inside_main_func.
1680 * Makefile.in (frame.o): Update dependencies.
1681 * defs.h (inside_main_func): Delete declaration.
1682 * blockframe.c (inside_main_func): Delete function.
1683
1684 2004-08-31 Jim Blandy <jimb@redhat.com>
1685
1686 * dwarf2read.c (is_vtable_name): New function, based on logic from
1687 read_structure_type, but passing the correct length to strncmp,
1688 and using 'sizeof' instead of 'strlen'.
1689 (read_structure_type): Call it.
1690
1691 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1692
1693 * config/powerpc/aix.mh: Add comment.
1694
1695 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1696
1697 * MAINTAINERS: Add self to Write-After-Approval.
1698
1699 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1700
1701 * MAINTAINERS: Add self to Write-After-Approval.
1702
1703 2004-08-30 Andrew Cagney <cagney@gnu.org>
1704
1705 Fix PR breakpoints/1757.
1706 * infrun.c (struct execution_control_state): Replace
1707 remove_breakpoints_on_following_step with
1708 step_after_step_resume_breakpoint.
1709 (init_execution_control_state): Update.
1710 (handle_inferior_event): For signals, when stepping off a
1711 breakpoint, set step_after_step_resume_breakpoint. When
1712 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1713 (keep_going): Delete code handling
1714 remove_breakpoints_on_following_step.
1715
1716 2004-08-29 David Lecomber <david@streamline-computing.com>
1717
1718 Fix PR gdb/648
1719 * language.h (enum array_ordering): New enum.
1720 * language.h (struct language_defn): New la_array_ordering
1721 attribute.
1722 * language.c (unknown_language_defn, auto_language_defn)
1723 (local_language_defn): Ditto.
1724 * ada-lang.c (ada_language_defn): Ditto.
1725 * c-lang.c (c_language_defn, cplus_language_defn)
1726 (asm_language_defn, minimal_language_defn): Ditto.
1727 * f-lang.c (f_language_defn): Ditto.
1728 * jv-lang.c (java_language_defn): Ditto.
1729 * m2-lang.c (f_language_defn): Ditto.
1730 * objc-lang.c (objc_language_defn): Ditto.
1731 * p-lang.c (pascal_language_defn): Ditto.
1732 * scm-lang.c (scm_language_defn): Ditto.
1733 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1734 oriented large to small in type structure.
1735 * dwarf2read.c (read_array_order): New function.
1736 (read_array_type): Use read_array_order to check row/column
1737 major ordering.
1738
1739 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1740
1741 * target.c (target_resize_to_sections): Check
1742 current_target.to_sections for an old value when updating.
1743
1744 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1745
1746 * procfs.c (dbx_link_bpt_addr): New static global variable.
1747 (dbx_link_shadow_contents): New static global variable.
1748 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1749 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1750 if we just hit it.
1751 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1752 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1753 from run to run.
1754 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1755 after the inferior has been forked.
1756 (remove_dbx_link_breakpoint): New function.
1757 (dbx_link_addr): New function.
1758 (insert_dbx_link_bpt_in_file): New function.
1759 (insert_dbx_link_bpt_in_region): New function.
1760 (insert_dbx_link_breakpoint): New function.
1761 (proc_trace_syscalls_1): New function, extracted from
1762 proc_trace_syscalls.
1763 (proc_trace_syscalls): Replace extract code by call to
1764 proc_trace_syscalls_1.
1765 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1766 is no longer valid.
1767
1768 2004-08-25 Jim Blandy <jimb@redhat.com>
1769
1770 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1771
1772 2004-08-25 Andrew Cagney <cagney@gnu.org>
1773
1774 * infrun.c (struct execution_control_state): Delete field
1775 "stepping_through_sigtramp".
1776 (init_execution_control_state): Do not set same.
1777 (context_switch): Do not pass same to save_infrun_state and
1778 load_infrun_state.
1779 * gdbthread.h (struct thread_info): Delete field
1780 stepping_through_sigtramp.
1781 (save_infrun_state, load_infrun_state): Delete parameter
1782 stepping_through_sigtramp.
1783 * thread.c (load_infrun_state, save_infrun_state): Update.
1784
1785 * infrun.c: Re-indent. Move expression operators to the beginning
1786 of the line. Remove long disabled #if 0 code.
1787
1788 2004-08-24 Andrew Cagney <cagney@gnu.org>
1789
1790 * doublest.h (floatformat_ieee_quad): Rename
1791 floatformat_ia64_quad.
1792 * doublest.c (floatformat_ieee_quad): Rename
1793 floatformat_ia64_quad.
1794 (_initialize_doublest): Update.
1795
1796 2004-08-24 Jim Blandy <jimb@redhat.com>
1797
1798 * dwarf2expr.h (struct dwarf_expr_context): New members
1799 'num_pieces' and 'pieces', for returning the result of an
1800 expression that uses DW_OP_piece.
1801 (struct dwarf_expr_piece): New struct type.
1802 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1803 pieces.
1804 (free_dwarf_expr_context): Free pieces, if any.
1805 (add_piece): New function.
1806 (execute_stack_op): Implement DW_OP_piece.
1807 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1808 expression is a list of pieces, print an error message.
1809 (dwarf2_loc_desc_needs_frame): If the expression yields
1810 pieces, and any piece is in a register, then we need a frame.
1811
1812 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1813 the stack until we've decided what sort of result the evaluation
1814 has produced. Use separate variables, with more specific names.
1815
1816 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1817
1818 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1819 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1820 (arm_netbsd_init_abi_common): Register them.
1821
1822 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1823
1824 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1825
1826 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1827 safe_frame_unwind_memory instead of target_read_memory.
1828
1829 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1830 Reorder includes.
1831 (fetch_register, store_register): Remove prototypes.
1832 (child_resume): Reorganize code and comments such that it is
1833 grouped a bit more logically.
1834 (attach): Explicitly compare errno against 0.
1835 (detach): Likewise. Use perror_with_name instead of
1836 print_sys_errmsg.
1837 * Makefile.in (infptrace.o): Update dependencies.
1838
1839 * ia64-linux-nat.c: Update copyright year.
1840 (fetch_debug_register, store_debug_register)
1841 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1842 PTRACE_TYPE_ARG3.
1843 * config/ia64/nm-linux.h: Update copyright year.
1844 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1845
1846 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1847 from CORE_ADDR to struct frame_info *. Use
1848 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1849 (amd64_linux_sigtramp_p): Adjust for changed signature of
1850 and64_linux_sigtramp_start
1851
1852 * gdb_ptrace.h: GNU/Linux.
1853
1854 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1855 Remove defines.
1856
1857 * infptrace.c: Include "gdb_assert.h".
1858 (PTRACE_XFER_TYPE): Remove define.
1859 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1860 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1861 Tweak comment.
1862 (fetch_inferior_registers, store_inferior_registers): Remove
1863 redundant culry braces. Tweak comment. s/regno/regnum.
1864 * Makefile.in (infptrace.o): Update dependencies.
1865
1866 * configure.in: Change test for return type of ptrace to default
1867 to `long' instead of `int'.
1868 * configure: Regenerate.
1869
1870 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1871
1872 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1873
1874 * configure.in: Check for ttrace function.
1875 * configure, config.in: Regenerate.
1876
1877 * gdb_ptrace.h: New file.
1878 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1879 <sys/ptrace.h>.
1880 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1881 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1882 (attach): Don't define PT_ATTACH.
1883 (detach): Don't define PT_DETACH.
1884 * Makefile.in (gdb_ptrace_h): New variable.
1885 (infptrace.o): Update dependencies.
1886
1887 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1888
1889 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1890 instead of `int' if not already defined.
1891 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1892 PTRACE_TYPE_ARG3.
1893 * infptrace.c (call_ptrace): Revert change that replaced
1894 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1895
1896 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1897
1898 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1899 Remove defines.
1900
1901 * linux-nat.c (kill_inferior): Add missing third and fourth
1902 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1903
1904 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1905 PTRACE_TYPE_RET.
1906
1907 * proc-why.c (proc_prettyfprint_why): Fix format string.
1908
1909 * solib-osf.c (osf_current_sos): Remove unsused label.
1910
1911 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1912 curses headers.
1913 * configure, config.in: Regenerate.
1914 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1915 <ncurses/ncurses.h>.
1916
1917 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1918 * config/nm-nbsd.h: Update copyright year.
1919 (PTRACE_ARG3_TYPE): Remove define.
1920
1921 * sparc-nat.c (fetch_inferior_registers)
1922 (store_inferior_registers, sparc_xfer_wcookie):
1923 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1924
1925 * alphabsd-nat.c (fetch_inferior_registers):
1926 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1927 PTRACE_TYPE_ARG3.
1928 * amd64bsd-nat.c (fetch_inferior_registers)
1929 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1930 PTRACE_TYPE_ARG3.
1931 * armnbsd-nat.c: Update copyright year.
1932 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1933 (store_register, store_regs, store_fp_register, store_fp_regs):
1934 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1935 * hppabsd-nat.c (fetch_inferior_registers)
1936 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1937 PTRACE_TYPE_ARG3.
1938 * i386bsd-nat.c (fetch_inferior_registers)
1939 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1940 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1941 * m68kbsd-nat.c (fetch_inferior_registers)
1942 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1943 PTRACE_TYPE_ARG3.
1944 * m88kbsd-nat.c (fetch_inferior_registers)
1945 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1946 PTRACE_TYPE_ARG3.
1947 * mipsnbsd-nat.c: Update copyright year.
1948 (fetch_inferior_registers, store_inferior_registers):
1949 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1950 * ns32knbsd-nat.c: Update copyright year.
1951 (fetch_inferior_registers, store_inferior_registers):
1952 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1953 * ppcnbsd-nat.c (fetch_inferior_registers):
1954 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1955 PTRACE_TYPE_ARG3.
1956 * ppcobsd-nat.c (fetch_inferior_registers):
1957 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1958 PTRACE_TYPE_ARG3.
1959 * shnbsd-nat.c: Update copyright year.
1960 (fetch_inferior_registers, store_inferior_registers):
1961 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1962 * vaxbsd-nat.c (fetch_inferior_registers)
1963 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1964 PTRACE_TYPE_ARG3.
1965
1966 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1967 PTRACE_TYPE_ARG3.
1968 * infptrace.c (call_ptrace, child_resume, attach, detach)
1969 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1970 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1971 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1972 PTRACE_TYPE_ARG3.
1973
1974 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1975
1976 * defs.h: Remove out-of-date comment.
1977 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1978 [!GETENV_PROVIDED] (getenv): Remove prototype.
1979
1980 * standalone.c: Remove file.
1981 * Makefile.in (standalone.o): Remove dependency.
1982
1983 * i386-linux-nat.c (dummy_sse_values): Remove function and
1984 prototype.
1985 (i386_linux_dr_get): Fix typo in comment.
1986 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1987
1988 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1989
1990 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1991 from declaration.
1992 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1993 from definition.
1994
1995 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1996
1997 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1998 parenthesis in definition.
1999 * configure: Regenerated.
2000
2001 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2002
2003 * PROBLEMS: Mention build/1411.
2004
2005 2004-08-09 Robert Millan <robertmh@gnu.org>
2006
2007 Committed by Nathanael Nerode.
2008 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2009 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2010
2011 2004-08-12 Andrew Cagney <cagney@gnu.org>
2012
2013 * NEWS: Mention fixes in GDB 6.2.1.
2014 * PROBLEMS: Remove mention of mips-irix.
2015
2016 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2017
2018 * config/powerpc/xm-aix.h: Delete.
2019 * config/powerpc/aix.mh (MH_FILE): Remove.
2020 * config/powerpc/aix432.mh (MH_FILE): Remove.
2021
2022 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2023
2024 * config/powerpc/aix.mh: Remove obsolete comment.
2025 * config/powerpc/aix432.mh: Likewise.
2026
2027 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2028
2029 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2030
2031 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2032
2033 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2034 this file is now empty.
2035 * config/xm-aix4.h: Remove, this file is no longer included
2036 anywhere.
2037
2038 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2039
2040 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2041 that file is now empty.
2042 (termdef): Remove prototype, function no longer used.
2043
2044 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2045
2046 * doc/gdbint.texinfo (Host Definition): Remove documentation
2047 for USE_O_NOCTTY, no longer used.
2048 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2049 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2050
2051 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2052
2053 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2054 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2055 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2056
2057 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2058
2059 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2060 instead of FIVE_ARG_PTRACE.
2061
2062 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2063 (new_tty): Use O_NOCTTY unconditionally.
2064
2065 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2066
2067 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2068 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2069 fflush on stdout.
2070
2071 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2072
2073 * xcoff_symfile_finish: Replace last call to xmfree by call
2074 to xfree.
2075
2076 2004-08-10 Andrew Cagney <cagney@gnu.org>
2077
2078 * main.c (captured_main): Delete call to init_malloc.
2079 * defs.h (init_malloc): Delete declaration.
2080 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2081 (init_malloc): Delete functions.
2082
2083 * defs.h (xmfree): Delete.
2084 * utils.c (xmfree): Delete function.
2085 (xfree): Inline calls to xmfree and mfree.
2086 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2087 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2088 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2089 * somread.c (som_symfile_finish): Ditto.
2090 * objfiles.c (allocate_objfile, free_objfile):
2091 * nlmread.c (nlm_symfile_finish): Ditto.
2092 * hpread.c (hpread_symfile_finish): Ditto.
2093 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2094 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2095 * coffread.c (coff_symfile_finish): Ditto.
2096
2097 * defs.h (xmcalloc): Delete declaration.
2098 * utils.c (xmcalloc): Delete.
2099 (xcalloc): Inline calls to xmcalloc and mcalloc.
2100 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2101 xcalloc and xfree.
2102 * symtab.c (create_demangled_names_hash): Ditto.
2103
2104 * defs.h (xmrealloc): Delete.
2105 * utils.c (xmrealloc): Delete.
2106 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2107 * symmisc.c (extend_psymbol_list): Use xrealloc.
2108 * source.c (find_source_lines): Ditto.
2109 * hpread.c (hpread_lookup_type): Ditto.
2110 * dbxread.c (add_bincl_to_list): Ditto.
2111
2112 * utils.c (xmmalloc): Delete.
2113 (xmalloc): Inline xmmalloc and mmalloc calls.
2114 (msavestring): Use xmalloc.
2115 * defs.h (xmmalloc): Delete declaration.
2116 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2117 xmmalloc.
2118 * symmisc.c (extend_psymbol_list): Ditto.
2119 * symfile.c (init_psymbol_list): Ditto.
2120 * source.c (find_source_lines): Ditto.
2121 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2122 * elfread.c (elf_symtab_read): Ditto.
2123 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2124 * coffread.c (coff_symfile_init): Ditto.
2125
2126 2004-08-10 David Carlton <carlton@bactrian.org>
2127
2128 * MAINTAINERS: Remove David Carlton from c++ testsuite
2129 maintainers.
2130
2131 2004-08-10 Jerome Guitton <guitton@gnat.com>
2132
2133 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2134 print a line feed before the prompt.
2135
2136 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2137
2138 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2139
2140 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2141
2142 General cleanup of the AIX xm include file:
2143 * config/xm-aix4.h (fd_set): Remove undefine.
2144 Remove include of <sys/select.h>.
2145 (HAVE_TERMIO): Remove define.
2146 (USG): Likewise.
2147 (NULL): Remove redefine.
2148 (alloca): Remove #pragma.
2149 (vfork): Remove define.
2150 (termdef): Remove.
2151 (SIGWINCH_HANDLER): Remove.
2152 (SIGWINCH_HANDLER_BODY): Remove.
2153
2154 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2155
2156 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2157 GDB_OSABI_OPENBSD_ELF.
2158
2159 2004-08-07 Robert Millan <robertmh@gnu.org>
2160
2161 * bsd-kvm.c: Check for nlist.h before including it.
2162
2163 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2164
2165 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2166 sigcontext' offset consistency checks for ancient BSD.
2167
2168 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2169
2170 * configure.in: Check for <sys/types.h>. Check return and
2171 argument types of ptrace.
2172 * configure, config.in: Regenerate.
2173
2174 2004-08-09 Jim Blandy <jimb@redhat.com>
2175
2176 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2177 rs6000_register_sim_regno): Doc fixes.
2178
2179 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2180
2181 * mips-tdep.c: Include "floatformat.h".
2182 (n32n64_floatformat_always_valid): New function.
2183 (floatformat_n32n64_long_double_big): New constant.
2184 (mips_gdbarch_init): Set size and format of long double
2185 for N32 and N64 ABIs.
2186 * Makefile.in (mips-tdep.o): Update dependencies.
2187
2188 2004-08-08 Andrew Cagney <cagney@gnu.org>
2189
2190 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2191 print. Improve script's error messages.
2192 * gdbarch.h: Re-generate.
2193
2194 * gdbarch.sh (pformat): New function.
2195 (float_format, double_format, long_double_format): List with bit
2196 members. Use pformat when printing.
2197 * gdbarch.c, gdbarch.h: Re-generate.
2198
2199 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2200
2201 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2202 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2203 (ppcnbsd_supply_pcb): New function.
2204 (_initialize_ppcnbsd_nat): New prototype and function.
2205 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2206 (LOADLIBES): New variable.
2207 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2208
2209 2004-08-08 Andrew Cagney <cagney@gnu.org>
2210
2211 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2212 (builtin_type_ieee_double, builtin_type_ia64_quad)
2213 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2214 BE/LE floating-point types.
2215 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2216 (builtin_type_ieee_double, builtin_type_ia64_quad)
2217 (builtin_type_ia64_spill): Declare.
2218 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2219 (floatformat_ieee_double, floatformat_arm_ext)
2220 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2221 of LE/BE floatformats.
2222 * doublest.h: (struct floatformat, floatformat_ieee_single)
2223 (floatformat_ieee_double, floatformat_arm_ext)
2224 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2225
2226 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2227
2228 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2229
2230 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2231 instead of regcache_raw_supply when storing the registers.
2232
2233 * i386gnu-nat.c: Update copyright year.
2234 (gnu_store_registers): Don't use deprecated_registers and
2235 deprecated_registers_valid. Use regcache_valid_p and
2236 regcache_raw_supply instead.
2237
2238 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2239 frame_pc_unwind.
2240
2241 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2242 variables. Incapitalized "process".
2243
2244 * configure.in: Add cursesX to the list of possible curses libs.
2245 Add cursesX.h to the list of possible curses headers.
2246 * configure, config.in: Regenerate.
2247
2248 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2249
2250 * configure.in: Test for struct lwp in <sys/lwp.h>.
2251 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2252 the offset of l_addr in struct lwp.
2253
2254 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2255
2256 * bsd-kvm.c: Include "gdbcore.h"
2257 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2258
2259 2004-08-07 Andrew Cagney <cagney@gnu.org>
2260
2261 * gdbtypes.c (build_flt, build_complex): New functions.
2262 (gdbtypes_post_init): Use.
2263
2264 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2265
2266 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2267 through to builtin_type_uint128.
2268
2269 * c-exp.y: Use builtin_type function to obtain builtin types.
2270
2271 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2272 builtin_uint128.
2273 * gdbtypes.c (gdbtypes_post_init): Update.
2274 (build_gdbtypes): Move initialization of builtin_type_int0
2275 through to builtin_type_uint128 from here ...
2276 (_initialize_gdbtypes): ... to here.
2277 * d10v-tdep.c (d10v_register_type): Update.
2278
2279 * doublest.c: Update copyright.
2280 (floatformat_from_length): Call error when floatformat is NULL.
2281 (extract_floating_by_length): Remove NULL fmt check.
2282 (store_floating_by_length): Ditto.
2283
2284 2004-08-07 Andrew Cagney <cagney@gnu.org>
2285
2286 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2287 that the register is valid.
2288
2289 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2290
2291 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2292 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2293 struct frame_info *. Use safe_frame_unwind_memory instead of
2294 deprecated_read_memory_nobpt.
2295 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2296 changed signature of i386_linux_sigtramp_start and
2297 i386_linux_rt_sigtramp_start.
2298
2299 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2300 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2301 instead of deprecated_read_memory_nobpt.
2302 (i386nbsd_sigtramp_p): Adjust for changed signature of
2303 i386nbsd_sigtramp_offset.
2304
2305 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2306 safe_frame_unwind_memory instead of target_read_memory.
2307
2308 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2309 !NO_SYS_FILE.
2310 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2311 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2312 (_initialize_kernel_u_addr): Remove prototype and function.
2313 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2314 !NO_SYS_FILE.
2315 * xcoffread.c: Likewise.
2316
2317 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2318
2319 * vax-nat.c: New file.
2320 * vaxbsd-nat.c: Tweak comment.
2321 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2322 vaxnbsd-tdep.c.
2323 (vax-nat.o): New dependency.
2324 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2325 (vax-*-ultrix2*): Remove.
2326 * config/vax/vax.mh: New file.
2327 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2328 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2329 (vax_register_u_addr): New prototype.
2330 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2331 * config/vax/vaxult2.mh: Remove file.
2332 * config/vax/vaxult.mh: Remove file.
2333 * config/vax/vaxbsd.mh: Remove file.
2334 * config/vax/vax.mt (TM_FILE): Remove.
2335 * config/vax/tm-vaxbsd.h: Remove file.
2336
2337 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2338
2339 * aix-thread.c (get_signaled_thread): New function.
2340 (iter_trap): Delete, no longer used.
2341 (iter_tid): New function.
2342 (pd_update): Find the thread that received the SIGTRAP signal
2343 by first locating the kernel thread, and then finding its
2344 associated thread.
2345
2346 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2347
2348 * lin-lwp.c (child_wait): Continue inferior after processing
2349 PTRACE_EVENT_CLONE event.
2350
2351 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2352
2353 * MAINTAINERS: Add self to Write-After-Approval.
2354
2355 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2356
2357 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2358 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2359
2360 2004-08-05 Andrew Cagney <cagney@gnu.org>
2361
2362 * config/xm-sysv4.h: Delete file.
2363 * config/mips/xm-irix5.h: Delete file.
2364 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2365 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2366 * config/ia64/xm-aix.h: Delete file.
2367 * config/ia64/aix.mh (XM_FILE): Delete.
2368 * config/pa/xm-hppah.h: Delete file.
2369 * config/pa/hpux11w.mh (XM_FILE): Delete.
2370 * config/pa/hpux11.mh (XM_FILE): Delete.
2371 * config/pa/hpux1020.mh (XM_FILE): Delete.
2372 * config/pa/hppahpux.mh (XM_FILE): Delete.
2373
2374 * config/alpha/xm-alphalinux.h: Delete file.
2375 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2376 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2377 * config/alpha/xm-alphaosf.h: Delete file.
2378 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2379 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2380 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2381 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2382
2383 * config/i386/xm-i386v.h: Delete file.
2384 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2385 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2386 * config/i386/xm-i386sco.h: Delete file.
2387 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2388 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2389 * config/i386/xm-i386v4.h: Delete file.
2390 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2391 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2392 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2393 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2394
2395 * config/vax/xm-vax.h: Delete file.
2396 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2397 * config/vax/xm-vaxult2.h: Delete file.
2398 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2399 * config/vax/vaxult2.mh (XM_FILE): Delete.
2400 * config/vax/xm-vaxult.h: Delete file.
2401 * config/vax/vaxult.mh (XM_FILE): Delete.
2402 * config/vax/xm-vaxbsd.h: Delete file.
2403 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2404
2405 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2406 * gdbarch.h, gdbarch.c: Re-generate.
2407 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2408 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2409 * frame.h: Delete deprecated_read_fp from comments.
2410 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2411 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2412
2413 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2414
2415 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2416 trampoline in OpenBSD 3.5-current.
2417
2418 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2419 SSE registers.
2420
2421 * Makefile.in: Remove embedded page breaks.
2422
2423 2004-08-04 Jim Blandy <jimb@redhat.com>
2424
2425 * regcache.c (regcache_raw_read): Assert that, after calling
2426 target_fetch_registers, the register we're reading is cached.
2427
2428 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2429 a call to 'internal_error', with a more helpful error message.
2430 * rs6000-tdep.c (e500_pseudo_register_read,
2431 e500_pseudo_register_write, rs6000_store_return_value): Same.
2432
2433 2004-08-04 Andrew Cagney <cagney@gnu.org>
2434
2435 * Makefile.in: Update dependencies.
2436
2437 2004-08-04 Jim Blandy <jimb@redhat.com>
2438
2439 Change the layout of the PowerPC E500 raw register cache to allow
2440 the lower 32-bit halves of the GPRS to be their own raw registers,
2441 not pseudoregisters.
2442 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2443 add ppc_ev0_upper_regnum flag.
2444 * rs6000-tdep.c: #include "reggroups.h".
2445 (spe_register_p): Recognize the ev upper half registers as SPE
2446 registers.
2447 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2448 registers.
2449 (e500_move_ev_register): New function.
2450 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2451 vector registers are the pseudo-registers now, formed by splicing
2452 together the gprs and the upper-half registers.
2453 (e500_register_reggroup_p): New function.
2454 (P): Macro deleted.
2455 (P8, A4): New macro.
2456 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2457 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2458 macros.
2459 (registers_e500): Rearrange register set so that the raw register
2460 set contains 32-bit GPRs and upper-half registers, and the SPE
2461 vector registers become pseudo-registers.
2462 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2463 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2464 register numbers are now the same for the E500 as they are for
2465 other PowerPC variants. Register e500_register_reggroup_p as the
2466 register group function for the E500.
2467 * Makefile.in (rs6000-tdep.o): Update dependencies.
2468
2469 Adapt PPC E500 native support to the new raw regcache layout.
2470 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2471 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2472 (fetch_spe_register, store_spe_register): Handle fetching/storing
2473 all the SPE registers at once, if regno == -1. These now take
2474 over the job of fetch_spe_registers and store_spe_registers.
2475 (fetch_spe_registers, store_spe_registers): Deleted.
2476 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2477 unconditionally; they're always raw. Fetch/store SPE upper half
2478 registers, if present, instead of ev registers.
2479 (fetch_register, store_register): Remove sanity checks: gprs are
2480 never pseudo-registers now, so we never need to even mention any
2481 registers that are ever pseudoregisters.
2482
2483 Use a fixed register numbering when communicating with the PowerPC
2484 simulator.
2485 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2486 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2487 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2488 New functions.
2489 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2490 init_sim_regno_table.
2491 * Makefile.in (gdb_sim_ppc_h): New variable.
2492 (rs6000-tdep.o): Update dependencies.
2493
2494 2004-08-02 Andrew Cagney <cagney@gnu.org>
2495
2496 * cris-tdep.c (cris_register_size): Restore function, still used
2497 locally.
2498
2499 * gdbarch.sh (deprecated_target_read_fp)
2500 (deprecated_frame_locals_address, deprecated_frame_args_address)
2501 (deprecated_frame_chain_valid, deprecated_frame_chain)
2502 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2503 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2504 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2505 * gdbarch.h, gdbarch.c: Re-generate.
2506 * regcache.c (deprecated_read_fp): Do not call
2507 DEPRECATED_TARGET_READ_FP_P.
2508 * infcmd.c (default_print_registers_info): Do not call
2509 DEPRECATED_DO_REGISTERS_INFO.
2510 * frame-base.c (default_frame_locals_address): Do not call
2511 DEPRECATED_FRAME_LOCALS_ADDRESS.
2512 (default_frame_args_address): Do not call
2513 DEPRECATED_FRAME_ARGS_ADDRESS.
2514
2515 * gdbarch.sh (deprecated_register_raw_size)
2516 (deprecated_register_virtual_size:int): Delete.
2517 * gdbarch.h, gdbarch.c: Re-generate.
2518 * cris-tdep.c (cris_register_size): Delete.
2519 (cris_gdbarch_init): Update.
2520 * alpha-tdep.c (alpha_register_raw_size)
2521 (alpha_register_virtual_size): Delete.
2522 (alpha_gdbarch_init): Update.
2523
2524 * gdbarch.sh (deprecated_register_virtual_type)
2525 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2526 (deprecated_dummy_write_sp): Delete.
2527 * gdbarch.h, gdbarch.c: Re-generate.
2528
2529 * gdbarch.sh (deprecated_register_bytes): Delete.
2530 * gdbarch.h, gdbarch.c: Re-generate.
2531 * regcache.c (deprecated_register_bytes): New function.
2532 * regcache.h (deprecated_register_bytes): Declare.
2533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2534 * v850-tdep.c (v850_gdbarch_init): Update.
2535 * sh64-tdep.c (sh64_gdbarch_init): Update.
2536 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2537 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2538 * mcore-tdep.c (mcore_gdbarch_init): Update.
2539 * cris-tdep.c (cris_gdbarch_init): Update.
2540 * arm-tdep.c (arm_gdbarch_init): Update.
2541 * remote.c (init_remote_state): Update.
2542 * remote-vx.c (vx_prepare_to_store): Update.
2543 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2544 * irix5-nat.c (fetch_core_registers): Update.
2545 * cris-tdep.c (cris_register_bytes_ok): Update.
2546 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2547
2548 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2549 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2550 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2551 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2552 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2553 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2554 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2555 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2556 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2557 with mips_insn16 and mips_insn32.
2558
2559 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2560 * rs6000-tdep.c (rs6000_push_dummy_call)
2561 (rs6000_extract_return_value): Use register_size.
2562 * xstormy16-tdep.c (xstormy16_get_saved_register)
2563 (xstormy16_extract_return_value): Ditto.
2564 * valops.c (value_assign): Ditto.
2565 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2566 * v850-tdep.c (v850_extract_return_value): Ditto.
2567 * tracepoint.c (collect_symbol): Ditto.
2568 * target.c (debug_print_register): Ditto.
2569 * stack.c (frame_info): Ditto.
2570 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2571 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2572 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2573 (store_register_using_P): Ditto.
2574 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2575 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2576 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2577 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2578 * regcache.c (deprecated_read_register_bytes)
2579 (deprecated_write_register_bytes, read_register)
2580 (write_register): Ditto.
2581 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2582 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2583 * monitor.c (monitor_supply_register, monitor_fetch_register)
2584 (monitor_store_register): Ditto.
2585 * mn10300-tdep.c (mn10300_pop_frame_regular)
2586 (mn10300_print_register): Ditto.
2587 * mipsv4-nat.c (fill_fpregset): Ditto.
2588 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2589 (mips64_fill_fpregset): Ditto.
2590 * mi/mi-main.c (register_changed_p, get_register)
2591 (mi_cmd_data_write_register_values): Ditto.
2592 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2593 * irix5-nat.c (fill_gregset, fetch_core_registers):
2594 * infrun.c (write_inferior_status_register): Ditto.
2595 * infptrace.c (fetch_register, store_register): Ditto.
2596 * infcmd.c (default_print_registers_info): Ditto.
2597 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2598 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2599 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2600 * hpux-thread.c (hpux_thread_fetch_registers)
2601 (hpux_thread_store_registers): Ditto.
2602 * hppah-nat.c (store_inferior_registers, fetch_register):
2603 * findvar.c (value_from_register): Ditto.
2604 * dve3900-rom.c (fetch_bitmapped_register):
2605 * cris-tdep.c (cris_gdbarch_init): Ditto.
2606 * alpha-tdep.h: Ditto.
2607 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2608
2609 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2610 DEPRECATED_REGISTER_RAW_SIZE from comments.
2611 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2612 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2613 DEPRECATED_REGISTER_RAW_SIZE.
2614 * findvar.c (value_of_register): Simplify by assuming that the
2615 registers raw and virtual sizes are identical.
2616 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2617 comment.
2618 * arch-utils.c (generic_register_size): Simplify by assuming
2619 register_type.
2620
2621 * regcache.c (legacy_read_register_gen, real_register)
2622 (legacy_write_register_gen): Delete, not used.
2623
2624 * regcache.c (struct regcache_descr): Delete legacy_p.
2625 (init_legacy_regcache_descr): Delete function.
2626 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2627 Do not use deprecated register functions.
2628 (regcache_raw_read, deprecated_write_register_gen):
2629 (deprecated_read_register_gen, regcache_raw_write): Delete code
2630 predicated on legacy_p.
2631 (register_size): Delete check against register raw size.
2632
2633 * cris-tdep.c (cris_register_type): Replace
2634 cris_register_virtual_type.
2635 (cris_gdbarch_init): Update, set register_type.
2636
2637 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2638 * gdbarch.h, gdbarch.c: Re-generate.
2639 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2640 (arm_gdbarch_init) Do not set frameless function invocation.
2641 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2642 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2643 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2644 (frv_gdbarch_init): Do not set frameless function invocation.
2645 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2646 * sh-tdep.c (sh_gdbarch_init): Ditto.
2647 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2649 * avr-tdep.c (avr_gdbarch_init): Ditto.
2650
2651 * blockframe.c (legacy_frame_chain_valid): Delete function.
2652
2653 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2654 and pc. Update comments.
2655 (pc_in_dummy_frame): Delete function.
2656 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2657 use the "id".
2658 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2659 call_hi, top and pc, use the id.
2660 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2661
2662 * dummy-frame.c: Include "gdb_string.h".
2663 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2664 (generic_save_dummy_frame_tos): Delete.
2665 (dummy_frame_push): New function, replaces above.
2666 * dummy-frame.h: Update copyright.
2667 (dummy_frame_push): Declare.
2668 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2669 (generic_save_call_dummy_addr): Delete declarations.
2670 * infcall.c: Include "dummy-frame.h".
2671 (call_function_by_hand): Add locals caller_regcache,
2672 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2673 with call to frame_save_as_regcache plus cleanup. Delete calls to
2674 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2675 Move clear_proceed_status to just before the resume, add call to
2676 dummy_frame_push (discard cleanup).
2677 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2678 (dummy-frame.o): Add $(gdb_string_h).
2679
2680 2004-08-01 Andrew Cagney <cagney@gnu.org>
2681
2682 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2683 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2684 * dummy-frame.c (find_dummy_frame): Delete.
2685 (struct dummy_frame_cache, dummy_frame_sniffer)
2686 (dummy_frame_prev_register, dummy_frame_this_id)
2687 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2688 frame unwinder using a dummy_frame_cache.
2689
2690 2004-08-01 Andrew Cagney <cagney@gnu.org>
2691
2692 * frame.h (frame_save_as_regcache): Declare.
2693 * frame.c (frame_save_as_regcache): New function.
2694 (do_frame_read_register): Replace do_frame_unwind_register.
2695 (frame_pop): Use frame_save_as_regcache.
2696 * dummy-frame.c (generic_push_dummy_frame): Use
2697 frame_save_as_regcache.
2698
2699 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2700
2701 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2702 file as included until we record the first line in the linetable.
2703
2704 2004-08-01 Andrew Cagney <cagney@gnu.org>
2705
2706 * frame.h (deprecated_pop_dummy_frame)
2707 (deprecated_read_register_dummy)
2708 (deprecated_generic_find_dummy_frame): Delete.
2709 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2710 (deprecated_read_register_dummy)
2711 (deprecated_find_dummy_frame_regcache)
2712 (discard_innermost_dummy)
2713 (deprecated_pop_dummy_frame): Delete.
2714 (dummy_frame_this_id): Simplify.
2715 (struct dummy_frame): Delete "fp" and "sp".
2716 (find_dummy_frame): Simplify.
2717 (generic_push_dummy_frame): Do not set "fp" or "sp".
2718 (fprint_dummy_frames): Do not print "fp" and "sp"
2719
2720 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2721
2722 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2723 (struct i386_insn): New structure.
2724 (i386_match_insn): New function.
2725 (i386_frame_setup_skip_insns): New variable.
2726 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2727 array i386_frame_setup_insns of instructions that should be
2728 skipped inside the frame setup sequence.
2729
2730 2004-08-01 Andrew Cagney <cagney@gnu.org>
2731
2732 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2733 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2734 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2735 * stack.c (frame_info): Delete references to
2736 DEPRECATED_FRAME_INIT_SAVED_REGS and
2737 deprecated_get_frame_saved_regs.
2738 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2739 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2740 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2741 (frame_unwind_register_signed)
2742 (frame_unwind_register_unsigned)
2743 (frame_unwind_unsigned_register): Use register_size.
2744 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2745 (deprecated_frame_xmalloc_with_cleanup)
2746 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2747 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2748
2749 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2750 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2751 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2752 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2753
2754 * infcall.c (call_function_by_hand): Do not use
2755 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2756 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2757 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2758 DEPRECATED_STACK_ALIGN.
2759
2760 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2761
2762 Committed by Andrew Cagney.
2763 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2764
2765 2004-08-01 Andrew Cagney <cagney@gnu.org>
2766
2767 * mips-tdep.c (mips16_frame_cache)
2768 (mips16_frame_this_id, mips16_frame_prev_register)
2769 (mips16_frame_unwind, mips16_frame_sniffer)
2770 (mips16_frame_base_address, mips16_frame_base)
2771 (mips16_frame_base_sniffer, mips32_frame_cache)
2772 (mips32_frame_this_id, mips32_frame_prev_register)
2773 (mips32_frame_unwind, mips32_frame_sniffer)
2774 (mips32_frame_base_address, mips32_frame_base)
2775 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2776 separate heuristic mips16 and mips32 unwinders.
2777 (mips_stub_frame_cache, mips_stub_frame_this_id)
2778 (mips_stub_frame_prev_register)
2779 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2780 (mips_stub_frame_base_address, mips_stub_frame_base)
2781 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2782 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2783 match true mdebug frames.
2784 (non_heuristic_proc_desc): Add forward declaration.
2785
2786 2004-08-01 Andrew Cagney <cagney@gnu.org>
2787
2788 * config/mips/tm-irix6.h: Delete file.
2789 * config/mips/tm-irix5.h: Delete file.
2790 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2791 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2792
2793 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2794 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2795 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2796 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2797 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2798 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2799 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2800 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2801 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2802 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2803 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2804 (TARGET_SIGNAL_RAW_VALUES): Delete.
2805 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2806 Delete.
2807 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2808 (TARGET_HW_WATCH_LIMIT): Delete.
2809 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2810 * minimon.h: Delete file.
2811
2812 * trad-frame.c (trad_frame_get_this_base)
2813 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2814 functions.
2815 * trad-frame.h (trad_frame_set_this_base)
2816 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2817
2818 2004-07-31 Andrew Cagney <cagney@gnu.org>
2819
2820 * trad-frame.c (trad_frame_get_prev_register): Rename
2821 trad_frame_get_prev_register.
2822 * vax-tdep.c (vax_frame_prev_register): Update.
2823 * trad-frame.h: Update.
2824 * trad-frame.c (trad_frame_get_register): Update.
2825 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2826 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2827 Update.
2828 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2829 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2830 Update.
2831 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2832 Update.
2833 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2834 Update.
2835 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2836 Update.
2837 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2838 Update.
2839 * s390-tdep.c (s390_frame_prev_register)
2840 (s390_stub_frame_prev_register)
2841 (s390_sigtramp_frame_prev_register): Update.
2842 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2843 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2844 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2845 * m88k-tdep.c (m88k_frame_prev_register)
2846 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2847 * m32r-tdep.c (m32r_frame_prev_register): Update.
2848 * hppa-tdep.c (hppa_frame_prev_register_helper)
2849 * frv-tdep.c (frv_frame_prev_register): Update.
2850 * d10v-tdep.c (d10v_frame_prev_register): Update.
2851 * cris-tdep.c (cris_frame_prev_register): Update.
2852 * avr-tdep.c (avr_frame_prev_register): Update.
2853 * arm-tdep.c (arm_prologue_prev_register)
2854 (arm_sigtramp_prev_register): Update.
2855
2856 2004-07-31 Andrew Cagney <cagney@gnu.org>
2857
2858 * frame.h (legacy_saved_regs_unwind)
2859 (legacy_frame_chain_valid, legacy_frame_p)
2860 (enum frame_type): Delete UNKNOWN_FRAME.
2861 * dummy-frame.c (dummy_frame_this_id): Simplify.
2862 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2863 * frame.c (struct frame_info): Delete the field "type".
2864 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2865 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2866 (legacy_saved_regs_unwind, legacy_frame_p)
2867 (frame_type_from_pc): Delete.
2868 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2869 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2870
2871 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2872
2873 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2874 indentation.
2875
2876 * mips-nat.c: Remove file.
2877 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2878 (mips-nat.o): Remove dependency.
2879
2880 * infptrace.c: Update copyright year.
2881 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2882 explicitly setting the buffer to all zeroes.
2883
2884 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2885 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2886
2887 2004-07-30 Andrew Cagney <cagney@gnu.org>
2888
2889 * GDB 6.2 released from gdb_6_2-branch.
2890
2891 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2892
2893 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2894
2895 * exec.c (exec_file_attach):
2896 * nto-tdep.c (nto_find_and_open_solib):
2897 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2898 * solib.c (solib_open):
2899 * somsolib.c (som_solib_sizeof_symbol_table):
2900 * source.c (is_regular_file, openp, open_source_file):
2901 * symfile.c (symfile_bfd_open):
2902 * wince.c (upload_to_device): Differentiate between the search for
2903 binary and source files.
2904
2905 2004-07-30 Andrew Cagney <cagney@gnu.org>
2906
2907 * complaints.c (_initialize_complaints): Pass NULL to
2908 add_setshow_zinteger_cmd for help_doc.
2909 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2910
2911 2004-07-30 Andrew Cagney <cagney@gnu.org>
2912
2913 Fix PR i18n/761.
2914 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2915 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2916 $(PACKAGE).pot and update-po.
2917 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2918 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2919 (update-po): New rules.
2920 (localedir): Define using autoconf.
2921 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2922 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2923 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2924 * configure.in: Generate CATALOGS and LINGUAS from contents of
2925 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2926 * configure: Re-generate.
2927 * po/gdbtext: New file
2928
2929 2004-07-30 Jerome Guitton <guitton@gnat.com>
2930
2931 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2932 order.
2933
2934 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2935
2936 * dwarf2read.c (read_file_scope): Set producer if attribute
2937 present.
2938 (struct dwarf2_cu): Added new member producer.
2939
2940 2004-07-30 Jerome Guitton <guitton@gnat.com>
2941
2942 * inflow.c (kill_command): release file handles in BFD.
2943 * exec.c (exec_file_attach): Ditto.
2944 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2945
2946 2004-07-29 Andrew Cagney <cagney@gnu.org>
2947
2948 * PROBLEMS (mips-irix): Note that it is broken.
2949
2950 2004-07-29 Andrew Cagney <cagney@gnu.org>
2951
2952 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2953 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2954
2955 * config/xm-nbsd.h: Delete file.
2956 * config/arm/xm-nbsd.h: Delete file.
2957 * config/i386/xm-nbsd.h: Delete file.
2958 * config/ns32k/xm-nbsd.h: Delete file.
2959 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2960 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2961 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2962 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2963 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2964
2965 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2966 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2967 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2968 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2969 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2970 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2971
2972 * config/powerpc/xm-linux.h: Delete empty file.
2973 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2974 * config/powerpc/linux.mh (XM_FILE): Delete.
2975 * config/m68k/xm-linux.h: Delete empty file.
2976 * config/m68k/linux.mh (XM_FILE): Delete.
2977 * config/ia64/xm-linux.h: Delete empty file.
2978 * config/ia64/linux.mh (XM_FILE): Delete.
2979 * config/arm/xm-linux.h: Delete empty file.
2980 * config/arm/linux.mh (XM_FILE): Delete.
2981
2982 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2983 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2984 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2985 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2986 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2987 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2988 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2989 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2990
2991 * config/m68k/xm-m68k.h: Delete file.
2992 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2993 copyright.
2994 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2995 * config/pa/xm-linux.h: Delete empty file.
2996 * config/pa/linux.mh (XM_FILE): Delete.
2997 * config/i386/xm-i386.h: Delete empty file.
2998 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2999 "i386/xm-i386.h".
3000 * config/i386/obsdaout.mh (XM_FILE): Delete.
3001 * config/i386/obsd64.mh (XM_FILE): Delete.
3002 * config/i386/fbsd64.mh (XM_FILE): Delete.
3003 * config/i386/nto.mh (XM_FILE): Delete.
3004 * config/i386/obsd.mh (XM_FILE): Delete.
3005 * config/i386/linux64.mh (XM_FILE): Delete.
3006 * config/i386/linux.mh (XM_FILE): Delete.
3007 * config/i386/i386sol2.mh (XM_FILE): Delete.
3008 * config/i386/i386gnu.mh (XM_FILE): Delete.
3009 * config/i386/fbsd.mh (XM_FILE): Delete.
3010 * config/i386/nbsd64.mh (XM_FILE): Delete.
3011
3012 2004-07-29 Andrew Cagney <cagney@gnu.org>
3013
3014 * config/pa/xm-linux.h: Do not include "floatformat.h".
3015 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3016 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3017 * config/i386/xm-i386.h: Do not include "floatformat.h".
3018 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3019 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3020 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3021 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3022 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3023 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3024 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3025 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3026 * configure, config.in: Regenerate.
3027 * configure.host (gdb_host_float_format, gdb_host_double_format)
3028 (gdb_host_long_double_format): Set according to the host.
3029
3030 2004-07-29 Andrew Cagney <cagney@gnu.org>
3031
3032 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3033
3034 2004-07-28 Andrew Cagney <cagney@gnu.org>
3035
3036 * PROBLEMS: Mention threads/1650.
3037 * NEWS: Mention the NPTL fix.
3038
3039 2004-07-28 Andrew Cagney <cagney@gnu.org>
3040
3041 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3042 (add_setshow_cmd_full): Make static.
3043 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3044 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3045 * cli/cli-decode.c (add_setshow_filename_cmd)
3046 (add_setshow_string_cmd): New functions.
3047 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3048 * mips-tdep.c (_initialize_mips_tdep): Update.
3049 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3050 * cli/cli-logging.c (_initialize_cli_logging): Update.
3051 * complaints.c (_initialize_complaints): Update.
3052 * remote.c (_initialize_remote): Update.
3053
3054 2004-07-28 Andrew Cagney <cagney@gnu.org>
3055
3056 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3057 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3058 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3059 print parameters. Make string parameters constant.
3060 * command.h: Update. Update copyright.
3061 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3062 * observer.c (_initialize_observer): Ditto.
3063 * frame.c (_initialize_frame): Ditto.
3064 * complaints.c (_initialize_complaints): Ditto.
3065 * maint.c (_initialize_maint_cmds): Ditto.
3066 * target.c (initialize_targets): Ditto.
3067 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3068 * infcall.c (_initialize_infcall): Ditto.
3069 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3070 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3071 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3072 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3073 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3074
3075 2004-07-28 Andrew Cagney <cagney@gnu.org>
3076
3077 * gdbtypes.c (lookup_primitive_typename): Delete function.
3078 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3079 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3080 * gdbtypes.c (lookup_typename): Ditto.
3081 * f-exp.y (yylex): Ditto.
3082 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3083
3084 * scm-lang.c (c_builtin_types): Delete extern declaration.
3085 (scm_language_defn): Replace
3086 string_char_type and primitive_type_vector with
3087 la_language_arch_info.
3088 * jv-lang.c (java_language_defn): Replace
3089 string_char_type and primitive_type_vector with
3090 la_language_arch_info.
3091 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3092 c_builtin_types in comment.
3093 * c-lang.h (struct language_arch_info): Declare opaque.
3094 (c_language_arch_info): Declare.
3095 (c_builtin_types): Delete declaration.
3096 * c-lang.c (c_language_arch_info): Set string_char_type to
3097 builtin_char, not builtin_true_char. Make global.
3098 (c_builtin_types): Delete array.
3099 (asm_language_defn, minimal_language_defn): Replace
3100 string_char_type and primitive_type_vector with
3101 la_language_arch_info.
3102
3103 2004-07-28 Andrew Cagney <cagney@gnu.org>
3104
3105 * gdbtypes.h (struct builtin_type): Rename true_char to
3106 builtin_true_char.
3107 * gdbtypes.c (gdbtypes_post_init): Update.
3108 * c-lang.c (arch_info): New function.
3109 (enum c_primitive_types): New enum.
3110 (c_language_defn): Instead of string_char_type and
3111 primitive_type_vector set la_language_arch_info.
3112
3113 2004-07-28 Andrew Cagney <cagney@gnu.org>
3114
3115 * language.h (struct language_arch_info): Fix typo
3116 s/primative/primitive/.
3117 * gdbtypes.c (lookup_primitive_typename): Ditto.
3118 * language.c (language_lookup_primitive_type_by_name)
3119 (unknown_language_arch_info): Ditto.
3120
3121 2004-07-27 Andrew Cagney <cagney@gnu.org>
3122
3123 * defs.h (enum language): Add nr_languages.
3124 * language.h (struct language_arch_info): Define.
3125 (struct language_defn): Add la_language_arch_info.
3126 (language_lookup_primative_type_by_name): Declare.
3127 (language_string_char_type): Declare.
3128 * language.c (_initialize_language, language_gdbarch_post_init)
3129 (struct language_gdbarch, language_gdbarch_data): Implement
3130 per-architecture language information.
3131 (unknown_language_arch_info, language_string_char_type)
3132 (language_lookup_primative_type_by_name): New functions.
3133 (unknown_language_defn, auto_language_defn)
3134 (local_language_defn): Set la_language_arch_info to
3135 unknown_language_arch_info.
3136 (unknown_builtin_types): Delete.
3137 * gdbtypes.c (lookup_primitive_typename): Use
3138 language_lookup_primative_type_by_name.
3139 (create_string_type): Use language_string_char_type.
3140 * values.c (value_from_string): Use language_string_char_type.
3141 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3142 * p-lang.c (pascal_language_defn): Ditto.
3143 * m2-lang.c (m2_language_defn): Ditto.
3144 * jv-lang.c (java_language_defn): Ditto.
3145 * objc-lang.c (objc_language_defn): Ditto.
3146 * f-lang.c (f_language_defn): Ditto.
3147 * c-lang.c (c_language_defn, cplus_language_defn)
3148 (asm_language_defn, minimal_language_defn): Ditto.
3149
3150 2004-07-27 Andrew Cagney <cagney@gnu.org>
3151
3152 * gdbtypes.h (struct builtin_type): Declare.
3153 (builtin_type): Declare.
3154 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3155 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3156 (gdbtypes_post_init): New function.
3157 (builtin_type): New function.
3158
3159 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3160
3161 * remote-m32r-sdi.c: Fix breakpoint bug.
3162 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3163 recv_char_data, recv_long_data): New functions to replace communication
3164 sequences.
3165
3166 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3167
3168 Document PR threads/1650.
3169 * PROBLEMS (Threads): Document problem with many threads
3170
3171 2004-07-26 Andrew Cagney <cagney@gnu.org>
3172
3173 * gdb-mi.el: Move from here ...
3174 * mi/gdb-mi.el: ... to here.
3175
3176 2004-07-26 Andrew Cagney <cagney@gnu.org>
3177
3178 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3179 * main.c (captured_main): When in batch mode always detach.
3180
3181 2004-07-26 Andrew Cagney <cagney@gnu.org>
3182
3183 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3184 and h8300 as broken.
3185 * NEWS: END-OF-LIFE frame compatibility module.
3186 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3187 specific comments.
3188
3189 2004-07-26 Andrew Cagney <cagney@gnu.org>
3190
3191 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3192 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3193 * wince.c (_initialize_wince): Update.
3194 * win32-nat.c (_initialize_win32_nat): Update.
3195 * varobj.c (_initialize_varobj): Update.
3196 * valops.c (_initialize_valops): Update.
3197 * utils.c (initialize_utils, initialize_utils): Update.
3198 * tui/tui-win.c (_initialize_tui_win): Update.
3199 * top.c (init_main): Update.
3200 * symfile.c (_initialize_symfile): Update.
3201 * source.c (_initialize_source): Update.
3202 * somsolib.c (_initialize_som_solib): Update.
3203 * solib.c (_initialize_solib): Update.
3204 * solib-frv.c (_initialize_frv_solib): Update.
3205 * serial.c (_initialize_serial): Update.
3206 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3207 * remote.c (_initialize_remote, _initialize_remote): Update.
3208 * remote-vx.c (_initialize_vx): Update.
3209 * remote-utils.c (_initialize_sr_support): Update.
3210 * remote-sds.c (_initialize_remote_sds): Update.
3211 * remote-mips.c (_initialize_remote_mips): Update.
3212 * remote-e7000.c (_initialize_remote_e7000): Update.
3213 * proc-api.c (_initialize_proc_api): Update.
3214 * printcmd.c: Update.
3215 * parse.c (_initialize_parse): Update.
3216 * pa64solib.c (_initialize_pa64_solib): Update.
3217 * p-valprint.c (_initialize_pascal_valprint): Update.
3218 * monitor.c (_initialize_remote_monitors): Update.
3219 * mips-tdep.c (_initialize_mips_tdep): Update.
3220 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3221 * maint.c (_initialize_maint_cmds): Update.
3222 * lin-lwp.c (_initialize_lin_lwp): Update.
3223 * language.c (_initialize_language): Update.
3224 * kod.c (_initialize_kod): Update.
3225 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3226 * i386-tdep.c (_initialize_i386_tdep): Update.
3227 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3228 * gdbarch.sh: Update.
3229 * gdbarch.c: Re-generate.
3230 * gdb-events.sh: Update.
3231 * gdb-events.c: Re-generate.
3232 * frame.c (_initialize_frame): Update.
3233 * exec.c: Update.
3234 * demangle.c (_initialize_demangler): Update.
3235 * dcache.c (_initialize_dcache): Update.
3236 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3237 * cp-valprint.c (_initialize_cp_valprint): Update.
3238 * corefile.c (_initialize_core): Update.
3239 * command.h: Update.
3240 * cli/cli-decode.h: Update.
3241 * cli/cli-cmds.c (init_cli_cmds): Update.
3242 * charset.c (_initialize_charset): Update.
3243 * breakpoint.c (_initialize_breakpoint): Update.
3244 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3245 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3246 * aix-thread.c (_initialize_aix_thread): Update.
3247
3248 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3249
3250 Partial fix for PR backtrace/1718.
3251 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3252 that GCC migrates into the prolugue. Don't handle any
3253 instructions that clobber %ebx.
3254
3255 2004-07-23 Andrew Cagney <cagney@gnu.org>
3256
3257 Use regcache_raw_collect instead of regcache_collect.
3258 * regcache.h (regcache_collect): Delete declaration.
3259 * regcache.c (regcache_colect): Delete function.
3260 * win32-nat.c (do_child_store_inferior_registers): Update.
3261 * sol-thread.c (sol_thread_store_registers): Update.
3262 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3263 * rs6000-nat.c (store_register): Update.
3264 * remote.c (store_register_using_P, remote_store_registers): Update.
3265 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3266 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3267 (fill_vrregset, store_spe_registers, fill_gregset)
3268 (fill_gregset): Update.
3269 * nto-procfs.c (procfs_store_registers): Update.
3270 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3271 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3272 * m68klinux-nat.c (store_register, fill_gregset): Update.
3273 * m68k-tdep.c (fill_gregset): Update.
3274 * infptrace.c (store_register): Update.
3275 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3276 * i386-linux-nat.c (store_register, fill_gregset): Update.
3277 * hppa-linux-nat.c (fill_gregset): Update.
3278 * go32-nat.c (store_register): Update.
3279 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3280 (store_fp_regs): Update.
3281 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3282 (store_nwfpe_extended, store_fpregister, store_fpregs)
3283 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3284 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3285 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3286 (store_regs_user_thread, store_regs_kernel_thread): Update.
3287
3288 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3289
3290 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3291 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3292 encoding.
3293 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3294 member of `struct comp_unit'.
3295
3296 2004-07-23 Andrew Cagney <cagney@gnu.org>
3297
3298 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3299 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3300
3301 2004-07-23 Martin Hunt <hunt@redhat.com>
3302 Kevin Buettner <kevinb@redhat.com>
3303
3304 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3305 alignment was being added to the offset instead of multiplied.
3306
3307 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3308
3309 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3310 changed signal trampoline in OpenBSD 3.5-current.
3311
3312 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3313 <machine/pcb.h> and "bsd-kvm.h".
3314 (sparc64nbsd_supply_pcb): New function.
3315 (_initialize_sparc64nbsd_nat): Renamed from
3316 _initialize_sparcnbsd_nat. Enable libkvm interface.
3317 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3318 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3319 (LOADLIBES): New variable.
3320
3321 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3322
3323 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3324
3325 2004-07-21 Andrew Cagney <cagney@gnu.org>
3326
3327 Use regcache_raw_supply instead of supply_register.
3328 * regcache.h (supply_register): Delete declaration.
3329 * regcache.c (supply_register): Delete function.
3330 * wince.c (do_child_fetch_inferior_registers): Update.
3331 * win32-nat.c (do_child_fetch_inferior_registers)
3332 (fetch_elf_core_registers): Update.
3333 * v850ice.c (v850ice_fetch_registers): Update.
3334 * thread-db.c (thread_db_store_registers): Update.
3335 * sol-thread.c (sol_thread_store_registers): Update.
3336 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3337 * rs6000-nat.c (fetch_register): Update.
3338 * rom68k-rom.c (rom68k_supply_one_register): Update.
3339 * remote.c (remote_wait, remote_async_wait): Update.
3340 * remote-st.c (get_hex_regs): Update.
3341 * remote-sim.c (gdbsim_fetch_register): Update.
3342 * remote-sds.c (sds_fetch_registers): Update.
3343 * remote-rdp.c (remote_rdp_fetch_register): Update.
3344 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3345 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3346 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3347 * remote-hms.c (init_hms_cmds): Update.
3348 * remote-est.c (init_est_cmds): Update.
3349 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3350 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3351 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3352 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3353 (fetch_register, supply_vrregset, supply_vrregset)
3354 (fetch_spe_registers): Update.
3355 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3356 * monitor.c (monitor_supply_register): Update.
3357 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3358 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3359 (mipsnbsd_supply_fpreg): Update.
3360 * mips-nat.c (fetch_inferior_registers)
3361 (fetch_core_registers): Update.
3362 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3363 (supply_fpregset, mips64_supply_gregset)
3364 (mips64_supply_fpregset): Update.
3365 * m68klinux-nat.c (fetch_register, supply_gregset)
3366 (supply_fpregset): Update.
3367 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3368 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3369 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3370 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3371 * infptrace.c (fetch_register): Update.
3372 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3373 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3374 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3375 (gnu_fetch_registers, gnu_store_registers): Update.
3376 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3377 * i386-linux-nat.c (fetch_register, supply_gregset)
3378 (dummy_sse_values): Update.
3379 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3380 * hppah-nat.c (fetch_register): Update.
3381 * hppa-linux-nat.c (fetch_register, supply_gregset)
3382 (supply_fpregset): Update.
3383 * go32-nat.c (fetch_register): Update.
3384 * dve3900-rom.c (fetch_bitmapped_register)
3385 (_initialize_r3900_rom): Update.
3386 * cris-tdep.c (supply_gregset): Update.
3387 * abug-rom.c (init_abug_cmds): Update.
3388 * core-aout.c (fetch_core_registers): Update.
3389 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3390 (fetch_register, fetch_fp_register): Update.
3391 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3392 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3393 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3394 * alphanbsd-tdep.c (fetch_core_registers): Update.
3395 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3396 * alpha-nat.c (fetch_osf_core_registers)
3397 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3398 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3399 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3400
3401 2004-07-21 Andrew Cagney <cagney@gnu.org>
3402
3403 * PROBLEMS: Mention breakpoints/1702.
3404 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3405 that is known to work.
3406
3407 2004-07-21 Andrew Cagney <cagney@gnu.org>
3408
3409 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3410 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3411 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3412 (handle_inferior_event): Wrap call to deprecated
3413 IGNORE_HELPER_CALL in #ifdef.
3414 * config/mips/tm-nbsd.h: Update.
3415
3416 2004-07-20 Jim Blandy <jimb@redhat.com>
3417
3418 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3419 bfd_mach_ppc has no segment registers.
3420
3421 Include PowerPC SPR numbers for special-purpose registers.
3422 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3423 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3424 new member in initializer.
3425 (S, S4, SN4, S64): New macros for defining special-purpose
3426 registers.
3427 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3428 registers_403, registers_403GC, registers_505, registers_860,
3429 registers_601, registers_602, registers_603, registers_604,
3430 registers_750, registers_e500): Use them.
3431
3432 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3433 replace references with expression used to initialize variable.
3434
3435 2004-07-20 Andrew Cagney <cagney@gnu.org>
3436
3437 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3438 read_memory_nobpt.
3439 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3440 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3441 (s390_sigtramp_frame_sniffer): Update.
3442 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3443 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3444 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3445 (mips32_fetch_instruction): Update.
3446 * mcore-tdep.c (get_insn): Update.
3447 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3448 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3449 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3450 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3451 (i386_linux_rt_sigtramp_start): Update.
3452 * i386-linux-nat.c (child_resume): Update.
3453 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3454 * hppa-linux-tdep.c (insns_match_pattern): Update.
3455 * gdbcore.h: Update.
3456 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3457 * frame.c (safe_frame_unwind_memory): Update.
3458 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3459 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3460 * alpha-tdep.c (alpha_read_insn): Update.
3461
3462 2004-07-20 Andrew Cagney <cagney@gnu.org>
3463
3464 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3465 containing both bytes and mask. Add "frame_type".
3466 * tramp-frame.c (tramp_frame_start): Update.
3467 (tramp_frame_prepend_unwinder): Update.
3468 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3469 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3470 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3471 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3472
3473 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3474
3475 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3476 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3477 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3478 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3479
3480 2004-07-17 Andrew Cagney <cagney@gnu.org>
3481
3482 * NEWS, PROBLEMS: Update for 6.2.
3483
3484 * README: Update to 6.2.
3485
3486 * utils.c (xvasprintf): Call xstrvprintf.
3487
3488 * parse.c: Update copyright.
3489 (null_post_parser): Eliminate ARGSUSED.
3490
3491 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3492 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3493 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3494
3495 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3496 * ppc-linux-nat.c: Use "Linux kernel".
3497 * hppa-linux-tdep.c: Use GNU/Linux.
3498 * hppa-linux-nat.c: Use GNU/Linux.
3499 * dwarfread.c: Add [sic] to use of Linux.
3500
3501 * hppa-linux-nat.c: Do not include <string.h>.
3502 (supply_fpregset): Remove "register" attribute.
3503
3504 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3505
3506 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3507
3508 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3509 * configure, config.in: Regenerated.
3510
3511 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3512 "bsd-kvm.h".
3513 (vaxbsd_supply_pcb): New function.
3514 (_initialize_vaxbsd_nat): New prototype and function.
3515 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3516 solib-sunos.o.
3517 (LOADLIBES): New variable.
3518 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3519 (LOADLIBES): New variable.
3520 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3521 (LOADLIBES): New variable.
3522 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3523
3524 2004-07-16 Andrew Cagney <cagney@gnu.org>
3525
3526 * defs.h (event_loop_p): Replace variable declaration with macro,
3527 always 1.
3528 * main.c (captured_main): Delete options "-async" and "-noasync".
3529 (event_loop_p): Delete variable.
3530 * NEWS: Mention that "-async" and "-noasync" were removed.
3531
3532 2004-07-16 Andrew Cagney <cagney@gnu.org>
3533
3534 * remote-m32r-sdi.c: Re-indent.
3535
3536 2004-07-16 Jim Blandy <jimb@redhat.com>
3537
3538 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3539 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3540 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3541 missing MPC823 SPRs.
3542 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3543 incorrect. (This was corrected in GDB's register name tables on
3544 2004-07-14.)
3545
3546 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3547 should be "esasrr" ("ESA Save and Restore Register").
3548
3549 2004-07-16 Andrew Cagney <cagney@gnu.org>
3550
3551 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3552 calls, no longer applicable. Update comments and rename parameter
3553 "step_frame" to "return_frame".
3554
3555 2004-07-16 Andrew Cagney <cagney@gnu.org>
3556
3557 * frame.c (fprint_field): New function.
3558 (fprint_frame_id): Use fprint_field.
3559
3560 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3561
3562 * ada-lang.c (ada_language_defn): Remove commented out code.
3563
3564 2004-07-15 Jim Blandy <jimb@redhat.com>
3565
3566 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3567 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3568
3569 2004-07-14 Jim Blandy <jimb@redhat.com>
3570
3571 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3572
3573 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3574
3575 * ppc-tdep.h (ppc_num_srs): New enum constant.
3576
3577 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3578 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3579 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3580 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3581 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3582 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3583 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3584 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3585 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3586 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3587 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3588 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3589 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3590 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3591 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3592 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3593 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3594 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3595 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3596 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3597 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3598 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3599 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3600 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3601 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3602 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3603 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3604 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3605 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3606 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3607 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3608 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3609 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3610 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3611 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3612 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3613 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3614 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3615 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3616 special-purpose register numbers.
3617
3618 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3619 manual mentions 'md_twb', but many mention 'm_twb', and at that
3620 point in the register list.)
3621
3622 2004-07-14 Andrew Cagney <cagney@gnu.org>
3623
3624 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3625 instead of "internal-error".
3626
3627 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3628
3629 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3630 that was inserted inside a comment.
3631
3632 2004-07-10 Randolph Chung <tausq@debian.org>
3633
3634 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3635 function.
3636 (hppa_hpux_push_dummy_code): New function.
3637 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3638 Set find_global_pointer method.
3639
3640 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3641
3642 * NEWS: Mention BSD libkvm interface.
3643
3644 2004-07-10 Michael Snyder <msnyder@redhat.com>
3645
3646 * symfile.c (generic_load): Comment typo.
3647 * stack.c (get_selected_block): Ditto.
3648 * regcache.c (regcache_cooked_read): Ditto.
3649 * monitor.c (monitor_debug): Ditto.
3650 * mips-tdep.c (mips_read_pc): Ditto.
3651 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3652 * gdb_mbuild.sh: Ditto.
3653 * gdbarch.sh: Ditto.
3654 * gdbarch.h: Ditto.
3655
3656 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3657
3658 * ada-tasks.c: Remove file.
3659
3660 Remove ARI problems:
3661
3662 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3663 beginning of line.
3664
3665 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3666 Add comment.
3667 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3668 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3669 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3670 (UMIN_OF_SIZE): Remove.
3671 (max_of_type): New function to replace orphan macro in gdbtypes.h
3672 (min_of_type): Ditto.
3673 (discrete_type_high_bound): Use max_of_type.
3674 (discrete_type_low_bound): Use min_of_type.
3675 (possible_user_operator_p): Move operator to beginning of line.
3676 (ada_is_variant_part): Ditto.
3677 (ensure_lval): Rewrite to avoid deprecated operations.
3678 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3679 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3680 (ada_enum_name): Remove assignments in 'if' statements.
3681 (build_ada_types): Add gdbarch parameter.
3682 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3683 with gdbarch_data_register_post_init.
3684 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3685 add_show_from_set.
3686
3687 * ada-valprint.c (inspect_it): Remove declaration.
3688 (repeat_count_threshold): Remove declaration.
3689 (ada_print_floating): Remove assignments in 'if' statements.
3690 (print_str): Move operator to beginning of line.
3691
3692 2004-07-08 Jim Blandy <jimb@redhat.com>
3693
3694 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3695
3696 2004-07-08 Bob Rossi <bob@brasko.net>
3697
3698 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3699
3700 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3701
3702 * language.h (struct_language_defn): Add new function pointer:
3703 la_class_name_from_physname. Also add new prototype for
3704 language_class_name_from_physname.
3705 * language.c (language_class_name_from_physname): New function.
3706 (unk_lang_class_name): Ditto.
3707 (unknown_language_defn, auto_language_defn): Change
3708 to add unk_lang_class_name function pointer for
3709 la_class_name_from_physname.
3710 (local_language_defn): Ditto.
3711 * dwarf2read.c (guess_structure_name): Change to call
3712 language_class_name_from_physname.
3713 (determine_class_name): Ditto.
3714 * cp-support.c (class_name_from_physname): Renamed.
3715 (cp_class_name_from_physname): New name of function.
3716 * cp-support.h: Ditto.
3717 * c-lang.c (c_language_defn): Change to add NULL
3718 for class_name_from_physname function pointer.
3719 (cplus_language_defn): Change to add cp_class_name_from_physname.
3720 * jv-lang.c (java_class_name_physname): New function.
3721 (java_find_last_component): New static routine.
3722 (java_language_defn): Add java_class_name_from_physname pointer.
3723 * ada-lang.c (ada_language_defn): Change to add NULL
3724 for class_name_from_physname function pointer.
3725 * f-lang.c (f_language_defn): Ditto.
3726 * m2-lang.c (m2_language_defn): Ditto.
3727 * objc-lang.c (objc_language_defn): Ditto.
3728 * p-lang.c (pascal_language_defn): Ditto.
3729 * scm-lang.c (scm_language_defn): Ditto.
3730
3731 2004-07-06 Andrew Cagney <cagney@gnu.org>
3732
3733 Patch from Bart Robinson.
3734 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3735 (O_LARGEFILE): Define to 0, if not defined.
3736
3737 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3738
3739 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3740 <machine/pcb.h> and "bsd-kvm.h".
3741 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3742 (m68kbsd_supply_pcb): New function.
3743 (_initialize_m68kbsd_nat): New prototype and function.
3744 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3745 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3746 (LOADLIBES): New variable.
3747 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3748 (LOADLIBES): New variable.
3749
3750 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3751
3752 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3753
3754 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3755 <sys/proc.h>.
3756 (bsd_kvm_cmdlist): New variable.
3757 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3758 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3759 command and "kvm proc" command.
3760 * Makefile.in (bsd-kvm.o): Update dependencies.
3761
3762 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3763
3764 * osabi.c: Update copyright year.
3765 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3766 notes if EI_OSABI is set to ELFOSABI_HPUX.
3767
3768 2004-07-01 Michael Snyder <msnyder@redhat.com>
3769
3770 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3771 that seems to have gotten whacked out of line.
3772
3773 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3774
3775 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3776 code.
3777
3778 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3779
3780 * ada-lang.c (decode_packed_array): Minor change to comment.
3781 (ada_value_slice_ptr): New function.
3782 (ada_value_slice): New function.
3783 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3784 test. Don't know why it is there.
3785 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3786 to avoid dereferencing huge arrays from which one is slicing.
3787 (empty_array): Correct to return an array rather than
3788 a subrange value.
3789 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3790 on empty arrays (let'em use 'FIRST instead).
3791
3792 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3793
3794 Address complaints from gdb_ari.sh:
3795
3796 * ada-exp.y: Include gdb_string.h rather than string.h.
3797 (convert_char_literal): Reformat declaration.
3798 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3799 * ada-lex.l: Change use of free to xfree (the macro would do so
3800 anyway, but this is harmless).
3801 Include gdb_string.h rather than string.h.
3802 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3803
3804 * ada-lang.c (parse): Remove K&Rism in parameter list.
3805 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3806
3807 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3808
3809 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3810 dead code.
3811
3812 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3813
3814 * alphabsd-nat.c: Update copyright year.
3815 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3816
3817 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3818
3819 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3820 (i386_cygwin_in_solib_call_trampoline): New function.
3821 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3822 and skip_trampoline_code gdbarch methods.
3823
3824 2004-06-29 Jim Blandy <jimb@redhat.com>
3825
3826 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3827 name actually used in the dependency lists.
3828
3829 2004-06-29 Randolph Chung <tausq@debian.org>
3830
3831 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3832
3833 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3834
3835 * win32-nat.c (child_pid_to_exec_file): New function.
3836 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3837 functionality.
3838
3839 2004-06-28 Andrew Cagney <cagney@gnu.org>
3840
3841 * defs.h (xstrvprintf): Declare.
3842 * utils.c (xstrvprintf): New function.
3843 (internal_vproblem, xstrprintf, xasprintf)
3844 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3845 * serial.c (serial_printf): Ditto.
3846 * complaints.c (vcomplaint): Ditto.
3847
3848 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3849
3850 * infcmd.c (attach_command): Move call to target_terminal_inferior
3851 behind loading symbol table.
3852
3853 2004-06-28 Andrew Cagney <cagney@gnu.org>
3854
3855 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3856 change - add back extern deprecated_ui_loop_hook declaration.
3857
3858 2004-06-28 Andrew Cagney <cagney@gnu.org>
3859
3860 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3861 xstrprintf.
3862 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3863 (c_value_of_variable): Ditto.
3864 * utils.c (internal_vproblem): Ditto.
3865 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3866 * remote.c (add_packet_config_cmd): Ditto.
3867 * remote-rdp.c (rdp_set_command_line): Ditto.
3868 * regcache.c (regcache_dump): Ditto.
3869 * frv-tdep.c (new_variant, new_variant): Ditto.
3870 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3871 (fbsd_find_memory_regions): Ditto.
3872 * breakpoint.c (create_thread_event_breakpoint)
3873 (create_breakpoints): Ditto.
3874 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3875 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3876
3877 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3878
3879 * ada-lang.c: Re-indent file, with some massaging to help indent
3880 a bit when the result is otherwise really too ugly.
3881
3882 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3883
3884 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3885 code_addr_p and special_addr_p to 'unsigned int'.
3886
3887 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3888
3889 * i386v4-nat.c: Update copyright year and tweak comment.
3890 (regmap): Remove trailing comma.
3891 (supply_gregset): Rename local variable i to regnum. Call
3892 regcache_raw_supply instead of supply_register.
3893 (fill_gregset): Rename argument regno to regnum. Call
3894 regcache_raw_collect instead of regcache_collect.
3895
3896 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3897
3898 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3899 and special_addr_p.
3900 (frame_id_build, frame_id_build_special): Update comments.
3901 (frame_id_build_wild): New prototype.
3902 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3903 struct frame_id fields.
3904 (frame_id_build_wild): New function.
3905 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3906
3907 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3908
3909 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3910 hppabsd-tdep.c.
3911
3912 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3913
3914 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3915
3916 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3917
3918 * ada-lang.c: Re-indent file.
3919
3920 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3921
3922 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3923 (no_symtab_msg): Likewise.
3924
3925 2004-06-27 Andreas Schwab <schwab@suse.de>
3926
3927 * source.c: Fix whitespace.
3928
3929 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3930
3931 * configure.in: Include <sys/param.h> for td_pcb test.
3932 * configure: Regenerated.
3933
3934 * i386nbsd-nat.c: New file.
3935 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3936 i386obsd-nat.c and i386obsd-tdep.c.
3937 (i386nbsd-nat.o): New dependency.
3938 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3939 bsd-kvm.o.
3940 (LOADLIBES): New variable.
3941 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3942 bsd-kvm.o.
3943 (LOADLIBES): New variable.
3944
3945 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3946 (LOADLIBES): New variable.
3947
3948 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3949 fetching from BSD_KVM_PADDR. Correctly lookup address for
3950 "_thread0".
3951
3952 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3953 "bsd-kvm.h".
3954 (amd64fbsd_supply_pcb): New funcion.
3955 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3956
3957 2004-06-27 <david@streamline-computing.com>
3958
3959 Partial fix for PR cli/1056.
3960 * valarith.c: Check for zero in division and remainder
3961 evaluation.
3962
3963 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3964
3965 * i387-tdep.c: Remove excessive whitespace.
3966
3967 2004-06-26 Andrew Cagney <cagney@gnu.org>
3968
3969 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3970 * gdb-events.h, gdb-events.c: Re-generate.
3971 * tui/tui-hooks.c (tui_install_hooks): Update.
3972 (tui_remove_hooks): Update.
3973 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3974
3975 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3976
3977 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3978 (gregset_t, fpregset_t): Remove typedefs.
3979 (REG_OFFSET): Rename argument.
3980 (amd64bsd_r_reg_offset): Rename from reg_offset.
3981 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3982 Remove functions.
3983 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3984 of reg_offset.
3985 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3986
3987 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3988
3989 * vax-tdep.c: Tweak comment.
3990
3991 Add OpenBSD/hppa support.
3992 * NEWS (New native configurations): Mention OpenBSD/hppa.
3993 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3994 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3995 files.
3996 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3997 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3998 * configure.host: Add hppa*-*-openbsd*.
3999 * configure.tgt: Add hppa*-*-openbsd*.
4000
4001 2004-06-25 Andrew Cagney <cagney@gnu.org>
4002
4003 * defs.h (deprecated_ui_loop_hook): Deprecated.
4004 * wince.c (child_wait): Update.
4005 * win32-nat.c (child_wait): Update.
4006 * v850ice.c (v850ice_wait): Update.
4007 * top.c (deprecated_ui_loop_hook): Update.
4008 * serial.h: Update.
4009 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4010 (do_unix_readchar): Update.
4011 * ser-tcp.c (net_open): Update.
4012 * remote-sim.c (gdb_os_poll_quit): Update.
4013 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4014
4015 2004-06-24 Andrew Cagney <cagney@gnu.org>
4016
4017 * defs.h (deprecated_pre_add_symbol_hook)
4018 (deprecated_post_add_symbol_hook): Deprecated.
4019 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4020 (symbol_file_add_with_addrs_or_offsets): Update references.
4021
4022 2004-06-24 Andrew Cagney <cagney@gnu.org>
4023
4024 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4025 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4026 * wince.c (ui_loop_hook): Delete extern declaration.
4027 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4028 * v850ice.c (ui_loop_hook): Delete extern declaration..
4029 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4030 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4031 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4032 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4033 ui_loop_hook declaration.
4034
4035 2004-06-24 Andrew Cagney <cagney@gnu.org>
4036
4037 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4038 entry_func_highpc fields.
4039 * objfiles.c (init_entry_point_info): Do not clear
4040 entry_func_lowpc and entry_func_highpc.
4041 (objfile_relocate): Do not relocate entry_func_lowpc and
4042 entry_func_highpc.
4043 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4044 entry_func_highpc.
4045 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4046 entry_func_highpc.
4047 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4048 entry_func_lowpc and entry_func_highpc with call to
4049 inside_entry_func.
4050
4051 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4052
4053 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4054 quad-precision floating point arguments in registers.
4055
4056 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4057
4058 From Michael Mueller <m.mueller99@kay-mueller.de>:
4059 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4060 account.
4061
4062 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4063
4064 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4065 to -1.
4066 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4067 untriggered watchpoints to a separate if clause. Update function
4068 comment regarding STOPPED_BY_WATCHPOINT argument.
4069
4070 2004-06-22 Jim Blandy <jimb@redhat.com>
4071
4072 * gdbarch.sh: Doc fix.
4073
4074 2004-06-21 Martin Hunt <hunt@redhat.com>
4075 Kevin Buettner <kevinb@redhat.com>
4076
4077 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4078 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4079 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4080 to set_gdbarch_sp_regnum(). Use cooked register number.
4081 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4082
4083 2004-06-21 Andrew Cagney <cagney@gnu.org>
4084
4085 * gdbarch.sh: When the macro field is empty, do not generate a
4086 macro definition. When the macro field is "=", generate the macro
4087 name from the upper-case function name.
4088 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4089 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4090 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4091 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4092 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4093 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4094 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4095 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4096 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4097 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4098 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4099 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4100 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4101 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4102 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4103 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4104 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4105 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4106 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4107 (DEPRECATED_USE_STRUCT_CONVENTION)
4108 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4109 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4110 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4111 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4112 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4113 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4114 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4115 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4116 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4117 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4118 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4119 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4120 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4121 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4122 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4123 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4124 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4125 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4126
4127 2004-06-21 Andrew Cagney <cagney@gnu.org>
4128
4129 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4130 macro name, and the function rather than macro value. Only wrap
4131 macro print statements in #ifdef. Move format logic to where it
4132 is needed.
4133 * gdbarch.c: Re-generate.
4134
4135 * gdbarch.sh (read): Delete "print_p" and "description", add
4136 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4137 Delete references to print_p.
4138 (TARGET_ARCHITECTURE): Delete print predicate.
4139 * gdbarch.c: Re-generate.
4140
4141 * gdbarch.sh: Check that multi-arch methods do not provide a
4142 macro.
4143 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4144 (print_registers_info, print_float_info, print_vector_info)
4145 (adjust_breakpoint_address, remote_translate_xfer_address)
4146 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4147 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4148 name from the multi-arch definition.
4149
4150 2004-06-20 Andrew Cagney <cagney@gnu.org>
4151
4152 * gdbarch.sh: Sort by the function, instead of macro name.
4153 * gdbarch.c: Re-generate.
4154
4155 2004-06-20 Andrew Cagney <cagney@gnu.org>
4156
4157 * gdbarch.sh: Use the function, instead of macro name in
4158 errors and the log file.
4159 (return_value): Remove stray ":" in spec.
4160
4161 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4162 * gdbarch.h, gdbarch.c: Re-generate.
4163 * Makefile.in (arch-utils.o): Update dependencies.
4164 * values.c (using_struct_return): Move code calling
4165 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4166 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4167 to legacy_return_value, simplify.
4168 * infcmd.c (print_return_value): Move code calling
4169 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4170 to legacy_return_value, simplify.
4171 * infcall.c (call_function_by_hand): Move code calling
4172 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4173 * arch-utils.c: Update copyright. Include "gdbcore.h".
4174 (legacy_return_value): New function.
4175 * arch-utils.h: Update copyright.
4176 (legacy_return_value): Declare.
4177
4178 2004-06-20 Andrew Cagney <cagney@gnu.org>
4179
4180 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4181 * gdbarch.h, gdbarch.c: Re-generate.
4182 * values.c (using_struct_return): Update call.
4183 * mcore-tdep.c: Update comment.
4184 * infcall.c (call_function_by_hand): Update comment.
4185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4186 * arch-utils.h (always_use_struct_convention): Update.
4187 * v850-tdep.c (v850_gdbarch_init): Update.
4188 * sh64-tdep.c (sh64_gdbarch_init): Update.
4189 * sh-tdep.c (sh_gdbarch_init): Update.
4190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4191 * mips-tdep.c (mips_gdbarch_init): Update.
4192 * mcore-tdep.c (mcore_gdbarch_init): Update.
4193 * m32r-tdep.c (m32r_gdbarch_init): Update.
4194 * ia64-tdep.c (ia64_gdbarch_init): Update.
4195 * h8300-tdep.c (h8300_gdbarch_init): Update.
4196 * frv-tdep.c (frv_gdbarch_init): Update.
4197 * cris-tdep.c (cris_gdbarch_init): Update.
4198 * arm-tdep.c (arm_gdbarch_init): Update.
4199 * alpha-tdep.c (alpha_gdbarch_init): Update.
4200
4201 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4202
4203 * PROBLEMS: Add more specific information, and a work-around,
4204 for PR gdb/1458.
4205
4206 2004-06-18 Andrew Cagney <cagney@gnu.org>
4207
4208 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4209 * gdbarch.h, gdbarch.c: Re-generate.
4210 * ada-lang.c (ada_finish_decode_line_1): Update.
4211 * infrun.c (handle_inferior_event): Update.
4212 * infcall.c (find_function_addr): Update.
4213 * linespec.c (minsym_found): Update.
4214 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4215 Update.
4216 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4217 * cli/cli-cmds.c (disassemble_command): Update.
4218 * vax-tdep.c (vax_gdbarch_init): Update.
4219
4220 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4221
4222 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4223
4224 2004-06-17 Andrew Cagney <cagney@gnu.org>
4225
4226 GDB 6.1.1 released from the GDB 6.1 branch.
4227 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4228 * PROBLEMS: Ditto.
4229
4230 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4231
4232 PR gdb/1658
4233 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4234 operation as a uleb128. Found by Michael Coulter.
4235
4236 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4237
4238 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4239 make it non-static.
4240 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4241 to ada-lang.h; this is needed to be able to implement the kill command
4242 in multi-task mode.
4243 (task_ptid): Ditto.
4244 (task_entry): Ditto.
4245 (task_list): Ditto.
4246 (ada_build_task_list): Ditto.
4247
4248 * ada-lang.c: Conditionalize routines and data structures related
4249 to breakpoints, exceptions, completion, and symbol caching on
4250 GNAT_GDB, since these are not yet used in the submitted public sources.
4251 (ada_main_name): Editorial: Move definition out of exception-related
4252 code.
4253
4254 2004-06-15 Andrew Cagney <cagney@gnu.org>
4255
4256 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4257 deprecated_pc_in_call_dummy.
4258
4259 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4260
4261 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4262 bfd_get_section_size_before_reloc or _raw_size.
4263 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4264 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4265 (dwarf2_read_section): Likewise.
4266 * elfread.c (elf_locate_sections): Likewise.
4267 * gcore.c (derive_heap_segment): Likewise.
4268 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4269 * remote-e7000.c (e7000_load): Likewise.
4270 * remote-m32r-sdi.c (m32r_load): Likewise.
4271 * remote-mips.c (mips_load_srec): Likewise.
4272 (pmon_load_fast): Likewise.
4273 * remote.c (compare_sections_command): Likewise.
4274 * symfile.c (add_section_size_callback): Likewise.
4275 (load_section_callback): Likewise.
4276 (pc_in_unmapped_range): Likewise.
4277 (pc_in_mapped_range): Likewise.
4278 (sections_overlap): Likewise.
4279 (list_overlays_command): Likewise.
4280 (simple_overlay_update_1): Likewise.
4281 (simple_overlay_update): Likewise.
4282 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4283 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4284
4285 2004-06-14 Randolph Chung <tausq@debian.org>
4286
4287 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4288 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4289 static.
4290 (hppa_hpux_inferior_created): New function.
4291 (hppa_hpux_init_abi): Register observer.
4292 * symfile.c (hp_cxx_exception_support_initialized)
4293 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4294 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4295
4296 2004-06-14 Randolph Chung <tausq@debian.org>
4297
4298 * MAINTAINERS (Write After Approval): Alphabetize my entry
4299 correctly.
4300
4301 2004-06-14 Andrew Cagney <cagney@gnu.org>
4302
4303 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4304 testsuite maintainer.
4305
4306 2004-06-13 Andrew Cagney <cagney@gnu.org>
4307
4308 * infcmd.c (print_return_value): Fix logic, allow
4309 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4310
4311 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4312 defining any macros.
4313 * gdbarch.h: Re-generate.
4314
4315 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4316 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4317 * gdbarch.h: Re-generate.
4318
4319 * values.c (generic_use_struct_convention): Don't check gcc_p.
4320
4321 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4322 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4323 * gdbarch.h, gdbarch.c: Regenerate.
4324 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4325 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4327 deprecated_max_register_raw_size and
4328 deprecated_max_register_virtual_size.
4329 * v850-tdep.c (v850_gdbarch_init): Ditto.
4330 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4332 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4333 * cris-tdep.c (cris_gdbarch_init): Ditto.
4334
4335 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4336 * gdbarch.h, gdbarch.c: Re-generate.
4337 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4338 (m68hc11_use_struct_convention): Delete function.
4339 (m68hc11_extract_struct_value_address): Delete function.
4340 (m68hc11_return_value): New function.
4341 (m68hc11_gdbarch_init): Instead of store_return_value,
4342 extract_return_value, return_value_on_stack,
4343 deprecated_extract_struct_value_address and use_struct_convention,
4344 set return_value.
4345 * values.c (using_struct_return): Do not call
4346 RETURN_VALUE_ON_STACK.
4347 * arch-utils.h (generic_return_value_on_stack_not): Delete
4348 declaration.
4349 * arch-utils.c (generic_return_value_on_stack_not): Delete
4350 function.
4351
4352 2004-06-12 Andrew Cagney <cagney@gnu.org>
4353
4354 * values.c (register_value_being_returned): Delete function.
4355 * infcmd.c (legacy_return_value): Delete function.
4356 * infcall.c (call_function_by_hand): Inline
4357 "register_value_being_returned", simplify.
4358 * values.c (using_struct_return): Update comment, refer to
4359 print_return_value instead of register_value_being_returned.
4360 * infcmd.c (print_return_value): Inline calls to
4361 register_value_being_returned and legacy_return_value. Simplify.
4362
4363 2004-06-11 Randolph Chung <tausq@debian.org>
4364
4365 * somread.c (som_symtab_read): Exclude gcc local symbols.
4366
4367 2004-06-11 Randolph Chung <tausq@debian.org>
4368
4369 * infrun.c (handle_inferior_event): Handle the case when a
4370 trampoline ends up in the runtime resolver, and if the trampoline
4371 has no name. Rearrange the code so that all the trampoline
4372 processing happens before other step-out-of-range handling.
4373
4374 2004-06-11 Martin Hunt <hunt@redhat.com>
4375
4376 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4377 has no fpu.
4378
4379 2004-06-10 Andrew Cagney <cagney@gnu.org>
4380
4381 * blockframe.c (legacy_inside_entry_func): Delete.
4382 (legacy_frame_chain_valid): Inline call to
4383 legacy_inside_entry_func, simplify.
4384
4385 2004-06-10 Bob Rossi <bob@brasko.net>
4386
4387 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4388 * dwarf2read.c (partial_die_info): Add dirname field.
4389 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4390 (read_partial_die): Save away DW_AT_comp_dir.
4391 * defs.h (symtab_to_filename): Removed.
4392 * source.c (find_and_open_source): Added.
4393 (open_source_file): Just calls find_and_open_source.
4394 (symtab_to_filename): Removed.
4395 (symtab_to_fullname, psymtab_to_fullname): Added.
4396 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4397 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4398 symtab_to_filename.
4399 * symtab.h (partial_symtab): Add dirname field.
4400 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4401 (mi_cmd_file_list_exec_source_file): Call new function
4402 symtab_to_fullname to find fullname.
4403 (mi_cmd_file_list_exec_source_files): Added.
4404 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4405 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4406
4407 2004-06-10 Andrew Cagney <cagney@gnu.org>
4408
4409 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4410 to generic_use_struct_convention, the default value.
4411
4412 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4413 of abort.
4414
4415 * ns32k-tdep.c (ns32k_push_arguments): New function.
4416 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4417 * infcall.c (call_function_by_hand): Call error instead of
4418 legacy_push_arguments.
4419 * value.h (legacy_push_arguments): Delete declaration.
4420 * valops.c (legacy_push_arguments): Delete function.
4421 (value_push): Delete function.
4422
4423 2004-06-10 Brian Ford <ford@vss.fsi.com>
4424
4425 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4426 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4427 info.
4428 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4429
4430 2004-06-10 Andrew Cagney <cagney@gnu.org>
4431
4432 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4433 * gdbarch.h, gdbarch.c: Re-generate.
4434 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4435 parameters.
4436 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4437 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4438 deprecated_pc_in_call_dummy instead of
4439 DEPRECATED_PC_IN_CALL_DUMMY.
4440 (arm_skip_prologue): Ditto.
4441 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4442 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4443 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4444 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4445 Ditto.
4446 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4447 (sh64_init_extra_frame_info, sh64_get_saved_register)
4448 (sh64_pop_frame): Ditto.
4449 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4450 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4451 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4452 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4453 (h8300_pop_frame): Ditto.
4454 * blockframe.c (legacy_inside_entry_func)
4455 (legacy_frame_chain_valid): Ditto.
4456 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4457 to deprecated_pc_in_call_dummy.
4458
4459 2004-06-09 Andrew Cagney <cagney@gnu.org>
4460
4461 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4462 provide a default value.
4463 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4464 * gdbarch.h, gdbarch.c: Re-generate.
4465 * arch-utils.c (generic_convert_register_p): Rename
4466 legacy_convert_register_p
4467 (legacy_register_to_value, legacy_value_to_register): Delete
4468 functions.
4469 * arch-utils.h (generic_convert_register_p): Rename
4470 legacy_convert_register_p.
4471 (legacy_register_to_value, legacy_value_to_register): Delete
4472 declarations.
4473
4474 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4475 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4476 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4477 * gdbarch.h, gdbarch.c: Re-generate.
4478 * infcmd.c (default_print_registers_info): Simplify.
4479 * findvar.c (value_of_register): Simplify.
4480 * mi/mi-main.c (get_register): Simplify.
4481 * arch-utils.c (legacy_convert_register_p): Always return 0.
4482 (legacy_register_to_value, legacy_value_to_register): Always call
4483 internal_error.
4484
4485 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4486 #ifdef CLEAR_INSN_CACHE code.
4487 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4488 Delete #ifdef CLEAR_DEFERRED_STORES code.
4489
4490 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4491
4492 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4493 copyright.
4494 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4495
4496 * config/mips/mipsv4.mh: Delete file.
4497
4498 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4499 unreferenced macro.
4500 (hpread_adjust_stack_address): Delete declaration.
4501
4502 2004-06-08 Andrew Cagney <cagney@gnu.org>
4503
4504 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4505 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4506 PTRACE_ATTACH / PTRACE_DETACH available call error.
4507 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4508 * infttrace.c (update_thread_state_after_attach, attach, detach):
4509 Remove #ifdef wrappers.
4510 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4511 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4512 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4513 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4514 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4515 * config/nm-linux.h (ATTACH_DETACH): Delete.
4516 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4517 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4518 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4519 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4520 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4521
4522 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4523
4524 * configure.in: Set $configdir to the right OS specific value.
4525 Use value when setting $tcldir and $tkdir.
4526 * configure: Regenerate.
4527
4528 2004-06-06 Paul Brook <paul@codesourcery.com>
4529
4530 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4531 records.
4532
4533 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4534
4535 * ada-lang.c (lookup_symbol_in_language): New function to allow
4536 re-use of another language's symbol lookup code. (Placed here
4537 temporarily while Ada support is being integrated into the public
4538 tree).
4539 (restore_language): New auxiliary function for
4540 lookup_symbol_in_language.
4541 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4542 temporarily while Ada support is being integrated into the public
4543 tree).
4544
4545 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4546
4547 * Makefile.in (check//%): New.
4548
4549 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4550 (mn10300_store_return_value): Rewrite.
4551 (mn10300_type_align): New.
4552 (mn10300_use_struct_convention): Rewrite.
4553 (mn10300_return_value): New, using all of the above.
4554 (mn10300_pop_frame_regular): Add saved_regs_size.
4555 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4556
4557 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4558 regs if PC is on movm.
4559
4560 2004-06-07 Jim Blandy <jimb@redhat.com>
4561
4562 Add native Linux support for the PowerPC E500.
4563 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4564 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4565 all architectures except the E500.
4566 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4567 #definitions.
4568 (struct gdb_evrregset_t): New type.
4569 (have_ptrace_getsetevrregs): New variable.
4570 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4571 fetch_spe_registers): New functions.
4572 (fetch_register): Call fetch_spe_register as appropriate.
4573 Assert that we're only passed raw register numbers.
4574 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4575 Don't fetch gprs if they're pseudoregisters.
4576 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4577 store_spe_registers): New functions.
4578 (store_register): Call store_spe_register as appropriate.
4579 Assert that we're only passed raw register numbers.
4580 (store_ppc_registers): Call store_spe_registers as appropriate.
4581 Don't store gprs if they're pseudoregisters.
4582
4583 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4584
4585 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4586 struct if one exists, even if we are dealing with a zombie thread.
4587
4588 2004-06-07 Andrew Cagney <cagney@gnu.org>
4589
4590 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4591 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4592 Rename PC_REQUIRES_RUN_BEFORE_USE.
4593 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4594 #ifdef.
4595
4596 2004-06-07 Randolph Chung <tausq@debian.org>
4597
4598 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4599 unwinding after sp has been saved to the stack but before the end
4600 of the prologue, and after the fp has been modified but before it has
4601 been saved to the stack.
4602 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4603 Remove superfluous definitions.
4604 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4605
4606 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4607
4608 Committed by Randolph Chung.
4609 * hppa-linux-nat.c: Include the correct version of the header file
4610 depending on the kernel version.
4611
4612 2004-06-06 Randolph Chung <tausq@debian.org>
4613
4614 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4615 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4616
4617 2004-06-06 Randolph Chung <tausq@debian.org>
4618
4619 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4620 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4621 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4622 * hppa-tdep.c (hppa_symbol_address): New function definition.
4623 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4624
4625 2004-06-06 Randolph Chung <tausq@debian.org>
4626
4627 * hppa-tdep.h (struct value): Forward declaration.
4628 (gdbarch_tdep): Define tdep find_global_pointer method.
4629 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4630 associated with the function we are trying to call, and write it
4631 to the gp register.
4632 (hppa32_convert_from_funct_ptr_addr): New function.
4633 (hppa_find_global_pointer): New function.
4634 (hppa_gdbarch_init): Set default find_global_pointer method; set
4635 convert_from_func_ptr_addr method.
4636 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4637 (hppa_linux_init_abi): Set find_global_pointer method.
4638 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4639
4640 2004-06-06 Randolph Chung <tausq@debian.org>
4641
4642 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4643 to struct value *function.
4644 * gdbarch.c: Regenerate.
4645 * gdbarch.h: Likewise.
4646 * infcall.c (call_function_by_hand): Pass entire function value
4647 to push_dummy_call.
4648
4649 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4650 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4651 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4652 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4653 * arm-tdep.c (arm_push_dummy_call): Likewise.
4654 * avr-tdep.c (avr_push_dummy_call): Likewise.
4655 * cris-tdep.c (cris_push_dummy_call): Likewise.
4656 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4657 * frv-tdep.c (frv_push_dummy_call): Likewise.
4658 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4659 * hppa-tdep.c (hppa32_push_dummy_call)
4660 (hppa64_push_dummy_call): Likewise.
4661 * i386-tdep.c (i386_push_dummy_call): Likewise.
4662 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4663 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4664 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4665 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4666 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4667 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4668 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4669 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4670 (ppc64_sysv_abi_push_dummy_call): Likewise.
4671 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4672 (ppc64_sysv_abi_push_dummy_call): Likewise.
4673 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4674 * s390-tdep.c (s390_push_dummy_call): Likewise.
4675 * sh-tdep.c (sh_push_dummy_call_fpu)
4676 (sh_push_dummy_call_nofpu): Likewise.
4677 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4678 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4679 * vax-tdep.c (vax_push_dummy_call): Likewise.
4680
4681 2004-06-04 Jim Blandy <jimb@redhat.com>
4682
4683 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4684 gdbarch argument to register_size.
4685
4686 * rs6000-tdep.c (rs6000_store_return_value): Use
4687 regcache_cooked_write_part instead of
4688 deprecated_write_register_bytes.
4689 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4690 not gdbarch_deprecated_store_return_value.
4691
4692 * ppc-linux-nat.c (store_register, fetch_register): Remove
4693 incorrect assertions. Simplify and generalize handling of
4694 transfers whose sizes are not multiples of, or less than, sizeof
4695 (PTRACE_XFER_TYPE).
4696
4697 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4698
4699 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4700 as a new thread event.
4701 * thread-db.c (thread_get_info_callback): If the thread is a
4702 zombie, return TD_THR_ZOMBIE.
4703 (thread_from_lwp): If thread_get_info_callback returns
4704 TD_THR_ZOMBIE, check if the thread is still on the thread list
4705 and return a -1 ptid if not found.
4706 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4707 change the status to TARGET_WAITKIND_SPURIOUS.
4708
4709 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4710
4711 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4712 double values in little endian mode.
4713
4714 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4715
4716 Committed by Andrew Cagney.
4717 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4718 after last enum constant to avoid error from IBM C
4719 compiler.
4720
4721 2004-06-02 Jim Blandy <jimb@redhat.com>
4722
4723 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4724 to 'message', and make it local to the lone block that uses it.
4725
4726 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4727
4728 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4729
4730 * ada-exp.y: Update copyright notice.
4731 Include block.h.
4732
4733 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4734 SPECIAL_VARIABLE and unify the treatment of these cases.
4735
4736 (write_attribute_call0): Remove.
4737 (write_attribute_call1): Remove.
4738 (write_attribute_calln): Remove.
4739 (save_qualifier): Add missing semicolon.
4740
4741 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4742 temporarily disabled to allow compilation with FSF head version.
4743
4744 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4745 use individual operators (OP_*) for all attributes.
4746 (exp syntax): Use write_int.
4747 Handle STRING literals with OP_STRING.
4748 (variable syntax): Add limit parameter to calls to
4749 write_object_renaming.
4750
4751 (temp_parse_space): New definition to hold entities that need
4752 only live until the next call to ada_parse.
4753 (string_to_operator): Rename fields of ada_opname_table entries.
4754
4755 (write_var_from_sym): Record block.
4756 (write_var_from_name): Minor reformatting.
4757 Make sure saved name is properly encoded in the case of multiple
4758 matches, and set its language to Ada.
4759 Update comment.
4760 Modify to indicate unresolved name as symbol in the UNRESOLVED
4761 namespace, allocated in temp_parse_space.
4762 (write_int): New function.
4763
4764 (write_object_renaming): Add max_depth parameter to limit
4765 chains of object renamings.
4766 Handle case where root of renaming expression is itself a renaming.
4767 Use temp_parse_space for temporary name buffer.
4768 Handle renamings to dereferenced pointers (___XEXA suffices).
4769
4770 (ada_parse, yyerror, string_to_operator,
4771 write_var_from_sym, write_var_from_name, write_attribute_call0,
4772 write_attribute_call1, write_attribute_calln,
4773 write_object_renaming): Protoize.
4774
4775 (_initialize_ada_exp): New function.
4776
4777 * ada-lang.c: Update copyright notice.
4778 General terminology change to conform to GNAT compiler usage:
4779 mangle => encode, demangle => decode
4780 Include gdb_obstack.h.
4781 Include gdb_regex.h
4782 Include frame.h
4783 Include hashtab.h
4784 Include completer.h
4785 Include gdb_stat.h
4786 Include block.h
4787 Include infcall.h
4788
4789 (ADA_RETAIN_DOTS): Make sure this is defined.
4790 (TRUNCATION_TOWARDS_ZERO): Define.
4791 (struct string_vector): Define.
4792 (unresolved_names): Remove definition.
4793 (xnew_string_vector): New function.
4794 (string_vector_append): New function.
4795 (extract_string): Make static.
4796 (ada_unqualified_name): New function.
4797 (add_angle_brackets): New function.
4798 (function_name_from_pc): New function.
4799 (place_on_stack): Rename to ensure_lval.
4800
4801 (ensure_lval): Renamed from place_on_stack.
4802 Make identity on lvals.
4803 Update comment.
4804 (is_nonfunction): New interface.
4805 Only symbols in LOC_CONST class can be enumerals.
4806 (fill_in_ada_prototype): Remove; now independent of language.
4807 (add_defn_to_vec): Add obstack and symtab arguments.
4808 Use obstack to hold collected definitions.
4809 (num_defns_collected): New function.
4810 (defns_collected): New function.
4811 (ada_resolve_subexp): Rename to resolve_subexp.
4812 (resolve_subexp): Renamed from ada_resolve_subexp.
4813 (ada_op_name): Return non-const result.
4814 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4815 other purposes.
4816
4817 (to_fixed_array_type): Add declaration.
4818 (coerce_unspec_val_to_type): Remove offset parameter.
4819 (find_sal_from_funcs_and_line): New interface.
4820 (find_line_in_linetable): Ditto.
4821
4822 (all_sals_for_line): Rename to ada_sals_for_line and make
4823 global.
4824 Add new parameter. When set, do not ask the user to choose the
4825 instance, but use the first one found instead.
4826 Use given line number in returned sals.
4827 Fix comment.
4828 Skip the prologue if funfirstline is set.
4829 Correct for memory leak when 0 lines found.
4830
4831 (value_pos_atr): Use pos_atr.
4832 (pos_atr): New function.
4833 (standard_lookup): Add block parameter.
4834
4835 (makeTimeStart): Remove declaration and uses.
4836 (makeTimeStop): Remove declaration and uses.
4837
4838 (ada_completer_word_break_characters): Allow for VMS.
4839 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4840 (raise_sym_name): New constant.
4841 (raise_unhandled_sym_name): New constant.
4842 (raise_assert_sym_name): New constant.
4843 (process_raise_exception_name): New constant.
4844 (longest_exception_template): New constant.
4845 (warning_limit): New variable to limit warnings during expression
4846 evaluation.
4847 (warnings_issued): New variable to keep track of warnings issued.
4848 (known_runtime_file_name_patterns): New constant.
4849 (known_auxiliary_function_name_patterns): New constant.
4850 (symbol_list_obstack): New variable.
4851
4852 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4853 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4854 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4855 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4856 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4857 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4858 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4859 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4860 and strcmp.
4861
4862 (ada_get_field_index): New function.
4863 (lim_warning): New function.
4864 (ada_translate_error_message): New function.
4865 (MAX_OF_SIZE): New function.
4866 (MIN_OF_SIZE): New function.
4867 (UMAX_OF_SIZE): New function.
4868 (UMIN_OF_SIZE): New function.
4869 (discrete_type_high_bound): New function.
4870 (discrete_type_low_bound): New function.
4871 (base_type): New function.
4872 (do_command): Remove.
4873
4874 (ada_update_initial_language): Use language_ada, not language_unknown.
4875 (ada_encode): Renamed from ada_mangle.
4876 Obey ADA_RETAIN_DOTS.
4877 (ada_decode): Renamed from ada_demangle.
4878 Update coding conventions.
4879 (decoded_names_store): New hash table.
4880 (ada_decode_symbol): New function.
4881 (ada_la_decode): New function.
4882
4883 (modify_general_field): Correct computations of offset and bit
4884 position.
4885 (desc_base_type): Handle ref types, too.
4886 (ada_is_direct_array_type): New function.
4887
4888 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4889 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4890 (ada_is_bogus_array_descriptor,ada_type_of_array,
4891 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4892 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4893 ada_is_array_descriptor_type.
4894
4895 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4896 (ada_is_packed_array_type): Handle pointers or
4897 references to packed arrays as well.
4898 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4899 (decode_packed_array_type): Search for the packed array type
4900 symbol in the currently selected block and associated
4901 superblocks too.
4902 Use lookup_symbol again.
4903
4904 (decode_packed_array): Handle pointers and references.
4905 Update call to coerce_unspec_val_to_type.
4906 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4907 (ada_value_primitive_packed_val): Improve comment.
4908
4909 (ada_index_type): Substitute int type for "undefined".
4910 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4911 ada_array_langth, ada_is_string_type): Use renamed
4912 ada_is_simple_array_type.
4913 (empty_array): New function.
4914
4915 (ada_resolve): Rename to resolve.
4916 (resolve): Make static.
4917 Call renamed resolve_subexp.
4918 Update comment.
4919 (ada_resolve_subexp): Rename to resolve_subexp.
4920 (resolve_subexp): Update comment.
4921 Decomment disabled code.
4922 Add LOC_COMPUTED* cases.
4923 Modify to use temporary struct symbols (marked as being in
4924 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4925 OP_UNRESOLVED_VALUE.
4926 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4927 Add OP_STRING case.
4928 Remove OP_ARRAY.
4929 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4930 Use new ada_lookup_symbol_list interface.
4931 Use new ada_resolve_function interface.
4932 Remove OP_TYPE case.
4933
4934 (ada_args_match): Idiot proof against null actuals.
4935 Use intermediate variables to clarify.
4936 (ada_resolve_function): Update comment and interface.
4937 (mangled_ordered_before): Rename to encoded_ordered_before and
4938 update comment.
4939 (sort_choices): Update comment and interface.
4940 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4941 (user_select_syms): New interface.
4942 Use new sort_choices interface.
4943 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4944 (possible_user_operator_p): Idiot-proof against null values.
4945 (ada_simple_renamed_entity): Don't make cleanup; rely on
4946 caller to free result string.
4947 Remove const from return type.
4948 (make_array_descriptor): Rename uses of place_on_stack to
4949 ensure_lval.
4950 Make sure that arrays are on stack.
4951
4952 (HASH_SIZE): Define.
4953 (struct cache_entry): Define.
4954 (cache_space): Define.
4955 (cache): Define.
4956 (clear_ada_sym_cache): New function.
4957 (find_entry): New function.
4958 (lookup_cached_symbol): New function.
4959 (defn_vector_size): Define.
4960 (cache_symbol): New function.
4961 (defn_symbols): Remove.
4962
4963 (standard_lookup): Use lookup_symbol_in_language to get effect of
4964 C lookup.
4965 Cache results.
4966
4967 (symbol_completion_match): New function.
4968 (symbol_completion_add): New function.
4969 (ada_make_symbol_completion_list): New function.
4970
4971 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4972 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4973 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4974 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4975
4976 (ada_lookup_simple_minsym): New function.
4977 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4978
4979 (add_symbols_from_enclosing_procs): New interface.
4980 Conditionalize more helpfully.
4981 Don't bother if program isn't running.
4982 Use new interface to get_frame_block.
4983 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4984
4985 (remove_extra_symbols): New interface.
4986 (xget_renaming_scope): New function.
4987 (is_package_name): New function.
4988 (renaming_is_visible): New function.
4989 (remove_out_of_scope_renamings): New function.
4990
4991 (ada_lookup_symbol_list): New interface.
4992 Properly reinitialize the symbol list obstack.
4993 Don't call add_symbols_from_enclosing_procs if we start from a
4994 static or global block.
4995 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4996 add_symbols_from_enclosing_procs.
4997 Add symtab data to cached entries.
4998 Handle symbols prefixed with
4999 "standard__" specially; strip prefix and don't look in local symbols.
5000 Do not include out of scope renaming symbols in list of
5001 symbols returned.
5002 Add const to block parameter.
5003 Move check for non-local, non-global symbols earlier.
5004 Remove timing stuff.
5005 (ada_lookup_symbol): New interface.
5006 Find symtab as well.
5007 (ada_lookup_symbol_nonlocal): New function.
5008
5009 (is_name_suffix): Enhance suffix detection to recognize
5010 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5011 (is_dot_digits_suffix): New function.
5012 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5013
5014 (ada_add_block_symbols): New interface. Use obstack to return results
5015 in a vector of struct ada_symbol_infos. Add symtab argument.
5016 Use new interface to add_defn_to_vec.
5017 Remove calls to fill_in_ada_prototype.
5018 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5019
5020 (ada_finish_decode_line_1): Add const qualification to local to fix
5021 warning.
5022 Start looking in static block for functions to avoid attempts
5023 to search frame chain for up-level variables.
5024 Adapt to new ada_sals_for_line interface.
5025 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5026 Handle quoting of the function name inside the spec string.
5027 Skip prologue when funfirstline is set and update the
5028 function documentation to that effect.
5029
5030 (debug_print_lines, debug_print_block, debug_print_blocks,
5031 debug_print_symtab): Remove.
5032
5033 (ada_main_name): New function.
5034 (ada_exception_breakpoint_type): New function.
5035 (is_known_support_routine): New function.
5036 (ada_find_printable_frame): Renamed from find_printable_frame and made
5037 global.
5038 Remove level parameter.
5039 Use new interface to select_frame.
5040
5041 (begin_command): Remove.
5042 (ada_adjust_exception_stop): New function.
5043 (ada_print_exception_stop): New function.
5044 (exception_name_from_cond): New function.
5045 (ada_report_exception_break): Replace disabled code with
5046 conditionalization on GNAT_GDB.
5047 Get the exception name from the condition string.
5048 Remove and move functionality into new functions
5049 ada_print_exception_breakpoint_task and
5050 ada_print_exception_breakpoint_nontask.
5051 (error_breakpoint_runtime_sym_not_found): New function.
5052 (is_runtime_sym_defined): New function.
5053 (ada_breakpoint_rewrite): Uncomment suppressed code.
5054 Use symbolic error-message and runtime-symbol names.
5055 Surround runtime symbol names in quotes.
5056 Allow non-specific breakpoints on exceptions and assertions before
5057 program starts.
5058
5059 (ada_is_tagged_type): Add parameter.
5060 (ada_is_tag_type): New function.
5061 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5062 (ada_variant_discrim_type): Ditto.
5063 (value_tag_from_contents_and_address): New function.
5064 (type_from_tag): New function.
5065 (struct tag_args): New structure used to communicate with
5066 ada_tag_name_1.
5067 (ada_tag_name_1): New function.
5068 (ada_tag_name): New function.
5069
5070 (ada_scan_number): Update comment.
5071 (find_struct_field): New function.
5072 (ada_search_struct_field): Make static.
5073 (ada_value_struct_elt): New version that returns references when
5074 given pointers or references to structs.
5075 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5076 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5077 interface.
5078 (ada_value_ind): Use new ada_to_fixed_value interface.
5079 (ada_coerce_ref): Ditto.
5080 (field_offset): Remove.
5081
5082 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5083 (ada_find_renaming_symbol): New function.
5084 (ada_prefer_type): Prefer named types over unnamed ones.
5085 (variant_field_index): New function.
5086 (contains_variant_part): Removed: subsumed by variant_field_index.
5087 (ada_template_to_fixed_record_type): New function, mostly from
5088 template_to_fixed_record_type.
5089 (template_to_fixed_record_type):
5090 Do not scan the type fields beyond the last one; prevents a
5091 potential SEGV.
5092 Handle case where variant field is listed BEFORE discriminant it
5093 depends on.
5094 Fix calculation of record length when bit length is
5095 not evenly divisible by char length.
5096 Move code to ada_template_to_fixed_record_type and call it.
5097
5098 (template_to_static_fixed_type): Revise comment.
5099 Modify to work on ordinary record types as well as templates,
5100 so as to handle fields that use ___XVE or ___XVU encodings.
5101 (to_record_with_fixed_variant_part): Fill out comment.
5102 Initialize C++ stuff in right type.
5103 Allow case where DVAL is null.
5104 Handle case where variant field is not last.
5105 Fix typo concerning record length.
5106 (to_fixed_record_type): Decomment disabled code.
5107 (to_fixed_record_type): Use variant_field_index instead of
5108 contains_variant_part.
5109 (to_fixed_variant_branch_type): Ditto.
5110 (to_fixed_array_type): Decomment disabled code.
5111 (ada_to_fixed_type): Convert tagged types to the specific type.
5112 Deactivate the size-check for array types in order to avoid
5113 some false size alarms.
5114 (to_static_fixed_type): Decomment disabled code.
5115 Modify to call template_to_static_fixed_type
5116 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5117 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5118 Remove valaddr argument, as it is never really used.
5119 (ada_to_fixed_value): Change interface to act on single struct value*
5120 operand.
5121 (adjust_pc_past_prologue): New function.
5122 (ada_attribute_name): Modify to take enum exp_opcode argument.
5123
5124 (ada_enum_name): Recognize new homonym-distinguishing convention.
5125 Adjust local variable's type to remove compiler warning.
5126 Fix a small problem in the part that unqualifies the enumeration name.
5127 (ada_value_binop): New function.
5128 (ada_value_equal): New function.
5129
5130 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5131 Don't give error message when not doing normal evaluation
5132 and a tagged type doesn't seem to contain a structure member.
5133 Give error message for packed arrays.
5134 For indexing arrays, handle pointers to packed arrays correctly.
5135 Handle case of 'first and 'last attributes of bare integral type
5136 without encoded subtype info.
5137 Remove some unnecessary casts.
5138 Fix uninitialized value of type in computing 'first, 'last, or 'length
5139 of array object.
5140 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5141 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5142 calls.
5143 Attributes are now exp_opcode values.
5144 Correct treatment of 'modulus.
5145 Better error message for taking 'length of wrong kind of type;
5146 improve comment.
5147 Change EVAL_NORMAL to noside for consistency.
5148 Use ada_value_binop for DIV, MOD, REM.
5149 Make special case out of array of length 0, since an argument
5150 of 0 upsets some platforms' malloc.
5151 Use OP_STRING instead of OP_ARRAY.
5152 For slice, add check that we have an array type before extracting
5153 a slice out of it. Avoids a SEGV.
5154 When evaluating an array slice, if the array type is a reference to
5155 an aligner type, then replace the aligner type by the actual type.
5156 Decomment disabled code.
5157 Remove some dead code.
5158 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5159 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5160 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5161 and UNOP_MBR to UNOP_IN_RANGE.
5162 If an array type has a parallel ___XVE type, then use it.
5163 Turn arrays into pointers for lvalue arrays.
5164 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5165 bounds error and handle 0-length slices.
5166 Use lim_warning.
5167 When selecting fields, apply ada_to_fixed_value (because the fields
5168 might have ___XVU or ___XVE encodings even if not dynamic.)
5169 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5170 (ada_is_system_address_type): New function.
5171
5172 (get_var_value): Use new interface to ada_lookup_symbol_list.
5173 (get_int_var_value): New interface.
5174 (to_fixed_range_type): Allow unknown bound, with warning.
5175 (ada_is_modular_type): Decomment disabled code.
5176 (ADA_OPERATORS): New definition.
5177 (ada_operator_length): New function.
5178 (ada_expr_op_name): New function.
5179 (ada_forward_operator_length): New function.
5180 (ada_dump_subexp_body): New function.
5181 (ada_print_subexp): New function.
5182 (ada_exp_descriptor): New constant.
5183 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5184 (ada_language_defn): Add ada_exp_descriptor entry.
5185 Change ada_parse => parse.
5186 Add post-parser entry.
5187 Use ada-specific non-local symbol lookup.
5188 Don't use C-style arrays.
5189 String lower-bound is 1.
5190 Decomment disabled code.
5191 (parse): New function.
5192 New fields ada_translate_error_message, ada_lookup_symbol,
5193 ada_lookup_minimal_symbol.
5194
5195 * ada-lang.h: Update copyright dates.
5196 Replace the mangle/demangle terminology throughout by the
5197 more appropriate encode/decode one.
5198 Include breakpoint.h.
5199 Forward declare struct partial_symbol, struct block.
5200 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5201 (EXTRACT_ADDRESS): Remove.
5202 (EXTRACT_INT): Remove.
5203 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5204 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5205 (MAX_RENAMING_CHAIN_LENGTH): Define.
5206 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5207
5208 (enum task_states): Remove.
5209 ada_task_states: Remove.
5210 (fat_string): Remove.
5211 (struct entry_call): Remove.
5212 (struct task_fields): Remove.
5213 (struct task_entry): Remove.
5214
5215 (struct ada_symbol_info): Define.
5216 (enum ada_attribute): Remove.
5217 (enum ada_operator): Define.
5218
5219 (ada_get_field_index): Declare.
5220 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5221 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5222 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5223 (ada_lookup_symbol_list): New interface.
5224 (ada_decode_symbol): Declare.
5225 (ada_decode): Declare.
5226 (ada_lookup_symbol): New interface.
5227 (ada_update_initial_language): Declare.
5228 (ada_lookup_simple_minsym): Declare.
5229 (user_select_syms): New interface.
5230 (ada_sals_for_line): Declare.
5231 (ada_is_tagged_type): New interface.
5232 (ada_tag_name): Declare.
5233 (ada_lookup_struct_elt_type): Remove declaration.
5234 (ada_search_struct_field): Remove declaration.
5235 (ada_attribute_name): New interface.
5236 (ada_is_system_address_type): Declare.
5237 (ada_to_fixed_value): Remove declaration.
5238 (ada_template_to_fixed_record_type_1): Declare.
5239 (get_int_var_value): New interface.
5240 (ada_find_any_symbol): Declare.
5241 (ada_find_renaming_symbol): Declare.
5242 (ada_mangle): Rename to ada_encode.
5243 (ada_simple_renamed_entity): Remove const.
5244 (ada_main_name): Declare.
5245 (get_current_task): Rename to ada_get_current_task.
5246 (get_entry_number): Remove declaration.
5247 (ada_report_exception_break): Remove declaration.
5248 (ada_print_exception_breakpoint_nontask): Declare.
5249 (ada_print_exception_breakpoint_task): Declare.
5250 (ada_find_printable_frame): Declare.
5251
5252 * ada-lex.l: Update copyright notices.
5253 Use xmalloc and xfree instead of malloc and free.
5254 Use new interface to name_lookup.
5255 Use new interface to
5256 ada_mangle=>ada_encode.
5257 Redo handling of '$...' variable to parallel current treatment
5258 in c-exp.y.
5259 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5260 digit_to_int, strtoulst, processInt, processReal, processId,
5261 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5262 yywrap): Protoize.
5263
5264 (processInt): Use cast to remove harmless warning.
5265 (processReal): Modify to get rid of compiler warning on scan formats.
5266
5267 (processId): Replace xmalloc with obstack_alloc for name and remove
5268 call to ada_name_string_cleanup.
5269 Remove obsolete disabled code.
5270 (name_lookup): Ditto.
5271 New interface.
5272 Use obsavestring on temp_parse_space instead of savestring
5273 on name, and remove call to ada_name_string_cleanup.
5274 Free string returned from ada_simple_renamed_entity.
5275 Use new interface to ada_lookup_symbol_list.
5276 Decomment disabled code.
5277 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5278 not types.
5279 When a type name lookup succeeds as a result of
5280 lookup_primitive_typename, check for regular type entry that has not
5281 yet been read in.
5282 Limit length of chain of renamed symbols we are willing to follow.
5283 Do not break names beginning with "standard__" into segments.
5284 (block_lookup): Use new interface to ada_lookup_symbol_list.
5285
5286 * ada-typeprint.c: Update copyright notice.
5287 (demangled_type_name): Rename to decoded_type_name.
5288 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5289 (print_range_bound): Correct handling of negative
5290 bounds that make the index type looked unsigned under STABS.
5291 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5292 (print_range_type_named): Use the builtin int type if no type
5293 corresponding to the given type name could be found.
5294 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5295 Add some bullet-proofing.
5296 (print_variant_clauses): Allow for variant branches with ___XVU
5297 encodings that are not dynamic fields.
5298 Use new interface to ada_is_tagged_type.
5299 (print_record_type): Allow for fields with ___XVE encodings that
5300 are not dynamic fields.
5301 Use new interface to ada_is_tagged_type.
5302 (ada_print_type): ada_is_array_descriptor =>
5303 ada_is_array_descriptor_type.
5304
5305 * ada-valprint.c: Update copyright notice.
5306 Include gdb_string.h
5307 Include infcall.h
5308 (ui_memcpy): New function.
5309 (ada_print_floating): New function.
5310 (ada_print_str): Order arguments correctly.
5311 Correct handling of empty arrays and arrays of 0-length items.
5312 ada_is_array_descriptor => ada_is_array_descriptor_type
5313 Print values of type System.Address in hexadecimal format.
5314 Use ada_print_floating to print floating-point numbers in Ada format.
5315 Print class tag values with type names.
5316 No longer print the address of reference values. Avoids
5317 a potential confusion.
5318 (ada_value_print): Stop printing the object type for reference
5319 values, but preserve that behavior for access types. Avoids
5320 a potential confusion.
5321 Simplify one conditional expression, as the first part is now
5322 necessarily true.
5323 ada_is_array_descriptor => ada_is_array_descriptor_type
5324 Add check for arrays for null records, and print them by hand.
5325
5326 2004-06-01 Jim Blandy <jimb@redhat.com>
5327
5328 * ppc-tdep.h: Delete unused 'regoff' member.
5329 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5330
5331 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5332
5333 Fix PR symtab/1661.
5334 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5335 (hpread_read_struct_type): Likewise.
5336
5337 2004-06-01 Andrew Cagney <cagney@gnu.org>
5338
5339 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5340 instead of xasprintf.
5341 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5342 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5343 (mi_cmd_data_list_register_names)
5344 (mi_cmd_data_list_changed_registers)
5345 (mi_cmd_data_list_register_values)
5346 (get_register, mi_cmd_data_write_register_values)
5347 (mi_cmd_data_write_register_values)
5348 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5349 (mi_cmd_target_download, mi_cmd_target_select)
5350 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5351 (mi_execute_cli_command, mi_execute_async_cli_command)
5352 (mi_execute_async_cli_command): Ditto.
5353 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5354 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5355
5356 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5357 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5358 error_last_message instead of mi_error_last_message.
5359 * mi/mi-main.c (mi_error_last_message): Delete function.
5360
5361 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5362 "invalid number of columns" error. Delete redundant "out of
5363 memory" check.
5364
5365 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5366
5367 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5368 (gregset_t, fpregset_t): Remove typedefs.
5369 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5370 (REG_OFFSET): Rename argument.
5371 (i386bsd_r_reg_offset): Rename from reg_offset.
5372 (REG_ADDR): Remove macro.
5373 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5374 functions.
5375 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5376 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5377 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5378 instead of supply_gregset.
5379 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5380 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5381 instead of fill_gregset.
5382 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5383
5384 * i386bsd-nat.c: Don't include "gregset.h".
5385 (supply_gregset, fill_gregset): Make static.
5386 (supply_fpregset, fill_fpregset): Remove.
5387 * Makefile.in (i386bsd-nat.o): Update dependencies.
5388
5389 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5390
5391 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5392 "gdb_assert.h". Con't include "gregset.h".
5393 (fbsd_make_corefile_notes): Use regset-based core file support
5394 instead off fill_gregset and fill_fpregset.
5395 * Makefile.in (fbsd-proc.o): Update dependencies.
5396
5397 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5398 instructions.
5399 (m88k_frame_prev_register): Simplify code a bit.
5400
5401 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5402 (amd64_collect_fpregset): New function.
5403 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5404
5405 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5406
5407 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5408 (i386_collect_gregset): New function.
5409 (i386_supply_fpregset): Adjust comment.
5410 (i386_collect_fpregset): New function.
5411 (i386_regset_from_core_section): Use i386_collect_gregset and
5412 i386_collect_fpregset.
5413
5414 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5415 handle VALUEP being null.
5416
5417 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5418
5419 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5420
5421 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5422
5423 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5424 assembler in OpenBSD 3.5-current.
5425 (amd64obsd_sigcontext_addr): Likewise.
5426
5427 2004-05-28 Jim Blandy <jimb@redhat.com>
5428
5429 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5430 register set, so our regcache isn't declared "legacy" and our E500
5431 pseudoregister read and write functions aren't ignored.
5432 (rs6000_register_byte, rs6000_register_raw_size,
5433 rs6000_register_virtual_type, rs6000_register_convertible,
5434 rs6000_register_convert_to_virtual,
5435 rs6000_register_convert_to_raw): Deleted.
5436 (rs6000_register_type, rs6000_convert_register_p,
5437 rs6000_register_to_value, rs6000_value_to_register): New
5438 functions.
5439 (rs6000_gdbarch_init): Don't register
5440 gdbarch_deprecated_register_size,
5441 gdbarch_deprecated_register_bytes,
5442 gdbarch_deprecated_register_byte,
5443 gdbarch_deprecated_register_raw_size,
5444 gdbarch_deprecated_register_virtual_type,
5445 gdbarch_deprecated_register_convertible,
5446 gdbarch_deprecated_register_convert_to_virtual, or
5447 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5448 register gdbarch_register_type, gdbarch_convert_register_p,
5449 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5450
5451 2004-05-26 Jim Blandy <jimb@redhat.com>
5452
5453 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5454 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5455 functions, updated to match the register numberings used in GCC.
5456 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5457 rs6000_dwarf2_reg_to_regnum as register number conversions
5458 functions for STABS and Dwarf2.
5459
5460 2004-05-26 Randolph Chung <tausq@debian.org>
5461
5462 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5463 in header file.
5464
5465 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5466
5467 * NEWS: Document new "start" command.
5468
5469 2004-05-25 Randolph Chung <tausq@debian.org>
5470
5471 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5472 hppa-linux.
5473
5474 2004-05-25 Randolph Chung <tausq@debian.org>
5475
5476 * hppa-hpux-tdep.c (offsetof): Define.
5477 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5478 (hppa32_hpux_frame_base_before_sigtramp)
5479 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5480 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5481 (hppa64_hpux_frame_base_before_sigtramp)
5482 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5483 functions.
5484 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5485 (hppa_hpux_sigtramp_frame_unwind_cache)
5486 (hppa_hpux_sigtramp_frame_this_id)
5487 (hppa_hpux_sigtramp_frame_prev_register)
5488 (hppa_hpux_sigtramp_frame_unwind)
5489 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5490 (hppa_hpux_init_abi): Register sigtramp unwinder.
5491 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5492
5493 2004-05-25 Randolph Chung <tausq@debian.org>
5494
5495 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5496 and multiple stack unwinds.
5497 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5498
5499 2004-05-25 Andrew Cagney <cagney@gnu.org>
5500
5501 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5502 * symfile-mem.h: Delete file.
5503 * symfile-mem.c: Do not include "symfile-mem.h".
5504 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5505 "struct bfd_section". When an error do not bother returning NULL.
5506 (add_symbol_file_from_memory_command): Use "struct bfd" and
5507 "struct bfd_section".
5508 * Makefile.in (symfile_mem_h): Delete.
5509 (symfile-mem.o): Update dependencies.
5510
5511 2004-05-25 Nick Roberts <nickrob@gnu.org>
5512
5513 * gdb-mi.el: New file.
5514
5515 2004-05-25 Andrew Cagney <cagney@gnu.org>
5516
5517 * inftarg.c: Include "observer.h".
5518 (child_attach, child_create_inferior): Notify inferior_created.
5519 * corelow.c: Include "observer.h".
5520 (core_open): Notify inferior_created.
5521 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5522
5523 2004-05-25 Andrew Cagney <cagney@gnu.org>
5524
5525 * target.h (struct target_ops): Add from_tty to
5526 to_create_inferior.
5527 (target_create_inferior, find_default_create_inferior): Update.
5528 * infcmd.c (run_command): Update.
5529 * wince.c (child_create_inferior): Update.
5530 * win32-nat.c (child_create_inferior): Update.
5531 * uw-thread.c (uw_thread_create_inferior): Update.
5532 * thread-db.c (thread_db_create_inferior): Update.
5533 * target.c (debug_to_create_inferior)
5534 (find_default_create_inferior): Update.
5535 (maybe_kill_then_create_inferior): Update.
5536 * sol-thread.c (sol_thread_create_inferior): Update.
5537 * remote.c (extended_remote_async_create_inferior)
5538 (extended_remote_create_inferior): Update.
5539 * remote-vx.c (vx_create_inferior): Update.
5540 * remote-st.c (st2000_create_inferior): Update.
5541 * remote-sim.c (gdbsim_create_inferior): Update.
5542 * remote-sds.c (sds_create_inferior): Update.
5543 * remote-rdp.c (remote_rdp_create_inferior): Update.
5544 * remote-rdi.c (arm_rdi_create_inferior): Update.
5545 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5546 * remote-e7000.c (e7000_create_inferior): Update.
5547 * procfs.c (procfs_create_inferior): Update.
5548 * ocd.c (ocd_create_inferior): Update.
5549 * ocd.h (ocd_create_inferior): Update.
5550 * nto-procfs.c (procfs_create_inferior): Update.
5551 * monitor.c (monitor_create_inferior): Update.
5552 * lin-lwp.c (lin_lwp_create_inferior): Update.
5553 * inftarg.c (child_create_inferior): Update.
5554 * hpux-thread.c (hpux_thread_create_inferior): Update.
5555 * gnu-nat.c (gnu_create_inferior): Update.
5556
5557 2004-05-25 Andrew Cagney <cagney@gnu.com>
5558
5559 * MAINTAINERS: Update e-mail address.
5560
5561 2004-05-24 Randolph Chung <tausq@debian.org>
5562
5563 * thread.c (info_threads_command, thread_apply_all_command)
5564 (thread_apply_command, thread_command, do_captured_thread_select):
5565 Remove HPUXHPPA-specific code.
5566
5567 2004-05-24 Randolph Chung <tausq@debian.org>
5568
5569 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5570 unused symbols.
5571 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5572 references.
5573
5574 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5575
5576 * infcmd.c (kill_if_already_running): New function, extracted
5577 from run_command().
5578 (run_command): Replace extracted code by call to
5579 kill_if_already_running().
5580 (start_command): New function.
5581 (_initialize_infcmd): Add "start" command.
5582
5583 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5584
5585 Add OpenBSD/m88k support.
5586 * NEWS (New native configurations): Mention OpenBSD/m88k.
5587 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5588 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5589 * Makefile.in (m88k_tdep_h): New variable.
5590 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5591 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5592 * configure.host: Add m88*-*-openbsd*.
5593 * configure.tgt: Add m88*-*-openbsd*.
5594
5595 2004-05-24 Jim Blandy <jimb@redhat.com>
5596
5597 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5598 to approve changes.
5599
5600 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5601
5602 * symtab.c (fixup_section): Search section table when lookup by
5603 name fails.
5604
5605 2004-05-24 Randolph Chung <tausq@debian.org>
5606
5607 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5608 be "small_struct".
5609
5610 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5611
5612 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5613 register number in regcache_raw_collect call.
5614 (m68kbsd_collect_fpregset): Likewise.
5615 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5616
5617 * regset.h (struct regset): Add back `regset' member.
5618
5619 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5620
5621 * configure.in: Check for td_pcb in `struct thread'.
5622 * configure, config.in: Regenerated.
5623
5624 * dpx2-nat.c: Remove file.
5625 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5626 (dpx2-nat.o): Remove dependencies.
5627
5628 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5629 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5630 (amd64obsd_supply_pcb): New function.
5631 (_initialize_amd64obsd_nat): Enable libkvm interface.
5632 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5633 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5634 (LOADLIBES): New variable.
5635
5636 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5637 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5638 (sparc32nbsd_supply_pcb): New function.
5639 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5640 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5641 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5642 (LOADLIBES): New variable.
5643
5644 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5645
5646 * bsd-kvm.c, bsd-kvm.h: New files.
5647 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5648 "bsd-kvm.h".
5649 (i386fbsd_supply_pcb): New function.
5650 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5651 (i386fbsd-nat.o): Update dependencies.
5652 (bsd_kvm_h): New variable.
5653 (bsd-kvm.o): New dependency.
5654 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5655 (LOADLIBES): New variable.
5656
5657 * regset.c: Tweak comment.
5658 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5659 macro.
5660 * regset.h: Update copyright year.
5661 (struct regset): Remove `descr' member, add `gdbarch' member.
5662 (regset_alloc): Adjust prototype and comment.
5663 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5664 (i386_supply_fpregset): Likewise.
5665 (i386_regset_from_core_section): Update call to regset_alloc.
5666 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5667 REGSET->arch.
5668 (i386obsd_aout_regset_from_core_section): Update call to
5669 regset_alloc.
5670 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5671 REGSET->arch.
5672 (i386nbsd_aout_regset_from_core_section): Update call to
5673 regset_alloc.
5674 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5675 REGSET->arch.
5676 (amd64_regset_from_core_section): Update call to regset_alloc.
5677 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5678 REGSET->arch.
5679 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5680 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5681 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5682 (sparc32nbsd_init_abi): Update call to regset_alloc.
5683 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5684 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5685 (sparc64obsd_init_abi): Update call to regset_alloc.
5686 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5687 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5688 (sparc64nbsd_init_abi): Update call to regset_alloc.
5689 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5690 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5691 (sparc64fbsd_init_abi): Update call to regset_alloc.
5692
5693 2004-05-22 Jim Blandy <jimb@redhat.com>
5694
5695 * ppc-tdep.h (spe_register_p): New declaration.
5696 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5697 ppc_spefscr_regnum.
5698 * rs6000-tdep.c (spe_register_p): New function.
5699 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5700 spefscr.
5701 (rs6000_gdbarch_init): Initialize the new members of the tdep
5702 structure.
5703
5704 2004-05-21 Jim Blandy <jimb@redhat.com>
5705
5706 * ppc-linux-nat.c (fetch_register): Move code back to be next
5707 to the comment that describes it. (Moved code, instead of
5708 comment, for symmetry with store_register.)
5709
5710 Allocate regset structures in the gdbarch's obstack, not using
5711 xmalloc.
5712 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5713 Add 'arch' argument. Allocate the regset on arch's obstack, not
5714 using xmalloc.
5715 * regset.h (regset_alloc): Update declaration.
5716 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5717 gdbarch argument.
5718 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5719 * i386-tdep.c (i386_regset_from_core_section): Same.
5720 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5721 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5722 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5723 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5724 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5725 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5726
5727 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5728
5729 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5730
5731 2004-05-21 Jim Blandy <jimb@redhat.com>
5732
5733 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5734 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5735
5736 2004-05-20 Jim Blandy <jimb@redhat.com>
5737
5738 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5739
5740 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5741
5742 * regset.h: Make prototype const-correct.
5743 * regset.c (regset_xmalloc): Make const-correct.
5744
5745 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5746
5747 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5748 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5749 (symbol_search_name): Declare.
5750
5751 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5752 (iter_name_next_hashed): Ditto.
5753 (iter_name_next_linear): Ditto.
5754 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5755
5756 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5757 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5758 (symbol_search_name): New function.
5759
5760 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5761
5762 * minsyms.c (build_minimal_symbol_hash_tables): Change
5763 test for adding to demangled hash table to check for difference
5764 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5765
5766 2004-05-19 Jim Blandy <jimb@redhat.com>
5767
5768 Use a constructor function to create regset structures.
5769 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5770 (struct regset): Use supply_regset_ftype. Add new
5771 'collect_regset' member.
5772 (regset_xmalloc): New declaration.
5773 * regset.c: New file.
5774 * am64-tdep.c (amd64_regset_from_core_section): Use
5775 regset_xmalloc to construct regset structures.
5776 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5777 * i386-tdep.c (i386_regset_from_core_section): Same.
5778 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5779 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5780 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5781 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5782 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5783 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5784 * Makefile.in (COMMON_OBS): Add regset.o.
5785 (regset.o): New rule.
5786
5787 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5788
5789 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5790 and pthread_cond_wait.c.
5791
5792 2004-05-18 Jim Blandy <jimb@redhat.com>
5793
5794 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5795 before the mach-specific switch, and then let the individual cases
5796 override the defaults, rather than leaving them uninitialized
5797 until the switch and then setting them in each case.
5798
5799 2004-05-18 Randolph Chung <tausq@debian.org>
5800
5801 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5802 millicode functions.
5803
5804 2004-05-18 Randolph Chung <tausq@debian.org>
5805
5806 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5807 references to dld_flags_buffer consistent.
5808
5809 2004-05-18 Randolph Chung <tausq@debian.org>
5810
5811 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5812 it for unwinding the stack.
5813
5814 2004-05-18 Randolph Chung <tausq@debian.org>
5815
5816 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5817 Undefine these so we can overide them using gdbarch.
5818
5819 2004-05-18 Randolph Chung <tausq@debian.org>
5820
5821 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5822 handling for 64-bit HPUX (elf).
5823
5824 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5825
5826 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5827 constants.
5828 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5829 * ia64-tdep.c (examine_prologue): Likewise.
5830 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5831 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5832
5833 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5834
5835 * vax-tdep.c (vax_return_value): Implement
5836 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5837
5838 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5839
5840 * vax-tdep.c (vax_return_value): Fix typo.
5841
5842 2004-05-17 Andrew Cagney <cagney@redhat.com>
5843
5844 * MAINTAINERS: Mark Salter was also responsible for
5845 testsuite/config/
5846
5847 * NEWS: Mention signal fixes.
5848
5849 2004-05-17 Randolph Chung <tausq@debian.org>
5850
5851 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5852 check to see if we are unwinding an export stub. Export stubs clobber
5853 the %rp in the call path and stores the original rp in a stack slot.
5854
5855 2004-05-17 Jim Blandy <jimb@redhat.com>
5856
5857 * MAINTAINERS: Update address for J.T. Conklin.
5858
5859 2004-05-17 Randolph Chung <tausq@debian.org>
5860
5861 * hppa-tdep.c: Remove superfluous #include's.
5862 * Makefile.in (hppa-tdep.o): Update dependencies.
5863
5864 2004-05-17 Randolph Chung <tausq@debian.org>
5865
5866 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5867 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5868 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5869 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5870 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5871 Remove static function declarations.
5872
5873 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5874
5875 * alphabsd-nat.c: Update copyright year.
5876 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5877
5878 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5879 and M68K_A2_REGNUM.
5880
5881 * m68k-tdep.c (m68k_svr4_return_value): Implement
5882 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5883
5884 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5885
5886 * sol-thread.c Update copyright year. Fix various coding
5887 standards violations. Tweak a few comments.
5888 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5889 Delete prototypes.
5890
5891 2004-05-15 Randolph Chung <tausq@debian.org>
5892
5893 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5894 as pointer instead of array reference since HPUX compiler does
5895 not accept unsized array arguments.
5896 * somsolib.c (dld_flags_buffer): Use constant array size.
5897
5898 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5899
5900 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5901 offset with decimal offset.
5902 (amd64obsd_sigcontext_addr): Return correct address for entire
5903 signal trampoline.
5904
5905 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5906 instead of get_frame_base.
5907
5908 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5909 (fill_gregset): Use regcache_raw_collect.
5910
5911 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5912 ppcobsd-tdep.c.
5913
5914 * config/sparc/tm-nbsd64.h: Remove file.
5915 * config/tm-sunos.h: Remove file.
5916
5917 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5918
5919 * rs6000-tdep.c (store_param_on_stack_p): New function,
5920 an improved version of some code extracted from skip_prologue().
5921 (skip_prologue): Use store_param_on_stack_p() to detect
5922 instructions saving a parameter on the stack. Detect when r0
5923 is used to save a parameter.
5924 Do not mark "li rx, SIMM" instructions as part of the prologue,
5925 unless the following instruction is also part of the prologue.
5926
5927 2004-05-14 Andrew Cagney <cagney@redhat.com>
5928
5929 * infrun.c (handle_inferior_event): Simplify
5930 STEP_OVER_UNDEBUGGABLE.
5931
5932 * infrun.c (handle_step_into_function): Delete function.
5933 (handle_inferior_event): Inline calls to
5934 handle_step_into_function.
5935
5936 2004-05-14 Jerome Guitton <guitton@gnat.com>
5937
5938 * rs6000-nat.c: Fix a comment.
5939
5940 2004-05-12 David Anderson <davea@sgi.com>
5941
5942 Committed by Jim Blandy <jimb@redhat.com>:
5943 * regcache.c (struct regcache_descr): fix comment spelling.
5944
5945 2004-05-13 J. Brobecker <brobecker@gnat.com>
5946
5947 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5948 Fixes a link link failure.
5949
5950 2004-05-13 J. Brobecker <brobecker@gnat.com>
5951
5952 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5953 error that was causing the build to fail.
5954
5955 2004-05-13 J. Brobecker <brobecker@gnat.com>
5956
5957 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5958 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5959
5960 2004-05-13 Andrew Cagney <cagney@redhat.com>
5961
5962 * infrun.c (handle_inferior_event): Check for
5963 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5964 calls. Update comments.
5965
5966 2004-05-13 Jim Blandy <jimb@redhat.com>
5967
5968 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5969 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5970 (store_regs_user_thread, store_regs_kernel_thread): Use
5971 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5972 * ppc-linux-nat.c (fill_gregset): Same.
5973 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5974 (ppc_linux_sigtramp_cache): Same.
5975 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5976 (ppcnbsd_sigtramp_cache_init): Same.
5977 * rs6000-nat.c (fetch_core_registers): Same.
5978 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5979 (rs6000_frame_cache): Same.
5980
5981 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5982 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5983 of assuming that the gprs are numbered starting with zero.
5984 * ppc-linux-nat.c (fill_gregset): Same.
5985 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5986 * ppcnbsd-nat.c (getregs_supplies): Same.
5987 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5988 * rs6000-nat.c (fetch_core_registers): Same.
5989 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5990
5991 2004-05-07 Michael Snyder <msnyder@redhat.com>
5992
5993 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5994 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5995
5996 2004-05-13 Andrew Cagney <cagney@redhat.com>
5997
5998 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5999
6000 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6001
6002 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6003 base_address for shared libraries.
6004
6005 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6006
6007 * MAINTAINERS (write after approval): Add myself.
6008
6009 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6010
6011 * breakpoint.c (bpstat_stop_status): Add new argument
6012 STOPPED_BY_WATCHPOINT. Use it instead of testing
6013 target_stopped_data_address agaist 0 to check whether
6014 or not we stopped due to a hardware watchpoint.
6015 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6016 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6017 with new argument.
6018
6019 2004-05-12 Jim Blandy <jimb@redhat.com>
6020
6021 * configure.in: When checking whether we should use the -bbigtoc
6022 option, don't forget to restore the original value of LDFLAGS.
6023 * configure: Regenerated.
6024
6025 2004-05-12 Andrew Cagney <cagney@redhat.com>
6026
6027 * thread.c (load_infrun_state): Delete step_sp.
6028 * infrun.c (context_switch): Ditto.
6029 * inferior.h (step_sp): Ditto.
6030 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6031 * gdbthread.h (struct thread_info, save_infrun_state)
6032 (restore_infrun_state): Ditto.
6033
6034 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6035
6036 * MAINTAINERS (write after approval): Add myself.
6037
6038 2004-05-12 Andrew Cagney <cagney@redhat.com>
6039
6040 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6041 eliminate reference to step_sp.
6042 (struct execution_control_state, init_execution_control_state)
6043 (handle_inferior_event, keep_going): Delete update_step_sp and
6044 step_sp.
6045 * infcmd.c (step_sp): Note that variable is unused.
6046
6047 2004-05-11 Andrew Cagney <cagney@redhat.com>
6048
6049 * infrun.c (step_over_function): Delete function.
6050 (handle_step_into_function): Use insert_step_resume_breakpoint.
6051 (insert_step_resume_breakpoint): Fix assertion.
6052
6053 2004-05-11 Nick Roberts <nickrob@gnu.org>
6054
6055 * utils.c (defaulted_query): Just use the normal query input type
6056 when printing the annotations.
6057
6058 2004-05-11 Andrew Cagney <cagney@redhat.com>
6059
6060 * infrun.c (handle_inferior_event): Simplify code handling
6061 step-into or return-from a signal trampoline.
6062
6063 2004-05-11 Andrew Cagney <cagney@redhat.com>
6064
6065 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6066 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6067
6068 2004-05-10 Jim Blandy <jimb@redhat.com>
6069
6070 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6071 with a call to internal_error.
6072
6073 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6074 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6075 processor variant lacks those registers.
6076 (ppc_floating_point_unit_p): Change description to make it clear
6077 that this returns info about the ISA, not the ABI.
6078 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6079 return true or false by checking tdep->ppc_fp0_regnum and
6080 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6081 arch/mach switching done in rs6000_gdbarch_init; it's better to
6082 keep that logic there, and just check the results here.
6083 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6084 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6085 floating-point registers.
6086 (ppc_supply_fpregset, ppc_collect_fpregset)
6087 (rs6000_push_dummy_call, rs6000_extract_return_value)
6088 (rs6000_store_return_value): Assert that we have floating-point
6089 registers.
6090 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6091 (rs6000_frame_cache): Don't note the locations at which
6092 floating-point registers were saved if we have no fprs.
6093 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6094 registers.
6095 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6096 (store_regs_user_thread, store_regs_kernel_thread): Only call
6097 supply_fprs / fill_fprs if we actually have floating-point
6098 registers.
6099 (special_register_p): Check ppc_fpscr_regnum before matching
6100 against it.
6101 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6102 supply / collect fpscr if we don't have it.
6103 * ppc-bdm.c: #include "gdb_assert.h".
6104 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6105 have floating-point registers, since I can't test this code on
6106 FP-free systems to adapt it.
6107 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6108 fpscr and floating point register numbers if they don't exist.
6109 (fetch_register): Assert that we have floating-point registers
6110 before we reach the code that handles them.
6111 (store_register): Same. And use tdep instead of calling
6112 gdbarch_tdep again.
6113 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6114 don't have them.
6115 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6116 fprs and fpscr if we don't have them.
6117 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6118 don't have them.
6119 * ppcnbsd-nat.c: #include "gdb_assert.h".
6120 (getfpregs_supplies): Assert that we have floating-point registers.
6121 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6122 * ppcobsd-tdep.c: #include "gdb_assert.h".
6123 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6124 have floating-point registers.
6125 * rs6000-nat.c (regmap): Don't match against the fpscr and
6126 floating point register numbers if they don't exist.
6127 (fetch_inferior_registers, store_inferior_registers,
6128 fetch_core_registers): Only fetch / store / supply the
6129 floating-point registers and the fpscr if we have them.
6130 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6131 (ppcobsd-tdep.o): Update dependencies.
6132
6133 2004-05-10 Andrew Cagney <cagney@redhat.com>
6134
6135 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6136 (context_switch): Do not switch through_sigtramp_breakpoint.
6137 * gdbthread.h (save_infrun_state, load_infrun_state)
6138 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6139 and structure member.
6140 * thread.c (load_infrun_state, save_infrun_state): Update.
6141
6142 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6143
6144 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6145
6146 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6147
6148 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6149 throughout.
6150 * aclocal.m4: Regenerate.
6151
6152 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6153
6154 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6155
6156 2004-05-10 Andrew Cagney <cagney@redhat.com>
6157
6158 * infrun.c (check_sigtramp2): Delete function.
6159 (handle_inferior_event): When single stepping, and taking a
6160 signal, set a breakpoint at the signal return address. Delete
6161 redundant calls to check_sigtramp2.
6162 (insert_step_resume_breakpoint): New function.
6163 (through_sigtramp_breakpoint, handle_inferior_event)
6164 (follow_exec, wait_for_inferior, fetch_inferior_event)
6165 (currently_stepping, keep_going): Delete most uses of
6166 through_sigtramp_breakpoint, not that it should be deleted.
6167 (delete_breakpoint_current_contents): Delete function.
6168
6169 2004-05-10 Randolph Chung <tausq@debian.org>
6170
6171 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6172 target.
6173 * config/pa/tm-linux.h: New file.
6174
6175 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6176
6177 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6178 of prefixes. Don't print the prefix twice in the CLI.
6179
6180 2004-05-10 Jim Blandy <jimb@redhat.com>
6181
6182 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6183 collect all the gprs.
6184
6185 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6186 loop collecting gprs.
6187
6188 2004-05-09 Andrew Cagney <cagney@redhat.com>
6189
6190 * remote-vx.c (net_step): Delete step-range code.
6191 * remote.c (remote_resume, init_all_packet_configs)
6192 (set_remote_protocol_E_packet_cmd)
6193 (show_remote_protocol_E_packet_cmd)
6194 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6195 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6196 (show_remote_protocol_e_packet_cmd): Ditto.
6197
6198 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6199
6200 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6201
6202 * hppa-tdep.h: Update copyright year.
6203 (struct trad_frame_saved_reg): Add opaque declaration.
6204
6205 * amd64-tdep.c (amd64_return_value): Implement
6206 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6207
6208 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6209 (m68k_value_to_register): New functions.
6210 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6211 value_to_register.
6212
6213 * defs.h (enum return_value_convention): Add
6214 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6215 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6216 * infcmd.c (legacy_return_value): New function.
6217 (print_return_value): Rwerite to implement
6218 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6219 * values.c (using_struct_return): Check for inequality to
6220 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6221 RETURN_VALUE_STRUCT_CONVENTION.
6222 * i386-tdep.c (i386_return_value): Implement
6223 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6224
6225 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6226 include "symtab.h", "opcode/vax.h" and "inferior.h".
6227 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6228 to read_memory_unsigned_integer.
6229 (vax_gdbarch_init): Reorder.
6230 (_initialize_vax_tdep): Spell out prototype.
6231 * Makefile.in (vax-tdep.o): Update dependencies.
6232
6233 2004-05-08 Andrew Cagney <cagney@redhat.com>
6234
6235 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6236 * target.c (target_detach, target_disconnect): Ditto.
6237
6238 * infcall.c (call_function_by_hand): When no
6239 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6240 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6241 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6242 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6243 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6244
6245 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6246 * gdbarch.h, gdbarch.c: Re-generate.
6247 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6248 deprecated_fix_call_dummy.
6249 * v850-tdep.c (v850_gdbarch_init): Ditto.
6250 * infcall.c (call_function_by_hand): Do not call
6251 DEPRECATED_FIX_CALL_DUMMY.
6252
6253 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6254 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6255 * gdbarch.h, gdbarch.c: Re-generate.
6256 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6257 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6258 deprecated_sizeof_call_dummy_words.
6259 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6260 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6261 * v850-tdep.c (v850_gdbarch_init): Ditto.
6262 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6263 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6265 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6266 * arch-utils.h (legacy_call_dummy_words)
6267 (legacy_sizeof_call_dummy_words): Delete declarations.
6268 * arch-utils.c (legacy_call_dummy_words)
6269 (legacy_sizeof_call_dummy_words): Delete variables.
6270
6271 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6272 * gdbarch.h, gdbarch.c: Re-generate.
6273 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6274 * infcall.c (call_function_by_hand): Eliminate call to
6275 DEPRECATED_PUSH_DUMMY_FRAME.
6276 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6277 push_dummy_frame.
6278 (ns32k_push_dummy_frame): Delete function.
6279
6280 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6281 deprecated_call_dummy_breakpoint_offset or
6282 deprecated_call_dummy_start_offset.
6283 * dummy-frame.c, arm-tdep.c: Update comments.
6284 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6285 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6286 * gdbarch.h, gdbarch.c: Re-generate.
6287
6288 * infcall.c (legacy_push_dummy_code): Delete function.
6289 (push_dummy_code): Delete call.
6290
6291 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6292 * gdbarch.h, gdbarch.c: Re-generate.
6293 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6294 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6295 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6296 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6297
6298 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6299 (struct frame_info): Delete opaque declaration.
6300 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6301 * frame.c (get_frame_type): Delete call.
6302
6303 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6304 pc_in_call_dummy.
6305 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6306 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6307
6308 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6309
6310 * alphanbsd-tdep.c: Include "gdb_string.h".
6311 * armnbsd-tdep.c: Update copyright year.
6312 Include "gdb_string.h".
6313 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6314 dependencies.
6315
6316 * delta68-nat.c: Remove file.
6317 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6318 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6319 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6320 (delta68-nat.o): Remove dependency.
6321
6322 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6323 function.
6324 (m68k_gdbarch_init): Don't set
6325 deprecated_frameless_function_invocation.
6326
6327 2004-05-07 Randolph Chung <tausq@debian.org>
6328
6329 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6330 read_memory_nobpt for code reading when doing frame unwinding.
6331 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6332
6333 2004-05-07 Randolph Chung <tausq@debian.org>
6334
6335 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6336 instead of sp, handle sigaltstack case.
6337 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6338 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6339 signal handler and not that of the caller.
6340 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6341 hppa_linux_sigtramp_find_sigcontext.
6342
6343 2004-05-07 Randolph Chung <tausq@debian.org>
6344
6345 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6346 hppa-linux-nat.c.
6347 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6348 * hppa-linux-nat.c (fetch_register, store_register): Define.
6349 (fetch_inferior_registers, store_inferior_registers): Define.
6350 (supply_gregset): Add comment and clean up some unneeded code.
6351 (fill_gregset): Add comment and fix so that it saves registers in
6352 the right place in the gregset.
6353 (fill_fpregset): Fix buffer overrun problem.
6354 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6355
6356 2004-05-07 Randolph Chung <tausq@debian.org>
6357
6358 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6359 do common handling of the pcoqt register.
6360 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6361 to use helper function.
6362 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6363 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6364 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6365 generic fallback unwinder when all else fails.
6366 (hppa_gdbarch_init): Add fallback sniffer.
6367 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6368 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6369 to use helper function.
6370
6371 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6372
6373 * config/djgpp/fnchange.lst: Add translation rules for
6374 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6375
6376 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6377
6378 * frame.c (get_prev_frame_1): Work around GCC bug.
6379 * frame.h: Add comment about GCC bug.
6380
6381 2004-05-07 Andrew Cagney <cagney@redhat.com>
6382
6383 * observer.c: Include "commands.h" and "gdbcmd.h".
6384 (observer_debug, _initialize_observer): Add the
6385 command "set/show debug observer".
6386 * observer.sh: When observer debugging, log notify calls.
6387 * Makefile.in (observer.o): Update dependencies.
6388
6389 2004-05-07 Jason Molenda (jmolenda@apple.com)
6390
6391 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6392
6393 2004-05-07 Jim Blandy <jimb@redhat.com>
6394
6395 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6396 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6397 to recognize gpr regnums, instead of assuming that
6398 tdep->ppc_fp0_regnum marks the end of the general-purpose
6399 registers.
6400
6401 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6402 the given architecture has floating-point registers.
6403
6404 2004-05-07 Andrew Cagney <cagney@redhat.com>
6405
6406 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6407 macro defined to 1.
6408 * gdbarch.h, gdbarch.c: Re-generate.
6409 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6410 deprecated_use_generic_dummy_frames.
6411
6412 2004-05-07 Brian Ford <ford@vss.fsi.com>
6413
6414 * NEWS: Mention Cygwin DWARF 2 support.
6415
6416 2004-05-07 Andrew Cagney <cagney@redhat.com>
6417
6418 * objfiles.h (struct entry_info): Delete unused fields
6419 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6420 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6421 * mipsread.c (mipscoff_symfile_read): Update.
6422 * mdebugread.c (parse_partial_symbols): Update.
6423 * dwarfread.c (read_file_scope): Update.
6424 * dwarf2read.c (read_file_scope): Update.
6425 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6426 * coffread.c (complete_symtab): Update.
6427
6428 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6429
6430 * infcall.c (_initialize_infcall): Fix typo.
6431
6432 2004-05-07 Andrew Cagney <cagney@redhat.com>
6433
6434 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6435 * command.h (add_setshow_zinteger_cmd): Declare.
6436
6437 2004-05-06 Randolph Chung <tausq@debian.org>
6438
6439 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6440 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6441 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6442 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6443 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6444 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6445 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6446 definitions ...
6447 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6448 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6449 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6450 (hppa64_hpux_frame_find_saved_regs_in_sig)
6451 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6452 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6453 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6454 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6455 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6456 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6457 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6458 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6459 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6460 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6461 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6462 (hppa32_register_type, hppa_cannot_store_register)
6463 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6464 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6465 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6466 * pa64solib.c (pa64_solib_have_load_event)
6467 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6468 (pa64_solib_unloaded_library_pathname): Likewise.
6469 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6470 (som_solib_library_pathname): Likewise.
6471
6472 2004-05-05 Jim Ingham <jingham@apple.com>
6473
6474 * breakpoint.c (create_breakpoints): Copy the ignore count and
6475 thread id over from the pended breakpoint to the actual
6476 breakpoint.
6477
6478 2004-05-05 Andrew Cagney <cagney@redhat.com>
6479
6480 * gdbarch.sh (PARM_BOUNDARY): Delete.
6481 gdbarch.h, gdbarch.c: Re-generate.
6482 * valops.c (PARM_BOUNDARY): Delete macro.
6483 (value_push): Delete PARM_BOUNDARY code.
6484 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6485
6486 2004-05-04 Jim Blandy <jimb@redhat.com>
6487
6488 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6489 Don't assume that the gprs, fprs, and UISA sprs are
6490 contiguous, start at register number zero, and end with fpscr.
6491 Instead, use the numbers from the tdep structure.
6492
6493 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6494 should no longer be used in code specific to the RS6000 and its
6495 derivatives.
6496 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6497 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6498 tdep->ppc_fp0_regnum.
6499 (ppc_supply_fpregset, ppc_collect_fpregset)
6500 (rs6000_push_dummy_call, rs6000_extract_return_value)
6501 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6502 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6503 FP0_REGNUM.
6504 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6505 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6506 Same.
6507 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6508 bdm_ppc_store_registers): Same.
6509 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6510 (store_register, fill_fpregset): Same.
6511 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6512 (ppc_linux_supply_fpregset): Same.
6513 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6514 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6515 Same.
6516 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6517 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6518 ppc64_sysv_abi_return_value): Same.
6519 * rs6000-nat.c (regmap, fetch_inferior_registers)
6520 (store_inferior_registers, fetch_core_registers): Same.
6521
6522 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6523
6524 * m68knbsd-nat.c: Remove file.
6525 * m68knbsd-tdep.c: Remove file.
6526 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6527 dependencies.
6528 * configure.host: Add m68k-*-netbsdelf*.
6529 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6530 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6531 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6532 (XM_FILE): Remove.
6533 * config/m68k/nbsdelf.mh: New file.
6534 * config/m68k/nbsd.mt: New file.
6535 * config/m68k/nbsdaout.mt: Remove file.
6536 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6537 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6538 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6539 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6540 (use_struct_convention): Remove prototype.
6541 (USE_STRUCT_CONVENTION): Remove define.
6542 * config/m68k/xm-nbsd.h: Remove file.
6543
6544 2004-05-04 Michael Snyder <msnyder@redhat.com>
6545
6546 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6547 reg_struct_return method (as gcc usually does for cross targets).
6548
6549 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6550
6551 Committed by Andrew Cagney.
6552 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6553 alignment padding when accessing ucontext struct members.
6554
6555 2004-05-04 Jim Blandy <jimb@redhat.com>
6556
6557 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6558 'ppc_gplast_regnum' member.
6559 (ppc_num_gprs): New enum constant.
6560 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6561 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6562 * rs6000-nat.c (regmap, fetch_inferior_registers,
6563 store_inferior_registers): Same.
6564 * rs6000-tdep.c (e500_pseudo_register_read)
6565 (e500_pseudo_register_write): Same.
6566 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6567
6568 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6569 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6570 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6571 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6572 FPLAST_REGNUM.
6573 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6574 Same.
6575 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6576 * rs6000-nat.c (regmap, fetch_inferior_registers)
6577 (store_inferior_registers): Same.
6578
6579 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6580 with FPLAST_REGNUM.
6581
6582 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6583
6584 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6585 failure detected by recent versions of GCC.
6586 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6587 to be consistent with the usage in dwarf2_create_include_psymtab.
6588
6589 2004-05-03 Michael Snyder <msnyder@redhat.com>
6590
6591 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6592 (heuristic_proc_start): Whitespace cleanup.
6593
6594 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6595
6596 * sun3-nat.c: Remove file.
6597 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6598 dependencies.
6599 (ALLDEPFILES): Remove sun3-nat.c.
6600 (sun3-nat.o): Remove dependencies.
6601
6602 * i386-interix-nat.c, i386-interix-tdep.c,
6603 config/i386/nm-interix.h, config/i386/interix.mh,
6604 config/i386/interix.mt: Remove files.
6605 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6606 dependencies.
6607
6608 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6609
6610 * m68k-tdep.h (struct gdbarch_tdep): Add member
6611 struct_value_regnum.
6612 (m68k_svr4_init_abi): New prototype.
6613 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6614 different calling conventions.
6615 (m68k_extract_return_value): Remove code dealing with single-field
6616 structs.
6617 (m68k_store_return_value): Remove code dealing with single-field
6618 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6619 (m68k_extract_struct_value_address): Remove function.
6620 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6621 (m68k_reg_struct_return_p, m68k_return_value)
6622 (m68k_svr4_return_value): New functions.
6623 (m68k_use_struct_convention): Remove function.
6624 (m68k_push_dummy_call): Use new struct_value_regnum member of
6625 `struct gdbarch_tdep' instead of hardcoded register number to
6626 store STRUCT_ADDR.
6627 (m68k_svr4_init_abi): New function.
6628 (m68k_gdbarch_init): Don't set extract_return_value,
6629 store_return_values, deprecated_extract_struct_value_address and
6630 use_struct_convention. Set return_value instead. Initialize new
6631 struct_value_regnum member of `struct gdbarch_tdep'.
6632 * m68klinux-tdep.c: Update copyright year.
6633 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6634 (m68k_linux_extract_struct_value_address): Remove function.
6635 (m68k_linux_init_abi): Don't set extract_return_value,
6636 store_return_values, deprecated_extract_struct_value_address and
6637 use_struct_convention. Call m68k_svr4_init_abi but override the
6638 new struct_value_regnum member of `struct gdbarch_tdep'.
6639 * Makefile.in (m68k-tdep.o): Update dependencies.
6640
6641 2004-05-03 J. Brobecker <brobecker@gnat.com>
6642
6643 * dwarf2read.c (line_header): Add new included_p field in
6644 field file_names.
6645 (partial_die_info): New field has_stmt_list. New field line_offset.
6646 (dwarf2_create_include_psymtab): New function.
6647 (dwarf2_build_include_psymtabs): New function.
6648 (add_file_name): Add forward declaration. Initialize new field.
6649 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6650 to be able to determine the list of files included by the
6651 given unit, and build their associated psymtabs.
6652 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6653 files as well.
6654 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6655 (read_file_scope): Update call to dwarf_decode_lines.
6656 (read_partial_die): Handle DW_AT_stmt_list attributes.
6657
6658 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6659
6660 Unfix PR gdb/1626.
6661 * configure.in: Revert special case for osf5.*.
6662 * configure: Regenerate.
6663
6664 2004-05-02 Jim Blandy <jimb@redhat.com>
6665
6666 Move the symbol-file-from-memory functions into their own file.
6667 * symfile-mem.c, symfile-mem.h: New files.
6668 * symfile.c (symbol_file_add_from_bfd): New function.
6669 (symbol_file_add): Call symbol_file_add_from_bfd.
6670 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6671 Moved to symfile-mem.c.
6672 (_initialize_symfile): Move definition of
6673 add-symbol-file-from-memory command to symfile-mem.c.
6674 * symfile.h (symbol_file_add_from_bfd): New declaration.
6675 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6676 * config/powerpc/linux.mt (TDEPFILES): Same.
6677 * Makefile.in (SFILES): Add symfile-mem.c.
6678 (symfile_mem_h): New variable.
6679 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6680 (symfile-mem.o): New rule.
6681
6682 2004-05-01 Andrew Cagney <cagney@redhat.com>
6683
6684 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6685 frame_find_by_id instead of frame_relative_level.
6686 (do_enable_breakpoint): Ditto.
6687 * thread.c: Update copyright.
6688 (info_threads_command): Ditto, simplify.
6689
6690 * frame.c (deprecated_generic_get_saved_register): Delete
6691 function, moved to "xstormy16-tdep.c".
6692 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6693 deprecated_generic_get_saved_register from "frame.c".
6694 (xstormy16_frame_saved_register): Call
6695 xstormy16_get_saved_register.
6696 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6697 static.
6698 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6699 * frame.h (deprecated_generic_get_saved_register): Delete.
6700
6701 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6702
6703 * dwarfread.c: Update documentation on the state of dwarf-1.
6704
6705 2004-05-01 Andrew Cagney <cagney@redhat.com>
6706
6707 * stack.c (select_frame_command): Delete call to
6708 frame_relative_level.
6709 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6710 Delete #if0 code.
6711 (frame_info): Do not print FRAMELESS.
6712 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6713 (catch_info): Delete #if0 code.
6714
6715 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6716 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6717 of frame_relative_level.
6718 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6719 to SENTINEL_FRAME.
6720 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6721 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6722 frame_relative_level.
6723
6724 * frame.h (deprecated_set_frame_type): Delete declaration.
6725 * frame.c (deprecated_set_frame_type): Delete function, update
6726 comments.
6727
6728 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6729 * gdbarch.h, gdbarch.c: Re-generate.
6730 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6731 (shnbsd_pc_in_sigtramp): Delete.
6732 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6733 pc_in_sigtramp.
6734 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6735 pc_in_sigtramp.
6736 * frame.h: Update comments.
6737 * ppc-linux-tdep.c: Update comments.
6738 * breakpoint.c (bpstat_what): Update comments.
6739
6740 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6741 m68klinux-tdep.o's dependencies, were previously added to
6742 m68klinux-nat.o.
6743
6744 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6745 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6746 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6747 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6748 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6749
6750 * Makefile.in (m68klinux-nat.o): Update dependencies.
6751 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6752 (m68k_linux_sigtramp_frame_cache)
6753 (m68k_linux_sigtramp_frame_this_id)
6754 (m68k_linux_sigtramp_frame_prev_register)
6755 (m68k_linux_sigtramp_frame_unwind)
6756 (m68k_linux_sigtramp_frame_sniffer)
6757 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6758 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6759 names, use trad-frame.h.
6760 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6761 (struct m68k_sigtramp_info): Delete.
6762 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6763 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6764 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6765 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6766 "m68klinux-tdep.c".
6767
6768 * infrun.c (check_sigtramp2): Delete check for
6769 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6770
6771 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6772
6773 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6774
6775 2004-05-01 Andrew Cagney <cagney@redhat.com>
6776
6777 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6778 (frv_linux_sigtramp_frame_cache)
6779 (frv_linux_sigtramp_frame_this_id)
6780 (frv_linux_sigtramp_frame_prev_register)
6781 (frv_linux_sigtramp_frame_unwind)
6782 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6783 include "linux" in function and variable names, directly call
6784 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6785 the latest trad-frame code.
6786 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6787 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6788 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6789 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6790 * frv-tdep.c (frv_sigtramp_frame_cache)
6791 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6792 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6793 frv-linux-tdep.c.
6794 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6795 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6796 (frv_set_sigcontext_reg_addr): Delete function.
6797
6798 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6799 (DEPRECATED_SIGTRAMP_END): Delete.
6800 * gdbarch.h, gdbarch.c: Re-generate.
6801 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6802 * config/vax/tm-vaxbsd.h: Update copyright.
6803 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6804 (DEPRECATED_IN_SIGTRAMP): Define.
6805 * config/m68k/tm-nbsd.h: Update copyright.
6806 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6807 (DEPRECATED_IN_SIGTRAMP): Define.
6808
6809 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6810
6811 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6812 encondings. Fixes PR gdb/1628.
6813
6814 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6815 DW_CFA_restore state without a matching DW_CFA_remember_state
6816 instead of aborting. Fixes PR backtrace/1589.
6817
6818 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6819
6820 * MAINTAINERS: Add self as AIX maintainer.
6821 Update my e-mail address in write-after-approval section.
6822
6823 2004-04-30 Andrew Cagney <cagney@redhat.com>
6824
6825 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6826 (legacy_get_prev_frame): Ditto.
6827
6828 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6829 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6830 * mipsread.c (sigtramp_address): Delete extern variable.
6831 (mipscoff_new_init): Delete reference.
6832 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6833 (fixup_sigtramp): Delete function.
6834 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6835 (fixup_sigtramp): Delete declarations.
6836
6837 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6838 deprecated_pc_in_sigtramp.
6839 (ppcnbsd_pc_in_sigtramp): Delete function.
6840
6841 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6842
6843 * config/m68k/nm-nbsd.h: Tweak comments.
6844 * config/m68k/nm-nbsdaout.h: Likewise.
6845
6846 2004-04-30 Andrew Cagney <cagney@redhat.com>
6847
6848 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6849 legacy_pc_in_sigtramp.
6850 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6851
6852 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6853
6854 Add OpenBSD/m68k support.
6855 * NEWS (New native configurations): Mention OpenBSD/m68k.
6856 * m68kbsd-tdep.c: New file.
6857 * m68kbsd-nat.c: New file.
6858 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6859 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6860 * configure.host: Add m68k-*-openbsd.
6861 * configure.tgt: Add m68k-*-openbsd.
6862 * config/m68k/tm-obsd.h: New file.
6863 * config/m68k/obsd.mt: New file.
6864 * config/m68k/obsd.mh: New file.
6865 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6866 m68kbsd-tdep.c.
6867
6868 2004-04-30 Andrew Cagney <cagney@redhat.com>
6869
6870 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6871 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6872
6873 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6874
6875 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6876 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6877
6878 2004-04-30 Brian Ford <ford@vss.fsi.com>
6879
6880 Revert 2004-04-16 change.
6881 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6882 (i386_coff_init_abi): Remove.
6883 * i386-tdep.h (i386_coff_init_abi): Remove.
6884 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6885
6886 2004-04-30 Andrew Cagney <cagney@redhat.com>
6887
6888 * blockframe.c (find_pc_partial_function): Delete use of
6889 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6890 DEPRECATED_SIGTRAMP_END.
6891
6892 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6893 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6894 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6895 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6896 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6897
6898 * defs.h (deprecated_inside_entry_file): Delete declaration.
6899 * blockframe.c (deprecated_inside_entry_file): Delete function.
6900 (legacy_frame_chain_valid): Delete call.
6901 * sh64-tdep.c (sh64_frame_chain): Delete call.
6902 * objfiles.h: Update comments.
6903 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6904 call.
6905 * frame.c (get_prev_frame): Delete call, update comments.
6906
6907 2004-04-30 Brian Ford <ford@vss.fsi.com>
6908
6909 * MAINTAINERS (Write After Approval): Add myself.
6910
6911 2004-04-30 Andrew Cagney <cagney@redhat.com>
6912
6913 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6914 * gdbarch.h, gdbarch.c: Re-generate.
6915 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6916 code.
6917
6918 2004-04-30 Andrew Cagney <cagney@redhat.com>
6919
6920 * gdb-events.sh (selected_thread_changed)
6921 (selected_frame_level_changed, target_changed): Delete.
6922 * gdb-events.h, gdb-events.c: Re-generate.
6923 * valops.c (value_assign): Update.
6924 * stack.c (select_frame_command, up_silently_base)
6925 (down_silently_base): Update.
6926
6927 2004-04-29 Andrew Cagney <cagney@redhat.com>
6928
6929 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6930 registers correctly.
6931 (print_gp_register_row, mips32_heuristic_proc_desc)
6932 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6933 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6934 references to mips_isa_regsize.
6935
6936 2004-04-29 Andrew Cagney <cagney@redhat.com>
6937
6938 * mips-tdep.c (struct gdbarch_tdep): Delete
6939 mips_fp_register_double.
6940 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6941 mips_abi_regsize.
6942 (mips_gdbarch_init): Do not set mips_fp_register_double.
6943 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6944
6945 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6946
6947 Committed by Andrew Cagney.
6948 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6949 function calls.
6950
6951 2004-04-29 Andrew Cagney <cagney@redhat.com>
6952
6953 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6954 gdbarch, use mips_abi, update callers.
6955 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6956 mips_abi_regsize, update callers.
6957 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6958 mips_default_abi_regsize.
6959 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6960 mips_default_abi_regsize.
6961
6962 2004-04-29 Andrew Cagney <cagney@redhat.com>
6963
6964 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6965 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6966 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6967 mips_default_abi_regsize.
6968 (mips_isa_regsize): Rename mips_regisze.
6969 * mipsnbsd-tdep.c: Update.
6970 * mips-linux-tdep.c: Update.
6971 * irix5-nat.c: Update.
6972 * mips-tdep.h (mips_isa_regsize): Update.
6973
6974 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6975 Delete all disabled code.
6976 * gdb-events.h, gdb-events.c: Re-generate.
6977
6978 2004-04-19 Jerome Guitton <guitton@gnat.com>
6979 Mark Kettenis <kettenis@gnu.org>
6980
6981 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6982 the function begins with a branch instruction.
6983
6984 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6985
6986 * i386-tdep.c: Fix spelling mistakes.
6987
6988 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6989 Andrew Cagney <cagney@redhat.com>
6990
6991 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6992 <sys/proc.h>.
6993 * acconfig.h: Provide default _KMEMUSER value.
6994 * config.in, configure: Re-generate.
6995 * NEWS: Mention fix.
6996
6997 2004-04-24 Randolph Chung <tausq@debian.org>
6998
6999 * configure.host (hppa*-*-linux*): New target.
7000 * configure.tgt (hppa*-*-linux*): Likewise.
7001 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7002 gdbarch_init_osabi() call earlier so that osabi-specific frame
7003 unwinders can be registered first.
7004 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7005 hppa-linux-nat.c.
7006 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7007 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7008 * config/pa/linux.mh: New file.
7009 * config/pa/linux.mt: New file.
7010 * config/pa/nm-linux.h: New file.
7011 * config/pa/xm-linux.h: New file.
7012 * hppa-linux-nat.c: New file.
7013 * hppa-linux-tdep.c: New file.
7014
7015 2004-04-28 Randolph Chung <tausq@debian.org>
7016
7017 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7018 return values.
7019 (hppa32_push_dummy_call): Fix small struct and floating point argument
7020 passing, and make sure the stack frame is properly aligned.
7021
7022 2004-04-28 Andrew Cagney <cagney@redhat.com>
7023
7024 * stack.c (print_stack_frame): Fix description.
7025
7026 * NEWS: Mention gdb/gdbserver/configure execute permission
7027 changed. PR server/519.
7028
7029 2004-04-28 Andrew Cagney <cagney@redhat.com>
7030
7031 * stack.c (print_stack_frame_stub): Delete declaration.
7032 (struct print_stack_frame_args, print_stack_frame)
7033 (print_frame_info, print_frame): Replace "source" with print what.
7034 Replace "print" with "print_level". Replace "args" with
7035 "print_args".
7036 * frame.h (show_and_print_stack_frame, print_stack_frame)
7037 (print_frame_info): Update declarations.
7038 * stack.c (select_and_print_frame, frame_command)
7039 (current_frame_command, up_command, down_command): Update calls -
7040 use get_selected_frame, pass "enum print_what" for source, do not
7041 call frame_relative_level.
7042 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7043 * remote-rdp.c (remote_rdp_open): Ditto.
7044 * remote-mips.c (common_open): Ditto.
7045 * remote-e7000.c (e7000_start_remote): Ditto.
7046 * ocd.c (ocd_start_remote): Ditto.
7047 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7048 * infrun.c (normal_stop): Ditto.
7049 * inflow.c (kill_command): Ditto.
7050 * infcmd.c (finish_command): Ditto.
7051 * corelow.c (core_open): Ditto.
7052 * tracepoint.c (finish_tfind_command): Ditto.
7053 * thread.c (info_threads_command, info_threads_command)
7054 (restore_current_thread, do_captured_thread_select): Ditto.
7055 * ada-tasks.c (task_command): Ditto.
7056
7057 2004-04-26 Orjan Friberg <orjanf@axis.com>
7058
7059 * frame.c: Include "observer.h".
7060 (frame_observer_target_changed): New function.
7061 (_initialize_frame): Attach target_changed observer.
7062 * regcache.c: Include "observer.h".
7063 (regcache_observer_target_changed): New function.
7064 (_initialize_regcache): Attach target_changed observer.
7065 * valops.c: Include "observer.h".
7066 (value_assign): Notify target_changed event when modifying register.
7067 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7068
7069 2004-04-26 Orjan Friberg <orjanf@axis.com>
7070
7071 From Paul Koning <pkoning@equallogic.com>:
7072 * breakpoint.c (free_valchain): New function.
7073 (insert_bp_location, delete_breakpoint): Use free_valchain.
7074 (remove_breakpoint): Do not remove the valchain.
7075 (bpstat_stop_status): If not stopped by watchpoint, skip
7076 watchpoints when generating stop status list.
7077 * infrun.c (handle_inferior_event): Make
7078 stepped_after_stopped_by_watchpoint a global variable.
7079 * remote.c (remote_stopped_data_address): Return watch data
7080 address rather than zero if stepped_after_stopped_by_watchpoint is
7081 set.
7082
7083 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7084
7085 Fix PR gdb/1626.
7086 * configure.in: Check for curses after termcap.
7087 On osf5.*, do not check for ncurses.
7088 * configure: Regenerate.
7089
7090 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7091
7092 * ppcobsd-nat.c: Include "ppc-tdep.h".
7093 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7094
7095 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7096 Fixes PR tdep/1623 and PR tdep/1624.
7097
7098 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7099
7100 * xmodem.h, xmodem.c: Remove files.
7101 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7102
7103 2004-04-23 Randolph Chung <tausq@debian.org>
7104
7105 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7106 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7107 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7108 for handling stackless frames.
7109 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7110
7111 2004-04-23 Randolph Chung <tausq@debian.org>
7112
7113 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7114 starts at a pc before the frame is created.
7115
7116 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7117
7118 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7119
7120 2004-04-23 Jerome Guitton <guitton@gnat.com>
7121
7122 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7123 use convert_typed_floating to get the appropriate format.
7124
7125 2004-04-22 Randolph Chung <tausq@debian.org>
7126
7127 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7128 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7129 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7130 (hppa_sign_extend): Add prototype.
7131 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7132 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7133 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7134 hppa targets will also use these functions.
7135 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7136 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7137 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7138 (hppa_gdbarch_init): Remove gdbarch setting of
7139 skip_trampoline_code, in_solib_call_trampoline and
7140 in_solib_return_trampoline.
7141 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7142 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7143 hppa_in_solib_call_trampoline.
7144 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7145 Moved from hppa-tdep.c.
7146 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7147 in_solib_call_trampoline and in_solib_return_trampoline.
7148
7149 2004-04-22 Randolph Chung <tausq@debian.org>
7150
7151 * hppa-tdep.c (hppa_debug): New variable.
7152 (find_unwind_entry, hppa_frame_cache): Add debug output.
7153 (_initialize_hppa_tdep): Add command to set debug flag.
7154
7155 2004-04-22 Andrew Cagney <cagney@redhat.com>
7156
7157 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7158 "trad-frame.h".
7159 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7160 signal trampoline unwinder.
7161 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7162
7163 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7164
7165 Add OpenBSD/powerpc support.
7166 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7167 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7168 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7169 (ppc_collect_fpregset): New prototypes.
7170 * ppcobsd-nat.c: New file.
7171 * ppcobsd-tdep.c: New file.
7172 * ppcobsd-tdep.h: New file.
7173 * rs6000-tdep.c: Include "regset.h".
7174 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7175 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7176 New functions.
7177 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7178 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7179 (rs6000-tdep.o): Update dependencies.
7180 * configure.host: Add powerpc-*-openbsd.
7181 * configure.tgt: Add powerpc-*-openbsd.
7182 * config/powerpc/obsd.mh: New file.
7183 * config/powerpc/nm-obsd.h: New file.
7184 * config/powerpc/obsd.mt: New file.
7185
7186 2004-04-22 Andrew Cagney <cagney@redhat.com>
7187
7188 * frame.h (show_frame_info): Delete declaration.
7189
7190 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7191 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7192 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7193 * frv-tdep.c (frv_frame_this_id): Ditto.
7194 * avr-tdep.c (avr_frame_this_id): Ditto.
7195
7196 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7197
7198 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7199
7200 2004-04-22 Jim Blandy <jimb@redhat.com>
7201
7202 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7203 register number zero.
7204
7205 2004-04-21 Michael Snyder <msnyder@redhat.com>
7206
7207 * mips-tdep.c (heuristic_proc_start):
7208 Warning() already prefixes "Warning: ".
7209
7210 2004-04-21 Andrew Cagney <cagney@redhat.com>
7211
7212 * annotate.h (deprecated_annotate_starting_hook)
7213 (deprecated_annotate_stopped_hook)
7214 (deprecated_annotate_exited_hook)
7215 (deprecated_annotate_signal_hook)
7216 (deprecated_annotate_signalled_hook): Deprecate.
7217 * tracepoint.h (deprecated_create_tracepoint_hook)
7218 (deprecated_delete_tracepoint_hook)
7219 (deprecated_modify_tracepoint_hook)
7220 (deprecated_trace_find_hook)
7221 (deprecated_trace_start_stop_hook): Deprecate.
7222 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7223 * remote.h (deprecated_target_resume_hook)
7224 (deprecated_target_wait_loop_hook): Deprecate.
7225 * gdbcore.h (deprecated_exec_file_display_hook)
7226 (deprecated_file_changed_hook): Deprecate.
7227 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7228 * defs.h (deprecated_modify_breakpoint_hook)
7229 (deprecated_command_loop_hook, deprecated_show_load_progress)
7230 (deprecated_print_frame_info_listing_hook)
7231 (deprecated_query_hook, deprecated_warning_hook)
7232 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7233 (deprecated_delete_breakpoint_hook)
7234 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7235 (deprecated_readline_begin_hook, deprecated_readline_hook)
7236 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7237 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7238 (deprecated_context_hook, deprecated_target_wait_hook)
7239 (deprecated_attach_hook, deprecated_detach_hook)
7240 (deprecated_call_command_hook, deprecated_set_hook)
7241 (deprecated_error_hook, deprecated_error_begin_hook)
7242 (deprecated_ui_load_progress_hook): Deprecate.
7243 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7244 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7245 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7246 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7247 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7248 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7249 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7250 * annotate.c, aix-thread.c: Update.
7251
7252 2004-04-21 Andrew Cagney <cagney@redhat.com>
7253
7254 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7255 * vaxnbsd-tdep.c: Include "gdb_string.h".
7256
7257 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7258 (add_symbol_file_from_memory_command): #if 0 function body, call
7259 error instead.
7260
7261 2004-04-21 Andrew Cagney <cagney@redhat.com>
7262
7263 * gdbcore.h: Update copyright.
7264 (deprecated_add_core_fns): Rename add_core_fns.
7265 * win32-nat.c (_initialize_core_win32): Update.
7266 * sun3-nat.c (_initialize_core_sun3): Update.
7267 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7268 * rs6000-nat.c (_initialize_core_rs6000): Update.
7269 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7270 * nto-tdep.c (_initialize_nto_tdep): Update.
7271 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7272 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7273 * mips-nat.c (_initialize_core_mips): Update.
7274 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7275 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7276 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7277 * lynx-nat.c (_initialize_core_lynx): Update.
7278 * irix5-nat.c (_initialize_core_irix5): Update.
7279 * i386-interix-nat.c (_initialize_core_interix): Update.
7280 * cris-tdep.c (_initialize_cris_tdep): Update.
7281 * corelow.c (deprecated_add_core_fns): Update.
7282 * core-regset.c (_initialize_core_regset): Update.
7283 * core-aout.c (_initialize_core_aout): Update.
7284 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7285 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7286 * alpha-nat.c (_initialize_core_alpha): Update.
7287
7288 2004-04-21 Jim Blandy <jimb@redhat.com>
7289
7290 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7291
7292 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7293
7294 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7295 Delete.
7296 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7297 (read_attribute_value): Update calls to dwarf_alloc_block.
7298 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7299 dwarf2_tmp_obstack.
7300 (psymtab_to_symtab_1): Likewise. Clean up using
7301 free_stack_comp_unit.
7302 (add_to_cu_func_list): Use the comp_unit_obstack.
7303
7304 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7305
7306 * dwarf2read.c (dwarf2_flag_true_p): New function.
7307 (die_is_declaration): Use the function above. Add some comments.
7308
7309 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7310
7311 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7312 architecture when registering sparcnbsd_core_osabi_sniffer.
7313 Adjust comment.
7314
7315 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7316
7317 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7318 return value.
7319
7320 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7321 * i386-tdep.c: Correct register numbering scheme comments
7322 throughout.
7323 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7324 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7325 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7326 (i386_gdb_arch_init): Likewise.
7327
7328 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7329 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7330 ppcnbsd-tdep.o.
7331
7332 * m68k-tdep.h: Tweak comments.
7333 * m68k-tdep.c: Tweak comment.
7334
7335 2004-04-17 Randolph Chung <tausq@debian.org>
7336
7337 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7338 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7339 (hppa_hpux_som_init_abi): Set is_elf to 0.
7340 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7341 * hppa-tdep.c (low_text_segment_address): Remove global.
7342 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7343 section offset to calculate segment address.
7344 (internalize_unwinds): Define low_text_segment_address as local and
7345 pass to record_text_segment_lowaddr for ELF targets.
7346 (hppa_gdbarch_init): Zero fill tdep structure.
7347 (hppa_dump_tdep): Print tdep structure.
7348 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7349
7350 2004-04-17 Randolph Chung <tausq@debian.org>
7351
7352 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7353 (hppa_gdbarch_init): Set pseudo_register_read.
7354 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7355 * regcache.c (supply_register): Remove check for
7356 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7357
7358 2004-04-17 Randolph Chung <tausq@debian.org>
7359
7360 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7361 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7362 (hpread_adjust_stack_address): Move to hpread.c.
7363 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7364 obj_private_struct): Move from tm-hppa.h.
7365 * hpread.c (hppa-tdep.h): Include.
7366 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7367 (hpread_read_function_type, hpread_read_doc_function_type)
7368 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7369 directly.
7370 * pa64solib.c (hppa-tdep.h): Include.
7371 * somsolib.c (hppa-tdep.h): Include.
7372 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7373 inferior_status): Remove unused forward declarations.
7374 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7375 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7376 obj_private_struct): Move to hppa-tdep.h.
7377 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7378
7379 2004-04-17 Randolph Chung <tausq@debian.org>
7380
7381 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7382 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7383 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7384 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7385 Remove forward declaration and make static.
7386 (hppa_reg_struct_has_addr): Remove.
7387
7388 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7389
7390 * observer.sh: Move comments in sed command to first column.
7391
7392 2004-04-16 Jason Molenda (jmolenda@apple.com)
7393
7394 * frame.c: Minor typeo corrections in comments.
7395
7396 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7397
7398 * observer.c (observer_test_first_notification_function): Update
7399 function profile.
7400 (observer_test_second_notification_function): Likewise.
7401 (observer_test_third_notification_function): Likewise.
7402
7403 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7404
7405 From Brian Ford <ford@vss.fsi.com>:
7406 * i386-tdep.c (i386_coff_init_abi): New function.
7407 * i386-tdep.h (i386_coff_init_abi): New prototype.
7408 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7409 register number translation functions for DWARF and DWARF 2.
7410
7411 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7412
7413 * dwarf2read.c: Back out my previous change, it was incorrect.
7414
7415 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7416
7417 * dwarf2read.c: Include "hashtab.h".
7418 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7419 has_namespace_info.
7420 (struct partial_die_info): Add comments. Use bitfields to reduce
7421 memory footprint. Add scope, scope_set, has_specification,
7422 spec_offset, die_parent, die_child, and die_sibling.
7423 (peek_die_abbrev): Add prototype.
7424 (partial_read_comp_unit_head): New function, broken out from
7425 dwarf2_build_psymtabs_hard.
7426 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7427 Use partial_read_comp_unit_head. Initialize the CU and
7428 comp_unit_obstack. Update calls to read_partial_die and
7429 scan_partial_symbols. Use free_stack_comp_unit and
7430 load_partial_dies.
7431 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7432 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7433 Update calls to helper functions. Remove NAMESPACE argument.
7434 Update comments.
7435 (partial_die_parent_scope, partial_die_full_name): New functions.
7436 (add_partial_symbol): Remove namespace argument. Update call to
7437 pdi_needs_namespace. Use partial_die_full_name. Handle
7438 DW_TAG_namespace. Check has_namespace_info flag.
7439 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7440 tag. Handle namespaces.
7441 (add_partial_namespace, add_partial_enumeration): Simplify.
7442 (guess_structure_name): New function, derived from
7443 add_partial_structure.
7444 (add_partial_structure): Remove.
7445 (determine_class_name): Update comment.
7446 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7447 (is_type_tag_for_partial, load_partial_dies): New functions.
7448 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7449 Record specifications instead of following them immediately.
7450 (find_partial_die_in_comp_unit, find_partial_die)
7451 (fixup_partial_die, free_stack_comp_unit)
7452 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7453 (partial_die_hash, partial_die_eq): New functions.
7454 * Makefile.in (hashtab_h): Define.
7455 (dwarf2read.o): Update dependencies.
7456 (observer_inc, observer_h): Move to the correct section.
7457
7458 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7459
7460 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7461 (die_is_declaration): Use the function above. Add comment.
7462
7463 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7464
7465 * dwarf2read.c (read_structure_scope): Identify stub types
7466 using die_is_declaration() only.
7467
7468 2004-04-15 Roland McGrath <roland@redhat.com>
7469
7470 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7471 argument instead of NAME.
7472 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7473 in call to symbol_file_add_with_addrs_or_offsets.
7474 (build_addr_info): New function, helper for ...
7475 (symbol_file_add_from_memory): New function.
7476 (add_symbol_file_from_memory_command): New function using that.
7477 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7478 (pre_add_symbol_hook): Add const to argument type.
7479 * symfile.h (symbol_file_add_from_memory): Declare it.
7480
7481 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7482
7483 * NEWS (New native configurations): Mention OpenBSD/vax.
7484 * configure.host: Add vax-*-openbsd*.
7485 * config/vax/obsd.mh: New file.
7486 * config/vax/nm-obsd.h: New file.
7487
7488 * vax-tdep.c: Include "regset.h".
7489 (vax_supply_gregset): New function.
7490 (vax_gregset): New variable.
7491 (vax_regset_from_core_section): New function.
7492 (vax_gdbarch_init): Set regset_from_core_section.
7493 * Makefile.in (vax-tdep.o): Update dependencies.
7494
7495 2004-04-15 Andrew Cagney <cagney@redhat.com>
7496
7497 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7498 (observer_normal_stop_notification_stub)
7499 (observer_attach_normal_stop, observer_detach_normal_stop):
7500 Delete, replaced by #include "observer.inc".
7501 * infrun.c (normal_stop): Pass "stop_bpstat" to
7502 observer_notify_normal_stop.
7503 * Makefile.in (observer_inc): Define.
7504 (observer.o): Update dependencies.
7505 (observer.h, observer.inc): New rules.
7506 * observer.h: Delete file.
7507 * observer.sh: New file.
7508
7509 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7510
7511 * vax-tdep.c (vax_frame_cache): Fix typo.
7512
7513 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7514
7515 * NEWS (New native configurations): Mention NetBSD/vax.
7516 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7517 * config/vax/nbsdelf.mh: New file.
7518 * config/vax/nbsdaout.mh: New file.
7519 * config/vax/nm-nbsd.h: New file.
7520 * config/vax/nm-nbsdaout.h: New file.
7521
7522 * vaxnbsd-tdep.c: New file.
7523 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7524 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7525 * config/vax/nbsd.mt: New file.
7526 * config/vax/tm-nbsd.h: New file.
7527
7528 * Makefile.in (vaxbsd-nat.o): New dependency.
7529
7530 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7531 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7532 struct_addr arguments. Don't push return value address.
7533 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7534 arguments to vax_store_arguments. Store return value address in
7535 R1.
7536 (vax_store_struct_return, vax_extract_return_value)
7537 (vax_store_return_value): Remove functions.
7538 (vax_return_value): New function.
7539 (vax_gdbarch_init): Set return value. Don't set
7540 deprecated_store_struct_return, deprecated_extract_struct_return
7541 and deprecated_store_return_value.
7542
7543 2004-04-14 Andreas Schwab <schwab@suse.de>
7544
7545 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7546 value buffer.
7547 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7548
7549 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7550
7551 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7552 (vax_unwind_dummy_id): New functions.
7553 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7554 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7555 variables.
7556 (vax_fix_call_dummy): Remove function.
7557 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7558 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7559 call_dummy_location, deprecated_call_dummy_words,
7560 deprecated_sizeof_call_dummy_words,
7561 deprecated_call_dummy_breakpoint_offset,
7562 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7563 and deprecated_dummy_write_sp.
7564
7565 2004-04-13 David Carlton <carlton@kealia.com>
7566
7567 * MAINTAINERS: Move myself to "paper trail" section.
7568
7569 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7570
7571 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7572 "trad-frame.h".
7573 (vax_frame_init_saved_regs): Remove function.
7574 (vax_sigtramp_saved_pc): Remove function.
7575 (vax_frame_saved_pc): Remove function.
7576 (vax_frame_args_address): Remove function.
7577 (vax_frame_num_args): Rewrite.
7578 (vax_frame_chain): Remove function.
7579 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7580 VAX_FP_REGNUM.
7581 (vax_pop_frame): Likewise.
7582 (vax_saved_pc_after_call): Remove function.
7583 (struct vax_frame_cache): New structure.
7584 (vax_frame_cache): New function.
7585 (vax_frame_this_id): New function.
7586 (vax_frame_prev_register): New function.
7587 (vax_frame_unwind): New variable.
7588 (vax_frame_sniffer): New function.
7589 (vax_frame_base_address): New function.
7590 (vax_frame_args_address): New function.
7591 (vax_frame_base): New variable.
7592 (vax_unwind_pc): New function.
7593 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7594 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7595 deprecated_frame_chain, deprecated_frame_saved_pc,
7596 deprecated_frame_args_address and
7597 deprecated_frame_init_saved_regs.
7598 * Makefile.in (vax-tdep.o): Update dependencies.
7599
7600 * vaxbsd-nat.c: New file.
7601
7602 * vax-tdep.h: Update copyright year. Adjust comments.
7603 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7604 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7605 (vax_regnum): New enum. Replacing...
7606 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7607 (VAX_PS_REGNUM): ... these removed macros.
7608 * vax-tdep.c (vax_register_name): Remove prototype.
7609 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7610 (vax_register_byte, vax_register_raw_size,
7611 vax_register_virtual_size, vax_register_virtual_type): Remove
7612 functions.
7613 (vax_register_type): New function.
7614 (vax_breakpoint_from_pc): Reorganize.
7615 (vax_gdbarch_init): Set register_type. Don't set
7616 deprecated_register_size, deprecated_register_bytes,
7617 deprecated_register_byte, deprecated_register_raw_size,
7618 deprecated_max_register_raw_size,
7619 deprecated_register_virtual_size,
7620 deprecated_max_register_virtual_size and
7621 deprecated_register_virtual_type. Add comment on stack direction.
7622
7623 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7624
7625 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7626 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7627 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7628
7629 2004-04-10 Randolph Chung <tausq@debian.org>
7630
7631 * MAINTAINERS (write after approval): Add myself.
7632
7633 2004-04-07 Randolph Chung <tausq@debian.org>
7634
7635 * hppa-tdep.c (hppa_inner_than): Remove.
7636 (is_pa_2): Remove unused static variable.
7637 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7638
7639 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7640
7641 * language.h (language_defn): Add new la_post_parser field.
7642 * parser-defs.h (null_post_parser): New declaration (default for
7643 la_post_parser).
7644
7645 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7646 insert call to that function.
7647 (parse_exp_in_context): New function, including code formerly in
7648 parse_exp_1. Calls language-dependent post-parser after
7649 prefixification.
7650 (parse_expression_in_context): New exported function.
7651 (null_post_parser): New definition.
7652 * expression.h (parse_expression_in_context): Add declaration.
7653
7654 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7655 * c-lang.c (c_language_defn): Ditto.
7656 (cplus_language_defn): Ditto.
7657 (asm_language_defn): Ditto.
7658 (minimal_language_defn): Ditto.
7659 * f-lang.c (f_language_defn): Ditto.
7660 * jv-lang.c (java_language_defn): Ditto.
7661 * language.c (unknown_language_defn): Ditto.
7662 (auto_language_defn): Ditto.
7663 (local_language_defn): Ditto.
7664 * m2-lang.c (m2_language_defn): Ditto.
7665 * scm-lang.c (scm_language_defn): Ditto.
7666 * obj-lang.c (objc_language_defn): Ditto.
7667
7668 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7669
7670 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7671 (amd64nbsd_mcontext_addr): New function.
7672 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7673 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7674 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7675
7676 * corelow.c (core_xfer_partial): Fix coding standards violation.
7677 Add support for TARGET_OBJECT_WCOOKIE.
7678
7679 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7680 deprecated_pc_in_sigtramp.
7681 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7682 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7683 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7684 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7685 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7686 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7687 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7688
7689 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7690 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7691 Fix typo.
7692
7693 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7694 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7695 (amd64_collect_fxsave): Likewise.
7696
7697 * i386-sol2-tdep.c: Include "gdb_string.h".
7698 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7699 name.
7700 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7701
7702 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7703
7704 * i386-sol2-tdep.c: Include "solib-svr4.h".
7705 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7706 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7707 * config/i386/tm-i386sol2.h: Include :solib.h".
7708 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7709 solib-svr4.o and solib-legacy.o.
7710 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7711 solib-svr4.o.
7712
7713 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7714
7715 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7716 whether a register is supplied by PTRACE_GETFPREGS.
7717 (store_inferior_registers): Likewise.
7718 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7719 whether a register is supplied by PT_GETFPREGS.
7720 (store_inferior_registers): Likewise.
7721
7722 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7723 * config/i386/linux64.mt (TDEPFILES): Likewise.
7724
7725 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7726
7727 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7728 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7729 the program counter is in the range specified by `struct
7730 gdbarch_tdep'.
7731 * amd64-linux-tdep.c: Include "symtab.h".
7732 (amd64_linux_pc_in_sigtramp): Remove function.
7733 (amd64_linux_sigtramp_p): New function.
7734 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7735 deprecated_pc_in_sigtramp.
7736 * amd64nbsd-tdep.c: Include "symtab.h".
7737 (amd64nbsd_sigtramp_p): New function.
7738 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7739 deprecated_pc_in_sigtramp.
7740 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7741 few comments.
7742 (amd64obsd_pc_in_sigtramp): Remove function.
7743 (amd64obsd_sigtramp_p): New function.
7744 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7745 deprecated_pc_in_sigtramp.
7746 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7747 (i386bsd_pc_ins_sigtramp): Remove prototype.
7748 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7749 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7750 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7751 the program counter is in the range specified by `struct
7752 gdbarch_tdep'.
7753 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7754 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7755 (i386_go32_pc_in_sigtramp): Remove function.
7756 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7757 Initialize TDEP->sigtramp_p.
7758 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7759 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7760 deprecated_pc_in_sigtramp.
7761 * i386-linux-tdep.c: Adjust comments.
7762 (i386_linux_pc_in_sigtramp): Remove function.
7763 (i386_linux_sigtramp_p): New function.
7764 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7765 deprecated_pc_in_sigtramp.
7766 * i386-nto-tdep.c: Update copyright year.
7767 (i386nto_pc_in_sigtramp): Remove function.
7768 (i386nto_sigtramp_p): New function.
7769 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7770 SP_REGNUM.
7771 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7772 deprecated_pc_in_sigtramp.
7773 * i386-sol2-tdep.c: Update copyright year.
7774 (i386_sol2_pc_in_sigtramp): Remove function.
7775 (i386_sol2_sigtramp_p): New function.
7776 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7777 deprecated_pc_in_sigtramp.
7778 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7779 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7780 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7781 deprecated_sigtramp_start and deprecated_sigtramp_end.
7782 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7783 (i386nbsd_pc_in_sigtramp): Remove function.
7784 (i386nbsd_sigtramp_p): New function.
7785 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7786 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7787 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7788 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7789 (i386obsd_pc_in_sigtramp): Remove function.
7790 (i386obsd_sigtramp_p): New function.
7791 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7792 functions.
7793 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7794 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7795 TDEP->sigtramp_p.
7796 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7797 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7798 dependencies.
7799
7800 * config/i386/i386aout.mt: Remove file.
7801
7802 * configure.tgt: Remove i[34567]86-*-go32*,
7803 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7804 and i[34567]86-*-isc*. Set gdb_target to i386 for
7805 i[34567]86-*-netware* and i[34567]86-*-*.
7806 * config/i386/i386.mt: New file.
7807 * config/i386/embed.mt: Remove file.
7808 * config/i386/go32.mt: Remove file.
7809 * config/i386/i386nw.mt: Remove file.
7810 * config/i386/i386v.mt: Remove file.
7811 * config/i386/tm-go32.h: Remove file.
7812
7813 * tui/tui-hooks.c: Include "readline/readline.h" after
7814 "gdb_curses.h" instead of before.
7815 * tui/tui-io.c: Likewise.
7816
7817 * tui/tui.c: Fix typo in comment.
7818
7819 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7820
7821 2004-04-08 Andrew Cagney <cagney@redhat.com>
7822
7823 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7824 (deprecated_exception_support_initialized): Declare.
7825 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7826 (initialize_hp_cxx_exception_support)
7827 (child_enable_exception_callback): Update.
7828 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7829 (deprecated_exception_support_initialized): Rename
7830 deprecated_exception_catchpoints_are_fragile and
7831 deprecated_exception_support_initialized.
7832 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7833
7834 * symtab.c (deprecated_hp_som_som_object_present): Rename
7835 hp_som_som_object_present.
7836 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7837 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7838 Update. Delete extern declaration.
7839 * valops.c (hp_som_som_object_present): Ditto.
7840 * parse.c (deprecated_hp_som_som_object_present)
7841 (parse_nested_classes_for_hpacc): Ditto.
7842 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7843 * hppa-hpux-tdep.c (hp_som_som_object_present)
7844 (initialize_hp_cxx_exception_support): Ditto.
7845 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7846 * cp-valprint.c (hp_som_som_object_present)
7847 (cp_print_class_method): Ditto.
7848 * c-typeprint.c (hp_som_som_object_present):
7849 (c_type_print_base): Ditto.
7850 * c-exp.y (hp_som_som_object_present): Ditto.
7851
7852 2004-04-08 Andrew Cagney <cagney@redhat.com>
7853
7854 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7855 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7856 (frame_unwind_find_by_frame): Re-implement the unwind code so
7857 that it can both prepend and append sniffers. Replace
7858 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7859 * tramp-frame.c (tramp_frame_append): Use
7860 frame_unwind_prepend_unwinder.
7861 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7862 frame_unwind_register_unwinder.
7863 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7864 tramp_frame_append.
7865 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7866 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7867 (mips_linux_init_abi): Update.
7868
7869 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7870
7871 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7872 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7873 file support.
7874
7875 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7876
7877 * ia64-tdep.c (elf.h): Don't include.
7878 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7879
7880 2004-04-07 Jason Molenda (jmolenda@apple.com)
7881
7882 * frame.h: Typeo corrections in comments.
7883
7884 2004-04-07 Jim Blandy <jimb@redhat.com>
7885
7886 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7887 %esp and %ebp
7888
7889 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7890
7891 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7892 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7893 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7894 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7895 and solib-legacy.o.
7896 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7897 solib-svr4.o.
7898 * config/sparc/tm-sol2.h: Update copyright year. Include
7899 "solib.h".
7900
7901 * sparc-sol2-tdep.c: Update copyright year. Include
7902 "solib-svr4.h".
7903 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7904 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7905 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7906 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7907 dependencies.
7908
7909 2004-04-06 Andrew Cagney <cagney@redhat.com>
7910
7911 * infttrace.c: Include "infttrace.h".
7912 * infttrace.h: Include "target.h".
7913 * Makefile.in (infttrace_h): Update.
7914 (infttrace.o): Update.
7915
7916 2004-04-06 Andrew Cagney <cagney@redhat.com>
7917
7918 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7919 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7920 move extern declarations from here ...
7921 * infttrace.h: ... to here.
7922 * Makefile.in (hppah-nat.o): Update dependencies.
7923
7924 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7925 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7926 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7927 (hppa_breakpoint_from_pc): Delete.
7928
7929 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7930
7931 2004-04-05 Andrew Cagney <cagney@redhat.com>
7932
7933 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7934 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7935 <sys/file.h>.
7936
7937 2004-04-06 Randolph Chung <tausq@debian.org>
7938
7939 Committed by Andrew Cagney (mechanical change).
7940 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7941 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7942 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7943 child_enable_exception_callback, current_ex_event,
7944 null_symtab_and_line, child_get_current_exception_event,
7945 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7946 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7947 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7948 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7949 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7950 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7951 Move hpux-specific definitions ...
7952 * hppa-hpux-tdep.c: ... to here.
7953
7954 2004-04-05 Andrew Cagney <cagney@redhat.com>
7955
7956 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7957 skip_prologue_using_sal.
7958
7959 2004-04-05 Andrew Cagney <cagney@redhat.com>
7960
7961 * config/i386/tm-i386.h: Delete file.
7962 * config/i386/tm-vxworks.h: Update copyright, do not include
7963 "tm-i386.h".
7964 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7965 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7966 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7967 * config/i386/ncr3000.mt (TM_FILE): Delete.
7968 * config/i386/interix.mt (TM_FILE): Delete.
7969 * config/i386/i386v.mt (TM_FILE): Delete.
7970 * config/i386/i386nw.mt (TM_FILE): Delete.
7971 * config/i386/i386gnu.mt (TM_FILE): Delete.
7972 * config/i386/i386aout.mt (TM_FILE): Delete.
7973 * config/i386/embed.mt (TM_FILE): Delete.
7974
7975 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7976
7977 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7978 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7979 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7980 (accg7_regnum): New constants.
7981 (last_spr_regnum, last_pseudo_regnum): Update.
7982 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7983 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7984 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7985 for accg registers.
7986 (frv_register_sim_regno): Update spr_map[].
7987
7988 2004-04-04 Andrew Cagney <cagney@redhat.com>
7989
7990 * config/mips/xm-riscos.h: Delete.
7991 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7992 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7993 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7994 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7995 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7996 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7997 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7998 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7999 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8000 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8001 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8002 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8003 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8004 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8005 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8006 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8007 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8008 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8009 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8010 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8011 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8012 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8013 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8014 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8015 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8016 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8017
8018 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8019 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8020 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8021 * configure.host: Remove m680[01]0-sun-sunos3*,
8022 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8023 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8024 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8025 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8026 mips-*-riscos*.
8027 * NEWS: Mention removed systems.
8028
8029 2004-04-04 Andrew Cagney <cagney@redhat.com>
8030
8031 GDB 6.1 release created from 6.1 branch.
8032
8033 2004-04-04 Andrew Cagney <cagney@redhat.com>
8034
8035 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8036 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8037 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8038
8039 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8040 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8041 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8042
8043 2004-04-03 Jim Blandy <jimb@redhat.com>
8044
8045 * MAINTAINERS: Chris Faylor has changed employers; add him to
8046 "paper trail" section, and update his E-mail address.
8047
8048 2004-04-03 Andrew Cagney <cagney@redhat.com>
8049
8050 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8051 generic dummy frames.
8052 * dummy-frame.c: Update copyright.
8053 (dummy_frame_sniffer): Delete check for generic dummy frames.
8054
8055 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8056 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8057 (REG_PARM_STACK_SPACE): Delete.
8058 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8059 Inline reference to REG_PARM_STACK_SPACE.
8060
8061 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8062 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8063 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8064 (FRAME_BASE_BEFORE_SIGTRAMP)
8065 (hppa32_hpux_frame_base_before_sigtramp)
8066 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8067 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8068 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8069 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8070 (FRAME_BASE_BEFORE_SIGTRAMP)
8071 (hppa64_hpux_frame_base_before_sigtramp)
8072 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8073
8074 2004-04-03 Andrew Cagney <cagney@redhat.com>
8075
8076 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8077
8078 2004-04-02 Andrew Cagney <cagney@redhat.com>
8079
8080 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8081 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8082 * dummy-frame.h: Delete out-of-date comments.
8083 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8084 * gdbarch.h, gdbarch.c: Re-generate.
8085
8086 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8087
8088 Committed by Andrew Cagney <cagney@redhat.com>.
8089 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8090 into account an instruction saving a register if we have already
8091 seen an earlier instruction saving that same register.
8092
8093 2004-04-02 Andrew Cagney <cagney@redhat.com>
8094
8095 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8096 * gdbarch.h, gdbarch.c: Re-generate.
8097 * frame.c (legacy_get_prev_frame): Delete references to
8098 DEPRECATED_INIT_FRAME_PC_FIRST.
8099
8100 * infrun.c (pc_in_sigtramp): Delete function.
8101 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8102 get_frame_type.
8103
8104 2004-04-02 Andrew Cagney <cagney@redhat.com>
8105
8106 * infrun.c (handle_step_into_function): Delete code conditional on
8107 legacy_frame_p.
8108 (handle_inferior_event, step_over_function): Ditto.
8109
8110 2004-04-02 Andrew Cagney <cagney@redhat.com>
8111
8112 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8113 "previous frame inner to this frame" test.
8114
8115 2004-04-02 Andrew Cagney <cagney@redhat.com>
8116
8117 * frame.c (safe_frame_unwind_memory): New function.
8118 * frame.h (safe_frame_unwind_memory): Declare. Update description
8119 of /safe_/ methods.
8120 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8121 "next_frame". Use safe_frame_unwind_memory.
8122 (tramp_frame_sniffer): Update call to tramp_frame_start.
8123
8124 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8125
8126 * dwarf2read.c (dwarf2_objfile_data_key): New.
8127 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8128 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8129 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8130 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8131 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8132 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8133 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8134 Remove variables.
8135 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8136 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8137 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8138 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8139 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8140 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8141 Remove macros.
8142 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8143 data.
8144 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8145 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8146 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8147 (read_partial_die, read_full_die, read_indirect_string)
8148 (dwarf_decode_line_header, dwarf_decode_macros)
8149 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8150 Update uses of removed variables.
8151 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8152 of removed macros.
8153 (_initialize_dwarf2_read): New function.
8154 * symfile.h (dwarf2_has_info): Update prototype.
8155 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8156 * elfread.c (elf_symfile_read): Likewise.
8157
8158 2004-04-01 Jim Blandy <jimb@redhat.com>
8159
8160 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8161 function for register numbers on all the rs6000-derived targets.
8162 (rs6000_gdbarch_init): Don't register a separate
8163 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8164 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8165 variants.
8166
8167 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8168 numbering.
8169
8170 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8171
8172 * valarith.c: Update copyright notice.
8173 (value_add): Handle range types.
8174 (value_sub): Ditto.
8175 (value_equal): Ditto.
8176 (value_less): Ditto.
8177 (value_neg): Ditto.
8178 (value_complement): Ditto.
8179 (value_binop): Simplify slightly by using is_integral_type and
8180 eliminiating unnecessary COERCE_ENUMs.
8181
8182 2004-03-31 Andrew Cagney <cagney@redhat.com>
8183
8184 * frame.h (frame_unwind_id): Declare.
8185 * frame.c (frame_unwind_id): New function.
8186 (get_prev_frame_1): New function.
8187 (frame_debug_got_null_frame): New function.
8188 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8189 code proper to prev_frame, update description.
8190 * infrun.c (step_over_function): Use frame_unwind_id.
8191
8192 2004-04-31 J. Brobecker <brobecker@gnat.com>
8193
8194 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8195 (hppa64_push_dummy_call): Likewise.
8196
8197 2004-03-30 Jim Blandy <jimb@redhat.com>
8198
8199 From Ulrich Weigand:
8200 * utils.c (query): Do not use a va_list variable multiple times.
8201
8202 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8203
8204 * Makefile.in (linux_nat_h): Update dependencies.
8205 * configure.in: Check for <gnu/libc-version.h>.
8206 * configure: Regenerate.
8207 * config.in: Regenerate.
8208 * linux-nat.h: Include "target.h". Add waitstatus field to
8209 struct lwp_info.
8210 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8211 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8212 to.
8213 (lin_lwp_handle_extended): New function. Handle clone events.
8214 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8215 thread exit events.
8216 (child_wait): Handle clone events.
8217 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8218 * linux-nat.c (linux_enable_event_reporting): Turn on
8219 PTRACE_O_TRACECLONE.
8220 (linux_handle_extended_wait): Handle clone events.
8221 * thread-db.c: Include <gnu/libc-version.h>.
8222 (struct private_thread_info): Add dying flag.
8223 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8224 higher.
8225 (attach_thread): Update comments. Handle dying threads.
8226 (detach_thread): Set the dying flag.
8227 (check_event): Always call attach_thread.
8228
8229 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8230
8231 * mips-tdep.c (mips_pdr_data): New.
8232 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8233 (_initialize_mips_tdep): Initialize mips_pdr_data.
8234
8235 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8236
8237 * minsyms.c (install_minimal_symbols): Move dropping leading
8238 char from linkage name from here...
8239 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8240 test for "__gnu_compiled*" symbols.
8241
8242 2004-03-28 Jim Blandy <jimb@redhat.com>
8243
8244 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8245 registers to temp register r0 and byte stores as prologue
8246 instructions.
8247
8248 2004-03-28 Andrew Cagney <cagney@redhat.com>
8249
8250 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8251 arm*-*-*.
8252
8253 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8254
8255 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8256 and switch the layout to force a display of register window.
8257
8258 2004-02-26 J. Brobecker <brobecker@gnat.com>
8259
8260 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8261 of the INTEGER class.
8262
8263 2004-03-26 Jim Blandy <jimb@redhat.com>
8264
8265 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8266 bytes long on PPC GNU/Linux.
8267
8268 2004-03-26 David Carlton <carlton@kealia.com>
8269
8270 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8271
8272 2004-03-25 Andrew Cagney <cagney@redhat.com>
8273
8274 * PROBLEMS: Add general section titles, remove references to
8275 specific releases.
8276
8277 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8278
8279 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8280 INT_REGISTER_SIZE.
8281 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8282 FP_REGISTER_VIRTUAL_SIZE.
8283 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8284 of DEPRECATED_REGISTER_RAW_SIZE.
8285 (arm_register_type): Add gdbarch argument.
8286 (arm_register_raw_size, arm_register_virtual_size): Delete.
8287 (arm_register_byte, arm_extract_return_value)
8288 (arm_store_return_value, arm_get_longjmp_target): Update references
8289 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8290 (arm_gdbarch_init): Likewise. Don't set
8291 deprecated_register_raw_size, deprecated_register_virtual_size,
8292 deprecated_max_register_raw_size,
8293 deprecated_max_register_virtual_size, or
8294 deprecated_max_register_virtual_type. Do set register_type.
8295 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8296 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8297 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8298 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8299 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8300 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8301 INT_REGISTER_SIZE.
8302 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8303 (remote_rdp_store_register): Likewise.
8304
8305 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8306
8307 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8308 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8309 to after osabi initialization.
8310 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8311 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8312 functions.
8313 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8314 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8315 variables.
8316 (mips_linux_init_abi): Append signal trampoline unwinders.
8317
8318 2004-03-24 Andrew Cagney <cagney@redhat.com>
8319
8320 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8321 * tramp-frame.c: Include "gdb_assert.h".
8322 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8323 correct sizeof.
8324 (tramp_frame_append): Validate the tramp frame's instructions.
8325 * Makefile.in (tramp-frame.o): Update dependencies.
8326
8327 2004-03-23 Andrew Cagney <cagney@redhat.com>
8328
8329 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8330
8331 2004-03-23 Andrew Cagney <cagney@redhat.com>
8332
8333 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8334 Nasser as past testsuite/lib/ (and other) maintainers.
8335
8336 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8337
8338 * infcmd.c (attach_command): Reread symbols if we already have
8339 an exec file.
8340
8341 2004-03-23 Andrew Cagney <cagney@redhat.com>
8342
8343 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8344
8345 2004-03-23 Andrew Cagney <cagney@redhat.com>
8346
8347 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8348 * gdbarch.h, gdbarch.c: Re-generate.
8349 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8350 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8351 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8352 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8353 (DEPRECATED_SIGTRAMP_START): Update.
8354 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8355 (DEPRECATED_SIGTRAMP_START): Update.
8356 * blockframe.c (find_pc_sect_partial_function): Update.
8357 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8358
8359 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8360
8361 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8362 if necessary.
8363
8364 2004-03-23 Andrew Cagney <cagney@redhat.com>
8365
8366 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8367 predicate, deprecate.
8368 * gdbarch.h, gdbarch.c: Re-generate.
8369 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8370 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8371 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8372 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8373 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8374 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8375 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8376 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8377 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8378 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8379 * blockframe.c (find_pc_partial_function): Update.
8380 * breakpoint.c (bpstat_what): Update.
8381 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8382 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8383 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8384 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8385 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8386 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8387 * i386-nto-tdep.c (i386nto_init_abi): Update.
8388 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8389 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8390 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8391 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8392 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8393 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8394 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8395 * infrun.c (pc_in_sigtramp): Update.
8396 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8397 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8398 * mips-tdep.c (mips_gdbarch_init): Update.
8399 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8400 * ppc-linux-tdep.c: Update comment.
8401 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8402 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8403 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8404 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8405 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8406 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8407 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8408 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8409 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8410 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8411
8412 2004-03-23 Andrew Cagney <cagney@redhat.com>
8413
8414 * tramp-frame.h, tramp-frame.h: New files.
8415 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8416 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8417
8418 * Makefile.in: Update all dependencies.
8419
8420 2004-03-23 Andrew Cagney <cagney@redhat.com>
8421
8422 * Makefile.in (trad_frame_h): Add $(frame_h).
8423 * trad-frame.h: Update copyright. Include "frame.h".
8424 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8425 (trad_frame_set_id, trad_frame_get_id): Declare.
8426 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8427 * trad-frame.c: Update copyright.
8428 (struct trad_frame_cache): Define.
8429 (trad_frame_cache_zalloc): New function.
8430 (trad_frame_set_id, trad_frame_get_id): New functions.
8431 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8432
8433 2004-03-22 Andrew Cagney <cagney@redhat.com>
8434
8435 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8436 s390_pltstub_unwind_cache.
8437 (s390_stub_frame_unwind_cache): Rename
8438 s390_pltstub_frame_unwind_cache.
8439 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8440 (s390_stub_frame_prev_register): Rename
8441 s390_pltstub_frame_prev_register.
8442 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8443 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8444
8445 From Ulrich Weigand:
8446 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8447 pointer calls like PLT calls.
8448
8449 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8450
8451 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8452 PC rather than the partial function start address. Use the start
8453 address to sanity check the found PDR.
8454
8455 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8456
8457 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8458 linux_handle_extended_wait.
8459
8460 2004-03-22 Andrew Cagney <cagney@redhat.com>
8461
8462 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8463 function.
8464
8465 * frame.h (generic_pop_current_frame): Delete declaration.
8466 (deprecate_pop_dummy_frame): Deprecate
8467 generic_pop_dummy_frame.
8468 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8469 (generic_pop_current_frame): Delete function.
8470 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8471 generic_pop_current_frame.
8472 * v850-tdep.c (v850_pop_frame): Update.
8473 * mcore-tdep.c (mcore_pop_frame): Update.
8474 * sh64-tdep.c (sh64_pop_frame): Update.
8475 * h8300-tdep.c (h8300_pop_frame): Update.
8476
8477 2004-03-22 Andrew Cagney <cagney@redhat.com>
8478
8479 * frame.h (deprecated_pc_in_call_dummy): Rename
8480 generic_pc_in_call_dummy.
8481 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8482 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8483 generic_pc_in_call_dummy.
8484 (pc_in_dummy_frame): Make static.
8485 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8486 * gdbarch.h, gdbarch.c: Re-generate.
8487 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8488 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8489 (legacy_get_prev_frame): Ditto.
8490 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8491 comment.
8492
8493 2004-03-21 Andrew Cagney <cagney@redhat.com>
8494
8495 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8496 declaration and out-of-date comment.
8497 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8498 Delete function.
8499 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8500 deprecated_pc_in_call_dummy.
8501
8502 * infrun.c (handle_inferior_event): For non legacy frames, use the
8503 frame ID and frame type to identify a signal trampoline. Update
8504 comments.
8505
8506 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8507
8508 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8509 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8510
8511 2004-03-21 Andrew Cagney <cagney@redhat.com>
8512
8513 * frame-unwind.h: Update copyright.
8514 (struct frame_data): Add opaque declaration.
8515 (frame_sniffer_ftype): Declare.
8516 (struct frame_unwind): Add "unwind_data" and "sniffer".
8517 (frame_unwind_register_unwinder): Declare.
8518 (frame_unwind_find_by_frame): Add parameter "this_cache".
8519 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8520 (legacy_get_prev_frame, legacy_get_prev_frame)
8521 (get_frame_type): Pass the prologue_cache to
8522 frame_unwind_find_by_frame.
8523 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8524 "unwinder".
8525 (frame_unwind_register_unwinder): New function.
8526 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8527
8528 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8529
8530 * bcache.c (print_percentage): Use floating point to avoid
8531 incorrect results when portion*100 overflows.
8532
8533 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8534
8535 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8536 (ppc_linux_init_extra_frame_info)
8537 (ppc_linux_frameless_function_invocation)
8538 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8539 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8540 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8541 (rs6000_frame_chain): Delete declarations.
8542 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8543 (ppc_linux_init_extra_frame_info)
8544 (ppc_linux_frameless_function_invocation)
8545 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8546 (ppc_linux_init_abi): Remove registration of above deleted functions.
8547 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8548 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8549 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8550 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8551 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8552 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8553 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8554 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8555 frame management for all OSABIs.
8556
8557 2004-03-19 Andrew Cagney <cagney@redhat.com>
8558
8559 Committed by Kevin Buettner <kevinb@redhat.com>.
8560
8561 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8562 Update copyright.
8563 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8564 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8565 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8566 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8567 unwinders. #ifdef legacy frame code.
8568 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8569 "frame-base.h".
8570 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8571 (struct rs6000_frame_cache, rs6000_frame_cache)
8572 (rs6000_frame_this_id, rs6000_frame_prev_register)
8573 (rs6000_frame_sniffer, rs6000_frame_unwind)
8574 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8575 (rs6000_frame_base): Implement a traditional frame unwinder.
8576 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8577 frame unwinder.
8578
8579 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8580
8581 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8582 breakpoint address for watchpoints or the catch eventpoints.
8583 Add new paramter ``bptype''. Adjust all callers.
8584
8585 2004-03-19 Andrew Cagney <cagney@redhat.com>
8586
8587 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8588
8589 * PROBLEMS: Delete note that ARM does not use frame code, problem
8590 fixed.
8591
8592 2004-03-18 Andrew Cagney <cagney@redhat.com>
8593
8594 * stack.c (return_command): Delete code wrapped in #ifdef
8595 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8596
8597 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8598
8599 2004-03-18 Andrew Cagney <cagney@redhat.com>
8600
8601 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8602 DEPRECATED_IN_SIGTRAMP.
8603 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8604 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8605 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8606 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8607 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8608 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8609 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8610 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8611 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8612 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8613
8614 2004-03-18 Andrew Cagney <cagney@redhat.com>
8615
8616 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8617 (struct frame_base_table_entry): Define.
8618 (struct frame_base_table): Re-implement as a linked list.
8619 (frame_base_init): Re-implement.
8620 (frame_base_table): Delete function.
8621 (append_predicate): Delete function.
8622 (frame_base_append_sniffer): Update.
8623 (frame_base_set_default): Update.
8624 (frame_base_find_by_frame): Update.
8625 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8626 * Makefile.in (frame-base.o): Update dependencies.
8627
8628 2004-03-17 Andrew Cagney <cagney@redhat.com>
8629
8630 * frame.c (legacy_get_prev_frame): Pass correct frame to
8631 frame_unwind_find_by_frame.
8632
8633 2004-03-17 David Carlton <carlton@kealia.com>
8634
8635 * NEWS: Mention C++ nested types and namespaces
8636
8637 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8638
8639 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8640 and "Regressions since gdb 5.3.". Add known regressions since
8641 gdb 6.0.
8642
8643 2004-03-16 David Carlton <carlton@kealia.com>
8644
8645 * dwarf2read.c (process_structure_scope): Process children even
8646 when we're a declaration.
8647
8648 2004-03-16 Andrew Cagney <cagney@redhat.com>
8649
8650 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8651 * blockframe.c (find_pc_partial_function)
8652 (find_pc_sect_partial_function): Merge into a single
8653 find_pc_partial_function.
8654
8655 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8656
8657 * i386bsd-nat.c: s/regno/regnum/g.
8658 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8659 FP0_REGNUM.
8660 (store_inferior_registers): Likewise.
8661
8662 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8663
8664 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8665 of i387_fill_fsave.
8666 (store_inferior_registers): Call i387_collect_fsave and
8667 i387_collect_fxsave instead of i387_fill_fsave and
8668 i387_fill_fxsave.
8669
8670 2004-03-15 Andrew Cagney <cagney@redhat.com>
8671
8672 * Makefile.in (frame-unwind.o): Update dependencies.
8673 * frame-unwind.c: Include "gdb_obstack.h".
8674 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8675 parameter.
8676 (append_predicate): Delete function.
8677 (struct frame_unwind_table_entry): New structure.
8678 (struct frame_unwind_table): Replace "sniffer" with "head" and
8679 "tail".
8680 (frame_unwind_append_sniffer): Update.
8681 (frame_unwind_find_by_frame): Update.
8682 (_initialize_frame_unwind): Registe frame_unwind_init using
8683 gdbarch_data_register_pre_init.
8684
8685 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8686
8687 * i386bsd-nat.c: Update copyright year.
8688 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8689 define unconditionally.
8690
8691 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8692
8693 * i387-tdep.h (i387_collect_fsave): New prototype.
8694 * i387-tdep.c (i387_collect_fsave): New function containing most
8695 of the code from i387_fill_fsave.
8696 (i387_fill_fsave): Call i387_collect_fsave.
8697
8698 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8699
8700 * i386-linux-tdep.c: Update copyright year.
8701 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8702 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8703 svr4_ilp32_link_map_offsets instead of
8704 i386_linux_svr4_fetch_link_map_offsets.
8705
8706 2004-03-15 David Carlton <carlton@kealia.com>
8707
8708 Fix for PR c++/1553:
8709 * dwarf2read.c (read_structure_type): Determine type name by
8710 calling determine_class_name.
8711 (determine_class_name): New.
8712 (determine_prefix): Look at TYPE_TAG_NAME and call
8713 determine_class_name when appropriate.
8714 (determine_prefix_aux, class_name): Delete.
8715 (read_namespace): Set die->type.
8716
8717 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8718
8719 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8720 unused macro definition. The definition in target.h (or perhaps
8721 elsewhere) takes precedence.
8722
8723 2004-03-15 Andrew Cagney <cagney@redhat.com>
8724
8725 * ppc-tdep.h: Update copyright.
8726 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8727 function signatures to match "regsets.h".
8728 * ppc-linux-tdep.c: Include "regset.h".
8729 (ELF_GREGSET_SIZE): Delete.
8730 (right_supply_register): New function.
8731 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8732 using right_supply_register.
8733 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8734 functions.
8735 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8736 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8737 (_initialize_ppc_linux_tdep): Do not register
8738 ppc_linux_regset_core_fns.
8739 (ppc_linux_regset_from_core_section): Replace
8740 fetch_core_registers.
8741 (ppc_linux_regset_core_fns): Delete.
8742 * ppc-linux-nat.c: (right_fill_reg): New function.
8743 (supply_gregset): Update call to ppc_linux_supply_gregset.
8744 (fill_gregset): Clear the register set, use right_fill_reg.
8745 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8746 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8747
8748 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8749 unsigned.
8750
8751 2004-03-15 Andrew Cagney <cagney@redhat.com>
8752
8753 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8754 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8755 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8756 and register_gdbarch_data.
8757 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8758 (struct gdbarch_data): Replace "init" by "pre_init" and
8759 "post_init".
8760 * gdbarch.h, gdbarch.c: Re-generate.
8761 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8762 with"obstack", use OBSTACK_ZALLOC.
8763 (dwarf2_frame_ops): Delete.
8764 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8765 (dwarf2_frame_init_reg): Use gdbarch_data.
8766 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8767 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8768 (_initialize_svr4_solib): Update.
8769 * user-regs.c (_initialize_user_regs): Update.
8770 * reggroups.c (_initialize_reggroup): Update.
8771 * regcache.c (_initialize_regcache): Update.
8772 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8773 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8774 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8775 * frame-unwind.c (_initialize_frame_unwind): Update.
8776 * frame-base.c (_initialize_frame_base): Update.
8777 * user-regs.c (user_reg_add): Update.
8778 * reggroups.c (reggroup_add): Update.
8779 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8780 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8781 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8782 * frame-base.c (frame_base_table): Update.
8783 * remote.c (_initialize_remote): Update.
8784 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8785
8786 2004-03-15 Andrew Cagney <cagney@redhat.com>
8787
8788 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8789
8790 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8791
8792 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8793 * frv-linux-tdep.c: New file.
8794 * frv-tdep.c (struct gdbarch_tdep): Add new field
8795 ``sigcontext_reg_addr''.
8796 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8797 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8798 (frv_sigramp_frame_sniffer): New functions.
8799 (frv_sigtramp_frame_unwind): New static global.
8800 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8801 sniffers.
8802 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8803 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8804
8805 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8806
8807 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8808 but not via a call to error(), when unable to read memory.
8809
8810 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8811
8812 * frv-tdep.c (frv_call_dummy_words): Delete.
8813 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8814
8815 2004-03-15 Andrew Cagney <cagney@redhat.com>
8816
8817 * infrun.c (handle_step_into_function, step_over_function): Only
8818 update and use STEP_FRAME_ID when the system is using legacy
8819 frames. Update comments.
8820
8821 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8822
8823 * amd64-linux-tdep.h: Remove file.
8824 * amd64-linux-tdep.c: Don't include "inferior.h" and
8825 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8826 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8827 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8828 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8829 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8830 macros.
8831 (user_to_gdb_regmap): Remove variable.
8832 (amd64_linux_gregset_reg_offset): New variable.
8833 (amd64_core_fns): Remove variable.
8834 (fetch_core_registers): Remove function.
8835 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8836 functions.
8837 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8838 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8839 * Makefile.in (amd64_linux_tdep_h): Remove.
8840 (amd64-linux-nat.o): Update dependencies.
8841 (amd64-linux-tdep.o): Update dependencies.
8842
8843 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8844 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8845 functions.
8846 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8847
8848 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8849 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8850
8851 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8852
8853 * dwarf2read.c (read_structure_type): Rename from
8854 read_structure_scope. Don't create a symbol or call process_die.
8855 Return immediately if die->type is set. Call read_type_die before
8856 dwarf2_add_member_fn.
8857 (process_structure_scope): New function.
8858 (read_enumeration_type, process_enumeration_scope): New functions,
8859 broken out from read_enumeration. Don't create the enumeration
8860 type if it has already been created.
8861 (read_enumeration): Removed.
8862 (process_die): Call read_structure_type, process_structure_scope,
8863 read_enumeration_type, and process_enumeration_scope. Just call
8864 new_symbol for base and subrange types. Add a comment about other
8865 type dies.
8866 (read_type_die): Call read_enumeration_type.
8867 (add_partial_structure, new_symbol): Update comments.
8868
8869 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8870
8871 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8872
8873 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8874
8875 * tui/tui-win.h (tui_get_cmd_list): Declare.
8876 * tui/tui-win.c (tui_command): New function.
8877 (tui_get_cmd_list): New function.
8878 (_initialize_tui_win): Moved initialization of tui command in
8879 tui_get_cmd_list.
8880
8881 * tui/tui-data.c (init_content_element): Setup new data members.
8882 (init_win_info): Likewise.
8883 (free_content_elements): Free it.
8884 * tui/tui-data.h (struct tui_data_element): Store the register
8885 content to print.
8886 (struct tui_data_info): Keep the current register group.
8887
8888 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8889
8890 * tui/tui-regs.h (tui_show_registers): Update prototype.
8891 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8892 (tui_resize_all): No need to calculate anything for register window.
8893 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8894 (tui_set_register_element, tui_set_general_regs_content): Remove.
8895 (tui_set_special_regs_content): Remove.
8896 (tui_set_general_and_special_regs_content): Remove.
8897 (tui_set_float_regs_content): Remove.
8898 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8899 (tui_set_regs_content): Remove.
8900 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8901 (tui_v_show_registers_command_support): Remove.
8902 (tui_show_registers): Use a reggroup to specify the registers to show.
8903 (tui_show_register_group): New function.
8904 (tui_display_registers_from): Compute the layout of register window
8905 and refresh with new API; be sure to delete old register windows.
8906 (tui_check_register_values): Update to use tui_get_register and
8907 tui_display_data.
8908 (tui_display_register): Just refresh the register window part.
8909 (tui_register_format): Format registers and save in tui_data_element.
8910 (tui_get_register): New to combine tui_reg_value_has_changed and
8911 tui_get_register_raw_value; fix to use the new gdb API.
8912 (tui_show_float_command): Renamed tui_reg_float_command.
8913 (tui_show_general_command): Renamed tui_reg_general_command.
8914 (tui_show_special_command): Renamed tui_reg_system_command.
8915 (_initialize_tui_regs): Remove unused commands.
8916
8917 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8918
8919 * NEWS (New native configurations): Mention OpenBSD/amd64.
8920
8921 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8922 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8923 Remove defines.
8924 * config/i386/nm-fbsd64.h: Likewise.
8925 * config/i386/nm-obsd.h: Likewise.
8926 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8927 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8928
8929 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8930
8931 * frv-tdep.c (set_variant_scratch_registers): New function.
8932 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8933 New constants.
8934
8935 From Richard Sandiford <rsandifo@redhat.com>:
8936 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8937
8938 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8939
8940 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8941 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8942 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8943 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8944 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8945 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8946 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8947 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8948 definitions from frv-tdep.c to frv-tdep.h.
8949
8950 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8951
8952 Add shared library support for FR-V FDPIC ABI:
8953 * Makefile.in (solib-frv.o): Add dependencies.
8954 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8955 New functions.
8956 (frv_push_dummy_call): Add support for FDPIC ABI.
8957 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8958 for FDPIC ABI.
8959 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8960 (frv_fdpic_find_canonical_descriptor): Declare.
8961 * solib-frv.c: New file.
8962 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8963 * config/frv/tm-frv.h (solib.h): Include.
8964
8965 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8966
8967 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8968 (frv-tdep.o): Update dependencies.
8969 * frv-tdep.h: New file.
8970 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8971 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8972 constants.
8973 (struct gdbarch_tdep): Add new member ``frv_abi''.
8974 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8975 functions.
8976 (new_variant): Set ``frv_abi'' field.
8977 (gdb_arch_init): Detect FDPIC executables.
8978
8979 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8980
8981 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8982 wrapper.
8983
8984 2004-03-11 Andrew Cagney <cagney@redhat.com>
8985
8986 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8987
8988 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8989
8990 * solist.h (master_so_list): New function.
8991 * solib.c (master_so_list): Likewise.
8992 * solib-svr4.c (enable_break): Iterate over so_list entries
8993 obtained from master list instead of entries obtained directly
8994 via svr4_current_sos().
8995
8996 2004-03-10 Ben Elliston <bje@gnu.org>
8997
8998 * MAINTAINERS: Update my mail address.
8999
9000 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9001
9002 * remote-m32r-sdi.c: Support hardware watchpoint.
9003
9004 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9005
9006 * user-regs.c: Update copyright years.
9007 (struct user_regs): Rename to gdb_user_regs.
9008 (append_user_reg, builtin_user_regs, user_regs_init)
9009 (user_reg_add, user_reg_map_name_to_regnum)
9010 (usernum_to_user_reg): Update.
9011
9012 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9015 (skip_children): New functions.
9016 (locate_pdi_sibling): Call skip_children.
9017
9018 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9019
9020 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9021 * gdbtypes.c (check_typedef): Update comments.
9022
9023 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9024
9025 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9026 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9027 pointer. Update comment about comp_unit_head.
9028 (struct abbrev_info): Shorten two int flags.
9029 (dwarf_alloc_abbrev): Take a CU argument.
9030 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9031 each time through the loop. Update cleanup argument.
9032 (psymtab_to_symtab_1): Update cleanup call.
9033 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9034 abbrev_obstack.
9035 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9036 Just call obstack_free and clear the pointer.
9037
9038 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9039
9040 * infrun.c (handle_inferior_event): Remove short-circuit code for
9041 events in a different thread.
9042
9043 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9044
9045 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9046 print the whole transfer.
9047 (initialize_targets): Update description of "set debug target".
9048
9049 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9050
9051 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9052
9053 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9054
9055 * MAINTAINERS (write after approval): Add myself.
9056
9057 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9058
9059 * sh-tdep.c (sh_print_registers_info): Use for loop.
9060 Don't skip multiple registers when a float register is encountered.
9061
9062 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9063
9064 Fix PR tdep/1291.
9065 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9066 to official SH documentation.
9067
9068 2004-03-07 Andrew Cagney <cagney@redhat.com>
9069
9070 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9071 unused function.
9072
9073 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9074
9075 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9076 (arm_get_next_pc): Handle BX and BLX.
9077
9078 2004-03-07 Andrew Cagney <cagney@redhat.com>
9079
9080 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9081 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9082 HPPA_SP_REGNUM.
9083 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9084 (hppa_target_read_fp): Delete.
9085 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9086 register_virtual_size, max_register_raw_size,
9087 max_register_virtual_size, register_byte, register_size,
9088 target_read_fp, fp_regnum, and register_bytes. Set register_type
9089 instead of register_virtual_type.
9090 (hppa32_register_type, hppa64_register_type): Replace
9091 hppa32_register_virtual_type and hppa64_register_virtual_type.
9092 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9093 (HPPA_FP_REGNUM): Define.
9094
9095 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9096
9097 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9098 (pa_do_registers_info): Delete.
9099 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9100 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9101 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9102
9103 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9104 GDB_TARGET_IS_HPPA code.
9105 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9106 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9107 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9108 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9109 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9110 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9111 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9112 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9113 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9114 (hppa_frameless_function_invocation, hppa64_store_return_value)
9115 (hppa_store_struct_return, hppa64_extract_return_value)
9116 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9117 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9118 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9119 (find_proc_framesize, deposit_21, restore_pc_queue)
9120 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9121 (rp_saved, pc_in_linker_stub): Delete.
9122
9123 Unconditionally enable 64-bit frame and ABI code.
9124 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9125 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9126 push_dummy_frame, fix_call_dummy, push_arguments,
9127 call_dummy_location, extract_return_value, use_struct_convention,
9128 store_return_value, store_struct_return, saved_pc_after_call,
9129 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9130 frame_chain, frame_chain_valid, frameless_function_invocation,
9131 frame_saved_pc, and pop_frame.
9132
9133 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9134 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9135 (hppa_gdbarch_init): Do not set PC_REGNUM.
9136
9137 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9138
9139 * config/alpha/tm-fbsd.h: Remove file.
9140 * config/alpha/fbsd.mt: Tweak comment.
9141 (TM_FILE): Set to tm-alpha.h.
9142
9143 2004-03-05 Andrew Cagney <cagney@redhat.com>
9144
9145 * infrun.c (step_over_function): When non-legacy code, and no
9146 step_frame_id, use the unwinder to get the caller's frame ID.
9147
9148 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9149
9150 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9151 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9152 bfd_arch_unknown. Adjust comment.
9153
9154 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9155 * i386obsd-tdep.c: Correct spelling in comment.
9156 * i386nbsd-tdep.c: Correct spelling in comment.
9157 * sparc-tdep.c: Correct spelling in comments.
9158
9159 2004-03-05 David Carlton <carlton@kealia.com>
9160
9161 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9162 bug.
9163
9164 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9165
9166 * sparc-tdep.c: Fix typo in comment.
9167
9168 2004-03-04 J. Brobecker <brobecker@gnat.com>
9169
9170 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9171
9172 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9173
9174 * dwarf2read.c: Add comment describing memory lifetimes.
9175 (struct dwarf2_pinfo): Update comment.
9176 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9177 (read_enumeration, new_symbol): Don't use obsavestring.
9178
9179 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9180
9181 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9182 instead of amd64_fill_fxsave.
9183 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9184 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9185
9186 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9187 Reorganize code a bit.
9188
9189 2004-03-04 Orjan Friberg <orjanf@axis.com>
9190
9191 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9192 when the frame pointer is pushed. Don't set the frame pointer's
9193 address on the stack unless it's actually located there.
9194 Set the SRP's address on the stack correctly when the PC is still in
9195 the prologue.
9196 (cris_return_value): New function.
9197 (cris_gdbarch_init): Clear deprecated store_return_value,
9198 extract_return_value.
9199
9200 2004-03-02 Jim Blandy <jimb@redhat.com>
9201
9202 * stabsread.c (reg_value_complaint): The maximum register number
9203 is one less than the number of registers.
9204
9205 2004-03-02 Andrew Cagney <cagney@redhat.com>
9206
9207 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9208 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9209 trailing comma and redundant assignment of I386_ST0_REGNUM.
9210 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9211 32-bit segment registers.
9212
9213 2004-03-01 Andrew Cagney <cagney@redhat.com>
9214
9215 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9216 use frame_relative_level and get_next_frame.
9217
9218 2004-02-29 Andrew Cagney <cagney@redhat.com>
9219
9220 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9221 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9222 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9223 Delete macro.
9224
9225 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9226
9227 * inflow.c (terminal_inferior): Don't give up the terminal if we
9228 previously couldn't get the inferior's terminal state.
9229
9230 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9231
9232 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9233 PC_REGNUM.
9234
9235 2004-02-28 Andrew Cagney <cagney@redhat.com>
9236
9237 * NEWS: Refer to GDB 6.1.
9238 * README: Refer to GDB 6.1.
9239 * PROBLEMS: Refer to GDB 6.1.
9240
9241 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9242
9243 * thread-db.c (disable_thread_signals): Remove unused function.
9244
9245 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9246
9247 * amd64-nat.c: Include "gdb_string.h".
9248 (amd64_collect_native_gregset): Zero-extend the 32-bit
9249 general-purpose registers and %eip.
9250
9251 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9252 * amd64-tdep.c (amd64_collect_fxsave): New function.
9253 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9254
9255 * i387-tdep.h: Update copyright year.
9256 (i387_collect_fxsave): New prototype.
9257 * i387-tdep.c: Update copyright year.
9258 (i387_collect_fxsave): New function containing most of the code
9259 from i387_fill_fxsave.
9260 (i387_fill_fxsave): Call i387_collect_fxsave.
9261
9262 2004-02-28 Andrew Cagney <cagney@redhat.com>
9263
9264 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9265 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9266
9267 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9268
9269 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9270
9271 2004-02-28 Andrew Cagney <cagney@redhat.com>
9272
9273 * utils.c: Use "", instead of <>, to include readline.
9274 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9275 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9276 * source.c, solib.c, exec.c, event-top.c: Ditto.
9277 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9278 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9279 * Makefile.in: Update all dependencies.
9280 (readline_tilde_h, readline_history_h): Define.
9281 (readline_headers): Delete.
9282
9283 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9284
9285 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9286 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9287 "config/i386/tm-lx64.h".
9288
9289 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9290 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9291 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9292
9293 2004-02-28 Andrew Cagney <cagney@redhat.com>
9294
9295 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9296
9297 * breakpoint.c (_initialize_breakpoint): Use
9298 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9299 Add help to show command.
9300
9301 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9302
9303 * i386-nat.c: Reformat to be closer to coding standards.
9304 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9305 `retval'. Make variables `align' and `size' local to while-loop.
9306 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9307 (_initialize_i386_nat): New prototype.
9308
9309 * tui/tui.c: Include <readline/readline.h> instead of
9310 "readline/readline.h". Include it after <term.h> and
9311 "gdb_curses.h".
9312
9313 2004-02-27 Andrew Cagney <cagney@redhat.com>
9314
9315 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9316 the new frame unwind code.
9317 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9318 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9319 PCOQ_HEAD_REGNUM.
9320
9321 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9322 "return_value" and "push_dummy_call".
9323 (hppa32_use_struct_convention): Delete unused function.
9324 (hppa32_store_return_value): Delete unused function.
9325 (hppa32_extract_return_value): Delete unused function.
9326 (hppa32_stack_align): Delete function.
9327
9328 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9329
9330 * coffread.c (enter_linenos): Don't let rawptr reference memory
9331 outside linetab[]'s limits.
9332
9333 2004-02-27 Andrew Cagney <cagney@redhat.com>
9334
9335 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9336 inferior stack space - the stack needs to grow upwards.
9337 (hppa32_frame_align): New function.
9338 (hppa64_frame_align): Replace hppa_frame_align.
9339 (hppa_gdbarch_init): Update.
9340
9341 2004-02-26 Orjan Friberg <orjanf@axis.com>
9342
9343 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9344 (dwarf2-frame.h): Include.
9345 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9346 Remove static variables related to ABI setting.
9347 (struct gdbarch_tdep): Remove cris_abi member.
9348 (struct frame_extra_info): Remove.
9349 (cris_unwind_cache, stack_item): New structs.
9350 (cris_frame_unwind, cris_frame_base): New variables.
9351 (push_stack_item, pop_stack_item)
9352 (cris_frame_unwind_cache, cris_frame_this_id)
9353 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9354 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9355 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9356 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9357 (cris_reg_struct_has_addr): New functions.
9358 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9359 (cris_frame_saved_pc, cris_saved_pc_after_call,
9360 (cris_store_struct_return, cris_frameless_function_invocation)
9361 (cris_pop_frame, cris_skip_prologue_main)
9362 (cris_abi_original_store_return_value)
9363 (cris_abi_v2_store_return_value)
9364 (cris_abi_original_extract_return_value)
9365 (cris_abi_v2_extract_return_value)
9366 (cris_abi_original_reg_struct_has_addr)
9367 (cris_abi_v2_reg_struct_has_addr)
9368 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9369 (cris_push_return_address, cris_abi_update): Remove.
9370 (_initialize_cris_tdep): Remove ABI command.
9371 (cris_dump_tdep): Ditto.
9372 (cris_gdbarch_init): Remove ABI command.
9373 Set store_return_value, extract_return_value, push_dummy_code,
9374 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9375 frame_unwind_append_sniffer, frame_base_set_default.
9376 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9377 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9378 sizeof_call_dummy_words, get_saved_register, push_return_address,
9379 pop_frame, store_struct_return, frame_init_saved_regs,
9380 init_extra_frame_info, frameless_function_invocation, frame_chain,
9381 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9382 dummy_write_sp.
9383
9384 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9385
9386 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9387 * valprint.c (print_hex_chars): Change from static to external.
9388 (print_char_chars): New function.
9389 * printcmd.c (print_scalar_formatted): For integer and enum types
9390 that are longer than LONGEST, perform processing via appropriate
9391 print_*_chars routines.
9392
9393 2004-02-26 Andrew Cagney <cagney@redhat.com>
9394
9395 * Makefile.in: Update dependencies.
9396 Changes from Ulrich Weigand,
9397 * s390-tdep.c: Include "dwarf2-frame.h".
9398 (s390_dwarf2_frame_init_reg): New function.
9399 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9400 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9401
9402 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9403
9404 * breakpoint.c (pending_break_support): New setting variable.
9405 (break_command_1): Account for pending_break_support setting
9406 when creating pending breakpoints.
9407 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9408 (_initialize_breakpoint): Add "set breakpoint pending" and
9409 "show breakpoint pending" commands.
9410
9411 2004-02-26 Andrew Cagney <cagney@redhat.com>
9412
9413 Fix PR i18n/1570.
9414 * charset.c (backslashable, backslashed, represented): Remove 'e'
9415 from list of escaped characters, not part of ISO-C.
9416
9417 2004-02-25 J. Brobecker <brobecker@gnat.com>
9418
9419 From Peter Schauer <schauer@pdf.de>:
9420 * tui/tui.c: Move system header includes after local includes.
9421 Fixes a build failure on solaris systems.
9422
9423 2004-02-25 J. Brobecker <brobecker@gnat.com>
9424
9425 * configure.in: Refine the previous change.
9426 * configure: Regenerate.
9427
9428 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9429
9430 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9431 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9432 "amd64-tdep.h" instead of "x86-64-tdep.h".
9433 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9434 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9435 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9436 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9437 and "x86-64-tdep.c".
9438 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9439 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9440 and "x86-64-tdep.c".
9441 * amd64bsd-nat.c: Update copyright year.
9442 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9443 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9444 "x86-64-tdep.h".
9445 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9446 "x86-64-tdep.h".
9447 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9448 "x86-64-tdep.h".
9449 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9450 "x86-64-tdep.h".
9451 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9452 "x86-64-tdep.h".
9453 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9454 "x86-64-tdep.h".
9455 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9456 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9457 * Makefile.in (amd64_linux_tdep_h): Renamed from
9458 x86_64_linux_tdep_h.
9459 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9460 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9461 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9462 (amd64obsd-tdep.o): Update dependencies.
9463 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9464 dependencies.
9465 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9466 dependencies.
9467 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9468 amd64-linux-nat.c amd64-linux-tdep.c.
9469 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9470 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9471 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9472 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9473 amd64-tdep.o and amd64-linux-tdep.o.
9474 (TM_FILE): Set to tm-linux64.h.
9475 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9476 (NAT_FILE): Set to nm-linux64.h.
9477 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9478 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9479 amd64-tdep.o.
9480 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9481 amd64-tdep.o.
9482 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9483 amd64-tdep.o.
9484
9485 2004-02-25 Roland McGrath <roland@redhat.com>
9486
9487 * remote.c (remote_protocol_qPart_auxv): New variable.
9488 (init_all_packet_configs): Initialize it.
9489 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9490 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9491 (show_remote_cmd): Call it.
9492 (_initialize_remote): Initialize commands.
9493 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9494 service TARGET_OBJECT_AUXV requests.
9495
9496 2004-02-25 J. Brobecker <brobecker@gnat.com>
9497
9498 * configure.in: Make sure that the wborder function is available.
9499 Otherwise, search for it in the cur_colr library.
9500 * configure: Regenerate.
9501
9502 2004-02-25 Andrew Cagney <cagney@redhat.com>
9503
9504 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9505
9506 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9507
9508 * config/i386/tm-x86-64linux.h: Tweak comments.
9509
9510 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9511
9512 * MAINTAINERS: Add self to write-after-approval list.
9513
9514 2004-02-25 Andrew Cagney <cagney@redhat.com>
9515
9516 PR cli/1566. Problem found, and fix suggested by David Allan.
9517 * cli/cli-script.c (execute_control_command): Unconditionally
9518 install a cleanup. Default "ret" to "invalid_control". Use
9519 "break" instead of "return" to escape from the switch.
9520
9521 2004-02-24 J. Brobecker <brobecker@gnat.com>
9522
9523 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9524 with the lines macro defined in term.h on AiX.
9525 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9526 a collision with the label_width macro defined in term.h on AiX.
9527
9528 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9529
9530 Committed by Kevin Buettner <kevinb@redhat.com>.
9531
9532 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9533 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9534 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9535 instead of ia64_write_pc().
9536 * ia64-linux-tdep.c (regcache.h): Include.
9537 (ia64_linux_write_pc): New function.
9538
9539 2004-02-23 Roland McGrath <roland@redhat.com>
9540
9541 * auxv.c (info_auxv_command): Fix typos in error messages.
9542
9543 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9544
9545 * x86-64-tdep.h: Tweak comment.
9546 (enum amd64_regnum): New.
9547 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9548 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9549 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9550 (X86_64_XMM1_REGNUM): Removed.
9551 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9552 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9553 prototypes for renamed functions.
9554 * x86-64-tdep.c: Fix typo.
9555 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9556 register numbers.
9557 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9558 Use constants from `enum amd64_regnum' for register numbers.
9559 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9560 (amd64_analyze_prologue, amd64_frame_cache,
9561 amd64_sigtramp_frame_cache): Use constants from `enum
9562 amd64_regnum' for register numbers.
9563 (amd64_supply_fpregset): Adjust for renamed functions.
9564 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9565 `enum amd64_regnum' for register numbers.
9566 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9567 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9568 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9569 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9570 (amd64_linux_fill_gregset): Adjust for renamed macros.
9571 (fetch_core_registers): Adjust for renamed functions.
9572 (amd64_linux_init_abi): Adjust for renamed functions.
9573 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9574 renamed functions.
9575 * amd64-nat.c: Adjust for renamed macros.
9576 * amd64bsd-nat.c (fetch_inferior_registers)
9577 (store_inferior_registers): Use constants from `enum amd64_regnum'
9578 for register numbers. Adjust for renamed variables.
9579 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9580 renamed variables.
9581 (_initialize_amd64fbsd_nat): Use constants from `enum
9582 amd64_regnum' for register numbers.
9583 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9584 `enum amd64_regnum' for register numbers.
9585 (amd64fbsd_init_abi): Adjust for renamed functions.
9586 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9587 `enum amd64_regnum' for register numbers.
9588 (amd64nbsd_init_abi): Adjust for renamed functions.
9589 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9590 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9591 `enum amd64_regnum' for register numbers.
9592 (amd64obsd_init_abi): Adjust for renamed functions.
9593 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9594
9595 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9596
9597 * breakpoint.c (print_one_breakpoint): Do not output spaces
9598 after printing <PENDING> for a pending breakpoint.
9599
9600 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9601
9602 * printcmd.c (print_scalar_formatted): Initialize val_long
9603 to remove compiler warning message.
9604
9605 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9606
9607 * defs.h (nquery, yquery): New prototypes.
9608 * breakpoint.c (break_command_1): Use new nquery interface.
9609 * utils.c (defaulted_query, nquery, yquery): New functions.
9610
9611 2004-02-23 Andrew Cagney <cagney@redhat.com>
9612
9613 * hppa-tdep.c (hppa_frame_align): New function.
9614 (hppa32_push_dummy_call): New function.
9615 (hppa64_push_dummy_call): New function.
9616 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9617 disabled.
9618
9619 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9620 FIX_CALL_DUMMY when push_dummy_call is available.
9621 (call_function_by_hand, push_dummy_code): Ditto.
9622
9623 2004-02-22 Andrew Cagney <cagney@redhat.com>
9624
9625 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9626 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9627 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9628 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9629 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9630 call_dummy_location to ON_STACK.
9631
9632 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9633
9634 * x86-64-linux-tdep.c: Tweak comment.
9635 (amd64_linux_supply_gregset): Renamed from
9636 x86_64_linux_supply_gresget.
9637 (amd64_linux_fill_gregset): Renamed from
9638 x86_64_linux_fill_gregset.
9639 (fetch_core_registers): Adjust for renamed functions.
9640 (amd64_core_fns): Renamed from x86_64_core_fns.
9641 (amd64_linux_sigtramp_start): Renamed from
9642 x86_64_linux_sigtramp_start.
9643 (amd64_linux_pc_in_sigtramp): Renamed from
9644 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9645 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9646 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9647 (amd64_linux_sigcontext_addr): Renamed from
9648 x86_64_linux_sigcontext_addr.
9649 (amd64_linux_sc_reg_offset): Renamed from
9650 x86_64_linux_sc_reg_offset.
9651 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9652 Adjust for renamed functions and variables.
9653 (_initialize_amd64_linux_tdep): Renamed from
9654 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9655 variables.
9656 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9657 Adjust for renamed functions.
9658
9659 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9660 from x86_64_linux_gregset64_reg_offset.
9661 (amd64_linux_gregset32_reg_offset): Rename from
9662 x86_64_linux_gregset64_reg_offset.
9663 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9664 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9665 (amd64_linux_dr_set_control): Renamed from
9666 x86_64_linux_dr_set_control. Adjust for renamed functions.
9667 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9668 Adjust for renamed functions.
9669 (amd64_linux_dr_reset_addr): Renamed from
9670 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9671 (amd64_linux_dr_get_status): Renamed from
9672 x86_64_linux_dr_get_status. Adjust for renamed functions.
9673 (_initialize_amd64_linux_nat): Renamed from
9674 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9675 functions.
9676 * config/i386/nm-x86-64linux.h: Update copyright year.
9677 Adjust for renamed functions.
9678
9679 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9680 amd64fbsd_sigtramp_start.
9681 (amd64fbsd_sigtramp_end_addr): Renamed from
9682 amd64fbsd_sigtramp_end.
9683 (amd64fbsd_init_abi): Adjust for renamed variables.
9684 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9685 variables.
9686 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9687 amd64fbsd_sigtramp_start.
9688 (amd64fbsd_sigtramp_end_addr): Renamed from
9689 amd64fbsd_sigtramp_end.
9690
9691 2004-02-22 Andrew Cagney <cagney@redhat.com>
9692
9693 * hppa-tdep.c (hppa32_return_value): New function.
9694 (hppa64_return_value): New function.
9695 (hppa_gdbarch_init): Set return_value; keep disabled.
9696
9697 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9698 struct-return and inferior function call methods.
9699
9700 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9701 "frame-base.h".
9702 (struct hppa_frame_cache): Define.
9703 (hppa_frame_cache, hppa_frame_this_id): New functions.
9704 (hppa_frame_prev_register): New function.
9705 (hppa_frame_unwind, hppa_frame_base): New variables.
9706 (hppa_frame_unwind_sniffer): New function.
9707 (hppa_frame_base_address, hppa_unwind_pc): New function.
9708 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9709 sniffer, and frame base sniffer; keep disabled.
9710 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9711 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9712
9713 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9714 to predicates for "seriously old code".
9715
9716 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9717 runtime if(0).
9718
9719 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9720 unsigned.
9721 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9722
9723 * config/pa/tm-hppa.h: Update copyright.
9724 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9725 (deprecated_init_frame_pc_default): Delete declaration.
9726 (hppa_frame_init_saved_regs): Delete declaration.
9727 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9728 * hppa-tdep.c: Include "arch-utils.h".
9729 (hppa_gdbarch_init): Set deprecated init_frame_pc
9730 and deprecated frame_init_saved_regs.
9731 (hppa_frame_init_saved_regs): Make static.
9732
9733 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9734
9735 Remove old 386BSD support.
9736 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9737 * configure.host: Remove i[34567]86-*-bsd*.
9738 * configure.tgt: Remove i[34567]86-*-bsd*.
9739 * i386b-nat.c: Removed.
9740 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9741 (i386b-nat.o): Remove dependencies.
9742
9743 * config/i386/i386bsd.mh: Removed.
9744 * config/i386/i386bsd.mt: Removed.
9745 * config/i386/nm-i386bsd.h: Removed.
9746 * config/i386/tm-i386bsd.h: Removed.
9747 * config/i386/xm-i386bsd.h: Removed.
9748
9749 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9750
9751 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9752 (amd64fbsd_init_abi): Set link map offsets.
9753 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9754 (amd64nbsd_init_abi): Set link map offsets.
9755 * amd64obsd-tdep.c: Include "solib-svr4.h".
9756 (amd64obsd_init_abi): Set link map offsets.
9757 * i386fbsd-tdep.c: Include "solib-svr4.h".
9758 (i386fbsd_init_abi): Set link map offsets.
9759 * i386nbsd-tdep.c: Include "solib-svr4.h".
9760 (i386nbsdelf_init_abi): Set link map offsets.
9761 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9762 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9763 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9764 solib-legacy.o and core-aout.o. Reformat.
9765 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9766 solib-svr4.o, solib-legacy.o. Reformat.
9767 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9768 * config/i386/nbsdelf.mh: Reformat.
9769 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9770 solib-svr4.o, solib-legacy.o and corelow.o.
9771 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9772 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9773 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9774 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9775 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9776 (TM_FILE): Set to tm-fbsd.h.
9777 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9778 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9779 solib-svr4.o.
9780 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9781 solib-svr4.o.
9782 (TM_FILE): Set to nm-nbsd.h.
9783 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9784 Simplify shared library support. Don't include "elf/common.h".
9785 (SVR4_SHARED_LIBS): Don't define.
9786 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9787 "solib.h".
9788 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9789 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9790 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9791 Don't include "i386/tm-i386.h". Include "solib.h".
9792 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9793 Don't include "i386/tm-i386.h".
9794 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9795 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9796 Include "i386/xm-i386.h".
9797 (HOST_LONG_DOUBLE_FORMAT): Remove.
9798
9799 Fix OpenBSD/i386 sigtramp recognition.
9800 * i386-tdep.h: Update copyright year.
9801 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9802 (i386bsd_sigtramp_end): New prototypes.
9803 (i386fbsd_sigtramp_start_addr): Renamed from
9804 i386fbsd_sigtramp_start.
9805 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9806 (i386obsd_sigtramp_start_addr): Renamed from
9807 i386obsd_sigtramp_start.
9808 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9809 * i386bsd-tdep.c: Update copyright year.
9810 (i386bsd_pc_in_sigtramp): Make public.
9811 * i386fbsd-nat.c: Update copyright year.
9812 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9813 * i386fbsd-tdep.c: Update copyright year.
9814 (i386fbsd_sigtramp_start_addr): Renamed from
9815 i386fbsd_sigtramp_start.
9816 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9817 (i386fbsdaout_init_abi): Adjust for renamed variables.
9818 * i386obsd-nat.c: Update copyright year.
9819 (_initialize_i386obsd_nat): Adjust for renamed variables.
9820 * i386obsd-tdep.c: Include "target.h".
9821 (i386obsd_page_size): New variable.
9822 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9823 (i386obsd_sigtramp_end): New functions.
9824 (i386obsd_sigtramp_start_addr): Renamed from
9825 i386obsd_sigtramp_start.
9826 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9827 (i386obsd_init_abi): Adjust for renamed variables. Set
9828 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9829 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9830
9831 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9832 trampoline change in OpenBSD kernel.
9833
9834 * amd64-nat.c: Update copyright year.
9835 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9836 architecture from REGCACHE.
9837
9838 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9839 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9840
9841 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9842
9843 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9844 i[34567]86-*-openbsd3.[0-3].
9845 * config/i386/obsdaout.mh: New file.
9846
9847 * config/i386/obsd.mh (MH_FLAGS): Remove.
9848
9849 Fix PR build/1549.
9850 * i386obsd-tdep.c: Update copyright years. Include
9851 "solib-svr4.h".
9852 (i386obsd_init_abi): Don't set regset_from_core_section here.
9853 (i386obsd_aout_init_abi): New function. Set
9854 regset_from_core_section here.
9855 (i386obsd_elf_init_abi): New function.
9856 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9857 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9858 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9859 (TM_FILE): Set to tm-nbsd.h.
9860
9861 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9862 solib-sunos.o.
9863
9864 * solib-svr4.h: Update copyright year.
9865 (svr4_ilp32_fetch_link_map_offsets)
9866 (svr4_lp64_fetch_link_map_offsets): New prototype.
9867 * solib-svr4.c: Update copyright year.
9868 (svr4_ilp32_fetch_link_map_offsets)
9869 (svr4_lp64_fetch_link_map_offsets): New function.
9870
9871 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9872
9873 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9874 to the partial symbol table.
9875
9876 2004-02-20 J. brobecker <brobecker@gnat.com>
9877
9878 * PROBLEMS: Add description of problem documented under gdb/1560.
9879
9880 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9881
9882 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9883 comments.
9884 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9885 functions.
9886 (amd64obsd_init_abi): Reorder initializations. Use
9887 amd64obsd_r_reg_offset to initialize the general-purpose register
9888 set details. Set regset_from_core_section.
9889 (_initialize_amd64obsd_tdep): Rename from
9890 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9891 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9892 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9893
9894 * NEWS (New native configurations): Mention OpenBSD/alpha.
9895 * configure.tgt: Add alpha*-*-openbsd*.
9896 * configure.host: Add alpha*-*-openbsd*.
9897 * alphanbsd-tdep.c: Update copyright year.
9898 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9899
9900 2004-02-20 Andrew Cagney <cagney@redhat.com>
9901
9902 Fix PR tdep/1372.
9903 * configure.tgt: Delete target "none-*-*".
9904 * configure.host: Delete host "none-*-*".
9905 * config/none/none.mh: Delete file.
9906 * config/none/none.mt: Delete file.
9907 * config/none/xm-none.h: Delete file.
9908 * config/none/tm-none.h: Delete file.
9909 * config/none/nm-none.h: Delete file.
9910
9911 2004-02-19 Fred Fish <fnf@redhat.com>
9912
9913 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9914 cache->uses_fp prior to setting it.
9915
9916 2004-02-19 Fred Fish <fnf@redhat.com>
9917
9918 Fix for PR breakpoint/1558.
9919 * sh-tdep.c (IS_JSR): New macro.
9920 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9921
9922 2004-02-19 Jim Blandy <jimb@redhat.com>
9923
9924 * findvar.c (value_from_register): Doc fix.
9925
9926 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9927
9928 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9929 type being greater than sizeof of host's LONGEST. Always use
9930 unpack_long() unless format 'f' chosen.
9931
9932 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9933
9934 Committed by Elena Zannoni <ezannoni@redhat.com>
9935
9936 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9937 contains a symbol wich is the best, non-exact match for the given
9938 pc. Update comments.
9939
9940 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9941
9942 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9943 macro, which was part of the now removed Mach 3 port.
9944 * utils.c (request_quit): Ditto.
9945
9946 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9947
9948 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9949 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9950
9951 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9952
9953 Committed by Mark Kettenis <kettenis@gnu.org>.
9954
9955 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9956 Define.
9957
9958 2004-02-18 Andrew Cagney <cagney@redhat.com>
9959
9960 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9961 CONFIG_INSTALL and CONFIG_UNINSTALL.
9962 * configure: Re-generate.
9963 * interps.h (INTERP_TUI): Define.
9964 * Makefile.in: Update dependencies.
9965 (TUI): New macro.
9966 (tui-main.o): Specify dependencies.
9967 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9968 * tui/tui-main.c: New file.
9969
9970 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9971
9972 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9973 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9974 dependencies.
9975 * configure.host: Add x86_64-*-openbsd*.
9976 * configure.tgt: Add x86_64-*-openbsd*.
9977 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9978
9979 * tui/tui.c: Don't include <malloc.h>.
9980
9981 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9982 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9983 amd64nbsd-tdep.c.
9984
9985 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9986 static. Remove extraneous whitespace.
9987 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9988 static.
9989
9990 2004-02-17 Jim Blandy <jimb@redhat.com>
9991
9992 * findvar.c (value_from_register): Doc fix.
9993
9994 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9995
9996 Committed by Jim Blandy <jimb@redhat.com>.
9997
9998 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9999 CORE_ADDR as type for selectors. Correct types for GNU run time
10000 message lookup function to use double indirection.
10001 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10002 * objc-lang.h (lookup_child_selector): Adapt prototype.
10003
10004 * s390-nat.c (SUBOFF): New macro.
10005 (supply_gregset, fill_gregset): Use it to handle debugging
10006 of 32-bit exectuables running under a 64-bit kernel.
10007 * s390-tdep.c: Include "solib-svr4.h".
10008 (s390_svr4_fetch_link_map_offset): New function.
10009 (s390x_svr_fetch_link_map_offset): Likewise.
10010 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10011 * Makefile.in (s390-tdep.o): Update dependencies.
10012
10013 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10014 "frame-unwind.h".
10015 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10016 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10017 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10018 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10019 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10020 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10021 S390_SIGNAL_FRAMESIZE,
10022 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10023 (struct frame_extra_info): Remove.
10024 (s390_memset_extra_info): Remove.
10025 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10026 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10027 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10028 (is_rse): Renamed to ...
10029 (is_rsy): ... this. Support long displacements.
10030 (is_rxe): Renamed to ...
10031 (is_rxy): ... this. Support long displacements.
10032 (compute_x_addr): Support long displacements.
10033 (struct s390_prologue_data): New data type.
10034 (s390_on_stack): Change API to use struct s390_prologue_data.
10035 (s390_store): Reimplement.
10036 (s390_load): New function.
10037 (s390_get_signal_frame_info): Remove.
10038 (s390_get_frame_info): Remove, replace by ...
10039 (s390_analyze_prolog): ... this new function.
10040 (s390_check_function_end): Remove.
10041 (s390_function_start): Remove.
10042 (s390_frameless_function_invokation): Remove.
10043 (s390_is_sigreturn): Remove.
10044 (s390_init_frame_pc_first): Remove.
10045 (s390_init_frame_extra_info): Remove.
10046 (s390_frame_init_saved_regs): Remove.
10047 (s390_frame_saved_pc_nofix): Remove.
10048 (s390_frame_saved_pc): Remove.
10049 (s390_frame_chain): Remove.
10050 (s390_fp_regnum, s390_read_fp): Remove.
10051 (s390_pop_frame_regular, s390_pop_frame): Remove.
10052 (s390_saved_pc_after_call): Remove.
10053 (s390_skip_prologue): Reimplement.
10054 (s390_in_function_epilogue_p): Support long displacements.
10055 (struct s390_unwind_cache): New data structure.
10056 (s390_frame_unwind_cache): New function.
10057 (s390_prologue_frame_unwind_cache): Likewise.
10058 (s390_backchain_frame_unwind_cache): Likewise.
10059 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10060 (s390_frame_unwind): Define.
10061 (s390_frame_sniffer): New function.
10062 (struct s390_pltstub_unwind_cache): New data structure.
10063 (s390_pltstub_frame_unwind_cache): New function.
10064 (s390_pltstub_frame_this_id): Likewise.
10065 (s390_pltstub_frame_prev_register): Likewise.
10066 (s390_pltstub_frame_unwind): Define.
10067 (s390_pltstub_frame_sniffer): New function.
10068 (struct s390_sigtramp_unwind_cache): New data structure.
10069 (s390_sigtramp_frame_unwind_cache): New function.
10070 (s390_sigtramp_frame_this_id): Likewise.
10071 (s390_sigtramp_frame_prev_register): Likewise.
10072 (s390_sigtramp_frame_unwind): Define.
10073 (s390_sigtramp_frame_sniffer): New function.
10074 (s390_frame_base_address, s390_local_base_address): New functions.
10075 (s390_frame_base): Define.
10076 (s390_unwind_pc, s390_unwind_sp): New function.
10077 (s390_push_dummy_call): Use new frame base location.
10078 (s390_unwind_dummy_id): Likewise.
10079 (s390_gdbarch_init): Remove calls to:
10080 set_gdbarch_frameless_function_invocation,
10081 set_gdbarch_deprecated_init_frame_pc,
10082 set_gdbarch_deprecated_frame_chain,
10083 set_gdbarch_deprecated_frame_init_saved_regs,
10084 set_gdbarch_deprecated_pop_frame,
10085 set_gdbarch_deprecated_init_extra_frame_info,
10086 set_gdbarch_deprecated_init_frame_pc_first,
10087 set_gdbarch_deprecated_target_read_fp,
10088 set_gdbarch_deprecated_frame_saved_pc,
10089 set_gdbarch_deprecated_saved_pc_after_call,
10090 set_gdbarch_deprecated_fp_regnum.
10091 Add calls to:
10092 set_gdbarch_in_solib_call_trampoline,
10093 frame_unwind_append_sniffer,
10094 frame_base_set_default,
10095 set_gdbarch_unwind_pc,
10096 set_gdbarch_unwind_sp.
10097 * Makefile.in (s390-tdep.o): Update dependencies.
10098
10099 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10100 (S390_STACK_FRAME_OVERHEAD): Remove.
10101 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10102 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10103 (s390_promote_integer_argument): Remove.
10104 (s390_cannot_extract_struct_value_address): Remove.
10105 (s390_use_struct_convention, s390_store_struct_return): Remove.
10106 (s390_extract_return_value, s390_store_return_value): Remove.
10107 (s390_return_value_convention, s390_return_value): New functions.
10108 (is_float_singleton): Handle typedefs.
10109 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10110 Remove, replace by ...
10111 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10112 s390_function_arg_integer): ... these new functions.
10113 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10114 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10115 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10116 Fill in tdep->abi.
10117 Remove calls to:
10118 set_gdbarch_deprecated_store_struct_return,
10119 set_gdbarch_deprecated_extract_return_value,
10120 set_gdbarch_deprecated_store_return_value,
10121 set_gdbarch_use_struct_convention,
10122 set_gdbarch_extract_struct_value_address,
10123 set_gdbarch_deprecated_pc_in_call_dummy,
10124 set_gdbarch_deprecated_push_arguments,
10125 set_gdbarch_deprecated_save_dummy_frame_tos,
10126 set_gdbarch_deprecated_push_return_address,
10127 set_gdbarch_deprecated_sizeof_call_dummy_words,
10128 set_gdbarch_deprecated_call_dummy_words,
10129 set_gdbarch_deprecated_dummy_write_sp.
10130 Add calls to:
10131 set_gdbarch_push_dummy_call,
10132 set_gdbarch_unwind_dummy_id,
10133 set_gdbarch_return_value.
10134
10135 * config/s390/nm-linux.h: Update comments.
10136 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10137 (STOPPED_BY_WATCHPOINT): Redefine.
10138 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10139 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10140 (s390_stopped_by_watchpoint): Likewise.
10141 (watch_area_cnt): Remove.
10142 * s390-nat.c: Update comments.
10143 (watch_area): Remove typedef.
10144 Global replace watch_area by struct watch_area.
10145 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10146 (s390_stopped_by_watchpoint): Remove pid argument,
10147 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10148 (s390_fix_watch_points): Remove pid argument,
10149 use s390_inferior_tid. Recompute area spanned by watchpoints.
10150 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10151 argument. Reimplement.
10152
10153 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10154 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10155 (FETCH_INFERIOR_REGISTERS): Define.
10156 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10157 core-regset.o.
10158 * config/s390/s390x.mt: Remove.
10159 * config/s390/tm-s390.h: Remove.
10160 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10161 (TARGET_ELF64): Remove.
10162 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10163 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10164 s390*-*-* case; always set gdb_target to s390.
10165 * regformats/reg-s390.dat: Remove control registers.
10166 * regformats/reg-s390x.dat: Likewise.
10167 * s390-tdep.h: New file.
10168 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10169 Include "inferior.h" and "s390-tdep.h".
10170 Remove private definition of offsetof.
10171 (s390_register_u_addr): Remove.
10172 (regmap_gregset, regmap_fpregset): Define.
10173 (supply_gregset, fill_gregset): Reimplement.
10174 (supply_fpregset, fill_fpregset): Likewise.
10175 (s390_inferior_tid): New function.
10176 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10177 (fetch_inferior_registers, store_inferior_registers): Likewise.
10178 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10179 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10180 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10181 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10182 (struct gdbarch_tdep): Define.
10183 (struct s390_register_info): Define.
10184 (s390_register_info): New variable.
10185 (s390_register_name): Reimplement.
10186 (s390_register_type): New function.
10187 (s390_register_raw_size, s390x_register_raw_size): Remove.
10188 (s390_cannot_fetch_register): Remove.
10189 (s390_register_byte): Remove.
10190 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10191 (s390_dwarf_regmap): New variable.
10192 (s390_dwarf_reg_to_regnum): New function.
10193 (s390_stab_reg_to_regnum): Remove.
10194 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10195 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10196 (s390_convert_register_p): Likewise.
10197 (s390_register_to_value, s390_value_to_register): Likewise.
10198 (s390_register_reggroup_p): Likewise.
10199 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10200 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10201 (s390_supply_regset, s390_regset_from_core_section): New functions.
10202 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10203 (S390_FPR_SIZE): Likewise.
10204 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10205 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10206 (S390_NUM_GPRS): Move here from tm-s390.h.
10207 (S390_NUM_FPRS): Likewise.
10208 (s390_in_function_epilogue_p): New function.
10209 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10210 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10211 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10212 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10213 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10214 Remove calls to:
10215 set_gdbarch_deprecated_max_register_raw_size,
10216 set_gdbarch_deprecated_max_register_virtual_size,
10217 set_gdbarch_deprecated_register_byte,
10218 set_gdbarch_cannot_fetch_register,
10219 set_gdbarch_cannot_store_register,
10220 set_gdbarch_deprecated_register_size,
10221 set_gdbarch_deprecated_register_raw_size,
10222 set_gdbarch_deprecated_register_virtual_size,
10223 set_gdbarch_deprecated_register_virtual_type,
10224 set_gdbarch_deprecated_register_bytes.
10225 Add calls to:
10226 set_gdbarch_num_pseudo_regs,
10227 set_gdbarch_register_type,
10228 set_gdbarch_convert_register_p,
10229 set_gdbarch_register_to_value,
10230 set_gdbarch_value_to_register,
10231 set_gdbarch_register_reggroup_p,
10232 set_gdbarch_regset_from_core_section,
10233 set_gdbarch_pseudo_register_read,
10234 set_gdbarch_pseudo_register_write,
10235 set_gdbarch_in_function_epilogue_p.
10236 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10237 (s390_tdep_h): New variable.
10238
10239 2004-02-17 Jim Blandy <jimb@redhat.com>
10240
10241 * findvar.c (value_from_register): If the type has no length, just
10242 return an acceptable value --- don't report an internal error.
10243
10244 * stabsread.c (read_type): If we find any type numbers that are
10245 forward references, complain if the references aren't resolved by
10246 the time we're finished reading.
10247 (cleanup_undefined_types): Make error message more appropriate for
10248 a complaint.
10249
10250 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10251
10252 * Makefile.in (defs_h): Remove dependency on progress_h.
10253 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10254 progress.h.
10255 * main.c (captured_main): Delete use of START_PROGRESS and
10256 END_PROGRESS.
10257
10258 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10259
10260 * objfiles.c (terminate_minimal_symbol_table): Add back
10261 initialization of MSYMBOL_TYPE.
10262
10263 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10264
10265 Committed by Andrew Cagney.
10266 * Makefile.in (ia64_tdep_h): New macro.
10267 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10268 (ia64-tdep.o): Likewise.
10269 * ia64-tdep.h: New file.
10270 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10271 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10272 (ia64_aix_sigcontext_register_address): Likewise.
10273 (ia64_linux_getunwind_table): Delete declaration.
10274 * ia64-linux-tdep.c: Likewise.
10275
10276 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10277
10278 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10279 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10280 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10281
10282 2004-02-17 Andrew Cagney <cagney@redhat.com>
10283
10284 * symtab.c (skip_prologue_using_sal): New function.
10285 * symtab.h (skip_prologue_using_sal): Declare.
10286 * frv-tdep.c: Include "symtab.h".
10287 (skip_prologue_using_sal): Delete function.
10288 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10289 * rs6000-tdep.c (refine_prologue_limit): Mention
10290 skip_prologue_using_sal.
10291 * ia64-tdep.c (refine_prologue_limit): Ditto.
10292 * Makefile.in: Update dependencies.
10293
10294 2004-02-16 Andrew Cagney <cagney@redhat.com>
10295
10296 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10297 START_INFERIOR_TRAPS_EXPECTED.
10298 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10299 START_INFERIOR_TRAPS_EXPECTED.
10300 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10301 Delete macro.
10302 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10303 macro, moved to "nm-osf.h". Update copyright.
10304 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10305 update copyright.
10306
10307 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10308 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10309 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10310 frameless_look_for_prologue.
10311 * frame.h (legacy_frameless_look_for_prologue): Rename
10312 frameless_look_for_prologue.
10313 * gdbarch.h, gdbarch.c: Re-generate.
10314 * sh64-tdep.c (sh64_gdbarch_init): Update.
10315 * sh-tdep.c (sh_gdbarch_init): Update.
10316 * s390-tdep.c (s390_gdbarch_init): Update.
10317 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10318 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10319 * m68k-tdep.c (m68k_gdbarch_init): Update.
10320 (delta68_frame_args_address): Update.
10321 * m32r-tdep.c (m32r_gdbarch_init): Update.
10322 * hppa-tdep.c (hppa_gdbarch_init): Update.
10323 * h8300-tdep.c (h8300_gdbarch_init): Update.
10324 * frv-tdep.c (frv_gdbarch_init): Update.
10325 (frv_frameless_function_invocation): Update.
10326 * cris-tdep.c (cris_gdbarch_init): Update.
10327 (cris_frameless_function_invocation): Update.
10328 * avr-tdep.c (avr_gdbarch_init): Update.
10329 * arm-tdep.c (arm_gdbarch_init): Update.
10330 * stack.c (frame_info): Update, call predicate.
10331 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10332 * frame.c (legacy_get_prev_frame): Update, call predicate..
10333 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10334 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10335 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10336 invocation.
10337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10338 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10339 * vax-tdep.c (vax_gdbarch_init): Ditto.
10340
10341 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10342 function.
10343
10344 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10347 initializations.
10348
10349 2004-02-16 Andrew Cagney <cagney@redhat.com>
10350
10351 * tui/tui-windata.c: Include "gdb_string.h".
10352 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10353 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10354 * Makefile.in: Update dependencies.
10355
10356 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10357
10358 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10359 * infrun.c: Include "gdb_assert.h".
10360 (singlestep_ptid, saved_singlestep_ptid)
10361 (stepping_past_singlestep_breakpoint): New variables.
10362 (resume): Set singlestep_ptid. Check for singlestep thread
10363 hop.
10364 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10365 (handle_inferior_event): Handle singlestep thread hop.
10366
10367 2004-02-16 Andrew Cagney <cagney@redhat.com>
10368
10369 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10370 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10371 (dwarf2_frame_init_reg): Ditto.
10372
10373 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10374 suggested by Joshua Neuheisel
10375
10376 * configure.in: Always check for curses, including pdcurses.
10377 Warn, instead of error, when no curses are found. Enable TUI when
10378 curses is available.
10379 * configure: Re-generate.
10380
10381 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10382
10383 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10384 sh_sh4_register_convert_to_virtual.
10385 (sh_register_convert_to_raw): Rename from
10386 sh_sh4_register_convert_to_raw.
10387 (sh_pseudo_register_read): Accomodate above name change.
10388 (sh_pseudo_register_write): Ditto.
10389
10390 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10391
10392 * sh-tdep.c (sh_generic_register_name): Remove.
10393 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10394
10395 2004-02-15 Andrew Cagney <cagney@redhat.com>
10396
10397 * configure.in (build_warnings): Add -Wunused-function.
10398 * configure: Re-generate.
10399
10400 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10401 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10402
10403 * procfs.c (procfs_init_inferior): Assume that
10404 START_INFERIOR_TRAPS_EXPECTED is defined.
10405 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10406 * config/ns32k/tm-nbsd.h: Delete file,
10407 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10408
10409 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10410 * config/vax/tm-vax.h: Delete file.
10411
10412 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10413 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10414 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10415 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10416 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10417 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10418 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10419
10420 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10421
10422 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10423 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10424 (struct dwarf2_frame_ops): New.
10425 (dwarf2_frame_default_init_reg): New function, based on
10426 dwarf2_frame_init_reg.
10427 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10428 (dwarf2_frame_init_reg): Call architecture-specific function.
10429 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10430 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10431 instead of dwarf2_frame_data.
10432 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10433 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10434
10435 2004-02-15 Andrew Cagney <cagney@redhat.com>
10436
10437 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10438 register_gdbarch_swap.
10439 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10440 * f-lang.c (_initialize_f_language): Update, use
10441 DEPRECATED_REGISTER_GDBARCH_SWAP.
10442 * remote.c (_initialize_remote): Ditto.
10443 * regcache.c (_initialize_regcache): Ditto.
10444 * parse.c (_initialize_parse): Ditto.
10445 * infrun.c (_initialize_infrun): Ditto.
10446 * mi/mi-main.c (_initialize_mi_main): Ditto.
10447 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10448
10449 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10450 poking .cacheable directly.
10451 * symfile.c (symfile_bfd_open): Ditto.
10452
10453 * Makefile.in: Update all dependencies.
10454
10455 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10456 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10457 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10458 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10459 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10460
10461 2004-02-14 Andrew Cagney <cagney@redhat.com>
10462
10463 * arch-utils.c (legacy_convert_register_p): Check
10464 DEPRECATED_REGISTER_CONVERTIBLE_P.
10465 * findvar.c (value_of_register): Ditto.
10466
10467 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10468 * gdbarch.h, gdbarch.c: Re-generate.
10469 * arch-utils.c (deprecated_register_convertible_not): Delete.
10470 * arch-utils.h (deprecated_register_convertible_not): Delete.
10471 * mi/mi-main.c (get_register): Update. Update copyright.
10472 * infcmd.c (default_print_registers_info): Update.
10473
10474 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10475 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10476 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10477 * gdbarch.h, gdbarch.c: Re-generate.
10478 * frame.c (deprecated_get_next_frame_hack): Delete function.
10479 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10480 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10481 Update.
10482 * infcall.c (call_function_by_hand): Update.
10483
10484 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10485
10486 * symfile.c (init_entry_point_info, entry_point_address): Move
10487 from here...
10488 * objfiles.c (init_entry_point_info, entry_point_address):..to
10489 here.
10490 * symfile.h (init_entry_point_info, entry_point_address): Remove
10491 prototypes.
10492 * objfiles.h (init_entry_point_info, entry_point_address):Add
10493 prototypes.
10494 * cris-tdep.c: Remove include of symfile.h. Add include of
10495 objfiles.h.
10496 * infcall.c: Ditto.
10497 * mcore-tdep.c: Ditto.
10498 * mn10300-tdep.c: Ditto.
10499 * sh64-tdep.c: Ditto.
10500 * v850-tdep.c: Ditto.
10501 * arm-tdep.c: Remove include of symfile.h.
10502 * blockframe.c: Ditto.
10503 * coffread.c: Ditto.
10504 * dbxread.c: Ditto.
10505 * dwarf2read.c: Ditto.
10506 * dwarfread.c: Ditto.
10507 * frv-tdep.c: Ditto.
10508 * ia64-tdep.c: Ditto.
10509 * mdebugread.c: Ditto.
10510 * mipsread.c: Ditto.
10511 * rs6000-tdep.c: Ditto.
10512 * s390-tdep.c: Ditto.
10513 * sh-tdep.c: Ditto.
10514 * xstormy16-tdep.c: Ditto.
10515 * gdbarch.sh: Remove include of symfile.h.
10516 * gdbarch.c: Regenerate.
10517 * solib-irix.c (enable_break): Use entry_point_address().
10518 Add comment about include file.
10519 * xcoffread.c: Add comment about include file.
10520 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10521 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10522 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10523 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10524 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10525
10526 2004-02-13 Andrew Cagney <cagney@redhat.com>
10527
10528 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10529 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10530 copyright.
10531 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10532
10533 2004-02-12 Fred Fish <fnf@redhat.com>
10534
10535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10536 set_gdbarch_store_return_value.
10537
10538 2004-02-12 Andrew Cagney <cagney@redhat.com>
10539
10540 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10541 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10542 (interrupt_query): Ditto.
10543 (ofunc): Delete unused variable.
10544 * cris-tdep.c (cris_abi): Delete unused function.
10545 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10546 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10547 (cris_get_asr_quick_shift_steps): Ditto.
10548 (cris_skip_prologue_frameless_p): Ditto.
10549 * arm-tdep.c (arm_push_return_address): Delete unused function.
10550 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10551 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10552 * s390-tdep.c (s390_function_start): Delete unused function.
10553
10554 2004-02-12 Andrew Cagney <cagney@redhat.com>
10555
10556 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10557 gdbarch.h, gdbarch.c: Re-generate.
10558 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10559 to generic_prologue_frameless_p.
10560 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10561 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10562
10563 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10564
10565 * mips-linux-tdep.c: Include "frame.h".
10566 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10567 (mips_linux_skip_resolver): New functions.
10568 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10569 and set_gdbarch_in_solib_call_trampoline.
10570 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10571 to after set_gdbarch_in_solib_return_trampoline. Only set the
10572 solib hooks to mips16 functions if the OS ABI is unknown.
10573 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10574 including "config/tm-linux.h".
10575 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10576 * Makefile.in (mips-linux-tdep.o): Update.
10577
10578 2004-02-11 David Carlton <carlton@kealia.com>
10579
10580 * linespec.c (decode_compound): Only look for a class symbol when
10581 considering all but the rightmost component.
10582
10583 2004-02-11 Andrew Cagney <cagney@redhat.com>
10584
10585 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10586 abi code are are separatly grouped.
10587
10588 2004-02-11 Andrew Cagney <cagney@redhat.com>
10589
10590 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10591 * gdbarch.h, gdbarch.c: Re-generate.
10592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10593 * v850-tdep.c (v850_gdbarch_init): Update.
10594 * sh64-tdep.c (sh64_gdbarch_init): Update.
10595 * sh-tdep.c (sh_gdbarch_init): Update.
10596 * s390-tdep.c (s390_gdbarch_init): Update.
10597 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10598 * mips-tdep.c (mips_gdbarch_init): Update.
10599 * mcore-tdep.c (mcore_gdbarch_init): Update.
10600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10601 * m32r-tdep.c (m32r_gdbarch_init): Update.
10602 * ia64-tdep.c (ia64_gdbarch_init): Update.
10603 * hppa-tdep.c (hppa_gdbarch_init): Update.
10604 * h8300-tdep.c (h8300_gdbarch_init): Update.
10605 * frv-tdep.c (frv_gdbarch_init): Update.
10606 * d10v-tdep.c (d10v_gdbarch_init): Update.
10607 * cris-tdep.c (cris_gdbarch_init): Update.
10608 * avr-tdep.c (avr_gdbarch_init): Update.
10609 * arm-tdep.c (arm_gdbarch_init): Update.
10610 * alpha-tdep.c (alpha_gdbarch_init): Update.
10611
10612 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10613
10614 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10615 comma.
10616 (sh_sh4al_dsp_register_name): Ditto.
10617
10618 2004-02-10 Andrew Cagney <cagney@redhat.com>
10619
10620 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10621 (mips_init_frame_pc_first): Delete function.
10622 (mips_frame_saved_pc): Delete function.
10623 (mips_frame_chain): Delete function.
10624 (mips_init_extra_frame_info): Delete function.
10625 (mips_xfer_register): Delete unused variable "reg".
10626 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10627 (mips_n32n64_return_value): Delete unused variable "reg".
10628 (mips_n32n64_return_value): Delete unused variable "pos".
10629 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10630 (mips_o32_return_value): Delete unused variable "pos".
10631 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10632 (mips_print_fp_register): Delete unused variable "namelen"
10633 (mips_print_fp_register): Delete unused variable "flt2"
10634 (get_frame_pointer): Delete function.
10635 (cached_proc_desc): Delete static variable.
10636 (mips_pop_frame): Delete function.
10637 (mips_find_saved_regs): Delete function.
10638 (mips_get_saved_register): Delete function.
10639 (mips_saved_pc_after_call): Delete function.
10640 (SIGFRAME_BASE): Delete macro.
10641 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10642 (SIGFRAME_PC_OFF): Delete macro.
10643 (SIGFRAME_REGSAVE_OFF): Delete macro.
10644 (mips_dump_tdep): Do not print deleted macro definitions.
10645
10646 2004-02-10 Andrew Cagney <cagney@redhat.com>
10647
10648 * Makefile.in (SFILES): Remove explictly listed tui files.
10649 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10650
10651 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10652
10653 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10654 to use paddr functions to format ia64 addresses and long values.
10655 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10656 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10657 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10658 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10659 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10660
10661 2004-02-10 Andrew Cagney <cagney@redhat.com>
10662
10663 * defs.h: Do not include "tui.h".
10664 * gdb_curses.h: New file.
10665 * tui/tui-hooks.h: New file.
10666 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10667 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10668 (tui_initialize_io): Delete declaration.
10669 (tui_initialize_readline: Delete redundant declaration.
10670 (struct tui_point): Delete definition.
10671 * tui/tui-data.h (struct tui_point): Define.
10672 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10673 * utils.c: Include "tui/tui.h".
10674 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10675 * printcmd.c [TUI]: Include "tui/tui.h".
10676 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10677 * tui/tui-command.c: Include "gdb_curses.h".
10678 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10679 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10680 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10681 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10682 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10683 * Makefile.in: Update all dependencies.
10684 (tui_hooks_h, gdb_curses_h): Define.
10685 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10686
10687 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10688
10689 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10690 auxf2. Add comments about some other rarely used fields.
10691
10692 2004-02-10 Andrew Cagney <cagney@redhat.com>
10693
10694 * Makefile.in (init.c): Fix script removing duplicates. Problem
10695 reported by Peter Schauer.
10696
10697 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10698
10699 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10700 obstack_specify_allocation.
10701 * objfiles.c (allocate_objfile): Ditto.
10702 * solib-sunos.c (solib_add_common_symbols)
10703 (allocate_rt_common_objfile): Ditto.
10704 * symfile.c (reread_symbols): Ditto.
10705 * gdb_obstack.h: Add comment.
10706
10707 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10708
10709 * linespec.c (decode_line_1, locate_first_half)
10710 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10711 commented out code.
10712
10713 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10714
10715 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10716 obstack_free.
10717
10718 2004-02-09 Andrew Cagney <cagney@redhat.com>
10719
10720 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10721 fails, try find_pc_section. Fix PR c++/1267.
10722 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10723 instead of find_pc_mapped_section.
10724 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10725 not default to the section containing PC. Fix PR symtab/1519.
10726
10727 2004-02-09 Andrew Cagney <cagney@redhat.com>
10728
10729 * Makefile.in (mips-tdep.o): Update dependencies.
10730 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10731 "trad-frame.h".
10732 (mips_unwind_pc): Return the pseudo PC register.
10733 (mips_unwind_dummy_id): New function.
10734 (mips16_fetch_instruction): New function.
10735 (mips32_fetch_instruction): New function.
10736 (struct mips_frame_cache): Define.
10737 (mips_mdebug_frame_cache): New function.
10738 (mips_mdebug_frame_this_id): New function.
10739 (mips_mdebug_frame_prev_register): New function.
10740 (mips_mdebug_frame_unwind): Define.
10741 (mips_mdebug_frame_sniffer): New function.
10742 (mips_mdebug_frame_base_address): New function.
10743 (mips_mdebug_frame_base): Define.
10744 (mips_mdebug_frame_base_sniffer): New function.
10745 (mips_gdbarch_init): Append unwind and base sniffers. Set
10746 unwind_dummy_id.
10747
10748 2004-02-08 Andrew Cagney <cagney@redhat.com>
10749
10750 * frame.c: Print both the register number and name.
10751
10752 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10753 and a sed into a single sed. Make .c and .o patterns more robust.
10754 (OBS): Delete.
10755 (INIT_FILES): Replace OBS with COMMON_OBS.
10756 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10757
10758 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10759
10760 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10761 the PT_WCOOKIE request.
10762
10763 2004-02-08 Andrew Cagney <cagney@redhat.com>
10764
10765 * mips-tdep.c (mips_unwind_pc): New function.
10766 (mips_gdbarch_init): Set mips_unwind_pc.
10767
10768 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10769 (get_frame_id): Allow the UNKNOWN_FRAME.
10770 (frame_register_unwind, get_frame_type): Ditto.
10771
10772 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10773 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10774 unwind_dummy_id indicates a legacy frame.
10775
10776 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10777 * configure: Re-generate.
10778
10779 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10780 methods.
10781
10782 2004-02-08 Andrew Cagney <cagney@redhat.com>
10783
10784 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10785 makefile macro.
10786 * configure: Re-generate.
10787 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10788 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10789 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10790 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10791 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10792 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10793 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10794 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10795 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10796 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10797
10798 2004-02-07 Andrew Cagney <cagney@redhat.com>
10799
10800 * Makefile.in: Update all dependencies.
10801
10802 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10803 * configure: Re-generate.
10804 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10805 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10806 (COMMON_OBS): Add "main.o" and "annotate.o".
10807 (ANNOTATE_OBS): Delete.
10808 (OBS): Remove ANNOTATE_OBS.
10809 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10810 CONFIG_INITS.
10811 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10812 against CONFIG_OBS and "main.o".
10813 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10814 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10815
10816 * tui/tui-command.c: Include "gdb_string.h", delete register
10817 attribute, use ISO-C function signatures.
10818 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10819 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10820 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10821 * tui/tui.c: Ditto.
10822
10823 * tui/tui-command.c: Change variable and function names to lower
10824 case.
10825 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10826 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10827 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10828 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10829 * tui/tui-winsource.c, tui/tui.c: Ditto.
10830
10831 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10832
10833 * buildsym.c (free_pending_blocks, finish_block)
10834 (record_pending_block, make_blockvector, end_symtab): Replace
10835 symbol_obstack with objfile_obstack.
10836 * coffread.c (process_coff_symbol, coff_read_struct_type)
10837 (coff_read_enum_type): Ditto.
10838 * cp-namespace.c (initialize_namespace_symtab)
10839 (check_one_possible_namespace_symbol): Ditto.
10840 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10841 (dwarf2_symbol_mark_computed): Ditto.
10842 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10843 * elfread.c (elf_symtab_read): Ditto.
10844 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10845 (hpread_read_enum_type, hpread_read_function_type)
10846 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10847 Ditto.
10848 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10849 (java_link_class_type): Ditto.
10850 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10851 (new_symbol): Ditto.
10852 * minsyms.c (install_minimal_symbols): Ditto.
10853 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10854 (terminate_minimal_symbol_table): Replace symbol_obstack with
10855 objfile_obstack.
10856 (free_objfile): Remove freeing of symbol_obstack.
10857 * objfiles.h: Remove symbol_obstack field.
10858 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10859 objfile_obstack.
10860 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10861 symbol_obstack.
10862 (solib_add_common_symbols): Replace symbol_obstack with
10863 objfile_obstack.
10864 * somsolib.c (som_solib_add): Ditto.
10865 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10866 (common_block_start, common_block_end): Ditto.
10867 * symfile.c (reread_symbols): Remove freeing and init of
10868 symbol_obstack.
10869 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10870 * symfile.h: Update comment.
10871 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10872 stats printing.
10873 * symtab.c (symbol_set_names): Replace symbol_obstack with
10874 objfile_obstack.
10875 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10876 Update comments.
10877 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10878 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10879 objfile_obstack.
10880
10881 2004-02-07 Andrew Cagney <cagney@redhat.com>
10882
10883 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10884 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10885 fields and variables.
10886 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10887 (m_beInvisible): Delete macro.
10888 * tui/tui-data.h: Fix case case fields and variables.
10889 (m_genWinPtrIsNull): Delete macro.
10890 (tui_win_list): Rename winList.
10891 (TUI_SRC_WIN): Rename srcWin.
10892 (TUI_DISASM_WIN): Rename disassemWin.
10893 (TUI_DATA_WIN): Rename dataWin.
10894 (TUI_CMD_WIN): Rename cmdWin.
10895 (m_genWinPtrNotNull): Delete macro.
10896 (m_winPtrIsNull): Delete macro.
10897 (m_winPtrNotNull): Delete macro.
10898 (tui_win_is_source_type): Replace m_winIsSourceType
10899 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10900 (tui_win_has_locator): Replace m_hasLocator.
10901 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10902 m_setWinHighlightOff.
10903 * tui/tui-data.c: Update references.
10904 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10905 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10906 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10907 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10908 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10909 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10910 * tui/tui-winsource.c, tui/tui.c: Ditto.
10911
10912 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10913
10914 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10915 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10916 StackGhost.
10917
10918 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10919 variable `i6' to `i7'.
10920 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10921
10922 2004-02-07 Andrew Cagney <cagney@redhat.com>
10923
10924 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10925 (TuiPoint, TuiPointPtr): Ditto.
10926 (TuiStatus, TuiStatusPtr): Ditto.
10927 (TuiWinType, TuiWinTypePtr): Ditto.
10928 (struct tui_point): Rename _TuiPoint.
10929 (tui_get_low_disassembly_address): Rename
10930 tuiGetLowDisassemblyAddress.
10931 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10932 (tuiFree): Delete declaration.
10933 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10934 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10935 * tui/tui.c (tuiFree): Delete function.
10936 * cli/cli-cmds.c (disassemble_command): Update references.
10937 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10938 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10939 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10940 * tui/tui-winsource.c: Ditto.
10941
10942 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10943
10944 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10945 coffstab_build_psymtabs, elfstab_build_psymtabs)
10946 (stabsect_build_psymtabs): Replace psymbol_obstack with
10947 objfile_obstack.
10948 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10949 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10950 Ditto.
10951 * dwarfread.c (scan_compilation_units): Ditto.
10952 * elfread.c (elfstab_offset_sections): Ditto.
10953 * hppa-tdep.c (read_unwind_info): Ditto.
10954 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10955 (hpread_end_psymtab): Ditto.
10956 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10957 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10958 Ditto.
10959 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10960 * objfiles.c (add_to_objfile_sections)
10961 (build_objfile_section_table): Ditto.
10962 (allocate_objfile): Remove init of psymbol_obstack.
10963 (free_objfile): Remove freeing of psymbol_obstack.
10964 * objfiles.h (struct objfile): Remove field
10965 psymbol_obstack. Update comments.
10966 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10967 psymbol_obstack with objfile_obstack.
10968 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10969 psymbol_obstack.
10970 * somread.c (som_symfile_offsets, init_import_symbols)
10971 (init_export_symbols): Replace psymbol_obstack with
10972 objfile_obstack.
10973 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10974 * symfile.c (default_symfile_offsets, syms_from_objfile)
10975 (reread_symbols): Remove freeing and init of psymbol_obstack.
10976 (cashier_psymtab): Update comment.
10977 * symmisc.c (print_objfile_statistics): Don't report stats for
10978 psymbol obstack.
10979 * symtab.h (struct general_symbol_info, struct partial_symtab):
10980 Update comments.
10981 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10982 (xcoff_symfile_offsets): Replace psymbol_obstack with
10983 objfile_obstack.
10984
10985 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10986
10987 * objfiles.h (struct objfile): Add objfile_obstack field.
10988 Remove type_obstack field.
10989
10990 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10991 read_structure_scope read_enumeration, new_symbol): Replace
10992 type_obstack with objfile_obstack.
10993 * dwarfread.c (struct_type, enum_type): Ditto.
10994 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10995 (lookup_fundamental_type): Ditto.
10996 * gdbtypes.h (TYPE_ALLOC): Ditto.
10997 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10998 (hpread_read_doc_function_type, hpread_read_struct_type)
10999 (fix_static_member_physnames, hpread_read_array_type)
11000 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11001 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11002 (java_link_class_type): Ditto.
11003 * mdebugread.c (parse_type): Ditto.
11004 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11005 * solib-sunos.c (solib_add_common_symbols): Ditto.
11006 * stabsread.c (define_symbol, read_type, read_member_functions,
11007 read_cpp_abbrev, read_one_struct_field): Ditto.
11008 * symfile.c (reread_symbols): Ditto.
11009 * symmisc.c (print_objfile_statistics): Ditto.
11010
11011 2004-02-07 Andrew Cagney <cagney@redhat.com>
11012
11013 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11014 (tui_exec_info_content): Rename TuiExecInfoContent.
11015 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11016 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11017 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11018 (TuiList, TuiListPtr): Ditto.
11019 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11020 (TuiDataType, TuiDataTypePtr): Ditto.
11021 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11022 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11023 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11024 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11025 (TuiDataElement, TuiDataElementPtr): Ditto.
11026 (TuiWinElement, TuiWinElementPtr): Ditto.
11027 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11028 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11029 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11030 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11031 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11032 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11033 * tui/tui-command.c, tui/tui-data.c: Update references.
11034 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11035 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11036 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11037 * tui/tui-winsource.c, tui/tui.c: Ditto.
11038
11039 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11040
11041 * dwarf2-frame.h: Update copyright.
11042 (enum dwarf2_frame_reg_rule): New.
11043 (struct dwarf2_frame_state_reg): New.
11044 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11045 * dwarf2-frame.c: Update copyright.
11046 (enum dwarf2_reg_rule): Remove.
11047 (struct dwarf2_frame_state): Remove defenition of `struct
11048 dwarf2_frame_state_reg'.
11049 (read_reg): Call get_frame_arch to get the architecture instead of
11050 using CURRENT_GDBARCH.
11051 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11052 DWARF2_FRAME_.
11053 (dwarf2_frame_init_reg): New function.
11054 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11055 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11056 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11057 tags with DWARF2_FRAME_.
11058 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11059 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11060 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11061
11062 2004-02-06 Andrew Cagney <cagney@redhat.com>
11063
11064 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11065 (enum tui_data_type): Rename _TuiDataType.
11066 (struct tui_layout_def): Rename _TuiLayoutDef.
11067 (struct tui_source_element): Rename _TuiSourceElement.
11068 (struct tui_data_element): Rename _TuiDataElement.
11069 (struct tui_command_element): Rename _TuiCommandElement.
11070 (struct tui_locator_element): Rename _TuiLocatorElement.
11071 (union tui_which_element): Define.
11072 (struct tui_win_element): Rename _TuiWinElement.
11073 (struct tui_data_info): Rename _TuiDataInfo.
11074 (struct tui_source_info): Rename _TuiSourceInfo.
11075 (struct tui_command_info): Rename _TuiCommandInfo.
11076 (tui_initialize_static_data): Rename initializeStaticData.
11077 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11078 (tui_alloc_win_info): Rename allocWinInfo.
11079 (tui_init_generic_part): Rename initGenericPart.
11080 (tui_init_win_info): Rename initWinInfo.
11081 (tui_alloc_content): Rename allocContent.
11082 (tui_add_content_elements): Rename addContentElements.
11083 (tui_init_content_element): Rename initContentElement.
11084 (tui_free_window): Rename freeWindow.
11085 (tui_free_win_content): Rename freeWinContent.
11086 (tui_free_data_content): Rename freeDataContent.
11087 (tui_free_all_source_wins_content): Rename
11088 freeAllSourceWinsContent.
11089 (tui_del_window): Rename tuiDelWindow.
11090 (tui_del_data_windows): Rename tuiDelDataWindows.
11091 (tui_partial_win_by_name): Rename partialWinByName.
11092 (tui_win_name): Rename winName.
11093 (tui_current_layout): Rename currentLayout.
11094 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11095 (tui_term_height): Rename termHeight.
11096 (tui_set_term_height_to): Rename setTermHeightTo.
11097 (tui_term_width): Rename termWidth.
11098 (tui_set_term_width_to): Rename setTermWidthTo.
11099 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11100 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11101 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11102 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11103 (tui_source_windows): Rename sourceWindows.
11104 (tui_clear_source_windows): Rename clearSourceWindows.
11105 (tui_clear_source_windows_detail): Rename
11106 clearSourceWindowsDetail.
11107 (tui_clear_win_detail): Rename clearWinDetail.
11108 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11109 (tui_default_tab_len): Rename tuiDefaultTabLen.
11110 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11111 (tui_win_with_focus): Rename tuiWinWithFocus.
11112 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11113 (tui_layout_def): Rename tuiLayoutDef.
11114 (tui_win_resized): Rename tuiWinResized.
11115 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11116 (tui_next_win): Rename tuiNextWin.
11117 (tui_prev_win): Rename tuiPrevWin.
11118 (tui_add_to_source_windows): Rename addToSourceWindows.
11119 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11120 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11121 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11122 * tui/tui.c, tui/tui-data.c: Ditto.
11123 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11124 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11125
11126 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11127 (struct symtab): Declare.
11128 (tui_set_source_content): Rename tuiSetSourceContent.
11129 (tui_show_symtab_source): Rename tuiShowSource.
11130 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11131 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11132 * tui/tui-source.c: Update copyright. Update references.
11133 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11134 * tui/tui-stack.c: Update references.
11135
11136 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11137 (struct tui_win_info): Declare.
11138 (tui_scroll_forward): Rename tuiScrollForward.
11139 (tui_scroll_backward): Rename tuiScrollBackward.
11140 (tui_scroll_left): Rename tuiScrollLeft.
11141 (tui_scroll_right): Rename tuiScrollRight.
11142 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11143 (tui_resize_all): Rename tuiResizeAll.
11144 (tui_refresh_all_win): Rename tuiRefreshAll.
11145 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11146 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11147 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11148 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11149
11150 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11151 (tui_erase_data_content): Rename tuiEraseDataContent.
11152 (tui_display_all_data): Rename tuiDisplayAllData.
11153 (tui_check_data_values): Rename tuiCheckDataValues.
11154 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11155 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11156 (tui_first_data_element_no_in_line): Rename
11157 tuiFirstDataElementNoInLine.
11158 (tui_delete_data_content_windows): Rename
11159 tuiDeleteDataContentWindows.
11160 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11161 (tui_display_data_from): Rename tuiDisplayDataFrom.
11162 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11163 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11164 * tui/tui-win.c, tui/tui-regs.c: Update references.
11165 * tui/tui-layout.c, tui/tui.c: Update references.
11166
11167 * tui/tui-wingeneral.h: Update copyright.
11168 (m_allBeVisible): Delete macro.
11169 (m_allBeInvisible): Delete macro.
11170 (struct tui_gen_win_info): Declare.
11171 (struct tui_win_info): Declare.
11172 (tui_unhighlight_win): Rename unhighlightWin.
11173 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11174 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11175 (tui_make_window): Rename makeWindow.
11176 (tui_copy_win): Rename copyWin.
11177 (tui_box_win): Rename boxWin.
11178 (tui_highlight_win): Rename highlightWin.
11179 (tui_check_and_display_highlight_if_needed): Rename
11180 checkAndDisplayHighlightIfNeeded.
11181 (tui_refresh_all): Rename refreshAll.
11182 (tui_delete_win): Rename tuiDelwin.
11183 (tui_refresh_win): Rename tuiRefreshWin.
11184 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11185 (tui_make_visible, tui_make_invisible): New functions.
11186 (tui_make_all_visible, tui_make_all_invisible): New functions.
11187 (make_all_visible): Rename makeAllVisible.
11188 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11189 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11190 * tui/tui-windata.c, tui/tui-win.c: Update references.
11191 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11192 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11193
11194 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11195
11196 * proc-api.c (write_with_trace): Initialize local variable to
11197 silence compiler warning.
11198
11199 2004-02-06 Andrew Cagney <cagney@redhat.com>
11200
11201 * tui/tui-source.h: Do not include "defs.h".
11202 (struct tui_win_info): Declare.
11203 (tui_set_source_content_nil): Declare.
11204 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11205 (union tui_line_or_address): Rename _TuiLineOrAddress.
11206 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11207 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11208 (tui_update_source_window_as_is): Rename
11209 tuiUpdateSourceWindowAsIs.
11210 (tui_update_source_windows_with_addr): Rename
11211 tuiUpdateSourceWindowsWithAddr.
11212 (tui_update_source_windows_with_line): Rename
11213 tuiUpdateSourceWindowsWithLine.
11214 (tui_clear_source_content): Rename tuiClearSourceContent.
11215 (tui_erase_source_content): Rename tuiEraseSourceContent.
11216 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11217 (tui_show_source_content): Rename tuiShowSourceContent.
11218 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11219 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11220 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11221 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11222 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11223 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11224 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11225 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11226 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11227 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11228 (struct tui_win_info): Declare.
11229 * tui/tui-stack.c: Update references.
11230 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11231 * tui/tui-win.c, tui/tui-source.c: Ditto.
11232 * tui/tui.c, tui/tui-disasm.c: Ditto.
11233
11234 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11235
11236 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11237 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11238
11239 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11240
11241 * infrun.c (handle_inferior_event): Allow for breakpoint
11242 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11243 and SIGEMT. Update comments.
11244 * NEWS (Revised SPARC target): Mention support for non-executable
11245 stack.
11246
11247 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11248
11249 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11250 * inftarg.c: Update copyright year.
11251 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11252 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11253 (sparc_xfer_wcookie): New function.
11254 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11255 * Makefile.in (sparc-nat.o): Update dependencies.
11256 * config/sparc/nm-nbsd.h: Include "target.h".
11257 (NATIVE_XFER_WCOOKIE): New define.
11258 (sparc_xfer_wcookie): New prototype.
11259
11260 2004-02-04 Andrew Cagney <cagney@redhat.com>
11261
11262 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11263 SYSCALL_TRAP function.
11264 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11265
11266 2004-02-04 Andrew Cagney <cagney@redhat.com>
11267 Daniel Jacobowitz <drow@mvista.com>
11268
11269 * objfiles.h: Delete comments refering to inside_entry_func and
11270 DEPRECATED_FRAME_CHAIN_VALID.
11271 * defs.h (inside_entry_func): Update prototype..
11272 * blockframe.c (inside_entry_func): Rename to
11273 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11274 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11275
11276 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11277
11278 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11279 outside of #ifdef SOLIB_ADD region.
11280 (do_restore_lang_radix_cleanup): Ditto.
11281 (resolve_pending_breakpoint): Ditto.
11282
11283 2004-02-03 Andrew Cagney <cagney@redhat.com>
11284
11285 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11286 (process_note_abi_tag_sections): Delete unused function.
11287 (ia64_read_fp): Delete unused function.
11288 (gdbarch_extract_struct_value_address): Delete declaration.
11289
11290 2004-02-02 Andrew Cagney <cagney@redhat.com>
11291
11292 * vax-tdep.c (vax_frame_chain): Delete call to
11293 deprecated_inside_entry_file.
11294 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11295
11296 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11297
11298 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11299 column that's "empty" or "same value" when eliminating REG_RA
11300 rules.
11301
11302 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11303
11304 * NEWS: Add information about new pending breakpoint support.
11305
11306 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11307
11308 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11309 and pending fields for pending breakpoint support.
11310 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11311 (condition_command): Only parse condition if not a pending
11312 breakpoint.
11313 (print_one_breakpoint): Add support for pending breakpoints.
11314 (describe_other_breakpoints): Add checks to verify we are not
11315 dealing with pending breakpoints.
11316 (check_duplicates): Don't check pending breakpoints.
11317 (set_raw_breakpoint): Initialize pending flag.
11318 (do_restore_lang_radix_cleanup): New cleanup routine.
11319 (resolve_pending_breakpoint): New function.
11320 (re_enable_breakpoints_in_shlibs): Try and resolve any
11321 pending breakpoints via resolve_pending_breakpoint.
11322 (mention): Add pending breakpoint support.
11323 (parse_breakpoint_sals): Add new parameter to pass to
11324 decode_line_1 to indicate silent errors when files or functions
11325 are not found. Change all callers.
11326 (do_captured_parse_breakpoint): New function.
11327 (break_command_1): Change prototype to return an rc value and to
11328 take an optional pending breakpoint pointer. Support creating
11329 a pending breakpoint if a "not found" form of error occurs when
11330 parsing the breakpoint. Also support resolving an existing pending
11331 breakpoint and be silent if the resolution fails.
11332 (create_breakpoints): Change prototype to take pending breakpoint
11333 pointer. When resolving a pending breakpoint, use the new pointer
11334 to provide a conditional or commands added by the end-user.
11335 (delete_breakpoint): Add appropriate check for pending.
11336 (breakpoint_re_set_one): Ditto.
11337 (do_enable_breakpoint): Ditto.
11338
11339 2004-02-02 David Carlton <carlton@kealia.com>
11340
11341 * valops.c (enum oload_classification): New.
11342 (find_overload_match): Break implementation into separate
11343 functions; delete #if 0'd code; look for symbols within
11344 namespaces.
11345 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11346 (find_oload_champ,oload_method_static,classify_oload_match): New.
11347 * cp-support.h: Add declaration for cp_func_name; update
11348 declaration for make_symbol_overload_list.
11349 * cp-support.c (cp_func_name): New.
11350 (overload_list_add_symbol): Fix comment, use
11351 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11352 (make_symbol_overload_list): Take a function name and a namespace
11353 instead of a symbol; change implementation.
11354 (make_symbol_overload_list_using): New.
11355 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11356
11357 2004-02-02 Fred Fish <fnf@redhat.com>
11358
11359 * main.c (gdb_stdtarg): Move definition to group with other
11360 gdb_stdtarg definitions and update copyright years.
11361 * remote-sim.c (gdb_os_write_stderr): Write output to
11362 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11363 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11364 gdb_stderr stream and update copyright years.
11365
11366 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11367
11368 * Makefile.in (mips-linux-nat.o): Update dependencies.
11369 * mips-linux-nat.c: Include mips-tdep.h.
11370
11371 2004-02-01 Roland McGrath <roland@redhat.com>
11372
11373 * sol-thread.c (sol_thread_xfer_partial): New function.
11374 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11375 (init_sol_core_ops): Likewise.
11376
11377 * procfs.c (procfs_xfer_partial): New function.
11378 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11379 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11380
11381 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11382 procfs_xfer_auxv function.
11383
11384 * procfs.c (procfs_make_note_section): If we can read
11385 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11386 * linux-proc.c (linux_make_note_section): Likewise.
11387
11388 * auxv.h: New file.
11389 * auxv.c: New file.
11390 * Makefile.in (auxv_h): New variable.
11391 (COMMON_OBS): Add auxv.o here.
11392 (auxv.o): New target.
11393
11394 * corelow.c (core_xfer_partial): New function.
11395 (init_core_ops): Use it for core_ops.to_xfer_partial.
11396
11397 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11398 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11399 macro if that is defined.
11400
11401 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11402
11403 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11404 and check the specified thread for each breakpoint.
11405 * breakpoint.h (bpstat_stop_status): Update prototype.
11406 * infrun.c (handle_inferior_event): Update calls to
11407 bpstat_stop_status.
11408
11409 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11410
11411 * Makefile.in (cli-cmds.o): Add $(readline_h).
11412
11413 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11414
11415 * cli/cli-cmds.c: Include readline.h.
11416 (complete_command): Pass the start of the last word to
11417 complete_line.
11418
11419 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11422 argument, and change first argument to a CORE_ADDR.
11423 * breakpoint.h (bpstat_stop_status): Update prototype.
11424 * infrun.c (adjust_pc_after_break): Add a new comment.
11425 (handle_inferior_event): Update calls to bpstat_stop_status.
11426
11427 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11428
11429 * breakpoint.h: Update copyright years.
11430
11431 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11432
11433 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11434 (bpstat_stop_status): Don't decrement PC.
11435 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11436 prototype.
11437 * infrun.c (adjust_pc_after_break): New function.
11438 (handle_inferior_event): Call it, early. Remove later references
11439 to DECR_PC_AFTER_BREAK.
11440 (normal_stop): Add commentary.
11441
11442 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11445 2004-01-27 double-free fix.
11446
11447 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11448
11449 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11450 (sparc32_frame_prev_register): Handle StackGhost.
11451 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11452
11453 2004-01-29 Roland McGrath <roland@redhat.com>
11454
11455 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11456 * configure: Regenerated.
11457
11458 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11459 * Makefile.in (procfs.o): Add dep.
11460
11461 2004-01-28 Andrew Cagney <cagney@redhat.com>
11462
11463 * tui/tui-stack.h: Update copyright.
11464 (struct frame_info): Add opaque declaration.
11465 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11466 (tui_show_locator_content): Rename tuiShowLocatorContent.
11467 (tui_show_frame_info): Rename tuiShowFrameInfo.
11468 * tui/tui-stack.c: Update copyright. Update references.
11469 * tui/tui-winsource.c: Update references.
11470 * tui/tui-win.c: Update references.
11471 * tui/tui-layout.c: Update references.
11472 * tui/tui-hooks.c: Update copyright, update references.
11473 * tui/tui.c: Update copyright, update references.
11474 * tui/tui-disasm.c: Update references.
11475
11476 2004-01-28 David Carlton <carlton@kealia.com>
11477
11478 * dwarf2read.c (add_partial_structure): Use demangled name if
11479 namespace equals "".
11480
11481 2004-01-27 Jim Blandy <jimb@redhat.com>
11482
11483 Clean up misapplied patch:
11484 * dwarf2read.c (determine_prefix): Change one of the two forward
11485 declarations for 'determine_prefix_aux' to a declaration for this.
11486 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11487 argument to 'die_specification'.
11488
11489 * dwarf2read.c (read_func_scope): Re-indent comment.
11490
11491 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11492
11493 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11494 b->exp to NULL after freeing so that error during re-parsing or
11495 evaluation of expressions associated with breakpoint don't
11496 eventually lead to re-freeing of storage.
11497 Committed by Andrew Cagney.
11498
11499 2004-01-27 Andrew Cagney <cagney@redhat.com>
11500
11501 * source.c (ambiguous_line_spec): Delete undefined declaration.
11502 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11503 (m32r_set_server_address, m32r_set_download_path): Ditto.
11504 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11505
11506 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11507
11508 * dwarf2read.c: Update calls to changed and renamed functions, and
11509 references to moved variables.
11510
11511 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11512 language, language_defn, list_in_scope, and ftypes members.
11513 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11514 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11515 (baseaddr): Remove globals.
11516
11517 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11518 (set_cu_language, die_is_declaration, die_specification)
11519 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11520 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11521 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11522 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11523
11524 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11525 cu.list_in_scope. Don't initialize cu_header_offset.
11526 (add_partial_symbol): Add local baseaddr.
11527 (psymtab_to_symtab_1): Add local baseaddr. Use
11528 objfile->section_offsets for consistency. Don't initialize
11529 cu_header_offset; do initialize cu.header.offset and
11530 cu.list_in_scope.
11531 (read_file_scope, read_func_scope, read_lexical_block_scope)
11532 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11533
11534 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11535
11536 * PROBLEMS: Add gdb/1516.
11537
11538 2003-12-29 Robert Millan <robertmh@gnu.org>
11539
11540 Patch committed by Andrw Cagney.
11541 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11542 * configure.tgt: Match knetbsd*-gnu.
11543
11544 2004-01-26 Andrew Cagney <cagney@redhat.com>
11545
11546 * breakpoint.c (catch_command_1): Delete #ifdef code.
11547 (catch_fork_command_1): Delete #ifdef wrapper.
11548 (catch_exec_command_1): Ditto.
11549 (catch_load_command_1): Ditto.
11550 (catch_unload_command_1): Ditto.
11551
11552 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11553 (catch_breakpoint): Delete #if0ed function.
11554 (disable_catch_breakpoint): Ditto.
11555 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11556 (disable_catch, enable_catch, delete_catch): Ditto.
11557
11558 2004-01-26 Andrew Cagney <cagney@redhat.com>
11559
11560 * remote.c (echo_check, quit_flag): Delete variables.
11561 (cisco_kernel_mode): Delete variable.
11562 (minitelnet_return, tty_input, escape_count): Delete variables.
11563 (remote_cisco_mode): Delete variable.
11564 (remote_cisco_open, remote_cisco_close): Delete function.
11565 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11566 (init_remote_cisco_ops): Delete function.
11567 (_initialize_remote): Do not install "remote cisco" code.
11568 (read_frame): Delete cisco specific code.
11569 (remote_info_process): Delete function.
11570 (remote_wait): Delete cisco specific code.
11571 (remote_cisco_section_offsets): Delete function.
11572 (remote_cisco_objfile_relocate): Delete function.
11573 (remote_async_wait): Delete cisco specific code.
11574 (minitelnet, readtty, readsocket): Delete function.
11575
11576 2004-01-26 Andrew Cagney <cagney@redhat.com>
11577
11578 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11579 comments mentioning extract_returned_value_address.
11580 * infcmd.c (print_return_value): Update. Add comments on
11581 extract_returned_value_address.
11582 * stack.c (return_command): Add comments on
11583 extract_returned_value_address.
11584 * values.c: Update comment.
11585 * m32r-tdep.c: Update comment.
11586 * sparc-tdep.c: Update comment.
11587 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11589 * sh64-tdep.c (sh64_gdbarch_init): Update.
11590 * sh-tdep.c (sh_gdbarch_init): Update.
11591 * s390-tdep.c (s390_gdbarch_init): Update.
11592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11593 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11594 * m68k-tdep.c (m68k_gdbarch_init): Update.
11595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11596 * m32r-tdep.c (m32r_gdbarch_init): Update.
11597 * ia64-tdep.c (ia64_gdbarch_init): Update.
11598 * h8300-tdep.c (h8300_gdbarch_init): Update.
11599 * frv-tdep.c (frv_gdbarch_init): Update.
11600 * arm-tdep.c (arm_gdbarch_init): Update.
11601 * alpha-tdep.c (alpha_gdbarch_init): Update.
11602
11603 2004-01-26 Andrew Cagney <cagney@redhat.com>
11604
11605 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11606 SYMBOL_LOCATION_FUNCS
11607 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11608 "struct symbol_ops".
11609 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11610 type to "struct symbol_ops".
11611 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11612 (struct symbol): Replace ".aux_value.loc.funcs" and
11613 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11614 (SYMBOL_OBJFILE): Delete macro.
11615 (SYMBOL_LOCATION_FUNCS): Delete macro.
11616 (SYMBOL_LOCATION_BATON): Update.
11617 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11618 intead of SYMBOL_LOCATION_FUNCS.
11619 * ax-gdb.c (gen_var_ref): Ditto.
11620 * printcmd.c (address_info): Ditto.
11621 * findvar.c (read_var_value): Ditto.
11622 (symbol_read_needs_frame): Ditto.
11623
11624 2004-01-26 Andrew Cagney <cagney@redhat.com>
11625
11626 * dwarf2read.c (read_func_scope): Document frame-base hack.
11627
11628 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11629
11630 * infcmd.c (print_return_value): Plug memory leak; delete
11631 ui_stream object. Rename argument `structure_return' to
11632 `struct_return'.
11633
11634 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11635
11636 * infcmd.c (print_return_value): Wrap long lines.
11637 (finish_command_continuation, finish_command): Remove unused
11638 variable `funcaddr'. Fix some coding-standards problems.
11639
11640 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11641 SECT_SIZE is large enough, not whether it's exactly the right size.
11642 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11643 TDEP->fpregset to zero.
11644
11645 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11646 floating-point registers for traditional NetBSD core files.
11647 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11648 TDEP->sizeof_fpregset here.
11649
11650 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11651
11652 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11653 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11654 function with code split out from
11655 sparc32nbsd_sigcontext_frame_cache.
11656 (sparc32nbsd_sigcontext_frame_cache): Use
11657 sparc32nbsd_sigcontext_saved_regs.
11658 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11659 OpenBSD.
11660 * sparcobsd-tdep.c: New file.
11661 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11662 (sparcobsd-tdep.o): New dependency.
11663 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11664 * config/sparc/obsd.mt: New file.
11665
11666 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11667 TDEP->fpregset to be initialized to enable core file register
11668 sets.
11669
11670 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11671
11672 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11673 Add opaque declarations.
11674 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11675 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11676 function with code split out from
11677 sparc64nbsd_sigcontext_frame_cache.
11678 (sparc64nbsd_sigcontext_frame_cache): Use
11679 sparc64nbsd_sigcontext_saved_regs.
11680 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11681 OpenBSD.
11682 * sparc64obsd-tdep.c: New file.
11683 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11684 (sparc64obsd-tdep.o): New dependency.
11685 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11686 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11687 * config/sparc/obsd64.mt: New file.
11688
11689 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11690 read the instruction at PC.
11691
11692 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11693 value of GDB_OSABI_DEFAULT.
11694 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11695 instead of GDB_OSABI_NETBSD_AOUT.
11696
11697 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11698
11699 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11700 copyright.
11701
11702 2004-01-23 Andrew Cagney <cagney@redhat.com>
11703
11704 * printcmd.c (display_command): Replace tui_set_display call with
11705 tui_set_layout_for_display_command.
11706 * tui/tui.h (enum tui_win_type): Define.
11707 (tui_set_layout): Delete declaration.
11708 (tui_set_layout_for_display_command): Rename set_tui_layout.
11709 * tui/tui-data.h (enum tui_layout_type): Define.
11710 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11711 "tui.h".
11712 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11713 (tui_default_win_height): Rename tuiDefaultWinHeight.
11714 (tui_default_win_viewport_height): Rename
11715 tuiDefaultWinViewportHeight.
11716 (tui_set_layout): RenametuiSetLayout.
11717 * tui/tui-layout.c: Update references.
11718 * tui/tui.c: Update references.
11719 * tui/tui-disasm.c: Update references.
11720
11721 2004-01-23 David Carlton <carlton@kealia.com>
11722
11723 Partial workaround for PR c++/1511:
11724 * cp-namespace.c: Include frame.h.
11725 (cp_lookup_transparent_type): New
11726 (cp_lookup_transparent_type_loop): New.
11727 * cp-support.h: Declare cp_lookup_transparent_type.
11728 * symtab.c (basic_lookup_transparent_type): Renamed from
11729 lookup_transparent_type.
11730 (lookup_transparent_type): Replace old body by a call to
11731 current_language->la_lookup_transparent_type.
11732 * symtab.h: Update copyright. Declare
11733 basic_lookup_transparent_type.
11734 * language.h: Update copyright.
11735 (struct language_defn): Add la_lookup_transparent_type.
11736 * language.c: Update copyright.
11737 (unknown_language_defn): Add basic_lookup_transparent_type.
11738 (auto_language_defn): Add basic_lookup_transparent_type.
11739 (local_language_defn): Add basic_lookup_transparent_type.
11740 * ada-lang.c: Update copyright.
11741 (ada_language_defn): Add basic_lookup_transparent_type.
11742 * c-lang.c: Update copyright.
11743 (c_language_defn): Add basic_lookup_transparent_type.
11744 (cplus_language_defn): Add basic_lookup_transparent_type.
11745 (asm_language_defn): Add basic_lookup_transparent_type.
11746 (minimal_language_defn): Add basic_lookup_transparent_type.
11747 * f-lang.c: Update copyright.
11748 (f_language_defn): Add basic_lookup_transparent_type.
11749 * jv-lang.c: Update copyright.
11750 (java_language_defn): Add basic_lookup_transparent_type.
11751 * m2-lang.c: Update copyright.
11752 (m2_language_defn): Add basic_lookup_transparent_type.
11753 * objc-lang.c: Update copyright.
11754 (objc_language_defn): Add basic_lookup_transparent_type.
11755 * p-lang.c: Update copyright.
11756 (p_language_defn): Add basic_lookup_transparent_type.
11757 * scm-lang.c: Update copyright.
11758 (scm_language_defn): Add basic_lookup_transparent_type.
11759 * Makefile.in (cp-namespace.o): Depend on frame.h.
11760
11761 2004-01-23 David Carlton <carlton@kealia.com>
11762
11763 Patch for PR c++/1520:
11764 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11765 properly if we have a specification die.
11766 (determine_prefix_aux): Rename from determine_prefix.
11767 (determine_prefix): Like the old determine_prefix, but never
11768 returns NULL.
11769
11770 2004-01-23 Theodore A. Roth <troth@openavr.org>
11771
11772 * avr-tdep.c: Update copyright.
11773 (avr_iaddr_p): Delete unused function.
11774 (avr_saddr_p): Delete unused function.
11775
11776 2004-01-23 David Carlton <carlton@kealia.com>
11777
11778 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11779 Fix for PR symtab/1534.
11780
11781 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11782
11783 * NEWS (New native configurations): Mention OpenBSD/sparc and
11784 OpenBSD/sparc64.
11785 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11786 * configure.host: Likewise.
11787 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11788 handler for OpenBSD.
11789 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11790
11791 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11792
11793 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11794 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11795
11796 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11797 * cli/cli-cmds.c (shell_escape): Likewise.
11798
11799 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11800 OpenBSD .note.openbsd.ident sections.
11801
11802 2004-01-22 David Carlton <carlton@kealia.com>
11803
11804 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11805 get_scope_pc_bounds.
11806 (read_file_scope): Ditto.
11807 (get_scope_pc_bounds): New function, produced by extracting code
11808 from the above two functions, consolidating it, and adding support
11809 for DW_TAG_namespace.
11810
11811 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11812
11813 * osabi.c (MAX_NOTESZ): New define.
11814 (check_note): New function.
11815 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11816 check_note.
11817
11818 2004-01-21 Roland McGrath <roland@redhat.com>
11819
11820 * MAINTAINERS (write after approval): Add myself.
11821
11822 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11823
11824 * utils.c (init_page_info): Move declarations of `rows' and
11825 `cols' before the __GO32__-specific code. Move the closing brace
11826 outside the #ifdef __GO32__..#endif block.
11827 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11828
11829 2004-01-21 Paul Brook <paul@codesourcery.com>
11830
11831 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11832 BPSTAT_WHAT_CHECK_SHLIBS.
11833
11834 2004-01-21 Paul Brook <paul@codesourcery.com>
11835
11836 * MAINTAINERS: Add myself to write-after-approval.
11837
11838 2004-01-20 Andrew Cagney <cagney@redhat.com>
11839
11840 * ax-gdb.c (print_axs_value): Delete unused function.
11841 * jv-lang.c (java_lookup_type): Delete unused function.
11842 * cli/cli-dump.c (dump_filetype): Delete unused function.
11843 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11844 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11845 (mips_getstring): Delete unused function.
11846 (pmon_insert_breakpoint): Delete #if0ed function.
11847 (PMON_MAX_BP): Delete #if0ed MACRO.
11848 (mips_pmon_bp_info): Delete #if0ed variable.
11849 (pmon_remove_breakpoint): Delete #if0ed function.
11850 * monitor.c (monitor_write_even_block): Delete unused function.
11851 (monitor_write_memory_block): Delete #if0ed code.
11852 * dink32-rom.c (dink32_load): Delete unused function.
11853 (_initialize_dink32_rom): Delete #if0ed code.
11854 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11855
11856 * tui/tui-command.c: Update references.
11857 * tui/tui-io.c: Update references.
11858 * tui/tui-command.h: Update copyright.
11859 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11860
11861 * source.c (ambiguous_line_spec): Delete never-defined function.
11862 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11863 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11864 * cli/cli-cmds.c (validate_comname): Ditto.
11865
11866 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11867 "tui-data.h".
11868 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11869 (tui_show_disassem): Rename tuiShowDisassem.
11870 (tui_show_disassem_and_update_source): Rename
11871 tuiVerticalDisassemScroll.
11872 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11873 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11874 * tui/tui.h: Update copyright.
11875 (enum tui_status): Define.
11876 * tui/tui-data.h (enum tui_scroll_direction): Define.
11877 * tui/tui-disasm.c: Update copyright. Update references.
11878 * tui/tui-winsource.c: Update copyright. Update references.
11879 * tui/tui-win.c: Update references.
11880 * tui/tui-layout.c: Update references.
11881
11882 2004-01-20 Andrew Cagney <cagney@redhat.com>
11883
11884 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11885 sym2 to start of block.
11886
11887 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11888
11889 * MAINTAINERS: Delete mmalloc.
11890 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11891 * NEWS: Mention removal of --with-malloc.
11892 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11893 * config.in: Regenerate.
11894 * configure: Regenerate.
11895 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11896 USE_MMALLOC, MMCHECK_FORCE.
11897 * gdbinit.in: Remove mmalloc.
11898 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11899 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11900 * config/i386/go32.mh: Likewise.
11901 * config/i386/interix.mh: Likewise.
11902 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11903
11904 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11905
11906 * linespec.c (decode_variable, symtab_from_filename): Call
11907 error_silent with error message instead of throwing an exception
11908 directly.
11909 * defs.h (error_silent, error_output_message): Add prototypes.
11910 (catch_exceptions_with_msg): Ditto.
11911 * utils.c (error_silent, error_output_message): New functions.
11912 * top.c (catch_exceptions_with_msg): New function.
11913
11914 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11915
11916 * mi/mi-cmds.h (enum print_values): Add definition.
11917
11918 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11919 type and value for simple data types and just the name and type
11920 for complex ones, if required.
11921
11922 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11923 children, if required.
11924
11925 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11926
11927 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11928 unused declarations.
11929
11930 2004-01-19 Andrew Cagney <cagney@redhat.com>
11931
11932 * top.h (mapped_symbol_files): Delete declaration.
11933 * main.c (captured_main): Delete option "m" and "mapped".
11934 * objfiles.c (mapped_symbol_files): Delete variable.
11935 * symfile.c (symbol_file_command): Delete mmap code.
11936 (symbol_file_add_with_addrs_or_offsets): Ditto.
11937 (add_symbol_file_command, reread_separate_symbols): Ditto.
11938 * objfiles.h (OBJF_MAPPED): Delete.
11939 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11940 (free_objfile) [USE_MMALLOC]: Ditto.
11941 (open_existing_mapped_file): Delete function.
11942 (open_mapped_file): Delete function.
11943 (map_to_file): Delete function.
11944
11945 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11946
11947 * infrun.c (step_into_function): Account for possible breakpoint
11948 adjustment when computing ``stop_func_start''.
11949
11950 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11951
11952 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11953 the region size against the size of a pointer, not the size of
11954 a register as given by DEPRECATED_REGISTER_SIZE.
11955
11956 2004-01-19 Andrew Cagney <cagney@redhat.com>
11957
11958 * tui/tui-regs.h: Include "tui-data.h".
11959 (tuiFirstRegElementNoInLine): Delete declaration.
11960 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11961 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11962 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11963 (tui_calculate_regs_column_count): Rename
11964 tuiCalculateRegsColumnCount.
11965 (tui_check_register_values): Rename tuiCheckRegisterValues.
11966 (tui_show_registers): Rename tuiShowRegisters.
11967 (tui_display_registers_from_line): Rename
11968 tuiDisplayRegistersFromLine.
11969 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11970 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11971 (tui_first_reg_element_no_inline): Rename
11972 tuiFirstRegElementNoInLine.
11973 * tui/tui-data.h: Update copyright.
11974 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11975 * tui/tui-windata.c: Update copyright, update references.
11976 * tui/tui-regs.c: Update copyright, update references.
11977 * tui/tui-win.c: Update copyright, update references.
11978 * tui/tui-layout.c: Update copyright, update references.
11979
11980 2004-01-18 Andrew Cagney <cagney@redhat.com>
11981
11982 * tui/tui-io.c: Update copyright.
11983 (key_is_end_sequence, key_is_backspace): New functions.
11984 (key_is_command_char, key_is_start_sequence): New function.
11985 (tui_getc): Update references.
11986 * tui/tui-io.h: Update copyright.
11987 (m_tuiStartNewLine): Delete macro.
11988 (m_isBackspace, m_isDeleteChar): Delete macros.
11989 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11990 (m_isNextPage, m_isPrevPage): Delete macros.
11991 (m_isLeftArrow, m_isRightArrow): Delete macros.
11992 (m_isXdbStyleCommandChar): Delete macro.
11993 (key_is_start_sequence): Declare, replace m_isStartSequence.
11994 (key_is_end_sequence): Declare, replace m_isEndSequence.
11995 (key_is_backspace): Declare ,replace m_isBackspace.
11996 (key_is_command_char): Declare, replace m_isCommandChar.
11997 * tui/tui-command.c: Update copyright.
11998 (tuiDispatchCtrlChar): Update references.
11999
12000 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12001 tuiSourceWin.h.
12002
12003 * tui/tui-command.c: Rename tui/tuiCommand.c.
12004 * tui/tui-command.h: Rename tui/tuiCommand.h.
12005 * tui/tui-data.c: Rename tui/tuiData.c.
12006 * tui/tui-data.h: Rename tui/tuiData.h.
12007 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12008 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12009 * tui/tui-io.c: Rename tui/tuiIO.c.
12010 * tui/tui-io.h: Rename tui/tuiIO.h.
12011 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12012 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12013 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12014 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12015 * tui/tui-source.c: Rename tui/tuiSource.c.
12016 * tui/tui-source.h: Rename tui/tuiSource.h.
12017 * tui/tui-stack.c: Rename tui/tuiStack.c.
12018 * tui/tui-stack.h: Rename tui/tuiStack.h.
12019 * tui/tui-win.c: Rename tui/tuiWin.c.
12020 * tui/tui-win.h: Rename tui/tuiWin.h.
12021 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12022 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12023 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12024 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12025 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12026 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12027 * tui/tui-file.c: Update includes.
12028 * tui/tui-hooks.c: Update includes.
12029 * tui/tui-interp.c: Update includes.
12030 * tui/tui.c: Update includes.
12031 * Makefile.in: Update all tui/ dependencies.
12032 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12033
12034 * Makefile.in: Update copyright. Update dependencies.
12035
12036 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12037 problem.
12038
12039 2004-01-18 Andrew Cagney <cagney@redhat.com>
12040
12041 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12042 instead of register_gdbarch_init.
12043
12044 * remote-sds.c (tohex): Delete unused function. Update copyright.
12045 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12046 * v850-tdep.c (v850_register_virtual_size): Ditto.
12047 * target.c (normal_target_post_startup_inferior): Ditto.
12048 * source.c (ambiguous_line_spec): Ditto.
12049 * remote.c (adapt_remote_get_threadinfo): Ditto.
12050 * mi/mi-out.c (out_field_fmt): Ditto.
12051 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12052 (output_control_change_notification): Ditto.
12053 * m68k-tdep.c (m68k_register_byte): Ditto.
12054 (m68k_remote_breakpoint_from_pc): Ditto.
12055 * ui-out.c (init_ui_out_state): Delete unused declaration.
12056 * stabsread.c (search_value): Ditto.
12057 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12058 * maint.c (print_section_table): Ditto.
12059 * infrun.c (set_follow_fork_mode_command): Ditto.
12060
12061 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12062
12063 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12064 DW_CFA_def_cfa_exporession. Add support for
12065 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12066 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12067
12068 2004-01-18 Andrew Cagney <cagney@redhat.com>
12069
12070 * ocd.c: Update copyright.
12071 (bdm_read_register_command): Delete unused function.
12072 (_initialize_remote_ocd): Delete commented out reference.
12073 (get_quoted_char, reset_packet): Delete #if0ed function.
12074 (output_packet, put_quoted_char): Delete #if0ed function.
12075 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12076 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12077 (BDM_BREAKPOINT): Delete #if0ed macro.
12078 (remote_timeout): Delete #if0ed variable.
12079
12080 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12081
12082 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12083 (core-sol2.o): Remove dependency.
12084 * core-sol2.c: Remove file.
12085
12086 2004-01-17 Andrew Cagney <cagney@redhat.com>
12087
12088 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12089 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12090 enums.
12091
12092 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * remote.c: Update copyright years.
12095
12096 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12097
12098 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12099
12100 2004-01-17 Andrew Cagney <cagney@redhat.com>
12101
12102 * mdebugread.c: Update copyright.
12103 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12104 (parse_type, parse_procedure): Ditto.
12105 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12106
12107 * cris-tdep.c (cris_store_struct_return): Put back accidently
12108 deleted function.
12109
12110 * gdbarch.sh: Update copyright year.
12111 * gdbarch.h, gdbarch.c: Re-generate.
12112
12113 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12114
12115 Suggested by George Anzinger.
12116 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12117 correct stack offset. Include unknown opcode numbers in the error
12118 message.
12119
12120 2004-01-17 Andrew Cagney <cagney@redhat.com>
12121
12122 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12123 extract_struct_value_address, i386 does not set it.
12124 * sparc64-tdep.c (sparc64_init_abi): Do not set
12125 extract_struct_value_address, never called.
12126 (sparc64_extract_struct_value_address): Delete function.
12127 * m68hc11-tdep.c: Update copyright.
12128 (m68hc11_gdbarch_init): Delete redundant assignment of
12129 extract_struct_value_address.
12130 * i386-tdep.c: Update copyright.
12131 (i386_gdbarch_init): Do not set extract_struct_value_address,
12132 never called.
12133 (i386_extract_struct_value_address): Delete function.
12134 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12135 extract_struct_value_address, never called.
12136 (sparc32_extract_struct_value_address): #if 0 function. Add
12137 comments explaining its future.
12138
12139 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12140
12141 * arm-tdep.c (arm_write_pc): New function.
12142 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12143
12144 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12145
12146 * breakpoint.c (must_shift_inst_regs): Delete.
12147 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12148 and SHIFT_INST_REGS.
12149 * infcmd.c (step_1, step_1_continuation): Delete references to
12150 SHIFT_INST_REGS.
12151 * infrun.c (keep_going): Likewise.
12152 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12153 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12154
12155 2004-01-17 Andrew Cagney <cagney@redhat.com>
12156
12157 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12158 * gdbarch.h, gdbarch.c: Re-generate.
12159 * infcmd.c (print_return_value): Delete reference to
12160 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12161
12162 * cris-tdep.c (cris_gdbarch_init): Do not set
12163 deprecated_extract_struct_value_address.
12164
12165 * xstormy16-tdep.c: Update copyright.
12166 (xstormy16_extract_struct_value_address): Update to current
12167 extract struct value address interface.
12168 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12169 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12170 current extract struct value address interface.
12171 (sh64_gdbarch_init): Set extract_struct_value_address.
12172
12173 * cris-tdep.c: Update copyright.
12174 (cris_extract_struct_value_address): Delete function.
12175 (struct_return_address): Delete variable.
12176 (cris_store_struct_return): Do not set struct_return_address.
12177
12178 * mcore-tdep.c: Update copyright.
12179 (mcore_extract_struct_value_address): Delete function. Update
12180 comments.
12181 (mcore_gdbarch_init): Update.
12182 * mn10300-tdep.c: Update copyright.
12183 (mn10300_extract_struct_value_address): Delete function.
12184 (mn10300_gdbarch_init): Update.
12185 * v850-tdep.c: Update copyright.
12186 (v850_extract_struct_value_address): Delete.
12187 (v850_gdbarch_init): Update.
12188 * ns32k-tdep.c: Update copyright.
12189 (ns32k_extract_struct_value_address): Delete.
12190 (ns32k_gdbarch_init): Update.
12191 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12192 (hppa_gdbarch_init): Update.
12193 * vax-tdep.c: Update copyright.
12194 (vax_extract_struct_value_address): Delete.
12195 (vax_gdbarch_init): Update.
12196
12197 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12198 * gdbarch.h, gdbarch.c: Re-generate.
12199 * procfs.c (procfs_fetch_registers): Delete reference to
12200 DEPRECATED_NPC_REGNUM.
12201 (procfs_store_registers): Ditto.
12202 * regcache.c (generic_target_write_pc): Simplify.
12203 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12204
12205 * core-sol2.c (fetch_core_registers): Replace
12206 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12207
12208 * hppa-tdep.c: Update copyright year.
12209 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12210 NPC_REGNUM.
12211 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12212
12213 * mips-tdep.c (mips_write_pc): New function.
12214 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12215 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12216 (mips_find_saved_regs, mips_software_single_step: Ditto.
12217 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12218 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12219
12220 2004-01-17 Andrew Cagney <cagney@redhat.com>
12221
12222 * mips-tdep.c: Re-indent. Group functions by ABI.
12223
12224 2004-01-17 Andrew Cagney <cagney@redhat.com>
12225
12226 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12227 * gdbarch.c: Re-generate.
12228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12229 DECR_PC_AFTER_BREAK to zero.
12230 * vax-tdep.c (vax_gdbarch_init): Ditto.
12231 * v850-tdep.c (v850_gdbarch_init): Ditto.
12232 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12233 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12234 * sh-tdep.c (sh_gdbarch_init): Ditto.
12235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12236 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12238 * mips-tdep.c (mips_gdbarch_init): Ditto.
12239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12241 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12243 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12244 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12246 * frv-tdep.c (frv_gdbarch_init): Ditto.
12247 * cris-tdep.c (cris_gdbarch_init): Ditto.
12248 * avr-tdep.c (avr_gdbarch_init): Ditto.
12249 * arm-tdep.c (arm_gdbarch_init): Ditto.
12250 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12251
12252 2004-01-17 J. Brobecker <brobecker@gnat.com>
12253
12254 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12255 Delete, no longer used.
12256 (read_subrange_type): New function, mostly extracted from
12257 read_array_type().
12258 (read_array_type): Replace extracted code by call to
12259 read_subrange_type().
12260 (dwarf2_get_attr_constant_value): New function.
12261 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12262 (add_partial_symbol): Likewise.
12263 (process_die): Likewise.
12264 (new_symbol): Likewise.
12265 (read_type_die): Likewise.
12266
12267 2004-01-16 Andrew Cagney <cagney@redhat.com>
12268
12269 * symfile.c: Update copyright year.
12270 (compare_symbols): Delete unused function.
12271 * stabsread.c: Update copyright year.
12272 (lrs_general_complaint): Delete unused function.
12273 (ref_search_value): Ditto.
12274 (get_substring): Delete declaration.
12275 * sh64-tdep.c: Update copyright year.
12276 (sh64_get_gdb_regnum): Delete unused function.
12277 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12278 Delete unused function.
12279
12280 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12281
12282 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12283 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12284
12285 2004-01-16 Andrew Cagney <cagney@redhat.com>
12286
12287 Changes from Peter Schauer.
12288 * rs6000-tdep.c: Update copyright year.
12289 (rs6000_push_dummy_call): Update the stack pointer before
12290 accessing the corresponding stack region.
12291 * rs6000-nat.c: Update copyright year.
12292 (set_host_arch): Set "info.abfd" to "exec_bfd".
12293
12294 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12295
12296 * blockframe.c: Update copyright year.
12297 (inside_entry_func): Don't treat a zero PC specially.
12298
12299 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12300
12301 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12302 variable.
12303 (gcore_create_callback): Ditto. Skip any memory segment that has
12304 no permissions set.
12305
12306 2004-01-14 David Carlton <carlton@kealia.com>
12307
12308 Change symbols for C++ nested types to contain the fully qualified
12309 name, if possible. (At least in the DWARF-2 case.) Partial fix
12310 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12311 c++/895.
12312 * c-exp.y (qualified_type): Handle types nested within classes.
12313 * cp-namespace.c: Update comments.
12314 (cp_set_block_scope): Delete #if 0.
12315 (cp_lookup_nested_type): Handle types nested within classes.
12316 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12317 when appropriate.
12318 (add_partial_symbol): Add the name of the enclosing namespace to
12319 types.
12320 (pdi_needs_namespace): New.
12321 (add_partial_namespace): Tweak comment.
12322 (add_partial_structure): New.
12323 (psymtab_to_symtab_1): Initialize processing_current_prefix
12324 here...
12325 (process_die): instead of here.
12326 (read_structure_scope): Try to figure out the name of the class or
12327 namespace that the structure might be defined within.
12328 (read_enumeration): Generate fully-qualified names, if possible.
12329 (read_namespace): Don't set name to NULL.
12330 (die_specification): New.
12331 (new_symbol): Generate fully-qualified names for types.
12332 (read_type_die): Determine appropriate prefix.
12333 (determine_prefix): New.
12334 (typename_concat): New.
12335 (class_name): New.
12336 * valops.c (value_aggregate_elt): Pass NOSIDE to
12337 value_struct_elt_for_reference.
12338 (value_struct_elt_for_reference): Make static, add NOSIDE
12339 parameter, call value_maybe_namespace_elt as a last resort.
12340 (value_namespace_elt): Break out code into
12341 value_maybe_namespace_elt.
12342 (value_maybe_namespace_elt): New.
12343
12344 2004-01-12 Andrew Cagney <cagney@redhat.com>
12345
12346 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12347 cooked floating-point registers.
12348 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12349 and value_to_register.
12350
12351 2004-01-13 Andrew Cagney <cagney@redhat.com>
12352
12353 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12354 * gdbarch.c: Re-generate.
12355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12356 FUNCTION_START_OFFSET.
12357 * v850-tdep.c (v850_gdbarch_init): Ditto.
12358 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12359 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12360 * sh-tdep.c (sh_gdbarch_init): Ditto.
12361 * s390-tdep.c (s390_gdbarch_init): Ditto.
12362 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12363 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12364 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12365 * mips-tdep.c (mips_gdbarch_init): Ditto.
12366 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12367 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12369 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12370 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12371 * i386-tdep.c (i386_gdbarch_init): Ditto.
12372 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12374 * frv-tdep.c (frv_gdbarch_init): Ditto.
12375 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12376 * cris-tdep.c (cris_gdbarch_init): Ditto.
12377 * avr-tdep.c (avr_gdbarch_init): Ditto.
12378 * arm-tdep.c (arm_gdbarch_init): Ditto.
12379 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12380
12381 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12382
12383 * infrun.c (follow_fork_mode_ask): Remove.
12384 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12385 (follow_fork): Simplify and remove internal error for
12386 follow_fork_mode_ask.
12387 (_initialize_infrun): Update "set follow-fork-mode" help text.
12388
12389 2004-01-13 Andrew Cagney <cagney@redhat.com>
12390
12391 * configure.in: Update copyright year.
12392 (build_warnings): Add -Wunused-label.
12393 * configure: Re-generate.
12394
12395 2004-01-12 Andrew Cagney <cagney@redhat.com>
12396
12397 * exec.h (exec_ops): Make "extern".
12398
12399 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12400 the function is void.
12401 (mips_pseudo_register_write): Ditto.
12402
12403 2004-01-12 Andrew Cagney <cagney@redhat.com>
12404
12405 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12406 call. Never defined.
12407 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12408 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12409 (struct sparc_gregset, struct regcache): Ditto.
12410 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12411
12412 2004-01-12 Andrew Cagney <cagney@redhat.com>
12413
12414 * mi/ChangeLog: Delete file. Renamed to ...
12415 * mi/ChangeLog-1999-2003: New file.
12416 * tui/ChangeLog: Delete file. Renamed to ...
12417 * tui/ChangeLog-1998-2003: New file.
12418
12419 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12420
12421 * sparc64nbsd-tdep.c: Include "regset.h".
12422 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12423 Remove variables.
12424 (fetch_core_registers): Remove function.
12425 (sparc64nbsd_core_fns): Remove variable.
12426 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12427 functions.
12428 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12429 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12430 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12431
12432 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12433 sparc_extract_struct_value_address.
12434 (sparc32_gdbarch_init): Set extract_struct_value_address.
12435 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12436 function.
12437 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12438 return_value_on_stack.
12439
12440 * NEWS: Mention that %cs and %ss have been added to the AMD64
12441 configurations
12442
12443 * frame.c: Update copyright year.
12444 (get_prev_frame): Improve comment.
12445
12446 * sparc64fbsd-tdep.c: Include "regset.h".
12447 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12448 Remove variables.
12449 (fetch_core_registers): Remove function.
12450 (sparc64fbsd_core_fns): Remove variable.
12451 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12452 functions.
12453 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12454 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12455 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12456
12457 * sparcnbsd-tdep.c: Include "regset.h".
12458 (fetch_core_registers): Remove function.
12459 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12460 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12461 functions.
12462 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12463 TDEP->fpregset.
12464 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12465
12466 * sparc-tdep.h (struct regset): Provide opaque declaration.
12467 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12468 fpregset and sizeof_fpregset members.
12469 * sparc-tdep.c (struct regset): Provide opaque declaration.
12470 (sparc_regset_from_core_section): New function.
12471 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12472 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12473 Set regset_from_core_section when appropriate.
12474
12475 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12476
12477 * x86-64-tdep.c (amd64_non_pod_p): New function.
12478 (amd64_classify_aggregate): Return class memory for non-POD
12479 C++ structure types.
12480
12481 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12482 argument. Use it to reserve a register if necessary.
12483 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12484 amd64_push_arguments.
12485
12486 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12487
12488 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12489 register numbers in comments.
12490 * x86-64-tdep.h: Update copyright year.
12491 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12492 Adjust for addition of %cs and %ss.
12493 * amd64fbsd-nat.c: Update copyright year.
12494 (reg_offset): Add register offsets for %cs and %ss.
12495 * amd64fbsd-tdep.c: Update copyright year.
12496 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12497 (amd64fbsd_sc_reg_offset): Likewise.
12498 * x86-64-linux-nat.c: Update copyright year.
12499 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12500 and %ss.
12501 * amd64nbsd-nat.c: Update copyright year.
12502 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12503 * amd64nbsd-tdep.c: Update copyright year.
12504 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12505 * x86-64-linux-tdep.c: Update copyright year.
12506 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12507 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12508 * regformats/reg-x86-64.dat: Add %cs and %ss.
12509
12510 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12511 variables to prevent long lines. Update comments to reflect
12512 reality.
12513
12514 2004-01-09 David Carlton <carlton@kealia.com>
12515
12516 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12517 * dwarf2read.c (read_namespace): Pull out name-generating code
12518 into namespace_name. Rename previous_namespace to previous_prefix
12519 and processing_current_namespace to processing_current_prefix..
12520 (namespace_name): New function.
12521 (add_partial_symbol): Substitute uses of pdi->name with
12522 actual_name.
12523 * cp-support.h: Rename processing_current_namespace to
12524 processing_current_prefix.
12525 Update copyright year.
12526 * cp-namespace.c: Rename processing_current_namespace to
12527 processing_current_prefix.
12528 Update copyright year.
12529
12530 2004-01-09 Andrew Cagney <cagney@redhat.com>
12531
12532 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12533
12534 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12535
12536 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12537 complaining.
12538 (process_one_symbol): Deal with N_PATCH stabs.
12539
12540 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12541
12542 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12543 ifdeffed code.
12544 Update copyright year.
12545
12546 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12547
12548 * config/pa/tm-hppa.h: Update extern declarations for
12549 hppa32_hpux_frame_saved_pc_in_sigtramp,
12550 hppa32_hpux_frame_base_before_sigtramp, and
12551 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12552
12553 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12554
12555 * config/pa/tm-hppah.h: Update copyright years.
12556
12557 2004-01-08 Andrew Cagney <cagney@redhat.com>
12558
12559 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12560 (mips_o32_reg_struct_has_addr): Delete function.
12561 (mips_gdbarch_init): Update.
12562 (mips_extract_struct_value_address): Delete function.
12563
12564 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12565
12566 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12567 reality.
12568
12569 2004-01-07 Andrew Cagney <cagney@redhat.com>
12570
12571 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12572 architecture's elf flags (when available).
12573
12574 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12575 FPU to the start, check the MIPS FPU when looking for an old
12576 architecture.
12577 (set_mipsfpu_single_command): Update the architecture.
12578 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12579
12580 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12581 (mips_mask_address_p): Add "tdep" parameter.
12582 (show_mask_address, mips_addr_bits_remove): Update.
12583 (mips_dump_tdep): Update.
12584 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12585 (MIPS_STACK_ARGSIZE): Delete macro.
12586 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12587 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12588 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12589 (mips_dump_tdep): Update.
12590 (MIPS_SAVED_REGSIZE): Delete macro.
12591 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12592 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12593 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12594 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12595 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12596 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12597 (mips_pop_frame, return_value_location): Update.
12598 (mips_n32n64_return_value, mips_dump_tdep): Update.
12599
12600 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12601 MIPS ABI.
12602
12603 * mips-tdep.c: Update copyright.
12604 (mips_gdbarch_init): Merge two code blocks handling the register
12605 name and number layout.
12606
12607 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12608
12609 * tracepoint.c (validate_actionline): Fix segv at EOF
12610
12611 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12612
12613 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12614 properly for static fields.
12615
12616 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12617 Jason Molenda <jmolenda@apple.com>
12618
12619 * disasm.c: Update copyright to include 2004.
12620 (do_mixed_source_and_assembly): For uiout asm list
12621 and tuple cleanups, initialize to null_cleanup instead of
12622 NULL and do so prior to loop. Only reset when we close off
12623 the tuple/list. Move check for whether to close off the
12624 asm tuple/list to after dump_insns call where it will be run
12625 on each loop iteration.
12626
12627 2004-01-05 Andrew Cagney <cagney@redhat.com>
12628
12629 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12630 should be a switch case and not a label.
12631 * mips-tdep.c (mips32_next_pc): Delete unused labels
12632 "greater_equal_branch" and "less_zero_branch".
12633 * jv-valprint.c (java_print_value_fields): Delete unused label
12634 "flush_it".
12635
12636 * target.c (unpush_target): Only close a target that is in the
12637 target stack.
12638
12639 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12640
12641 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12642 address from [sp + 64] instead of %o2.
12643
12644 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12645 fixes PR backtrace/1476.
12646
12647 2004-01-05 Andrew Cagney <cagney@redhat.com>
12648
12649 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12650 move to start of file.
12651 * i386-tdep.h (struct regcache): Add opaque declaration.
12652 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12653 declaration.
12654 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12655 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12656 * win32-nat.c (fake_create_process): Use ISO C style definition.
12657 * stabsread.c (define_symbol): Delete #ifndef
12658 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12659 stabs_argument_has_addr call, macro never defined.
12660
12661 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12662
12663 * op50-rom.c: Delete.
12664 * w89k-rom.c: Delete.
12665 * Makefile.in: Remove references.
12666
12667 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12668
12669 * x86-64-tdep.c: Update copyright year.
12670 (struct amd64_register_info): Rename from x86_64_register_info.
12671 (amd64_register_info): Rename from x86_64_register_info.
12672 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12673 (amd64_register_name): Rename from x86_64_register_name.
12674 (amd64_register_type): Rename from x86_64_register_type.
12675 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12676 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12677 (amd64_dwarf_reg_to_regnum): Rename from
12678 x86_64_dwarf_reg_to_regnum.
12679 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12680 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12681 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12682 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12683 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12684 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12685 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12686 (amd64_frame_cache): Rename from x86_64_frame_cache.
12687 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12688 (amd64_frame_prev_register): Rename from
12689 x86_64_frame_prev_register.
12690 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12691 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12692 (amd64_sigtramp_frame_cache): Rename from
12693 x86_64_sigtramp_frame_cache.
12694 (amd64_sigtramp_frame_prev_register): Rename from
12695 x86_64_sigtramp_frame_prev_register.
12696 (amd64_sigtramp_frame_unwind): Rename from
12697 x86_64_sigtramp_frame_unwind.
12698 (amd64_sigtramp_frame_sniffer): Rename from
12699 x86_64_sigtramp_frame_sniffer.
12700 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12701 (amd64_frame_base): Rename from x86_64_frame_base.
12702 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12703 (amd64_frame_align): Rename from x86_64_frame_align.
12704 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12705 (amd64_regset_from_core_section): Rename from
12706 x86_64_regset_from_core_section.
12707 (x86_64_init_abi): Update comments.
12708
12709 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12710
12711 * MAINTAINERS (write after approval): Add myself.
12712
12713 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12714
12715 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12716 `float' arguments.
12717
12718 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12719
12720 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12721 such that it mentions a specific version of GCC that exhibits this
12722 bug.
12723
12724 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12725
12726 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12727 structure that has a single `float' member, store it in %f1 in
12728 addition to %f0.
12729
12730 * sparc-sol2-nat.c: Add missing '\'.
12731
12732 * sparc-tdep.c (sparc32_return_value): New function.
12733 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12734 Remove functions.
12735 (sparc32_gdbarch_init): Set return_value, don't set
12736 extract_return_value, store_return_value, use_struct_convention
12737 and return_value_on_stack.
12738
12739 * sparc-sol2-nat.c: Add missing ')'.
12740
12741 2004-01-03 J. Brobecker <brobecker@gnat.com>
12742
12743 * infrun.c (handle_step_into_function): New function.
12744 (handle_inferior_event): Extract out some code into the new
12745 function above.
12746
12747 2004-01-03 J. Brobecker <brobecker@gnat.com>
12748
12749 * infrun.c (handle_inferior_event): Move the declaration of
12750 real_stop_pc inside the if blocks where it is used.
12751
12752 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12753
12754 * sparc64-tdep.c (sparc64_16_byte_align_p)
12755 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12756 Use check_typedef to get subtypes of structures and unions.
12757 (sparc64_store_return_value): Fix calculation of the appropriate
12758 offset into VALBUF when storing a structure or union.
12759 (sparc64_return_value): New function.
12760 (sparc64_use_struct_convention): Remove function.
12761 (sparc64_init_abi): Set return_value, don't set
12762 extract_return_value, store_return_value and
12763 use_struct_convention.
12764
12765 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12766
12767 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12768 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12769 gdb/config/alpha/xm-alphaosf.h,
12770 gdb/config/powerpc/tm-ppcle-eabi.h,
12771 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12772 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12773 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12774 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12775 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12776 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12777 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12778 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12779 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12780 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12781 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12782 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12783 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12784 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12785 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12786 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12787 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12788 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12789 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12790 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12791 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12792 Remove lines for .cvsignore files.
12793
12794 2004-01-03 J. Brobecker <brobecker@gnat.com>
12795
12796 * infrun.c: Back out the previous change.
12797
12798 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12799
12800 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12801 sparc-*-sunos4* to the list of REMOVED configurations.
12802
12803 * configure.tgt: Add back sparc-*-vxworks*.
12804 * remote-vxsparc.c: Remove all includes except for "defs.h",
12805 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12806 Include "sparc-tdep.h".
12807 (SPARC_R_G1): New define.
12808 (vxsparc_gregset): New variable.
12809 (ext_format_sparc): Remove extern declaration.
12810 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12811 sparc32_supply_fpregset.
12812 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12813 sparc_collect_rwindow and sparc32_collect_fpregset.
12814 * config/sparc/tm-vxworks.h: New file, based on recently removed
12815 tm-vxsparc.h.
12816 * config/sparc/vxworks.mt: New file, based on recently removed
12817 vxworks.mt.
12818
12819 2004-01-03 J. Brobecker <brobecker@gnat.com>
12820
12821 * infrun.c (handle_step_into_function): New function.
12822 (handle_inferior_event): Extract out some code into the new
12823 function above.
12824
12825 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12826
12827 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12828 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12829 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12830 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12831 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12832 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12833 (sparc_nat_h): New variable.
12834 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12835 (tm-sun4os4.h): Remove dependency.
12836 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12837 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12838 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12839 sparc-tdep.o): Update dependencies.
12840 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12841 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12842 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12843 dependencies.
12844 * configure.host: Remove existing sparc-*-lynxos*,
12845 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12846 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12847 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12848 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12849 triplets.
12850 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12851 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12852 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12853 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12854 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12855 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12856 sparc64-*-solaris2* and sparc64-*-* triplets.
12857 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12858 "symtab.h" and "objfiles.h".
12859 (BIAS): Remove define.
12860 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12861 (X_DISP19): Remove macros.
12862 (sparc_fetch_instruction): Remove function.
12863 (struct gdbarch_tdep): Remove definition.
12864 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12865 (sparc_breakpoint_from_pc): Remove function.
12866 (struct sparc64_frame_cache): Remove definition.
12867 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12868 sparc64_unwind_pc): Remove functions.
12869 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12870 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12871 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12872 (sparc64_frame_cache): Change return type to `struct
12873 sparc_frame_cache *'. Simply call sparc_frame_cache.
12874 (sparc64_frame_this_id, sparc64_frame_prev_register,
12875 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12876 instead of `struct sparc64_frame_cache.
12877 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12878 sparc_analyze_control_transfer, sparc_software_single_step,
12879 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12880 _initialize_sparc64_tdep): Remove functions.
12881 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12882 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12883 macros.
12884 (sparc64_supply_gregset, sparc64_collect_gregset,
12885 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12886 (sparc64_init_abi): New function.
12887 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12888 inclusion guard. Include "sparc-tdep.h".
12889 (BIAS): Define.
12890 (r_tstate_offset, r_fprs_offset): New defines.
12891 (enum sparc_regnum): Remove defenition.
12892 (enum sparc64_regnum): Reformat.
12893 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12894 (sparc64_init_abi, sparc64_supply_gregset,
12895 sparc64_collect_gregset, sparc64_supply_fpregset,
12896 sparc64_collect_fpregset): New prototypes.
12897 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12898 Add extern declarations.
12899 (sparc64_sol2_init_abi): New prototype.
12900 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12901 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12902 prototypes.
12903 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12904 "sparnbsd-nat.h".
12905 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12906 functions.
12907 (_initialize_sparc64fbsd_nat): Remove initialization of
12908 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12909 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12910 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12911 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12912 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12913 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12914 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12915 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12916 (sparc64fbsd_r_y_offset): Remove variables.
12917 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12918 Make static and const.
12919 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12920 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12921 functions.
12922 (sparc64fbsd_gregset): New variable.
12923 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12924 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12925 and sparc64_supply_fpregset.
12926 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12927 (sparc64fbsd_sigtramp_frame_this_id)
12928 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12929 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12930 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12931 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12932 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12933 * sparcnbsd-tdep.c: Update copyright year. Include
12934 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12935 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12936 "value.h" and "sparcnbsd-tdep.h".
12937 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12938 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12939 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12940 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12941 defines.
12942 (sparcnbsd_gregset): New variable.
12943 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12944 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12945 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12946 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12947 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12948 variables.
12949 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12950 (sparc32nbsd_sigcontext_frame_this_id)
12951 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12952 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12953 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12954 (sparcnbsd_get_longjmp_target_32,
12955 sparcnbsd_get_longjmp_target_64): Remove functions.
12956 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12957 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12958 sparcnbsd_init_elf): Remove.
12959 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12960 (sparcnbsd_elf_init_abi): New functions.
12961 (_initialize_sparcnbsd_tdep): New prototype.
12962 (_initialize_sparnbsd_tdep): Update.
12963 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12964 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12965 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12966 * config/sparc/linux.mh: Update comment.
12967 (XM_FILE, HOST_IPC): Remove variables.
12968 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12969 sparc-linux-nat.o.
12970 * config/sparc/linux.mt: Update comment.
12971 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12972 * config/sparc/nbsd.mt: Reformat.
12973 * config/sparc/nbsd64.mh: Update comment.
12974 (NATDEPFILES): Add sparc-nat.o.
12975 * config/sparc/nbsd64.mt: Update comment.
12976 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12977 (TM_FILE): Set to tm-nbsd.h.
12978 * config/sparc/nbsdelf.mh: Update comment.
12979 (NATDEPFILES): Add sparc-nat.o.
12980 (XM_FILE): Delete.
12981 * config/sparc/nbsdaout.mh: Update comment.
12982 (NATDEPFILES): Add sparc-nat.o
12983 (XM_FILE): Delete.
12984 * config/sparc/nm-linux.h: Update copyright year. Don't include
12985 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12986 inclusion.
12987 (KERNEL_U_SIZE): Remove define.
12988 (kernel_u_size): Remove prototype.
12989 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12990 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12991 "regcache.h".
12992 (CHILD_PREPARE_TO_STORE): Remove define.
12993 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12994 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12995 sparcnbsd-nat.c: Rewrite files.
12996 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12997 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12998 sparcnbsd-tdep.h: Remove files.
12999 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13000 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13001 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13002 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13003 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13004 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13005 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13006 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13007 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13008 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13009 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13010 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13011 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13012 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13013 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13014 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13015 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13016 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13017 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13018
13019 2004-01-02 Andrew Cagney <cagney@redhat.com>
13020
13021 From 2003-12-18 Kazuhiro Inaoka:
13022 * configure.host: Add m32r-linux target.
13023
13024 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13025
13026 * top.c (print_gdb_version): Update year to 2004.
13027
13028 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13029
13030 * MAINTAINERS: Add myself to the write-after-approval category.
13031
13032 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13033
13034 From Bernardo Innocenti <bernie@develer.com>:
13035 * configure.tgt: Add uClinux target.
13036
13037 2004-01-02 Andrew Cagney <cagney@redhat.com>
13038
13039 * utils.c (do_my_cleanups): Make static, add forward declaration.
13040 * defs.h (do_my_cleanups): Delete declaration.
13041
13042 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13043
13044 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13045 bfd/ChangeLog-0203.
13046
13047 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13048
13049 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13050 in <machine/reg.h>.
13051 * configure, config.in: Regenerate.
13052
13053 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13054 tui/ChangeLog-1998-2003.
13055 \f
13056 Local Variables:
13057 mode: change-log
13058 left-margin: 8
13059 fill-column: 74
13060 version-control: never
13061 End:
This page took 0.320406 seconds and 5 git commands to generate.